Home | History | Annotate | Download | only in jni
      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 LOCAL_CFLAGS += -Wall -Wextra
     14 
     15 define all-cpp-files-under
     16 $(patsubst ./%,%, \
     17   $(shell cd $(LOCAL_PATH) ; \
     18           find $(1) -name "*.cpp" -and -not -name ".*") \
     19  )
     20 endef
     21 
     22 LOCAL_SRC_FILES:= $(call all-cpp-files-under, .)
     23 
     24 LOCAL_C_INCLUDES += \
     25     bionic \
     26     bionic/libstdc++ \
     27     external/stlport/stlport \
     28     external/libxml2/include \
     29     external/icu4c/common \
     30     frameworks/native/include \
     31     libcore/include \
     32     $(NFA)/include \
     33     $(NFA)/brcm \
     34     $(NFC)/include \
     35     $(NFC)/brcm \
     36     $(NFC)/int \
     37     $(VOB_COMPONENTS)/hal/include \
     38     $(VOB_COMPONENTS)/hal/int \
     39     $(VOB_COMPONENTS)/include \
     40     $(VOB_COMPONENTS)/gki/ulinux \
     41     $(VOB_COMPONENTS)/gki/common
     42 
     43 LOCAL_SHARED_LIBRARIES := \
     44     libicuuc \
     45     libnativehelper \
     46     libcutils \
     47     libutils \
     48     liblog \
     49     libnfc-nci \
     50     libstlport
     51 
     52 LOCAL_STATIC_LIBRARIES := libxml2
     53 
     54 LOCAL_MODULE := libnfc_nci_jni
     55 LOCAL_MODULE_TAGS := optional
     56 
     57 include $(BUILD_SHARED_LIBRARY)
     58