diff options
Diffstat (limited to 'nci/jni/Android.mk')
-rw-r--r-- | nci/jni/Android.mk | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/nci/jni/Android.mk b/nci/jni/Android.mk new file mode 100644 index 0000000..39832fd --- /dev/null +++ b/nci/jni/Android.mk @@ -0,0 +1,54 @@ +VOB_COMPONENTS := external/libnfc-nci/src +NFA := $(VOB_COMPONENTS)/nfa +NFC := $(VOB_COMPONENTS)/nfc + +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) +LOCAL_PRELINK_MODULE := false + +ifneq ($(NCI_VERSION),) +LOCAL_CFLAGS += -DNCI_VERSION=$(NCI_VERSION) -O0 -g +endif + +define all-cpp-files-under +$(patsubst ./%,%, \ + $(shell cd $(LOCAL_PATH) ; \ + find $(1) -name "*.cpp" -and -not -name ".*") \ + ) +endef + +LOCAL_SRC_FILES:= $(call all-cpp-files-under, .) + +LOCAL_C_INCLUDES += \ + bionic \ + bionic/libstdc++ \ + external/stlport/stlport \ + external/libxml2/include \ + external/icu4c/common \ + frameworks/native/include \ + $(NFA)/include \ + $(NFA)/brcm \ + $(NFC)/include \ + $(NFC)/brcm \ + $(NFC)/int \ + $(VOB_COMPONENTS)/hal/include \ + $(VOB_COMPONENTS)/hal/int \ + $(VOB_COMPONENTS)/include \ + $(VOB_COMPONENTS)/gki/ulinux \ + $(VOB_COMPONENTS)/gki/common + +LOCAL_SHARED_LIBRARIES := \ + libicuuc \ + libnativehelper \ + libcutils \ + libutils \ + libnfc-nci \ + libstlport + +LOCAL_STATIC_LIBRARIES := libxml2 + +LOCAL_MODULE := libnfc_nci_jni +LOCAL_MODULE_TAGS := optional + +include $(BUILD_SHARED_LIBRARY) + |