nxf24591 | 27132a9 | 2018-02-21 17:20:20 +0530 | [diff] [blame] | 1 | // |
Ayush Raj | 2e3f312 | 2019-05-08 12:47:14 +0530 | [diff] [blame] | 2 | // Copyright (C) 2018-2019 The Android Open Source Project |
nxf24591 | 27132a9 | 2018-02-21 17:20:20 +0530 | [diff] [blame] | 3 | // |
| 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 nalacheruvu | 896f5da | 2018-10-15 14:30:55 +0530 | [diff] [blame] | 15 | subdirs = [ |
| 16 | "SN100x", |
| 17 | ] |
Gaurav Singhal | 5487398 | 2018-12-13 09:49:03 +0530 | [diff] [blame] | 18 | |
Lucy Firman | b1f62ac | 2018-09-26 10:16:33 +0100 | [diff] [blame] | 19 | cc_library_headers { |
| 20 | name: "libnqnfc_hal_headers", |
| 21 | |
| 22 | export_include_dirs: [ |
| 23 | "extns/impl", |
| 24 | "halimpl/inc", |
| 25 | "halimpl/common", |
Karthik Poosa | 9c89404 | 2020-07-02 19:52:57 +0530 | [diff] [blame] | 26 | "halimpl/utils", |
Lucy Firman | b1f62ac | 2018-09-26 10:16:33 +0100 | [diff] [blame] | 27 | ], |
| 28 | vendor_available: true, |
| 29 | } |
| 30 | |
Gaurav Singhal | 1c060e2 | 2018-12-13 09:51:31 +0530 | [diff] [blame] | 31 | cc_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 Raghavendrachar | c28b13b | 2018-10-15 17:04:08 +0530 | [diff] [blame] | 41 | cc_library_shared { |
nxf24591 | 4297d76 | 2018-06-29 14:55:32 +0530 | [diff] [blame] | 42 | |
Bhuvan Varshney | 9c584fc | 2019-01-10 12:28:22 +0530 | [diff] [blame] | 43 | name: "se_nq_extn_client", |
nxf24591 | 4297d76 | 2018-06-29 14:55:32 +0530 | [diff] [blame] | 44 | defaults: ["hidl_defaults"], |
Gaurav Singhal | 771c440 | 2018-12-13 09:51:31 +0530 | [diff] [blame] | 45 | vendor: true, |
nxf24591 | 4297d76 | 2018-06-29 14:55:32 +0530 | [diff] [blame] | 46 | |
| 47 | srcs: [ |
| 48 | "utils/phNxpConfig.cc", |
| 49 | "utils/sparse_crc32.cc", |
| 50 | "src/eSEClientIntf.cc", |
| 51 | "src/phNxpLog.cc" |
| 52 | ], |
nxf35421 | c5b4a5b | 2019-05-24 17:09:30 +0530 | [diff] [blame] | 53 | export_include_dirs: [ |
| 54 | "inc", |
| 55 | "utils", |
| 56 | "jcos_client/inc", |
| 57 | "ls_client/inc", |
| 58 | ], |
nxf24591 | 4297d76 | 2018-06-29 14:55:32 +0530 | [diff] [blame] | 59 | 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 Singhal | 21dc1bd | 2018-12-12 13:07:16 +0530 | [diff] [blame] | 75 | ], |
Bhuvan Varshney | 84ebe47 | 2019-10-16 12:09:49 +0530 | [diff] [blame] | 76 | sanitize: { |
| 77 | cfi: true, |
Bhuvan Varshney | 6a33b94 | 2019-11-04 15:16:44 +0530 | [diff] [blame] | 78 | integer_overflow: true, |
Bhuvan Varshney | 84ebe47 | 2019-10-16 12:09:49 +0530 | [diff] [blame] | 79 | }, |
nxf24591 | 4297d76 | 2018-06-29 14:55:32 +0530 | [diff] [blame] | 80 | } |
| 81 | |
| 82 | cc_library_shared { |
| 83 | |
Bhuvan Varshney | 9c584fc | 2019-01-10 12:28:22 +0530 | [diff] [blame] | 84 | name: "jcos_nq_client", |
nxf24591 | 4297d76 | 2018-06-29 14:55:32 +0530 | [diff] [blame] | 85 | defaults: ["hidl_defaults"], |
Gaurav Singhal | 771c440 | 2018-12-13 09:51:31 +0530 | [diff] [blame] | 86 | vendor: true, |
nxf24591 | 4297d76 | 2018-06-29 14:55:32 +0530 | [diff] [blame] | 87 | |
| 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 Varshney | 84ebe47 | 2019-10-16 12:09:49 +0530 | [diff] [blame] | 109 | sanitize: { |
| 110 | cfi: true, |
Bhuvan Varshney | 6a33b94 | 2019-11-04 15:16:44 +0530 | [diff] [blame] | 111 | integer_overflow: true, |
Bhuvan Varshney | 84ebe47 | 2019-10-16 12:09:49 +0530 | [diff] [blame] | 112 | }, |
nxf24591 | 4297d76 | 2018-06-29 14:55:32 +0530 | [diff] [blame] | 113 | } |
| 114 | |
| 115 | cc_library_shared { |
| 116 | |
Bhuvan Varshney | 9c584fc | 2019-01-10 12:28:22 +0530 | [diff] [blame] | 117 | name: "ls_nq_client", |
nxf24591 | 4297d76 | 2018-06-29 14:55:32 +0530 | [diff] [blame] | 118 | defaults: ["hidl_defaults"], |
Gaurav Singhal | 771c440 | 2018-12-13 09:51:31 +0530 | [diff] [blame] | 119 | vendor: true, |
nxf24591 | 4297d76 | 2018-06-29 14:55:32 +0530 | [diff] [blame] | 120 | |
| 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 Varshney | 9c584fc | 2019-01-10 12:28:22 +0530 | [diff] [blame] | 141 | "se_nq_extn_client" |
nxf24591 | 4297d76 | 2018-06-29 14:55:32 +0530 | [diff] [blame] | 142 | ], |
Bhuvan Varshney | 84ebe47 | 2019-10-16 12:09:49 +0530 | [diff] [blame] | 143 | sanitize: { |
| 144 | cfi: true, |
Bhuvan Varshney | 6a33b94 | 2019-11-04 15:16:44 +0530 | [diff] [blame] | 145 | integer_overflow: true, |
Bhuvan Varshney | 84ebe47 | 2019-10-16 12:09:49 +0530 | [diff] [blame] | 146 | }, |
Gaurav Singhal | 21dc1bd | 2018-12-12 13:07:16 +0530 | [diff] [blame] | 147 | } |
| 148 | |
| 149 | cc_library_shared { |
Sumatheendra Raghavendrachar | c28b13b | 2018-10-15 17:04:08 +0530 | [diff] [blame] | 150 | 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 Suresh | 60c1c62 | 2018-05-28 20:34:20 +0530 | [diff] [blame] | 160 | "halimpl/src/adaptation/EseAdaptation.cpp", |
Sumatheendra Raghavendrachar | c28b13b | 2018-10-15 17:04:08 +0530 | [diff] [blame] | 161 | "halimpl/tml/*.cc", |
| 162 | "halimpl/utils/*.cc", |
| 163 | "halimpl/utils/*.cpp", |
| 164 | "halimpl/configs/*.cpp", |
Yerriswamy | 6e16aa1 | 2020-04-18 10:09:25 +0530 | [diff] [blame] | 165 | "halimpl/mifare/*.cc", |
Sumatheendra Raghavendrachar | c28b13b | 2018-10-15 17:04:08 +0530 | [diff] [blame] | 166 | ], |
| 167 | shared_libs: [ |
| 168 | "libbase", |
| 169 | "libcutils", |
| 170 | "liblog", |
Sumatheendra Raghavendrachar | c28b13b | 2018-10-15 17:04:08 +0530 | [diff] [blame] | 171 | "libhardware", |
| 172 | "libhardware_legacy", |
| 173 | "libhidlbase", |
Sumatheendra Raghavendrachar | c28b13b | 2018-10-15 17:04:08 +0530 | [diff] [blame] | 174 | "libutils", |
| 175 | "android.hardware.nfc@1.0", |
| 176 | "android.hardware.nfc@1.1", |
Ganesh Deva | 44d730e | 2019-04-11 18:31:38 +0530 | [diff] [blame] | 177 | "android.hardware.nfc@1.2", |
Tapas Dey | 8efc554 | 2019-06-26 13:08:59 +0530 | [diff] [blame] | 178 | "vendor.nxp.hardware.nfc@1.0", |
| 179 | "vendor.nxp.hardware.nfc@1.1", |
Tapas Dey | aeba8ac | 2020-05-11 20:18:34 +0530 | [diff] [blame] | 180 | "vendor.nxp.hardware.nfc@2.0", |
Sumatheendra Raghavendrachar | c28b13b | 2018-10-15 17:04:08 +0530 | [diff] [blame] | 181 | "android.hardware.secure_element@1.0", |
nxf36763 | 57fbb48 | 2020-04-08 18:09:56 +0530 | [diff] [blame] | 182 | "vendor.nxp.nxpnfclegacy@1.0", |
Ganesh Deva | 129f89d | 2019-01-24 17:41:34 +0530 | [diff] [blame] | 183 | "hal_libnfc" |
Sumatheendra Raghavendrachar | c28b13b | 2018-10-15 17:04:08 +0530 | [diff] [blame] | 184 | ], |
| 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 Dey | 8efc554 | 2019-06-26 13:08:59 +0530 | [diff] [blame] | 193 | "jcos_client/inc", |
Sumatheendra Raghavendrachar | c28b13b | 2018-10-15 17:04:08 +0530 | [diff] [blame] | 194 | ], |
| 195 | export_include_dirs: [ |
Tapas Dey | aeba8ac | 2020-05-11 20:18:34 +0530 | [diff] [blame] | 196 | "extns/impl/nxpnfc/2.0/", |
Sumatheendra Raghavendrachar | c28b13b | 2018-10-15 17:04:08 +0530 | [diff] [blame] | 197 | "halimpl/inc", |
| 198 | "halimpl/common", |
| 199 | "halimpl/utils", |
Tapas Dey | aeba8ac | 2020-05-11 20:18:34 +0530 | [diff] [blame] | 200 | "halimpl/hal", |
Yerriswamy | 6e16aa1 | 2020-04-18 10:09:25 +0530 | [diff] [blame] | 201 | "halimpl/mifare", |
Ganesh Deva | 4c0f19d | 2019-01-19 16:03:28 +0530 | [diff] [blame] | 202 | "halimpl/ese-clients/inc", |
Tapas Dey | aeba8ac | 2020-05-11 20:18:34 +0530 | [diff] [blame] | 203 | "halimpl/configs", |
| 204 | "halimpl/tml", |
Sumatheendra Raghavendrachar | c28b13b | 2018-10-15 17:04:08 +0530 | [diff] [blame] | 205 | ], |
| 206 | cflags: [ |
| 207 | "-DBUILDCFG=1", |
nxf38293 | 6a99915 | 2019-02-05 17:59:51 +0530 | [diff] [blame] | 208 | "-Wall", |
| 209 | "-Werror", |
Yerriswamy | d103490 | 2020-04-10 20:53:43 +0530 | [diff] [blame] | 210 | "-Wno-implicit-fallthrough", |
Sumatheendra Raghavendrachar | c28b13b | 2018-10-15 17:04:08 +0530 | [diff] [blame] | 211 | "-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 | } |