1 # Copyright (C) 2011 The Android Open Source Project 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 LOCAL_PATH:= $(call my-dir) 16 include $(CLEAR_VARS) 17 18 local_cflags := -DDYNAMIC_ANNOTATIONS_ENABLED=1 19 local_src_files := dynamic_annotations.c 20 21 LOCAL_MODULE := libdynamic_annotations 22 LOCAL_MODULE_TAGS := optional 23 LOCAL_ARM_MODE := arm 24 LOCAL_CFLAGS += $(local_cflags) 25 LOCAL_SRC_FILES := $(local_src_files) 26 LOCAL_PRELINK_MODULE := false 27 28 # Remove this when the all toolchains are GCC 4.4 29 ifeq ($(TARGET_ARCH),arm) 30 LOCAL_LDFLAGS += -Wl,--icf=none 31 endif 32 33 include $(BUILD_SHARED_LIBRARY) 34 35 36 include $(CLEAR_VARS) 37 LOCAL_MODULE := libdynamic_annotations-host 38 LOCAL_MODULE_TAGS := optional 39 LOCAL_CFLAGS += $(local_cflags) 40 LOCAL_SRC_FILES := $(local_src_files) 41 include $(BUILD_HOST_SHARED_LIBRARY) 42