blob: 6696f85b2b48a8b8781d3ff4c210b655a4cae7c2 [file] [log] [blame]
Lovee3281ca2018-05-09 15:57:30 +05301cc_library_shared {
2 name: "nfc_nci_nxp",
3 defaults: ["hidl_defaults"],
4 proprietary: true,
5
6 srcs: [
7 "halimpl/common/*.c",
8 "halimpl/dnld/*.c",
9 "halimpl/hal/*.c",
10 "halimpl/log/*.c",
11// "halimpl/self-test/*.c",
12 "halimpl/tml/*.c",
13 "halimpl/utils/*.c",
14 "halimpl/utils/*.cpp",
15 "halimpl/configs/*.cpp",
16 ],
17 shared_libs: [
18 "libbase",
19 "libcutils",
20 "liblog",
21 "libhwbinder",
22 "libhardware",
23 "android.hardware.nfc@1.0",
24 ],
25 local_include_dirs: [
26 "halimpl/dnld",
27 "halimpl/hal",
28 "halimpl/log",
29// "halimpl/self-test",
30 "halimpl/tml",
31 "halimpl/utils",
32 "halimpl/configs",
33 ],
34 export_include_dirs: [
35 "extns/impl",
36 "halimpl/inc",
37 "halimpl/common",
38 ],
39 cflags: [
40 "-DBUILDCFG=1",
41 "-Wno-deprecated-register",
42 "-Wno-unused-parameter",
43 "-Wno-missing-field-initializers",
44 "-DNFC_HAL_TARGET=TRUE",
45 "-DNFC_RW_ONLY=TRUE",
46 "-DNXP_EXTNS=TRUE",
47 "-DNFC_NXP_AID_MAX_SIZE_DYN=TRUE",
48 "-DNXP_NFCC_HCE_F=TRUE",
49 "-DNFC_NXP_LISTEN_ROUTE_TBL_OPTIMIZATION=TRUE",
50 "-DNFC_NXP_HFO_SETTINGS=FALSE",
51 "-DANDROID",
52 "-DNXP_HW_SELF_TEST"
53 ],
54}
55
56cc_binary {
Love57955022018-05-15 18:23:34 +053057 name: "android.hardware.nfc@1.1-service",
58 defaults: ["hidl_defaults"],
59 proprietary: true,
60 init_rc: ["1.1/android.hardware.nfc@1.1-service.rc"],
61 relative_install_path: "hw",
62 srcs: [
63 "1.1/NxpNfcService.cpp",
64 "1.1/Nfc.cpp",
65 "extns/impl/NxpNfc.cpp",
66 ],
67
68 shared_libs: [
69 "nfc_nci_nxp",
70 "libbase",
71 "libcutils",
72 "libhardware",
73 "liblog",
74 "libutils",
75 "android.hardware.nfc@1.0",
76 "android.hardware.nfc@1.1",
77 "libhidlbase",
78 "libhidltransport",
79 "libhwbinder",
80 //"vendor.nxp.nxpese@1.0",
81 //"ese_spi_nxp",
82 "vendor.nxp.nxpnfc@1.0",
83 ],
84}
85
86cc_binary {
Lovee3281ca2018-05-09 15:57:30 +053087 name: "android.hardware.nfc@1.0-service",
88 defaults: ["hidl_defaults"],
89 relative_install_path: "hw",
90 proprietary: true,
91 init_rc: ["1.0/android.hardware.nfc@1.0-service.rc"],
92 srcs: [
93 "1.0/service.cpp",
94 "1.0/Nfc.cpp",
95 "extns/impl/NxpNfc.cpp",
96 ],
97
98 shared_libs: [
99 "nfc_nci_nxp",
100 "liblog",
101 "libcutils",
102 "libdl",
103 "libbase",
104 "libutils",
105 "libhardware",
106 "libhidlbase",
107 "libhidltransport",
108 "android.hardware.nfc@1.0",
109 "vendor.nxp.nxpnfc@1.0",
110 ],
111
112}