1VOB_COMPONENTS := system/nfc/src
2NFA := $(VOB_COMPONENTS)/nfa
3NFC := $(VOB_COMPONENTS)/nfc
4
5LOCAL_PATH := $(call my-dir)
6include $(CLEAR_VARS)
7include $(call all-makefiles-under,$(LOCAL_PATH))
8
9ifneq ($(NCI_VERSION),)
10LOCAL_CFLAGS += -DNCI_VERSION=$(NCI_VERSION) -O0 -g
11endif
12
13LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-parameter -Werror
14
15LOCAL_SRC_FILES := $(call all-subdir-cpp-files) $(call all-subdir-c-files)
16
17LOCAL_C_INCLUDES += \
18    external/libxml2/include \
19    frameworks/native/include \
20    $(NFA)/include \
21    $(NFA)/brcm \
22    $(NFC)/include \
23    $(NFC)/brcm \
24    $(NFC)/int \
25    $(VOB_COMPONENTS)/hal/include \
26    $(VOB_COMPONENTS)/hal/int \
27    $(VOB_COMPONENTS)/include \
28    $(VOB_COMPONENTS)/gki/ulinux \
29    $(VOB_COMPONENTS)/gki/common
30
31LOCAL_SHARED_LIBRARIES := \
32    libicuuc \
33    libnativehelper \
34    libcutils \
35    libutils \
36    liblog \
37    libnfc-nci \
38
39LOCAL_STATIC_LIBRARIES := libxml2
40
41LOCAL_MODULE := libnfc_nci_jni
42
43include $(BUILD_SHARED_LIBRARY)
44