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        "common/include",
35        "p73/common",
36        "p73/inc",
37        "p73/lib",
38        "p73/pal",
39        "p73/pal/spi",
40        "p73/utils",
41        "src/include",
42    ],
43    include_dirs: [
44        "hardware/nxp/nfc/snxxx/extns/impl/nxpnfc/2.0",
45        "hardware/nxp/secure_element/snxxx/extns/impl",
46],
47
48    cflags: [
49        "-DANDROID",
50        "-DJCOP_VER_3_1=1",
51        "-DJCOP_VER_3_2=2",
52        "-DJCOP_VER_3_3=3",
53        "-DJCOP_VER_4_0=4",
54        "-DJCOP_VER_5_x=5",
55        "-DBUILDCFG=1",
56        "-DNXP_EXTNS=TRUE",
57        "-DNFC_NXP_ESE_VER=JCOP_VER_5_x",
58        "-Wall",
59        "-Werror",
60    ],
61
62    shared_libs: [
63        "android.hardware.nfc@1.0",
64        "android.hardware.nfc@1.1",
65        "android.hardware.secure_element@1.0",
66        "libcutils",
67        "libhardware",
68        "libhidlbase",
69        "libutils",
70        "liblog",
71        "libbase",
72        "libchrome",
73        "vendor.nxp.nxpese@1.0",
74        "vendor.nxp.nxpnfc@2.0",
75    ],
76
77    product_variables: {
78        debuggable: {
79            cflags: [
80                "-DDCHECK_ALWAYS_ON"
81            ],
82        },
83    },
84
85}
86