blob: cc19bc3375d3e1e3a73edb75d64fe0068e6c707b [file] [log] [blame]
Lovee3281ca2018-05-09 15:57:30 +05301cc_library_shared {
2 name: "nfc_nci_nxp",
3 defaults: ["hidl_defaults"],
4 proprietary: true,
5
6 srcs: [
Love7a7842c2018-05-16 00:36:16 +05307 "halimpl/common/*.cc",
8 "halimpl/dnld/*.cc",
9 "halimpl/hal/*.cc",
10 "halimpl/log/*.cc",
Ganesh Deva2e1f82b2018-05-18 12:57:56 +053011 "halimpl/self-test/*.cc",
Suhas Suresh60c1c622018-05-28 20:34:20 +053012 "halimpl/src/adaptation/EseAdaptation.cpp",
Love7a7842c2018-05-16 00:36:16 +053013 "halimpl/tml/*.cc",
14 "halimpl/utils/*.cc",
Lovee3281ca2018-05-09 15:57:30 +053015 "halimpl/utils/*.cpp",
16 "halimpl/configs/*.cpp",
Yerriswamy6e16aa12020-04-18 10:09:25 +053017 "halimpl/mifare/*.cc",
Ganesh Deva4c0f19d2019-01-19 16:03:28 +053018 "halimpl/ese-clients/src/DwpEseUpdater.cc",
19 "halimpl/ese-clients/src/DwpSeChannelCallback.cc",
20 "halimpl/ese-clients/src/DwpSeEvtCallback.cc",
Ganesh Devaa09deca2019-01-25 22:30:32 +053021 "halimpl/ese-clients/src/HalLibnfcInteface.cc",
Lovee3281ca2018-05-09 15:57:30 +053022 ],
23 shared_libs: [
Love7a7842c2018-05-16 00:36:16 +053024 "libbase",
Lovee3281ca2018-05-09 15:57:30 +053025 "libcutils",
26 "liblog",
Lovee3281ca2018-05-09 15:57:30 +053027 "libhardware",
Love7a7842c2018-05-16 00:36:16 +053028 "libhardware_legacy",
29 "libhidlbase",
Love7a7842c2018-05-16 00:36:16 +053030 "liblog",
31 "libutils",
Lovee3281ca2018-05-09 15:57:30 +053032 "android.hardware.nfc@1.0",
Love7a7842c2018-05-16 00:36:16 +053033 "android.hardware.nfc@1.1",
Ganesh Deva44d730e2019-04-11 18:31:38 +053034 "android.hardware.nfc@1.2",
Suhas Suresh60c1c622018-05-28 20:34:20 +053035 "android.hardware.secure_element@1.0",
36 "ese_spi_nxp",
37 "vendor.nxp.nxpese@1.0",
Ganesh Deva4ebee002019-03-05 15:01:09 +053038 "vendor.nxp.eventprocessor@1.0",
Ganesh Deva2ae103f2019-01-16 23:31:05 +053039 "vendor.nxp.nxpnfc@1.0",
nxf3676357fbb482020-04-08 18:09:56 +053040 "vendor.nxp.nxpnfclegacy@1.0",
Ganesh Devaa09deca2019-01-25 22:30:32 +053041 "ese_client",
Ganesh Deva129f89d2019-01-24 17:41:34 +053042 "hal_libnfc"
Lovee3281ca2018-05-09 15:57:30 +053043 ],
44 local_include_dirs: [
45 "halimpl/dnld",
46 "halimpl/hal",
47 "halimpl/log",
Ganesh Deva2e1f82b2018-05-18 12:57:56 +053048 "halimpl/self-test",
Lovee3281ca2018-05-09 15:57:30 +053049 "halimpl/tml",
Suhas Suresh60c1c622018-05-28 20:34:20 +053050 "halimpl/src/include",
Lovee3281ca2018-05-09 15:57:30 +053051 "halimpl/configs",
52 ],
Ganesh Deva2ae103f2019-01-16 23:31:05 +053053 include_dirs: [
54 "hardware/nxp/secure_element_extns/inc",
Ganesh Deva129f89d2019-01-24 17:41:34 +053055 "hardware/nxp/secure_element/libese-spi/src/include",
Ganesh Deva2ae103f2019-01-16 23:31:05 +053056 ],
Lovee3281ca2018-05-09 15:57:30 +053057 export_include_dirs: [
58 "extns/impl",
59 "halimpl/inc",
60 "halimpl/common",
Ganesh Devac5317d92018-08-07 10:10:46 +053061 "halimpl/utils",
Yerriswamy6e16aa12020-04-18 10:09:25 +053062 "halimpl/mifare",
Ganesh Deva4c0f19d2019-01-19 16:03:28 +053063 "halimpl/ese-clients/inc",
Lovee3281ca2018-05-09 15:57:30 +053064 ],
65 cflags: [
66 "-DBUILDCFG=1",
nxf382936a999152019-02-05 17:59:51 +053067 "-Wall",
68 "-Werror",
Yerriswamyd1034902020-04-10 20:53:43 +053069 "-Wno-implicit-fallthrough",
Lovee3281ca2018-05-09 15:57:30 +053070 "-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
82cc_binary {
Ganesh Deva44d730e2019-04-11 18:31:38 +053083 name: "android.hardware.nfc@1.2-service",
Love57955022018-05-15 18:23:34 +053084 defaults: ["hidl_defaults"],
85 proprietary: true,
Ganesh Deva44d730e2019-04-11 18:31:38 +053086 init_rc: ["1.2/android.hardware.nfc@1.2-service.rc"],
Love57955022018-05-15 18:23:34 +053087 relative_install_path: "hw",
88 srcs: [
Ganesh Deva44d730e2019-04-11 18:31:38 +053089 "1.2/NxpNfcService.cpp",
90 "1.2/Nfc.cpp",
Love57955022018-05-15 18:23:34 +053091 "extns/impl/NxpNfc.cpp",
nxf3676357fbb482020-04-08 18:09:56 +053092 "extns/impl/nxpnfclegacy/1.0/NxpNfcLegacy.cpp"
Love57955022018-05-15 18:23:34 +053093 ],
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 Deva44d730e2019-04-11 18:31:38 +0530104 "android.hardware.nfc@1.2",
Ganesh Deva2a39dd32018-07-27 23:34:09 +0530105 "ese_spi_nxp",
Love57955022018-05-15 18:23:34 +0530106 "libhidlbase",
Love57955022018-05-15 18:23:34 +0530107 "vendor.nxp.nxpnfc@1.0",
Ganesh Deva2ae103f2019-01-16 23:31:05 +0530108 "vendor.nxp.nxpese@1.0",
nxf3676357fbb482020-04-08 18:09:56 +0530109 "vendor.nxp.nxpnfclegacy@1.0",
Ganesh Deva2ae103f2019-01-16 23:31:05 +0530110 "android.hardware.secure_element@1.0",
Ganesh Devaa09deca2019-01-25 22:30:32 +0530111 "ese_client",
Ganesh Deva129f89d2019-01-24 17:41:34 +0530112 "hal_libnfc",
Ganesh Deva2ae103f2019-01-16 23:31:05 +0530113 ],
114 local_include_dirs: [
Ganesh Deva2ae103f2019-01-16 23:31:05 +0530115 "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",
Love57955022018-05-15 18:23:34 +0530124 ],
125}