87 lines
1.6 KiB
Plaintext
87 lines
1.6 KiB
Plaintext
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
cc_library_shared {
|
|
name: "libnfc_nci_jni",
|
|
|
|
cflags: [
|
|
"-Wall",
|
|
"-Wextra",
|
|
"-Wno-unused-parameter",
|
|
"-Werror",
|
|
|
|
"-DNXP_UICC_ENABLE",
|
|
],
|
|
|
|
srcs: ["**/*.cpp"],
|
|
exclude_srcs: ["NfcTagTest.cpp"],
|
|
|
|
include_dirs: [
|
|
"system/nfc/src/nfa/include",
|
|
"system/nfc/src/nfc/include",
|
|
"system/nfc/src/include",
|
|
"system/nfc/src/gki/ulinux",
|
|
"system/nfc/src/gki/common",
|
|
"system/nfc/utils/include",
|
|
],
|
|
|
|
shared_libs: [
|
|
"libnativehelper",
|
|
"libcutils",
|
|
"libutils",
|
|
"liblog",
|
|
"libnfc-nci",
|
|
"libchrome",
|
|
"libbase",
|
|
"libstatslog_nfc",
|
|
],
|
|
|
|
static_libs: ["libxml2"],
|
|
|
|
product_variables: {
|
|
debuggable: {
|
|
cflags: [
|
|
"-DDCHECK_ALWAYS_ON",
|
|
"-DDTA_ENABLED"
|
|
],
|
|
},
|
|
},
|
|
sanitize: {
|
|
integer_overflow: true,
|
|
misc_undefined: ["bounds"],
|
|
scs: true,
|
|
},
|
|
}
|
|
|
|
cc_test {
|
|
name: "nfc.nci.jni.tests",
|
|
|
|
srcs: ["NfcTagTest.cpp"],
|
|
|
|
shared_libs: [
|
|
"libnfc-nci",
|
|
"libnfc_nci_jni",
|
|
"libstatslog_nfc",
|
|
],
|
|
|
|
static_libs: [
|
|
"libgmock",
|
|
"libgtest",
|
|
],
|
|
|
|
header_libs: [
|
|
"jni_headers"
|
|
],
|
|
|
|
include_dirs: [
|
|
"packages/apps/Nfc/nci/jni",
|
|
"system/nfc/src/include",
|
|
"system/nfc/src/gki/common",
|
|
"system/nfc/src/gki/ulinux",
|
|
"system/nfc/src/nfa/include",
|
|
"system/nfc/src/nfc/include",
|
|
"system/nfc/utils/include",
|
|
],
|
|
}
|