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 ], 25 26 srcs: [ 27 "halimpl/dnld/phDnldNfc.cc", 28 "halimpl/dnld/phDnldNfc_Internal.cc", 29 "halimpl/dnld/phDnldNfc_Utils.cc", 30 "halimpl/dnld/phNxpNciHal_Dnld.cc", 31 "halimpl/hal/phNxpNciHal.cc", 32 "halimpl/hal/phNxpNciHal_NfcDepSWPrio.cc", 33 "halimpl/hal/phNxpNciHal_dta.cc", 34 "halimpl/hal/phNxpNciHal_ext.cc", 35 "halimpl/log/phNxpLog.cc", 36 "halimpl/self-test/phNxpNciHal_SelfTest.cc", 37 "halimpl/src/adaptation/EseAdaptation.cpp", 38 "halimpl/tml/phDal4Nfc_messageQueueLib.cc", 39 "halimpl/tml/phOsalNfc_Timer.cc", 40 "halimpl/tml/phTmlNfc.cc", 41 "halimpl/tml/phTmlNfc_i2c.cc", 42 "halimpl/tml/spi_spm.cc", 43 "halimpl/utils/NxpNfcCapability.cpp", 44 "halimpl/utils/phNxpConfig.cpp", 45 "halimpl/utils/phNxpNciHal_utils.cc", 46 "halimpl/utils/sparse_crc32.cc", 47 ], 48 49 local_include_dirs: [ 50 "halimpl/dnld", 51 "halimpl/hal", 52 "halimpl/log", 53 "halimpl/self-test", 54 "halimpl/src/include", 55 "halimpl/tml", 56 "halimpl/utils", 57 ], 58 59 export_include_dirs: [ 60 "extns/impl", 61 "halimpl/common", 62 "halimpl/inc", 63 ], 64 65 shared_libs: [ 66 "android.hardware.nfc@1.0", 67 "android.hardware.nfc@1.1", 68 "android.hardware.secure_element@1.0", 69 "libbase", 70 "libcutils", 71 "libhardware", 72 "libhardware_legacy", 73 "libhidlbase", 74 "libhidltransport", 75 "liblog", 76 "libutils", 77 "ese_spi_nxp", 78 "vendor.nxp.nxpese@1.0", 79 ], 80} 81 82cc_binary { 83 name: "android.hardware.nfc@1.1-service", 84 defaults: ["hidl_defaults"], 85 proprietary: true, 86 init_rc: ["1.1/android.hardware.nfc@1.1-service.rc"], 87 relative_install_path: "hw", 88 srcs: [ 89 "1.1/NxpNfcService.cpp", 90 "1.1/Nfc.cpp", 91 "extns/impl/NxpNfc.cpp", 92 ], 93 94 shared_libs: [ 95 "nfc_nci_nxp", 96 "libbase", 97 "libcutils", 98 "libhardware", 99 "liblog", 100 "libutils", 101 "android.hardware.nfc@1.0", 102 "android.hardware.nfc@1.1", 103 "libhidlbase", 104 "libhidltransport", 105 "libhwbinder", 106 "vendor.nxp.nxpese@1.0", 107 "ese_spi_nxp", 108 "vendor.nxp.nxpnfc@1.0", 109 ], 110} 111