blob: bfd2e4c10d0b8e47d55d12355954a25d8c6af0f4 [file] [log] [blame]
Love Khanna8e446d02018-03-06 09:39:05 +05301//
2// Copyright (C) 2018 The Android Open Source Project
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.
15cc_library_shared {
16 name: "nfc_nci_nxp",
17 defaults: ["hidl_defaults"],
18 proprietary: true,
19
20 cflags: [
Love Khanna8e446d02018-03-06 09:39:05 +053021 "-Wall",
22 "-Werror",
23 "-Wextra",
Chih-Hung Hsieh842a8a92018-10-19 11:20:04 -070024 // Allow implicit fallthroughs in phDnldNfc_Internal.cc and phNxpConfig.cpp until they are fixed.
Chih-Hung Hsieh51e192d2019-04-24 09:47:30 -070025 "-Wno-implicit-fallthrough",
Love Khanna8e446d02018-03-06 09:39:05 +053026 ],
27
28 srcs: [
29 "halimpl/dnld/phDnldNfc.cc",
30 "halimpl/dnld/phDnldNfc_Internal.cc",
31 "halimpl/dnld/phDnldNfc_Utils.cc",
32 "halimpl/dnld/phNxpNciHal_Dnld.cc",
33 "halimpl/hal/phNxpNciHal.cc",
34 "halimpl/hal/phNxpNciHal_NfcDepSWPrio.cc",
35 "halimpl/hal/phNxpNciHal_dta.cc",
36 "halimpl/hal/phNxpNciHal_ext.cc",
37 "halimpl/log/phNxpLog.cc",
38 "halimpl/self-test/phNxpNciHal_SelfTest.cc",
39 "halimpl/src/adaptation/EseAdaptation.cpp",
40 "halimpl/tml/phDal4Nfc_messageQueueLib.cc",
41 "halimpl/tml/phOsalNfc_Timer.cc",
42 "halimpl/tml/phTmlNfc.cc",
43 "halimpl/tml/phTmlNfc_i2c.cc",
44 "halimpl/tml/spi_spm.cc",
Love Khannae3582302018-03-19 19:13:06 +053045 "halimpl/utils/NxpNfcCapability.cpp",
Love Khanna8e446d02018-03-06 09:39:05 +053046 "halimpl/utils/phNxpConfig.cpp",
47 "halimpl/utils/phNxpNciHal_utils.cc",
48 "halimpl/utils/sparse_crc32.cc",
anil.hiranniah2b24feb2019-04-12 13:45:54 +053049 "halimpl/utils/NfccPowerTracker.cpp",
nxp72763946fc382019-11-29 17:30:41 +053050 "halimpl/mifare/NxpMfcReader.cc",
Love Khanna8e446d02018-03-06 09:39:05 +053051 ],
52
53 local_include_dirs: [
54 "halimpl/dnld",
55 "halimpl/hal",
56 "halimpl/log",
57 "halimpl/self-test",
58 "halimpl/src/include",
59 "halimpl/tml",
60 "halimpl/utils",
nxp72763946fc382019-11-29 17:30:41 +053061 "halimpl/mifare",
Love Khanna8e446d02018-03-06 09:39:05 +053062 ],
63
64 export_include_dirs: [
65 "extns/impl",
66 "halimpl/common",
67 "halimpl/inc",
68 ],
69
70 shared_libs: [
71 "android.hardware.nfc@1.0",
72 "android.hardware.nfc@1.1",
anil.hiranniahbcd2f712019-04-12 19:15:01 +053073 "android.hardware.nfc@1.2",
Love Khanna8e446d02018-03-06 09:39:05 +053074 "android.hardware.secure_element@1.0",
75 "libbase",
76 "libcutils",
77 "libhardware",
78 "libhardware_legacy",
79 "libhidlbase",
Love Khanna8e446d02018-03-06 09:39:05 +053080 "liblog",
81 "libutils",
82 "ese_spi_nxp",
83 "vendor.nxp.nxpese@1.0",
84 ],
85}
86
anil.hiranniahbcd2f712019-04-12 19:15:01 +053087cc_defaults {
88 name: "nxp_nfc_defaults",
Love Khanna8e446d02018-03-06 09:39:05 +053089 relative_install_path: "hw",
anil.hiranniahbcd2f712019-04-12 19:15:01 +053090 proprietary: true,
91 defaults: ["hidl_defaults"],
Love Khanna8e446d02018-03-06 09:39:05 +053092 srcs: [
Love Khanna8e446d02018-03-06 09:39:05 +053093 "extns/impl/NxpNfc.cpp",
94 ],
95
96 shared_libs: [
97 "nfc_nci_nxp",
98 "libbase",
99 "libcutils",
100 "libhardware",
101 "liblog",
102 "libutils",
103 "android.hardware.nfc@1.0",
104 "android.hardware.nfc@1.1",
anil.hiranniahbcd2f712019-04-12 19:15:01 +0530105 "android.hardware.nfc@1.2",
Love Khanna8e446d02018-03-06 09:39:05 +0530106 "libhidlbase",
Love Khanna8e446d02018-03-06 09:39:05 +0530107 "vendor.nxp.nxpese@1.0",
108 "ese_spi_nxp",
109 "vendor.nxp.nxpnfc@1.0",
110 ],
111}
anil.hiranniahbcd2f712019-04-12 19:15:01 +0530112
113cc_binary {
114 name: "android.hardware.nfc@1.1-service",
115 init_rc: ["1.1/android.hardware.nfc@1.1-service.rc"],
116 defaults: ["nxp_nfc_defaults"],
117 srcs: [
118 "1.1/NxpNfcService.cpp",
119 "1.1/Nfc.cpp",
120 ],
121}
122
123cc_binary {
124 name: "android.hardware.nfc@1.2-service",
125 init_rc: ["1.2/android.hardware.nfc@1.2-service.rc"],
126 defaults: ["nxp_nfc_defaults"],
127 srcs: [
128 "1.2/NxpNfcService.cpp",
129 "1.2/Nfc.cpp",
130 ],
131}