blob: 12c77aac2fc159ee6a2ee7ea62374dd781542308 [file] [log] [blame]
Gaurav Singhal7bc627d2018-08-30 10:39:24 +05301//
Ayush Raj2e3f3122019-05-08 12:47:14 +05302// Copyright (C) 2018-2019 The Android Open Source Project
Gaurav Singhal7bc627d2018-08-30 10:39:24 +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.
15//
16
17cc_library_shared {
Gaurav Singhald1b7b132019-05-27 16:23:26 +053018 name: "nfc_nci.nqx.default.hw",
Gaurav Singhal7bc627d2018-08-30 10:39:24 +053019 defaults: ["hidl_defaults"],
20 vendor: true,
21
22 cflags: [
23 "-Wall",
24 "-Werror",
25 "-Wextra",
26 "-DNXP_EXTNS=TRUE",
27 "-DNXP_HW_SELF_TEST=TRUE"
28 ],
29
30 srcs: [
31 "halimpl/dnld/phDnldNfc.cc",
32 "halimpl/dnld/phDnldNfc_Internal.cc",
33 "halimpl/dnld/phDnldNfc_Utils.cc",
34 "halimpl/dnld/phNxpNciHal_Dnld.cc",
35 "halimpl/hal/phNxpNciHal.cc",
36 "halimpl/hal/phNxpNciHal_NfcDepSWPrio.cc",
37 "halimpl/hal/phNxpNciHal_dta.cc",
38 "halimpl/hal/phNxpNciHal_ext.cc",
39 "halimpl/hal/phNxpNciHal_nciParser.cc",
40 "halimpl/log/phNxpLog.cc",
41 "halimpl/self-test/phNxpNciHal_SelfTest.cc",
Gaurav Singhalccd89742019-04-19 12:27:16 +053042 "halimpl/src/adaptation/EseAdaptation.cc",
Gaurav Singhal7bc627d2018-08-30 10:39:24 +053043 "halimpl/tml/phDal4Nfc_messageQueueLib.cc",
44 "halimpl/tml/phOsalNfc_Timer.cc",
45 "halimpl/tml/phTmlNfc.cc",
46 "halimpl/tml/phTmlNfc_i2c.cc",
47 "halimpl/tml/spi_spm.cc",
48 "halimpl/utils/NxpNfcCapability.cc",
49 "halimpl/utils/phNxpConfig.cc",
50 "halimpl/utils/phNxpNciHal_utils.cc",
51 "halimpl/utils/sparse_crc32.cc",
nxf241782d186f22019-06-20 16:41:39 +053052 "halimpl/hal/phNxpNciHal_IoctlOperations.cc",
Ayush Raje093f3b2019-07-22 11:38:24 +053053 "halimpl/hal/phNxpNciHal_extOperations.cc",
Bhuvan Varshney6698f942020-03-05 14:12:48 +053054 "halimpl/eseclients_extns/src/eSEClientExtns.cc",
nxf52135e11fd5c2020-02-11 18:23:49 +053055 "halimpl/mifare/NxpMfcReader.cc",
Gaurav Singhal7bc627d2018-08-30 10:39:24 +053056 ],
57
58 local_include_dirs: [
59 "halimpl/common",
60 "halimpl/dnld",
61 "halimpl/hal",
62 "halimpl/inc",
63 "halimpl/log",
64 "halimpl/self-test",
65 "halimpl/tml",
66 "halimpl/utils",
Ayush Raj2e3f3122019-05-08 12:47:14 +053067 "halimpl/eseclients_extns/inc",
nxf52135e11fd5c2020-02-11 18:23:49 +053068 "halimpl/src/include",
69 "halimpl/mifare",
Gaurav Singhal7bc627d2018-08-30 10:39:24 +053070 ],
71
72 include_dirs: [
Sumatheendra Raghavendrachar0b1e9f32018-10-25 12:03:51 +053073 "vendor/nxp/opensource/halimpl/SN100x/extns/impl",
Gaurav Singhal7bc627d2018-08-30 10:39:24 +053074 ],
75
76 export_include_dirs: [
77 "extns/impl",
78 "halimpl/inc",
Gaurav Singhal6ac5cbb2019-12-26 17:55:32 +053079 "halimpl/hal",
80 "halimpl/utils",
81 "halimpl/log",
Gaurav Singhal7bc627d2018-08-30 10:39:24 +053082 "halimpl/common",
Bhuvan Varshney6698f942020-03-05 14:12:48 +053083 "halimpl/mifare",
84 "halimpl/eseclients_extns/inc",
Gaurav Singhal7bc627d2018-08-30 10:39:24 +053085 ],
86
87 shared_libs: [
88 "android.hardware.nfc@1.0",
89 "android.hardware.nfc@1.1",
Ganesh Deva9e9adb52019-02-15 21:40:44 +053090 "android.hardware.nfc@1.2",
Gaurav Singhal6ac5cbb2019-12-26 17:55:32 +053091 "vendor.nxp.hardware.nfc@2.0",
Gaurav Singhal7bc627d2018-08-30 10:39:24 +053092 "android.hardware.secure_element@1.0",
93 "libbase",
94 "libcutils",
95 "libdl",
96 "libhardware",
97 "libhardware_legacy",
98 "libhidlbase",
Gaurav Singhal7bc627d2018-08-30 10:39:24 +053099 "liblog",
100 "libutils",
Gaurav Singhal7bc627d2018-08-30 10:39:24 +0530101 ],
Karthik Poosa97e67bb2020-05-01 11:30:11 +0530102
Karthik Poosa1664cbb2020-05-04 13:10:01 +0530103 header_libs: [
104 "libese_client_headers",
105 ],
106
Bhuvan Varshney84ebe472019-10-16 12:09:49 +0530107 sanitize: {
108 cfi: true,
Bhuvan Varshney6a33b942019-11-04 15:16:44 +0530109 integer_overflow: true,
Bhuvan Varshney84ebe472019-10-16 12:09:49 +0530110 },
Gaurav Singhal7bc627d2018-08-30 10:39:24 +0530111}