1cc_library_shared {
2
3    name: "ese_spi_nxp",
4    defaults: ["hidl_defaults"],
5    proprietary: true,
6
7    srcs: [
8        "libese-spi/p73/lib/phNxpEseDataMgr.cpp",
9        "libese-spi/p73/lib/phNxpEseProto7816_3.cpp",
10        "libese-spi/p73/lib/phNxpEse_Api.cpp",
11        "libese-spi/p73/pal/phNxpEsePal.cpp",
12        "libese-spi/p73/pal/spi/phNxpEsePal_spi.cpp",
13        "libese-spi/p73/spm/phNxpEse_Spm.cpp",
14        "libese-spi/p73/utils/ese_config.cpp",
15        "libese-spi/p73/utils/config.cpp",
16        "libese-spi/p73/utils/ringbuffer.cpp",
17        "libese-spi/src/adaptation/NfcAdaptation.cpp",
18    ],
19
20    local_include_dirs: [
21        "libese-spi/p73/lib",
22        "libese-spi/p73/pal/spi",
23        "libese-spi/p73/utils",
24        "libese-spi/src/include",
25    ],
26    export_include_dirs: [
27        "extns/impl",
28        "libese-spi/common/include",
29        "libese-spi/p73/common",
30        "libese-spi/p73/inc",
31        "libese-spi/p73/pal",
32    ],
33
34    cflags: [
35        "-DANDROID",
36        "-DBUILDCFG=1",
37        "-DNXP_EXTNS=TRUE",
38        "-Wall",
39        "-Werror",
40    ],
41
42    shared_libs: [
43        "android.hardware.nfc@1.0",
44        "android.hardware.nfc@1.1",
45        "android.hardware.secure_element@1.0",
46        "libcutils",
47        "libhardware",
48        "libhidlbase",
49        "libhidltransport",
50        "libutils",
51        "liblog",
52        "libbase",
53        "vendor.nxp.nxpese@1.0",
54        "vendor.nxp.nxpnfc@1.0",
55    ],
56}
57
58cc_library_shared {
59
60    name: "ls_client",
61    defaults: ["hidl_defaults"],
62    proprietary: true,
63
64    srcs: [
65        "ls_client/src/LsLib.cpp",
66        "ls_client/src/LsClient.cpp",
67    ],
68
69    export_include_dirs: ["ls_client/inc"],
70
71    shared_libs: [
72        "ese_spi_nxp",
73        "android.hardware.secure_element@1.0",
74        "liblog",
75        "libhidlbase",
76        "liblog",
77        "libutils",
78    ],
79}
80
81cc_binary {
82    name: "android.hardware.secure_element@1.0-service",
83    relative_install_path: "hw",
84    init_rc: ["1.0/android.hardware.secure_element@1.0-service.rc"],
85    proprietary: true,
86    defaults: ["hidl_defaults"],
87    srcs: [
88        "1.0/NxpEseService.cpp",
89        "1.0/SecureElement.cpp",
90        "extns/impl/NxpEse.cpp",
91    ],
92
93    shared_libs: [
94        "android.hardware.secure_element@1.0",
95        "ese_spi_nxp",
96        "libbase",
97        "ls_client",
98        "libcutils",
99        "libhardware",
100        "libhidlbase",
101        "libhidltransport",
102        "libhwbinder",
103        "liblog",
104        "libutils",
105        "vendor.nxp.nxpese@1.0",
106        "vendor.nxp.nxpnfc@1.0",
107    ],
108}
109