Home | History | Annotate | Download | only in sigchainlib
      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 
     19 include art/build/Android.common_build.mk
     20 
     21 include $(CLEAR_VARS)
     22 LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION)
     23 LOCAL_MODULE_TAGS := optional
     24 LOCAL_CFLAGS += $(ART_TARGET_CFLAGS)
     25 LOCAL_ASFLAGS += $(ART_TARGET_ASFLAGS)
     26 LOCAL_SRC_FILES := sigchain_dummy.cc
     27 LOCAL_CLANG = $(ART_TARGET_CLANG)
     28 LOCAL_MODULE:= libsigchain
     29 LOCAL_SHARED_LIBRARIES := liblog
     30 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
     31 LOCAL_ADDITIONAL_DEPENDENCIES += art/build/Android.common_build.mk
     32 LOCAL_NATIVE_COVERAGE := $(ART_COVERAGE)
     33 $(eval $(call set-target-local-clang-vars))
     34 include $(BUILD_SHARED_LIBRARY)
     35 
     36 include $(CLEAR_VARS)
     37 LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION)
     38 LOCAL_MODULE_TAGS := optional
     39 LOCAL_CFLAGS += $(ART_TARGET_CFLAGS)
     40 LOCAL_ASFLAGS += $(ART_TARGET_ASFLAGS)
     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
     47 $(eval $(call set-target-local-clang-vars))
     48 include $(BUILD_STATIC_LIBRARY)
     49 
     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)
     56 LOCAL_ASFLAGS += $(ART_HOST_ASFLAGS)
     57 LOCAL_CLANG = $(ART_HOST_CLANG)
     58 LOCAL_SRC_FILES := sigchain_dummy.cc
     59 LOCAL_MODULE:= libsigchain
     60 LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
     61 LOCAL_LDLIBS = -ldl
     62 LOCAL_MULTILIB := both
     63 LOCAL_NATIVE_COVERAGE := $(ART_COVERAGE)
     64 include $(BUILD_HOST_SHARED_LIBRARY)
     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)
     71 LOCAL_ASFLAGS += $(ART_HOST_ASFLAGS)
     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
     78 include $(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.
     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)
     95