1package { 2 default_team: "trendy_team_fwk_nfc", 3 default_applicable_licenses: ["Android-Apache-2.0"], 4} 5 6cc_library_shared { 7 name: "libnfc_nci_jni", 8 9 cflags: [ 10 "-Wall", 11 "-Wextra", 12 "-Wno-unused-parameter", 13 "-Werror", 14 15 "-DNXP_UICC_ENABLE", 16 ], 17 18 srcs: ["**/*.cpp"], 19 exclude_srcs: ["NfcTagTest.cpp"], 20 21 include_dirs: [ 22 "system/nfc/src/nfa/include", 23 "system/nfc/src/nfc/include", 24 "system/nfc/src/include", 25 "system/nfc/src/gki/ulinux", 26 "system/nfc/src/gki/common", 27 "system/nfc/utils/include", 28 ], 29 30 shared_libs: [ 31 "libnativehelper", 32 "libcutils", 33 "libutils", 34 "liblog", 35 "libbase", 36 // Treble configuration 37 "libhidlbase", 38 "libutils", 39 "libbinder_ndk", 40 "libstatssocket", 41 "libz", 42 ], 43 44 static_libs: [ 45 "android.hardware.nfc@1.0", 46 "android.hardware.nfc@1.1", 47 "android.hardware.nfc@1.2", 48 // Add for AIDL 49 "android.hardware.nfc-V1-ndk", 50 "libnfcutils", 51 "libnfc-nci", 52 "libnfc-nci_flags", 53 "libstatslog_nfc", 54 "android_nfc_flags_aconfig_c_lib", 55 "server_configurable_flags", 56 "libxml2", 57 ], 58 59 defaults: [ 60 "aconfig_lib_cc_static_link.defaults", 61 ], 62 63 product_variables: { 64 debuggable: { 65 cflags: [ 66 "-DDCHECK_ALWAYS_ON", 67 "-DDTA_ENABLED", 68 ], 69 }, 70 }, 71 sanitize: { 72 integer_overflow: true, 73 misc_undefined: ["bounds"], 74 scs: true, 75 }, 76 stl: "libc++_static", 77 apex_available: [ 78 "//apex_available:platform", 79 "com.android.nfcservices", 80 ], 81 required: [ 82 // Provide a default libnfc-nci.conf in /system/etc for devices that 83 // does not ship one in /product 84 "libnfc-nci.conf-default", 85 ], 86} 87 88cc_test { 89 name: "nfc.nci.jni.tests", 90 91 srcs: ["NfcTagTest.cpp"], 92 93 shared_libs: [ 94 "libnfc-nci", 95 "libnfc_nci_jni", 96 "libstatslog_nfc", 97 ], 98 99 static_libs: [ 100 "libgmock", 101 "libgtest", 102 ], 103 104 header_libs: [ 105 "jni_headers", 106 ], 107 108 include_dirs: [ 109 "packages/apps/Nfc/nci/jni", 110 "system/nfc/src/include", 111 "system/nfc/src/gki/common", 112 "system/nfc/src/gki/ulinux", 113 "system/nfc/src/nfa/include", 114 "system/nfc/src/nfc/include", 115 "system/nfc/utils/include", 116 ], 117} 118