1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5cc_library_shared { 6 name: "libnfc_nci_jni", 7 8 cflags: [ 9 "-Wall", 10 "-Wextra", 11 "-Wno-unused-parameter", 12 "-Werror", 13 14 "-DNXP_UICC_ENABLE", 15 ], 16 17 srcs: ["**/*.cpp"], 18 19 include_dirs: [ 20 "system/nfc/src/nfa/include", 21 "system/nfc/src/nfc/include", 22 "system/nfc/src/include", 23 "system/nfc/src/gki/ulinux", 24 "system/nfc/src/gki/common", 25 "system/nfc/utils/include", 26 ], 27 28 local_include_dirs: [ 29 "extns/pn54x/inc", 30 "extns/pn54x/src/common", 31 "extns/pn54x/src/mifare", 32 ], 33 34 shared_libs: [ 35 "libandroidicu", 36 "libnativehelper", 37 "libcutils", 38 "libutils", 39 "liblog", 40 "libnfc-nci", 41 "libchrome", 42 "libbase", 43 ], 44 45 static_libs: ["libxml2"], 46 47 product_variables: { 48 debuggable: { 49 cflags: ["-DDCHECK_ALWAYS_ON"], 50 }, 51 }, 52 sanitize: { 53 integer_overflow: true, 54 misc_undefined: ["bounds"], 55 scs: true, 56 }, 57} 58