Dave Allison | f4b80bc | 2014-05-14 15:41:25 -0700 | [diff] [blame] | 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 | |
| 17 | LOCAL_PATH:= $(call my-dir) |
| 18 | |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 19 | include art/build/Android.common_build.mk |
Dave Allison | f4b80bc | 2014-05-14 15:41:25 -0700 | [diff] [blame] | 20 | |
| 21 | include $(CLEAR_VARS) |
| 22 | LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION) |
| 23 | LOCAL_MODULE_TAGS := optional |
| 24 | LOCAL_CFLAGS += $(ART_TARGET_CFLAGS) |
Roland Levillain | 12bd721 | 2015-06-04 17:50:27 +0100 | [diff] [blame] | 25 | LOCAL_ASFLAGS += $(ART_TARGET_ASFLAGS) |
Dmitriy Ivanov | f57874d | 2014-10-07 13:43:23 -0700 | [diff] [blame] | 26 | LOCAL_SRC_FILES := sigchain_dummy.cc |
Dave Allison | 69dfe51 | 2014-07-11 17:11:58 +0000 | [diff] [blame] | 27 | LOCAL_CLANG = $(ART_TARGET_CLANG) |
Dave Allison | f4b80bc | 2014-05-14 15:41:25 -0700 | [diff] [blame] | 28 | LOCAL_MODULE:= libsigchain |
Dmitriy Ivanov | f57874d | 2014-10-07 13:43:23 -0700 | [diff] [blame] | 29 | LOCAL_SHARED_LIBRARIES := liblog |
Ian Rogers | afd9acc | 2014-06-17 08:21:54 -0700 | [diff] [blame] | 30 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 31 | LOCAL_ADDITIONAL_DEPENDENCIES += art/build/Android.common_build.mk |
Dan Albert | 31fb260 | 2014-09-30 22:10:10 -0700 | [diff] [blame] | 32 | LOCAL_NATIVE_COVERAGE := $(ART_COVERAGE) |
Chih-Hung Hsieh | 86bb22e | 2014-12-18 19:25:50 -0800 | [diff] [blame] | 33 | $(eval $(call set-target-local-clang-vars)) |
Dave Allison | f4b80bc | 2014-05-14 15:41:25 -0700 | [diff] [blame] | 34 | include $(BUILD_SHARED_LIBRARY) |
Dave Allison | 69dfe51 | 2014-07-11 17:11:58 +0000 | [diff] [blame] | 35 | |
Dmitriy Ivanov | e49a4f6 | 2014-10-20 14:11:00 -0700 | [diff] [blame] | 36 | include $(CLEAR_VARS) |
| 37 | LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION) |
| 38 | LOCAL_MODULE_TAGS := optional |
| 39 | LOCAL_CFLAGS += $(ART_TARGET_CFLAGS) |
Roland Levillain | 12bd721 | 2015-06-04 17:50:27 +0100 | [diff] [blame] | 40 | LOCAL_ASFLAGS += $(ART_TARGET_ASFLAGS) |
Dmitriy Ivanov | e49a4f6 | 2014-10-20 14:11:00 -0700 | [diff] [blame] | 41 | LOCAL_SRC_FILES := sigchain.cc |
| 42 | LOCAL_CLANG = $(ART_TARGET_CLANG) |
| 43 | LOCAL_MODULE:= libsigchain |
| 44 | LOCAL_SHARED_LIBRARIES := liblog |
| 45 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| 46 | LOCAL_ADDITIONAL_DEPENDENCIES += art/build/Android.common_build.mk |
Chih-Hung Hsieh | 86bb22e | 2014-12-18 19:25:50 -0800 | [diff] [blame] | 47 | $(eval $(call set-target-local-clang-vars)) |
Dmitriy Ivanov | e49a4f6 | 2014-10-20 14:11:00 -0700 | [diff] [blame] | 48 | include $(BUILD_STATIC_LIBRARY) |
| 49 | |
Dave Allison | 69dfe51 | 2014-07-11 17:11:58 +0000 | [diff] [blame] | 50 | # Build host library. |
| 51 | include $(CLEAR_VARS) |
| 52 | LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION) |
| 53 | LOCAL_MODULE_TAGS := optional |
| 54 | LOCAL_IS_HOST_MODULE := true |
| 55 | LOCAL_CFLAGS += $(ART_HOST_CFLAGS) |
Roland Levillain | 12bd721 | 2015-06-04 17:50:27 +0100 | [diff] [blame] | 56 | LOCAL_ASFLAGS += $(ART_HOST_ASFLAGS) |
Dave Allison | 69dfe51 | 2014-07-11 17:11:58 +0000 | [diff] [blame] | 57 | LOCAL_CLANG = $(ART_HOST_CLANG) |
Dmitriy Ivanov | f57874d | 2014-10-07 13:43:23 -0700 | [diff] [blame] | 58 | LOCAL_SRC_FILES := sigchain_dummy.cc |
Dave Allison | 69dfe51 | 2014-07-11 17:11:58 +0000 | [diff] [blame] | 59 | LOCAL_MODULE:= libsigchain |
| 60 | LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk |
| 61 | LOCAL_LDLIBS = -ldl |
| 62 | LOCAL_MULTILIB := both |
Dan Albert | 31fb260 | 2014-09-30 22:10:10 -0700 | [diff] [blame] | 63 | LOCAL_NATIVE_COVERAGE := $(ART_COVERAGE) |
Dave Allison | 69dfe51 | 2014-07-11 17:11:58 +0000 | [diff] [blame] | 64 | include $(BUILD_HOST_SHARED_LIBRARY) |
Dmitriy Ivanov | e49a4f6 | 2014-10-20 14:11:00 -0700 | [diff] [blame] | 65 | |
| 66 | include $(CLEAR_VARS) |
| 67 | LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION) |
| 68 | LOCAL_MODULE_TAGS := optional |
| 69 | LOCAL_IS_HOST_MODULE := true |
| 70 | LOCAL_CFLAGS += $(ART_HOST_CFLAGS) |
Roland Levillain | 12bd721 | 2015-06-04 17:50:27 +0100 | [diff] [blame] | 71 | LOCAL_ASFLAGS += $(ART_HOST_ASFLAGS) |
Dmitriy Ivanov | e49a4f6 | 2014-10-20 14:11:00 -0700 | [diff] [blame] | 72 | LOCAL_CLANG = $(ART_HOST_CLANG) |
| 73 | LOCAL_SRC_FILES := sigchain.cc |
| 74 | LOCAL_MODULE:= libsigchain |
| 75 | LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk |
| 76 | LOCAL_LDLIBS = -ldl |
| 77 | LOCAL_MULTILIB := both |
Dmitriy Ivanov | e49a4f6 | 2014-10-20 14:11:00 -0700 | [diff] [blame] | 78 | include $(BUILD_HOST_STATIC_LIBRARY) |
Calin Juravle | 65e069d | 2015-06-08 10:35:24 +0100 | [diff] [blame] | 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. |
| 83 | include $(CLEAR_VARS) |
| 84 | LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION) |
| 85 | LOCAL_MODULE_TAGS := optional |
| 86 | LOCAL_IS_HOST_MODULE := true |
| 87 | LOCAL_CFLAGS += $(ART_HOST_CFLAGS) |
| 88 | LOCAL_CLANG = $(ART_HOST_CLANG) |
| 89 | LOCAL_SRC_FILES := sigchain_dummy.cc |
| 90 | LOCAL_MODULE:= libsigchain_dummy |
| 91 | LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk |
| 92 | LOCAL_LDLIBS = -ldl |
| 93 | LOCAL_MULTILIB := both |
| 94 | include $(BUILD_HOST_STATIC_LIBRARY) |