blob: 4756d6008685bcad24a78524b1d4d6072c929e1e [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",
Ganesh Deva4c0f19d2019-01-19 16:03:28 +053017 "halimpl/ese-clients/src/DwpEseUpdater.cc",
18 "halimpl/ese-clients/src/DwpSeChannelCallback.cc",
19 "halimpl/ese-clients/src/DwpSeEvtCallback.cc",
Ganesh Devaa09deca2019-01-25 22:30:32 +053020 "halimpl/ese-clients/src/HalLibnfcInteface.cc",
Lovee3281ca2018-05-09 15:57:30 +053021 ],
22 shared_libs: [
Love7a7842c2018-05-16 00:36:16 +053023 "libbase",
Lovee3281ca2018-05-09 15:57:30 +053024 "libcutils",
25 "liblog",
26 "libhwbinder",
27 "libhardware",
Love7a7842c2018-05-16 00:36:16 +053028 "libhardware_legacy",
29 "libhidlbase",
30 "libhidltransport",
31 "liblog",
32 "libutils",
Lovee3281ca2018-05-09 15:57:30 +053033 "android.hardware.nfc@1.0",
Love7a7842c2018-05-16 00:36:16 +053034 "android.hardware.nfc@1.1",
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 Deva2ae103f2019-01-16 23:31:05 +053038 "vendor.nxp.nxpnfc@1.0",
Ganesh Devaa09deca2019-01-25 22:30:32 +053039 "ese_client",
Ganesh Deva129f89d2019-01-24 17:41:34 +053040 "hal_libnfc"
Lovee3281ca2018-05-09 15:57:30 +053041 ],
42 local_include_dirs: [
43 "halimpl/dnld",
44 "halimpl/hal",
45 "halimpl/log",
Ganesh Deva2e1f82b2018-05-18 12:57:56 +053046 "halimpl/self-test",
Lovee3281ca2018-05-09 15:57:30 +053047 "halimpl/tml",
Suhas Suresh60c1c622018-05-28 20:34:20 +053048 "halimpl/src/include",
Lovee3281ca2018-05-09 15:57:30 +053049 "halimpl/configs",
50 ],
Ganesh Deva2ae103f2019-01-16 23:31:05 +053051 include_dirs: [
52 "hardware/nxp/secure_element_extns/inc",
Ganesh Deva129f89d2019-01-24 17:41:34 +053053 "hardware/nxp/secure_element/libese-spi/src/include",
Ganesh Deva2ae103f2019-01-16 23:31:05 +053054 ],
Lovee3281ca2018-05-09 15:57:30 +053055 export_include_dirs: [
56 "extns/impl",
57 "halimpl/inc",
58 "halimpl/common",
Ganesh Devac5317d92018-08-07 10:10:46 +053059 "halimpl/utils",
Ganesh Deva4c0f19d2019-01-19 16:03:28 +053060 "halimpl/ese-clients/inc",
Lovee3281ca2018-05-09 15:57:30 +053061 ],
62 cflags: [
63 "-DBUILDCFG=1",
nxf382936a999152019-02-05 17:59:51 +053064 "-Wall",
65 "-Werror",
Lovee3281ca2018-05-09 15:57:30 +053066 "-DNFC_HAL_TARGET=TRUE",
67 "-DNFC_RW_ONLY=TRUE",
68 "-DNXP_EXTNS=TRUE",
69 "-DNFC_NXP_AID_MAX_SIZE_DYN=TRUE",
70 "-DNXP_NFCC_HCE_F=TRUE",
71 "-DNFC_NXP_LISTEN_ROUTE_TBL_OPTIMIZATION=TRUE",
72 "-DNFC_NXP_HFO_SETTINGS=FALSE",
73 "-DANDROID",
74 "-DNXP_HW_SELF_TEST"
75 ],
76}
77
78cc_binary {
Love57955022018-05-15 18:23:34 +053079 name: "android.hardware.nfc@1.1-service",
80 defaults: ["hidl_defaults"],
81 proprietary: true,
82 init_rc: ["1.1/android.hardware.nfc@1.1-service.rc"],
83 relative_install_path: "hw",
84 srcs: [
85 "1.1/NxpNfcService.cpp",
86 "1.1/Nfc.cpp",
87 "extns/impl/NxpNfc.cpp",
88 ],
89
90 shared_libs: [
91 "nfc_nci_nxp",
92 "libbase",
93 "libcutils",
94 "libhardware",
95 "liblog",
96 "libutils",
97 "android.hardware.nfc@1.0",
98 "android.hardware.nfc@1.1",
Ganesh Deva2a39dd32018-07-27 23:34:09 +053099 "ese_spi_nxp",
Love57955022018-05-15 18:23:34 +0530100 "libhidlbase",
101 "libhidltransport",
102 "libhwbinder",
Love57955022018-05-15 18:23:34 +0530103 "vendor.nxp.nxpnfc@1.0",
Ganesh Deva2ae103f2019-01-16 23:31:05 +0530104 "vendor.nxp.nxpese@1.0",
105 "android.hardware.secure_element@1.0",
Ganesh Devaa09deca2019-01-25 22:30:32 +0530106 "ese_client",
Ganesh Deva129f89d2019-01-24 17:41:34 +0530107 "hal_libnfc",
Ganesh Deva2ae103f2019-01-16 23:31:05 +0530108 ],
109 local_include_dirs: [
Ganesh Deva2ae103f2019-01-16 23:31:05 +0530110 "halimpl/inc",
111 "halimpl/hal",
112 "halimpl/inc",
113 "halimpl/tml",
114 "halimpl/utils",
115 "halimpl/configs",
116 ],
117 include_dirs: [
118 "hardware/nxp/nfc/halimpl/src/include",
Love57955022018-05-15 18:23:34 +0530119 ],
120}