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-error=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 ], 51 52 local_include_dirs: [ 53 "halimpl/dnld", 54 "halimpl/hal", 55 "halimpl/log", 56 "halimpl/self-test", 57 "halimpl/src/include", 58 "halimpl/tml", 59 "halimpl/utils", 60 ], 61 62 export_include_dirs: [ 63 "extns/impl", 64 "halimpl/common", 65 "halimpl/inc", 66 ], 67 68 shared_libs: [ 69 "android.hardware.nfc@1.0", 70 "android.hardware.nfc@1.1", 71 "android.hardware.nfc@1.2", 72 "android.hardware.secure_element@1.0", 73 "libbase", 74 "libcutils", 75 "libhardware", 76 "libhardware_legacy", 77 "libhidlbase", 78 "libhidltransport", 79 "liblog", 80 "libutils", 81 "ese_spi_nxp", 82 "vendor.nxp.nxpese@1.0", 83 ], 84} 85 86cc_defaults { 87 name: "nxp_nfc_defaults", 88 relative_install_path: "hw", 89 proprietary: true, 90 defaults: ["hidl_defaults"], 91 srcs: [ 92 "extns/impl/NxpNfc.cpp", 93 ], 94 95 shared_libs: [ 96 "nfc_nci_nxp", 97 "libbase", 98 "libcutils", 99 "libhardware", 100 "liblog", 101 "libutils", 102 "android.hardware.nfc@1.0", 103 "android.hardware.nfc@1.1", 104 "android.hardware.nfc@1.2", 105 "libhidlbase", 106 "libhidltransport", 107 "libhwbinder", 108 "vendor.nxp.nxpese@1.0", 109 "ese_spi_nxp", 110 "vendor.nxp.nxpnfc@1.0", 111 ], 112} 113 114cc_binary { 115 name: "android.hardware.nfc@1.1-service", 116 init_rc: ["1.1/android.hardware.nfc@1.1-service.rc"], 117 defaults: ["nxp_nfc_defaults"], 118 srcs: [ 119 "1.1/NxpNfcService.cpp", 120 "1.1/Nfc.cpp", 121 ], 122} 123 124cc_binary { 125 name: "android.hardware.nfc@1.2-service", 126 init_rc: ["1.2/android.hardware.nfc@1.2-service.rc"], 127 defaults: ["nxp_nfc_defaults"], 128 srcs: [ 129 "1.2/NxpNfcService.cpp", 130 "1.2/Nfc.cpp", 131 ], 132} 133