1#
2# Copyright (C) 2014 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH:= $(call my-dir)
18
19include art/build/Android.common_build.mk
20
21include $(CLEAR_VARS)
22LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION)
23LOCAL_MODULE_TAGS := optional
24LOCAL_CFLAGS += $(ART_TARGET_CFLAGS)
25LOCAL_SRC_FILES := sigchain_dummy.cc
26LOCAL_CLANG = $(ART_TARGET_CLANG)
27LOCAL_MODULE:= libsigchain
28LOCAL_SHARED_LIBRARIES := liblog
29LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
30LOCAL_ADDITIONAL_DEPENDENCIES += art/build/Android.common_build.mk
31include $(BUILD_SHARED_LIBRARY)
32
33include $(CLEAR_VARS)
34LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION)
35LOCAL_MODULE_TAGS := optional
36LOCAL_CFLAGS += $(ART_TARGET_CFLAGS)
37LOCAL_SRC_FILES := sigchain.cc
38LOCAL_CLANG = $(ART_TARGET_CLANG)
39LOCAL_MODULE:= libsigchain
40LOCAL_SHARED_LIBRARIES := liblog
41LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
42LOCAL_ADDITIONAL_DEPENDENCIES += art/build/Android.common_build.mk
43include $(BUILD_STATIC_LIBRARY)
44
45# Build host library.
46include $(CLEAR_VARS)
47LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION)
48LOCAL_MODULE_TAGS := optional
49LOCAL_IS_HOST_MODULE := true
50LOCAL_CFLAGS += $(ART_HOST_CFLAGS)
51LOCAL_CLANG = $(ART_HOST_CLANG)
52LOCAL_SRC_FILES := sigchain_dummy.cc
53LOCAL_MODULE:= libsigchain
54LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
55LOCAL_LDLIBS = -ldl
56LOCAL_MULTILIB := both
57include $(BUILD_HOST_SHARED_LIBRARY)
58
59include $(CLEAR_VARS)
60LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION)
61LOCAL_MODULE_TAGS := optional
62LOCAL_IS_HOST_MODULE := true
63LOCAL_CFLAGS += $(ART_HOST_CFLAGS)
64LOCAL_CLANG = $(ART_HOST_CLANG)
65LOCAL_SRC_FILES := sigchain.cc
66LOCAL_MODULE:= libsigchain
67LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
68LOCAL_LDLIBS = -ldl
69LOCAL_MULTILIB := both
70include external/libcxx/libcxx.mk
71include $(BUILD_HOST_STATIC_LIBRARY)
72