• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_ASFLAGS += $(ART_TARGET_ASFLAGS)
26LOCAL_SRC_FILES := sigchain_dummy.cc
27LOCAL_CLANG = $(ART_TARGET_CLANG)
28LOCAL_MODULE:= libsigchain
29LOCAL_SHARED_LIBRARIES := liblog
30LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
31LOCAL_ADDITIONAL_DEPENDENCIES += art/build/Android.common_build.mk
32LOCAL_NATIVE_COVERAGE := $(ART_COVERAGE)
33$(eval $(call set-target-local-clang-vars))
34include $(BUILD_SHARED_LIBRARY)
35
36include $(CLEAR_VARS)
37LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION)
38LOCAL_MODULE_TAGS := optional
39LOCAL_CFLAGS += $(ART_TARGET_CFLAGS)
40LOCAL_ASFLAGS += $(ART_TARGET_ASFLAGS)
41LOCAL_SRC_FILES := sigchain.cc
42LOCAL_CLANG = $(ART_TARGET_CLANG)
43LOCAL_MODULE:= libsigchain
44LOCAL_SHARED_LIBRARIES := liblog
45LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
46LOCAL_ADDITIONAL_DEPENDENCIES += art/build/Android.common_build.mk
47$(eval $(call set-target-local-clang-vars))
48include $(BUILD_STATIC_LIBRARY)
49
50# Build host library.
51include $(CLEAR_VARS)
52LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION)
53LOCAL_MODULE_TAGS := optional
54LOCAL_IS_HOST_MODULE := true
55LOCAL_CFLAGS += $(ART_HOST_CFLAGS)
56LOCAL_ASFLAGS += $(ART_HOST_ASFLAGS)
57LOCAL_CLANG = $(ART_HOST_CLANG)
58LOCAL_SRC_FILES := sigchain_dummy.cc
59LOCAL_MODULE:= libsigchain
60LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
61LOCAL_LDLIBS = -ldl
62LOCAL_MULTILIB := both
63LOCAL_NATIVE_COVERAGE := $(ART_COVERAGE)
64include $(BUILD_HOST_SHARED_LIBRARY)
65
66include $(CLEAR_VARS)
67LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION)
68LOCAL_MODULE_TAGS := optional
69LOCAL_IS_HOST_MODULE := true
70LOCAL_CFLAGS += $(ART_HOST_CFLAGS)
71LOCAL_ASFLAGS += $(ART_HOST_ASFLAGS)
72LOCAL_CLANG = $(ART_HOST_CLANG)
73LOCAL_SRC_FILES := sigchain.cc
74LOCAL_MODULE:= libsigchain
75LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
76LOCAL_LDLIBS = -ldl
77LOCAL_MULTILIB := both
78include $(BUILD_HOST_STATIC_LIBRARY)
79
80# Create a dummy version of libsigchain which expose the necessary symbols
81# but throws when called. This can be used to get static binaries which don't
82# need the real functionality of the sig chain but need to please the linker.
83include $(CLEAR_VARS)
84LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION)
85LOCAL_MODULE_TAGS := optional
86LOCAL_IS_HOST_MODULE := true
87LOCAL_CFLAGS += $(ART_HOST_CFLAGS)
88LOCAL_CLANG = $(ART_HOST_CLANG)
89LOCAL_SRC_FILES := sigchain_dummy.cc
90LOCAL_MODULE:= libsigchain_dummy
91LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
92LOCAL_LDLIBS = -ldl
93LOCAL_MULTILIB := both
94include $(BUILD_HOST_STATIC_LIBRARY)
95