blob: c1ea679aef92e86acfbdc0721ef2114f3d3a22ca [file] [log] [blame]
nxf2459127132a92018-02-21 17:20:20 +05301//
Ayush Raj2e3f3122019-05-08 12:47:14 +05302// Copyright (C) 2018-2019 The Android Open Source Project
nxf2459127132a92018-02-21 17:20:20 +05303//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
hariprasad nalacheruvu896f5da2018-10-15 14:30:55 +053015subdirs = [
16 "SN100x",
17]
Gaurav Singhal54873982018-12-13 09:49:03 +053018
Lucy Firmanb1f62ac2018-09-26 10:16:33 +010019cc_library_headers {
20 name: "libnqnfc_hal_headers",
21
22 export_include_dirs: [
23 "extns/impl",
24 "halimpl/inc",
25 "halimpl/common",
Karthik Poosa9c894042020-07-02 19:52:57 +053026 "halimpl/utils",
Lucy Firmanb1f62ac2018-09-26 10:16:33 +010027 ],
28 vendor_available: true,
29}
30
Gaurav Singhal1c060e22018-12-13 09:51:31 +053031cc_library_headers {
32 name: "libese_client_headers",
33 export_include_dirs: [
34 "inc",
35 "jcos_client/inc",
36 "ls_client/inc",
37 ],
38 vendor_available: true,
39}
40
Sumatheendra Raghavendracharc28b13b2018-10-15 17:04:08 +053041cc_library_shared {
nxf245914297d762018-06-29 14:55:32 +053042
Bhuvan Varshney9c584fc2019-01-10 12:28:22 +053043 name: "se_nq_extn_client",
nxf245914297d762018-06-29 14:55:32 +053044 defaults: ["hidl_defaults"],
Gaurav Singhal771c4402018-12-13 09:51:31 +053045 vendor: true,
nxf245914297d762018-06-29 14:55:32 +053046
47 srcs: [
48 "utils/phNxpConfig.cc",
49 "utils/sparse_crc32.cc",
50 "src/eSEClientIntf.cc",
51 "src/phNxpLog.cc"
52 ],
nxf35421c5b4a5b2019-05-24 17:09:30 +053053 export_include_dirs: [
54 "inc",
55 "utils",
56 "jcos_client/inc",
57 "ls_client/inc",
58 ],
nxf245914297d762018-06-29 14:55:32 +053059 local_include_dirs: [
60 "inc",
61 "utils",
62 "jcos_client/inc",
63 "ls_client/inc",
64 ],
65 shared_libs: [
66 "libbase",
67 "libcutils",
68 "libdl",
69 "libhidlbase",
70 "liblog",
71 "libutils",
72 "libchrome",
73 "libdl",
74 "libhidlbase",
Gaurav Singhal21dc1bd2018-12-12 13:07:16 +053075 ],
Bhuvan Varshney84ebe472019-10-16 12:09:49 +053076 sanitize: {
77 cfi: true,
Bhuvan Varshney6a33b942019-11-04 15:16:44 +053078 integer_overflow: true,
Bhuvan Varshney84ebe472019-10-16 12:09:49 +053079 },
nxf245914297d762018-06-29 14:55:32 +053080}
81
82cc_library_shared {
83
Bhuvan Varshney9c584fc2019-01-10 12:28:22 +053084 name: "jcos_nq_client",
nxf245914297d762018-06-29 14:55:32 +053085 defaults: ["hidl_defaults"],
Gaurav Singhal771c4402018-12-13 09:51:31 +053086 vendor: true,
nxf245914297d762018-06-29 14:55:32 +053087
88 srcs: [
89 "jcos_client/src/JcDnld.cpp",
90 "jcos_client/src/JcopOsDownload.cpp",
91 ],
92
93 local_include_dirs: [
94 "inc",
95 "utils",
96 "jcos_client/inc",
97 ],
98 shared_libs: [
99 "libbase",
100 "libcutils",
101 "libdl",
102 "libhidlbase",
103 "liblog",
104 "libutils",
105 "libchrome",
106 "libdl",
107 "libhidlbase",
108 ],
Bhuvan Varshney84ebe472019-10-16 12:09:49 +0530109 sanitize: {
110 cfi: true,
Bhuvan Varshney6a33b942019-11-04 15:16:44 +0530111 integer_overflow: true,
Bhuvan Varshney84ebe472019-10-16 12:09:49 +0530112 },
nxf245914297d762018-06-29 14:55:32 +0530113}
114
115cc_library_shared {
116
Bhuvan Varshney9c584fc2019-01-10 12:28:22 +0530117 name: "ls_nq_client",
nxf245914297d762018-06-29 14:55:32 +0530118 defaults: ["hidl_defaults"],
Gaurav Singhal771c4402018-12-13 09:51:31 +0530119 vendor: true,
nxf245914297d762018-06-29 14:55:32 +0530120
121 srcs: [
122 "ls_client/src/LsClient.cpp",
123 "ls_client/src/LsLib.cpp",
124 ],
125
126 local_include_dirs: [
127 "inc",
128 "utils",
129 "ls_client/inc",
130 ],
131 shared_libs: [
132 "libbase",
133 "libcutils",
134 "libdl",
135 "libhidlbase",
136 "liblog",
137 "libutils",
138 "libchrome",
139 "libdl",
140 "libhidlbase",
Bhuvan Varshney9c584fc2019-01-10 12:28:22 +0530141 "se_nq_extn_client"
nxf245914297d762018-06-29 14:55:32 +0530142 ],
Bhuvan Varshney84ebe472019-10-16 12:09:49 +0530143 sanitize: {
144 cfi: true,
Bhuvan Varshney6a33b942019-11-04 15:16:44 +0530145 integer_overflow: true,
Bhuvan Varshney84ebe472019-10-16 12:09:49 +0530146 },
Gaurav Singhal21dc1bd2018-12-12 13:07:16 +0530147}
148
149cc_library_shared {
Sumatheendra Raghavendracharc28b13b2018-10-15 17:04:08 +0530150 name: "nfc_nci.nqx.default.hw",
151 defaults: ["hidl_defaults"],
152 vendor: true,
153
154 srcs: [
155 "halimpl/common/*.cc",
156 "halimpl/dnld/*.cc",
157 "halimpl/hal/*.cc",
158 "halimpl/log/*.cc",
159 "halimpl/self-test/*.cc",
Suhas Suresh60c1c622018-05-28 20:34:20 +0530160 "halimpl/src/adaptation/EseAdaptation.cpp",
Sumatheendra Raghavendracharc28b13b2018-10-15 17:04:08 +0530161 "halimpl/tml/*.cc",
162 "halimpl/utils/*.cc",
163 "halimpl/utils/*.cpp",
164 "halimpl/configs/*.cpp",
Yerriswamy6e16aa12020-04-18 10:09:25 +0530165 "halimpl/mifare/*.cc",
Sumatheendra Raghavendracharc28b13b2018-10-15 17:04:08 +0530166 ],
167 shared_libs: [
168 "libbase",
169 "libcutils",
170 "liblog",
Sumatheendra Raghavendracharc28b13b2018-10-15 17:04:08 +0530171 "libhardware",
172 "libhardware_legacy",
173 "libhidlbase",
Sumatheendra Raghavendracharc28b13b2018-10-15 17:04:08 +0530174 "libutils",
175 "android.hardware.nfc@1.0",
176 "android.hardware.nfc@1.1",
Ganesh Deva44d730e2019-04-11 18:31:38 +0530177 "android.hardware.nfc@1.2",
Tapas Dey8efc5542019-06-26 13:08:59 +0530178 "vendor.nxp.hardware.nfc@1.0",
179 "vendor.nxp.hardware.nfc@1.1",
Tapas Deyaeba8ac2020-05-11 20:18:34 +0530180 "vendor.nxp.hardware.nfc@2.0",
Sumatheendra Raghavendracharc28b13b2018-10-15 17:04:08 +0530181 "android.hardware.secure_element@1.0",
nxf3676357fbb482020-04-08 18:09:56 +0530182 "vendor.nxp.nxpnfclegacy@1.0",
Ganesh Deva129f89d2019-01-24 17:41:34 +0530183 "hal_libnfc"
Sumatheendra Raghavendracharc28b13b2018-10-15 17:04:08 +0530184 ],
185 local_include_dirs: [
186 "halimpl/dnld",
187 "halimpl/hal",
188 "halimpl/log",
189 "halimpl/self-test",
190 "halimpl/tml",
191 "halimpl/src/include",
192 "halimpl/configs",
Tapas Dey8efc5542019-06-26 13:08:59 +0530193 "jcos_client/inc",
Sumatheendra Raghavendracharc28b13b2018-10-15 17:04:08 +0530194 ],
195 export_include_dirs: [
Tapas Deyaeba8ac2020-05-11 20:18:34 +0530196 "extns/impl/nxpnfc/2.0/",
Sumatheendra Raghavendracharc28b13b2018-10-15 17:04:08 +0530197 "halimpl/inc",
198 "halimpl/common",
199 "halimpl/utils",
Tapas Deyaeba8ac2020-05-11 20:18:34 +0530200 "halimpl/hal",
Yerriswamy6e16aa12020-04-18 10:09:25 +0530201 "halimpl/mifare",
Ganesh Deva4c0f19d2019-01-19 16:03:28 +0530202 "halimpl/ese-clients/inc",
Tapas Deyaeba8ac2020-05-11 20:18:34 +0530203 "halimpl/configs",
204 "halimpl/tml",
Sumatheendra Raghavendracharc28b13b2018-10-15 17:04:08 +0530205 ],
206 cflags: [
207 "-DBUILDCFG=1",
nxf382936a999152019-02-05 17:59:51 +0530208 "-Wall",
209 "-Werror",
Yerriswamyd1034902020-04-10 20:53:43 +0530210 "-Wno-implicit-fallthrough",
Sumatheendra Raghavendracharc28b13b2018-10-15 17:04:08 +0530211 "-DNFC_HAL_TARGET=TRUE",
212 "-DNFC_RW_ONLY=TRUE",
213 "-DNXP_EXTNS=TRUE",
214 "-DNFC_NXP_AID_MAX_SIZE_DYN=TRUE",
215 "-DNXP_NFCC_HCE_F=TRUE",
216 "-DNFC_NXP_LISTEN_ROUTE_TBL_OPTIMIZATION=TRUE",
217 "-DNFC_NXP_HFO_SETTINGS=FALSE",
218 "-DANDROID",
219 "-DNXP_HW_SELF_TEST"
220 ],
221}