• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "hardware_nxp_secure_element_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["hardware_nxp_secure_element_license"],
8}
9
10cc_library_shared {
11
12    name: "ese_spi_nxp_snxxx",
13    defaults: ["hidl_defaults"],
14    proprietary: true,
15
16    srcs: [
17        "p73/lib/phNxpEseDataMgr.cpp",
18        "p73/lib/phNxpEseProto7816_3.cpp",
19        "p73/lib/phNxpEse_Apdu_Api.cpp",
20        "p73/lib/phNxpEse_Api.cpp",
21        "p73/pal/phNxpEsePal.cpp",
22        "p73/pal/EseTransportFactory.cpp",
23        "p73/pal/spi/EseSpiTransport.cpp",
24        "p73/spm/phNxpEse_Spm.cpp",
25        "p73/utils/ese_config.cpp",
26        "p73/utils/config.cpp",
27        "p73/utils/ringbuffer.cpp",
28        "src/adaptation/NfcAdaptation.cpp",
29        "src/adaptation/CondVar.cpp",
30        "src/adaptation/Mutex.cpp",
31    ],
32
33    local_include_dirs: [
34        "p73/lib",
35        "p73/pal/spi",
36        "p73/utils",
37    ],
38    export_include_dirs: [
39        "common/include",
40        "p73/common",
41        "p73/inc",
42        "p73/pal",
43        "src/include",
44    ],
45    include_dirs: [
46        "hardware/nxp/nfc/snxxx/extns/impl/nxpnfc/2.0",
47        "hardware/nxp/secure_element/snxxx/extns/impl",
48],
49
50    cflags: [
51        "-DANDROID",
52        "-DJCOP_VER_3_1=1",
53        "-DJCOP_VER_3_2=2",
54        "-DJCOP_VER_3_3=3",
55        "-DJCOP_VER_4_0=4",
56        "-DJCOP_VER_5_x=5",
57        "-DBUILDCFG=1",
58        "-DNXP_EXTNS=TRUE",
59        "-DNFC_NXP_ESE_VER=JCOP_VER_5_x",
60        "-Wall",
61        "-Werror",
62    ],
63
64    shared_libs: [
65        "android.hardware.nfc@1.0",
66        "android.hardware.nfc@1.1",
67        "android.hardware.secure_element@1.0",
68        "libcutils",
69        "libhardware",
70        "libhidlbase",
71        "libutils",
72        "liblog",
73        "libbase",
74        "libchrome",
75        "vendor.nxp.nxpese@1.0",
76        "vendor.nxp.nxpnfc@2.0",
77    ],
78
79    product_variables: {
80        debuggable: {
81            cflags: [
82                "-DDCHECK_ALWAYS_ON"
83            ],
84        },
85    },
86
87}
88