Love | e3281ca | 2018-05-09 15:57:30 +0530 | [diff] [blame] | 1 | cc_library_shared { |
| 2 | name: "nfc_nci_nxp", |
| 3 | defaults: ["hidl_defaults"], |
| 4 | proprietary: true, |
| 5 | |
| 6 | srcs: [ |
Love | 7a7842c | 2018-05-16 00:36:16 +0530 | [diff] [blame] | 7 | "halimpl/common/*.cc", |
| 8 | "halimpl/dnld/*.cc", |
| 9 | "halimpl/hal/*.cc", |
| 10 | "halimpl/log/*.cc", |
Ganesh Deva | 2e1f82b | 2018-05-18 12:57:56 +0530 | [diff] [blame] | 11 | "halimpl/self-test/*.cc", |
Suhas Suresh | 60c1c62 | 2018-05-28 20:34:20 +0530 | [diff] [blame] | 12 | "halimpl/src/adaptation/EseAdaptation.cpp", |
Love | 7a7842c | 2018-05-16 00:36:16 +0530 | [diff] [blame] | 13 | "halimpl/tml/*.cc", |
| 14 | "halimpl/utils/*.cc", |
Love | e3281ca | 2018-05-09 15:57:30 +0530 | [diff] [blame] | 15 | "halimpl/utils/*.cpp", |
| 16 | "halimpl/configs/*.cpp", |
Yerriswamy | 6e16aa1 | 2020-04-18 10:09:25 +0530 | [diff] [blame^] | 17 | "halimpl/mifare/*.cc", |
Ganesh Deva | 4c0f19d | 2019-01-19 16:03:28 +0530 | [diff] [blame] | 18 | "halimpl/ese-clients/src/DwpEseUpdater.cc", |
| 19 | "halimpl/ese-clients/src/DwpSeChannelCallback.cc", |
| 20 | "halimpl/ese-clients/src/DwpSeEvtCallback.cc", |
Ganesh Deva | a09deca | 2019-01-25 22:30:32 +0530 | [diff] [blame] | 21 | "halimpl/ese-clients/src/HalLibnfcInteface.cc", |
Love | e3281ca | 2018-05-09 15:57:30 +0530 | [diff] [blame] | 22 | ], |
| 23 | shared_libs: [ |
Love | 7a7842c | 2018-05-16 00:36:16 +0530 | [diff] [blame] | 24 | "libbase", |
Love | e3281ca | 2018-05-09 15:57:30 +0530 | [diff] [blame] | 25 | "libcutils", |
| 26 | "liblog", |
Love | e3281ca | 2018-05-09 15:57:30 +0530 | [diff] [blame] | 27 | "libhardware", |
Love | 7a7842c | 2018-05-16 00:36:16 +0530 | [diff] [blame] | 28 | "libhardware_legacy", |
| 29 | "libhidlbase", |
Love | 7a7842c | 2018-05-16 00:36:16 +0530 | [diff] [blame] | 30 | "liblog", |
| 31 | "libutils", |
Love | e3281ca | 2018-05-09 15:57:30 +0530 | [diff] [blame] | 32 | "android.hardware.nfc@1.0", |
Love | 7a7842c | 2018-05-16 00:36:16 +0530 | [diff] [blame] | 33 | "android.hardware.nfc@1.1", |
Ganesh Deva | 44d730e | 2019-04-11 18:31:38 +0530 | [diff] [blame] | 34 | "android.hardware.nfc@1.2", |
Suhas Suresh | 60c1c62 | 2018-05-28 20:34:20 +0530 | [diff] [blame] | 35 | "android.hardware.secure_element@1.0", |
| 36 | "ese_spi_nxp", |
| 37 | "vendor.nxp.nxpese@1.0", |
Ganesh Deva | 4ebee00 | 2019-03-05 15:01:09 +0530 | [diff] [blame] | 38 | "vendor.nxp.eventprocessor@1.0", |
Ganesh Deva | 2ae103f | 2019-01-16 23:31:05 +0530 | [diff] [blame] | 39 | "vendor.nxp.nxpnfc@1.0", |
nxf36763 | 57fbb48 | 2020-04-08 18:09:56 +0530 | [diff] [blame] | 40 | "vendor.nxp.nxpnfclegacy@1.0", |
Ganesh Deva | a09deca | 2019-01-25 22:30:32 +0530 | [diff] [blame] | 41 | "ese_client", |
Ganesh Deva | 129f89d | 2019-01-24 17:41:34 +0530 | [diff] [blame] | 42 | "hal_libnfc" |
Love | e3281ca | 2018-05-09 15:57:30 +0530 | [diff] [blame] | 43 | ], |
| 44 | local_include_dirs: [ |
| 45 | "halimpl/dnld", |
| 46 | "halimpl/hal", |
| 47 | "halimpl/log", |
Ganesh Deva | 2e1f82b | 2018-05-18 12:57:56 +0530 | [diff] [blame] | 48 | "halimpl/self-test", |
Love | e3281ca | 2018-05-09 15:57:30 +0530 | [diff] [blame] | 49 | "halimpl/tml", |
Suhas Suresh | 60c1c62 | 2018-05-28 20:34:20 +0530 | [diff] [blame] | 50 | "halimpl/src/include", |
Love | e3281ca | 2018-05-09 15:57:30 +0530 | [diff] [blame] | 51 | "halimpl/configs", |
| 52 | ], |
Ganesh Deva | 2ae103f | 2019-01-16 23:31:05 +0530 | [diff] [blame] | 53 | include_dirs: [ |
| 54 | "hardware/nxp/secure_element_extns/inc", |
Ganesh Deva | 129f89d | 2019-01-24 17:41:34 +0530 | [diff] [blame] | 55 | "hardware/nxp/secure_element/libese-spi/src/include", |
Ganesh Deva | 2ae103f | 2019-01-16 23:31:05 +0530 | [diff] [blame] | 56 | ], |
Love | e3281ca | 2018-05-09 15:57:30 +0530 | [diff] [blame] | 57 | export_include_dirs: [ |
| 58 | "extns/impl", |
| 59 | "halimpl/inc", |
| 60 | "halimpl/common", |
Ganesh Deva | c5317d9 | 2018-08-07 10:10:46 +0530 | [diff] [blame] | 61 | "halimpl/utils", |
Yerriswamy | 6e16aa1 | 2020-04-18 10:09:25 +0530 | [diff] [blame^] | 62 | "halimpl/mifare", |
Ganesh Deva | 4c0f19d | 2019-01-19 16:03:28 +0530 | [diff] [blame] | 63 | "halimpl/ese-clients/inc", |
Love | e3281ca | 2018-05-09 15:57:30 +0530 | [diff] [blame] | 64 | ], |
| 65 | cflags: [ |
| 66 | "-DBUILDCFG=1", |
nxf38293 | 6a99915 | 2019-02-05 17:59:51 +0530 | [diff] [blame] | 67 | "-Wall", |
| 68 | "-Werror", |
Yerriswamy | d103490 | 2020-04-10 20:53:43 +0530 | [diff] [blame] | 69 | "-Wno-implicit-fallthrough", |
Love | e3281ca | 2018-05-09 15:57:30 +0530 | [diff] [blame] | 70 | "-DNFC_HAL_TARGET=TRUE", |
| 71 | "-DNFC_RW_ONLY=TRUE", |
| 72 | "-DNXP_EXTNS=TRUE", |
| 73 | "-DNFC_NXP_AID_MAX_SIZE_DYN=TRUE", |
| 74 | "-DNXP_NFCC_HCE_F=TRUE", |
| 75 | "-DNFC_NXP_LISTEN_ROUTE_TBL_OPTIMIZATION=TRUE", |
| 76 | "-DNFC_NXP_HFO_SETTINGS=FALSE", |
| 77 | "-DANDROID", |
| 78 | "-DNXP_HW_SELF_TEST" |
| 79 | ], |
| 80 | } |
| 81 | |
| 82 | cc_binary { |
Ganesh Deva | 44d730e | 2019-04-11 18:31:38 +0530 | [diff] [blame] | 83 | name: "android.hardware.nfc@1.2-service", |
Love | 5795502 | 2018-05-15 18:23:34 +0530 | [diff] [blame] | 84 | defaults: ["hidl_defaults"], |
| 85 | proprietary: true, |
Ganesh Deva | 44d730e | 2019-04-11 18:31:38 +0530 | [diff] [blame] | 86 | init_rc: ["1.2/android.hardware.nfc@1.2-service.rc"], |
Love | 5795502 | 2018-05-15 18:23:34 +0530 | [diff] [blame] | 87 | relative_install_path: "hw", |
| 88 | srcs: [ |
Ganesh Deva | 44d730e | 2019-04-11 18:31:38 +0530 | [diff] [blame] | 89 | "1.2/NxpNfcService.cpp", |
| 90 | "1.2/Nfc.cpp", |
Love | 5795502 | 2018-05-15 18:23:34 +0530 | [diff] [blame] | 91 | "extns/impl/NxpNfc.cpp", |
nxf36763 | 57fbb48 | 2020-04-08 18:09:56 +0530 | [diff] [blame] | 92 | "extns/impl/nxpnfclegacy/1.0/NxpNfcLegacy.cpp" |
Love | 5795502 | 2018-05-15 18:23:34 +0530 | [diff] [blame] | 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", |
Ganesh Deva | 44d730e | 2019-04-11 18:31:38 +0530 | [diff] [blame] | 104 | "android.hardware.nfc@1.2", |
Ganesh Deva | 2a39dd3 | 2018-07-27 23:34:09 +0530 | [diff] [blame] | 105 | "ese_spi_nxp", |
Love | 5795502 | 2018-05-15 18:23:34 +0530 | [diff] [blame] | 106 | "libhidlbase", |
Love | 5795502 | 2018-05-15 18:23:34 +0530 | [diff] [blame] | 107 | "vendor.nxp.nxpnfc@1.0", |
Ganesh Deva | 2ae103f | 2019-01-16 23:31:05 +0530 | [diff] [blame] | 108 | "vendor.nxp.nxpese@1.0", |
nxf36763 | 57fbb48 | 2020-04-08 18:09:56 +0530 | [diff] [blame] | 109 | "vendor.nxp.nxpnfclegacy@1.0", |
Ganesh Deva | 2ae103f | 2019-01-16 23:31:05 +0530 | [diff] [blame] | 110 | "android.hardware.secure_element@1.0", |
Ganesh Deva | a09deca | 2019-01-25 22:30:32 +0530 | [diff] [blame] | 111 | "ese_client", |
Ganesh Deva | 129f89d | 2019-01-24 17:41:34 +0530 | [diff] [blame] | 112 | "hal_libnfc", |
Ganesh Deva | 2ae103f | 2019-01-16 23:31:05 +0530 | [diff] [blame] | 113 | ], |
| 114 | local_include_dirs: [ |
Ganesh Deva | 2ae103f | 2019-01-16 23:31:05 +0530 | [diff] [blame] | 115 | "halimpl/inc", |
| 116 | "halimpl/hal", |
| 117 | "halimpl/inc", |
| 118 | "halimpl/tml", |
| 119 | "halimpl/utils", |
| 120 | "halimpl/configs", |
| 121 | ], |
| 122 | include_dirs: [ |
| 123 | "hardware/nxp/nfc/halimpl/src/include", |
Love | 5795502 | 2018-05-15 18:23:34 +0530 | [diff] [blame] | 124 | ], |
| 125 | } |