Love Khanna | 8e446d0 | 2018-03-06 09:39:05 +0530 | [diff] [blame] | 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. |
| 15 | cc_library_shared { |
| 16 | name: "nfc_nci_nxp", |
| 17 | defaults: ["hidl_defaults"], |
| 18 | proprietary: true, |
| 19 | |
| 20 | cflags: [ |
Love Khanna | 8e446d0 | 2018-03-06 09:39:05 +0530 | [diff] [blame] | 21 | "-Wall", |
| 22 | "-Werror", |
| 23 | "-Wextra", |
Chih-Hung Hsieh | 842a8a9 | 2018-10-19 11:20:04 -0700 | [diff] [blame] | 24 | // Allow implicit fallthroughs in phDnldNfc_Internal.cc and phNxpConfig.cpp until they are fixed. |
Chih-Hung Hsieh | 51e192d | 2019-04-24 09:47:30 -0700 | [diff] [blame] | 25 | "-Wno-implicit-fallthrough", |
Love Khanna | 8e446d0 | 2018-03-06 09:39:05 +0530 | [diff] [blame] | 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", |
Love Khanna | e358230 | 2018-03-19 19:13:06 +0530 | [diff] [blame] | 45 | "halimpl/utils/NxpNfcCapability.cpp", |
Love Khanna | 8e446d0 | 2018-03-06 09:39:05 +0530 | [diff] [blame] | 46 | "halimpl/utils/phNxpConfig.cpp", |
| 47 | "halimpl/utils/phNxpNciHal_utils.cc", |
| 48 | "halimpl/utils/sparse_crc32.cc", |
anil.hiranniah | 2b24feb | 2019-04-12 13:45:54 +0530 | [diff] [blame] | 49 | "halimpl/utils/NfccPowerTracker.cpp", |
nxp72763 | 946fc38 | 2019-11-29 17:30:41 +0530 | [diff] [blame] | 50 | "halimpl/mifare/NxpMfcReader.cc", |
Love Khanna | 8e446d0 | 2018-03-06 09:39:05 +0530 | [diff] [blame] | 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", |
nxp72763 | 946fc38 | 2019-11-29 17:30:41 +0530 | [diff] [blame] | 61 | "halimpl/mifare", |
Love Khanna | 8e446d0 | 2018-03-06 09:39:05 +0530 | [diff] [blame] | 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", |
anil.hiranniah | bcd2f71 | 2019-04-12 19:15:01 +0530 | [diff] [blame] | 73 | "android.hardware.nfc@1.2", |
Love Khanna | 8e446d0 | 2018-03-06 09:39:05 +0530 | [diff] [blame] | 74 | "android.hardware.secure_element@1.0", |
| 75 | "libbase", |
| 76 | "libcutils", |
| 77 | "libhardware", |
| 78 | "libhardware_legacy", |
| 79 | "libhidlbase", |
Love Khanna | 8e446d0 | 2018-03-06 09:39:05 +0530 | [diff] [blame] | 80 | "liblog", |
| 81 | "libutils", |
| 82 | "ese_spi_nxp", |
| 83 | "vendor.nxp.nxpese@1.0", |
| 84 | ], |
| 85 | } |
| 86 | |
anil.hiranniah | bcd2f71 | 2019-04-12 19:15:01 +0530 | [diff] [blame] | 87 | cc_defaults { |
| 88 | name: "nxp_nfc_defaults", |
Love Khanna | 8e446d0 | 2018-03-06 09:39:05 +0530 | [diff] [blame] | 89 | relative_install_path: "hw", |
anil.hiranniah | bcd2f71 | 2019-04-12 19:15:01 +0530 | [diff] [blame] | 90 | proprietary: true, |
| 91 | defaults: ["hidl_defaults"], |
Love Khanna | 8e446d0 | 2018-03-06 09:39:05 +0530 | [diff] [blame] | 92 | srcs: [ |
Love Khanna | 8e446d0 | 2018-03-06 09:39:05 +0530 | [diff] [blame] | 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", |
anil.hiranniah | bcd2f71 | 2019-04-12 19:15:01 +0530 | [diff] [blame] | 105 | "android.hardware.nfc@1.2", |
Love Khanna | 8e446d0 | 2018-03-06 09:39:05 +0530 | [diff] [blame] | 106 | "libhidlbase", |
Love Khanna | 8e446d0 | 2018-03-06 09:39:05 +0530 | [diff] [blame] | 107 | "vendor.nxp.nxpese@1.0", |
| 108 | "ese_spi_nxp", |
| 109 | "vendor.nxp.nxpnfc@1.0", |
| 110 | ], |
| 111 | } |
anil.hiranniah | bcd2f71 | 2019-04-12 19:15:01 +0530 | [diff] [blame] | 112 | |
| 113 | cc_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 | |
| 123 | cc_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 | } |