1cc_library_shared { 2 arch: { 3 arm: { 4 instruction_set: "arm", 5 }, 6 }, 7 name: "libnfc-nci", 8 shared_libs: [ 9 "libcutils", 10 "liblog", 11 "libdl", 12 "libhardware", 13 "libz", 14 "libchrome", 15 "libbase", 16 "libstatslog", 17 18 // Treble configuration 19 "libhidlbase", 20 "libutils", 21 "android.hardware.nfc@1.0", 22 "android.hardware.nfc@1.1", 23 "android.hardware.nfc@1.2", 24 ], 25 static_libs: [ 26 "libnfcutils", 27 ], 28 cflags: [ 29 "-DBUILDCFG=1", 30 "-Wall", 31 "-Werror", 32 "-Wimplicit-fallthrough", 33 ], 34 local_include_dirs: [ 35 "include", 36 "gki/ulinux", 37 "gki/common", 38 "nfa/include", 39 "nfc/include", 40 ], 41 srcs: [ 42 "nfa/ce/*.cc", 43 "nfa/dm/*.cc", 44 "nfa/ee/*.cc", 45 "nfa/hci/*.cc", 46 "nfa/p2p/*.cc", 47 "nfa/rw/*.cc", 48 "nfa/sys/*.cc", 49 "nfc/llcp/*.cc", 50 "nfc/nci/*.cc", 51 "nfc/ndef/*.cc", 52 "nfc/nfc/*.cc", 53 "nfc/tags/*.cc", 54 "adaptation/*.cc", 55 "gki/common/*.cc", 56 "gki/ulinux/*.cc", 57 ], 58 required: [ 59 // Provide a default libnfc-nci.conf in /system/etc for devices that 60 // does not ship one in /product 61 "libnfc-nci.conf-default", 62 ], 63 product_variables: { 64 debuggable: { 65 cflags: [ 66 "-DDCHECK_ALWAYS_ON" 67 ], 68 }, 69 }, 70} 71