• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
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: [
21        "-Wall",
22        "-Werror",
23        "-Wextra",
24        // Allow implicit fallthroughs in phDnldNfc_Internal.cc and phNxpConfig.cpp until they are fixed.
25        "-Wno-implicit-fallthrough",
26    ],
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",
45        "halimpl/utils/NxpNfcCapability.cpp",
46        "halimpl/utils/phNxpConfig.cpp",
47        "halimpl/utils/phNxpNciHal_utils.cc",
48        "halimpl/utils/sparse_crc32.cc",
49        "halimpl/utils/NfccPowerTracker.cpp",
50        "halimpl/mifare/NxpMfcReader.cc",
51    ],
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",
61        "halimpl/mifare",
62    ],
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",
73        "android.hardware.nfc@1.2",
74        "android.hardware.secure_element@1.0",
75        "libbase",
76        "libcutils",
77        "libhardware",
78        "libhardware_legacy",
79        "libhidlbase",
80        "liblog",
81        "libutils",
82        "ese_spi_nxp",
83        "vendor.nxp.nxpese@1.0",
84    ],
85}
86
87cc_defaults {
88    name: "nxp_nfc_defaults",
89    relative_install_path: "hw",
90    proprietary: true,
91    defaults: ["hidl_defaults"],
92    srcs: [
93        "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",
105        "android.hardware.nfc@1.2",
106        "libhidlbase",
107        "vendor.nxp.nxpese@1.0",
108        "ese_spi_nxp",
109        "vendor.nxp.nxpnfc@1.0",
110    ],
111}
112
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}
132