1 VOB_COMPONENTS := external/libnfc-nci/src 2 NFA := $(VOB_COMPONENTS)/nfa 3 NFC := $(VOB_COMPONENTS)/nfc 4 5 LOCAL_PATH := $(call my-dir) 6 include $(CLEAR_VARS) 7 LOCAL_PRELINK_MODULE := false 8 9 ifneq ($(NCI_VERSION),) 10 LOCAL_CFLAGS += -DNCI_VERSION=$(NCI_VERSION) -O0 -g 11 endif 12 13 define all-cpp-files-under 14 $(patsubst ./%,%, \ 15 $(shell cd $(LOCAL_PATH) ; \ 16 find $(1) -name "*.cpp" -and -not -name ".*") \ 17 ) 18 endef 19 20 LOCAL_SRC_FILES:= $(call all-cpp-files-under, .) 21 22 LOCAL_C_INCLUDES += \ 23 bionic \ 24 bionic/libstdc++ \ 25 external/stlport/stlport \ 26 external/libxml2/include \ 27 external/icu4c/common \ 28 frameworks/native/include \ 29 $(NFA)/include \ 30 $(NFA)/brcm \ 31 $(NFC)/include \ 32 $(NFC)/brcm \ 33 $(NFC)/int \ 34 $(VOB_COMPONENTS)/hal/include \ 35 $(VOB_COMPONENTS)/hal/int \ 36 $(VOB_COMPONENTS)/include \ 37 $(VOB_COMPONENTS)/gki/ulinux \ 38 $(VOB_COMPONENTS)/gki/common 39 40 LOCAL_SHARED_LIBRARIES := \ 41 libicuuc \ 42 libnativehelper \ 43 libcutils \ 44 libutils \ 45 libnfc-nci \ 46 libstlport 47 48 LOCAL_STATIC_LIBRARIES := libxml2 49 50 LOCAL_MODULE := libnfc_nci_jni 51 LOCAL_MODULE_TAGS := optional 52 53 include $(BUILD_SHARED_LIBRARY) 54 55