1
2package {
3    // See: http://go/android-license-faq
4    // A large-scale-change added 'default_applicable_licenses' to import
5    // all of the 'license_kinds' from "hardware_nxp_secure_element_license"
6    // to get the below license kinds:
7    //   SPDX-license-identifier-Apache-2.0
8    default_applicable_licenses: ["hardware_nxp_secure_element_license"],
9}
10
11cc_binary {
12    relative_install_path: "hw",
13    name: "android.hardware.secure_element_snxxx@1.2-service",
14    init_rc: ["1.2/android.hardware.secure_element_snxxx@1.2-service.rc"],
15    proprietary: true,
16    defaults: ["hidl_defaults"],
17    srcs: [
18        "1.2/NxpEseService.cpp",
19        "1.2/SecureElement.cpp",
20        "1.2/VirtualISO.cpp",
21        "extns/impl/NxpEse.cpp",
22        "1.2/OsuHal/src/OsuHalExtn.cpp",
23    ],
24
25    shared_libs: [
26        "android.hardware.secure_element@1.0",
27        "android.hardware.secure_element@1.1",
28        "android.hardware.secure_element@1.2",
29        "ese_spi_nxp_snxxx",
30        "libbase",
31        "libcutils",
32        "libdl",
33        "libhardware",
34        "libhidlbase",
35        "liblog",
36        "libutils",
37        "libchrome",
38        "vendor.nxp.nxpese@1.0",
39        "vendor.nxp.nxpnfc@2.0",
40        "android.hardware.nfc@1.0",
41        "android.hardware.nfc@1.1",
42    ],
43
44    local_include_dirs: [
45        "libese-spi/common/include",
46        "libese-spi/p73/common",
47        "libese-spi/p73/inc",
48        "libese-spi/p73/lib",
49        "libese-spi/p73/pal",
50        "libese-spi/p73/pal/spi",
51        "libese-spi/p73/utils",
52        "libese-spi/p73/spm",
53        "libese-spi/src/include",
54        "1.2/OsuHal/inc",
55        "extns/impl",
56    ],
57
58    cflags: [
59        "-DANDROID",
60        "-DJCOP_VER_3_1=1",
61        "-DJCOP_VER_3_2=2",
62        "-DJCOP_VER_3_3=3",
63        "-DJCOP_VER_4_0=4",
64        "-DJCOP_VER_5_x=5",
65        "-DBUILDCFG=1",
66        "-DNXP_EXTNS=TRUE",
67        "-DNFC_NXP_ESE_VER=JCOP_VER_5_x",
68        "-Wall",
69        "-Werror",
70        "-fexceptions",
71    ],
72
73}
74