1LOCAL_PATH:= $(call my-dir) 2 3# 4# libnfc 5# 6 7include $(CLEAR_VARS) 8 9LOCAL_ARM_MODE := arm 10 11#phLibNfc 12LOCAL_SRC_FILES:= \ 13 src/phLibNfc.c \ 14 src/phLibNfc_discovery.c \ 15 src/phLibNfc_initiator.c \ 16 src/phLibNfc_llcp.c \ 17 src/phLibNfc_Ioctl.c \ 18 src/phLibNfc_ndef_raw.c \ 19 src/phLibNfc_SE.c \ 20 src/phLibNfc_target.c 21 22#phHalNfc 23LOCAL_SRC_FILES += src/phHal4Nfc_ADD.c 24LOCAL_SRC_FILES += src/phHal4Nfc.c 25LOCAL_SRC_FILES += src/phHal4Nfc_Emulation.c 26LOCAL_SRC_FILES += src/phHal4Nfc_P2P.c 27LOCAL_SRC_FILES += src/phHal4Nfc_Reader.c 28 29#phDnldNfc 30LOCAL_SRC_FILES += src/phDnldNfc.c 31 32#phHciNfc 33LOCAL_SRC_FILES += src/phHciNfc_AdminMgmt.c 34LOCAL_SRC_FILES += src/phHciNfc.c 35LOCAL_SRC_FILES += src/phHciNfc_CE_A.c 36LOCAL_SRC_FILES += src/phHciNfc_CE_B.c 37LOCAL_SRC_FILES += src/phHciNfc_DevMgmt.c 38LOCAL_SRC_FILES += src/phHciNfc_Emulation.c 39LOCAL_SRC_FILES += src/phHciNfc_Felica.c 40LOCAL_SRC_FILES += src/phHciNfc_Generic.c 41LOCAL_SRC_FILES += src/phHciNfc_IDMgmt.c 42LOCAL_SRC_FILES += src/phHciNfc_ISO15693.c 43LOCAL_SRC_FILES += src/phHciNfc_Jewel.c 44LOCAL_SRC_FILES += src/phHciNfc_LinkMgmt.c 45LOCAL_SRC_FILES += src/phHciNfc_NfcIPMgmt.c 46LOCAL_SRC_FILES += src/phHciNfc_Pipe.c 47LOCAL_SRC_FILES += src/phHciNfc_PollingLoop.c 48LOCAL_SRC_FILES += src/phHciNfc_RFReaderA.c 49LOCAL_SRC_FILES += src/phHciNfc_RFReaderB.c 50LOCAL_SRC_FILES += src/phHciNfc_RFReader.c 51LOCAL_SRC_FILES += src/phHciNfc_Sequence.c 52LOCAL_SRC_FILES += src/phHciNfc_SWP.c 53LOCAL_SRC_FILES += src/phHciNfc_WI.c 54 55#phLlcNfc 56LOCAL_SRC_FILES += src/phLlcNfc.c 57LOCAL_SRC_FILES += src/phLlcNfc_Frame.c 58LOCAL_SRC_FILES += src/phLlcNfc_Interface.c 59LOCAL_SRC_FILES += src/phLlcNfc_StateMachine.c 60LOCAL_SRC_FILES += src/phLlcNfc_Timer.c 61 62#phFricNfc_Llcp 63LOCAL_SRC_FILES += src/phFriNfc_Llcp.c 64LOCAL_SRC_FILES += src/phFriNfc_LlcpUtils.c 65LOCAL_SRC_FILES += src/phFriNfc_LlcpTransport.c 66LOCAL_SRC_FILES += src/phFriNfc_LlcpTransport_Connectionless.c 67LOCAL_SRC_FILES += src/phFriNfc_LlcpTransport_Connection.c 68LOCAL_SRC_FILES += src/phFriNfc_LlcpMac.c 69LOCAL_SRC_FILES += src/phFriNfc_LlcpMacNfcip.c 70 71#phFriNfc_NdefMap 72LOCAL_SRC_FILES += src/phFriNfc_FelicaMap.c 73LOCAL_SRC_FILES += src/phFriNfc_MifareStdMap.c 74LOCAL_SRC_FILES += src/phFriNfc_MifareULMap.c 75LOCAL_SRC_FILES += src/phFriNfc_MapTools.c 76LOCAL_SRC_FILES += src/phFriNfc_TopazMap.c 77LOCAL_SRC_FILES += src/phFriNfc_TopazDynamicMap.c 78LOCAL_SRC_FILES += src/phFriNfc_DesfireMap.c 79LOCAL_SRC_FILES += src/phFriNfc_ISO15693Map.c 80LOCAL_SRC_FILES += src/phFriNfc_NdefMap.c 81LOCAL_SRC_FILES += src/phFriNfc_IntNdefMap.c 82 83#phFriNfc_NdefReg 84LOCAL_SRC_FILES += src/phFriNfc_NdefReg.c 85 86#phFriNfc_SmtCrdFmt 87LOCAL_SRC_FILES += src/phFriNfc_DesfireFormat.c 88LOCAL_SRC_FILES += src/phFriNfc_MifULFormat.c 89LOCAL_SRC_FILES += src/phFriNfc_MifStdFormat.c 90LOCAL_SRC_FILES += src/phFriNfc_SmtCrdFmt.c 91LOCAL_SRC_FILES += src/phFriNfc_ISO15693Format.c 92 93#phFriNfc_OvrHal 94LOCAL_SRC_FILES += src/phFriNfc_OvrHal.c 95 96#phOsalNfc 97LOCAL_SRC_FILES += Linux_x86/phOsalNfc_Timer.c 98LOCAL_SRC_FILES += Linux_x86/phOsalNfc.c 99LOCAL_SRC_FILES += Linux_x86/phOsalNfc_Utils.c 100 101#phDal4Nfc 102LOCAL_SRC_FILES += Linux_x86/phDal4Nfc_uart.c 103LOCAL_SRC_FILES += Linux_x86/phDal4Nfc.c 104LOCAL_SRC_FILES += Linux_x86/phDal4Nfc_i2c.c 105LOCAL_SRC_FILES += Linux_x86/phDal4Nfc_messageQueueLib.c 106 107LOCAL_CFLAGS += -DNXP_MESSAGING -DANDROID -DNFC_TIMER_CONTEXT -fno-strict-aliasing 108 109ifeq ($(TARGET_HAS_NFC_CUSTOM_CONFIG),true) 110LOCAL_CFLAGS += -DNFC_CUSTOM_CONFIG_INCLUDE 111LOCAL_CFLAGS += -I$(TARGET_OUT_HEADERS)/libnfc-nxp 112endif 113 114# Uncomment for Chipset command/responses 115# Or use "setprop debug.nfc.LOW_LEVEL_TRACES" at run-time 116# LOCAL_CFLAGS += -DLOW_LEVEL_TRACES 117 118# Uncomment for DAL traces 119# LOCAL_CFLAGS += -DDEBUG -DDAL_TRACE 120 121# Uncomment for LLC traces 122# LOCAL_CFLAGS += -DDEBUG -DLLC_TRACE 123 124# Uncomment for LLCP traces 125# LOCAL_CFLAGS += -DDEBUG -DLLCP_TRACE 126 127# Uncomment for HCI traces 128# LOCAL_CFLAGS += -DDEBUG -DHCI_TRACE 129 130#includes 131LOCAL_CFLAGS += -I$(LOCAL_PATH)/inc 132LOCAL_CFLAGS += -I$(LOCAL_PATH)/Linux_x86 133LOCAL_CFLAGS += -I$(LOCAL_PATH)/src 134 135LOCAL_CFLAGS += -Wno-unused-parameter 136 137LOCAL_MODULE:= libnfc 138LOCAL_MODULE_TAGS := optional 139LOCAL_SHARED_LIBRARIES := libcutils libnfc_ndef libdl libhardware liblog 140 141include $(BUILD_SHARED_LIBRARY) 142 143# 144# libnfc_ndef 145# 146 147include $(CLEAR_VARS) 148 149LOCAL_SRC_FILES += src/phFriNfc_NdefRecord.c 150 151LOCAL_CFLAGS += -I$(LOCAL_PATH)/inc 152LOCAL_CFLAGS += -I$(LOCAL_PATH)/src 153 154LOCAL_MODULE:= libnfc_ndef 155LOCAL_MODULE_TAGS := optional 156LOCAL_SHARED_LIBRARIES := libcutils liblog 157 158include $(BUILD_SHARED_LIBRARY) 159