blob: 88b8c09b00cc0bb1b2c933a0d260f21783e43522 [file] [log] [blame]
Bob Badour5ec71d02023-02-09 11:29:21 -08001package {
2 default_applicable_licenses: ["hardware_nxp_uwb_license"],
3}
4
5// Added automatically by a large-scale-change
6// See: http://go/android-license-faq
7license {
8 name: "hardware_nxp_uwb_license",
9 visibility: [":__subpackages__"],
10 license_kinds: [
11 "SPDX-license-identifier-Apache-2.0",
12 ],
13 // large-scale-change unable to identify any license_text files
14}
15
Ikjoon Jangc00ab0c2024-03-19 05:58:46 +000016soong_config_string_variable {
17 name: "chip",
18 values: [
19 "SR1XX",
20 "SR200",
21 ],
22}
23
24soong_config_module_type {
25 name: "uwb_cc_defaults",
26 module_type: "cc_defaults",
27 config_namespace: "nxp_uwb",
28 variables: ["chip"],
29 properties: [
30 "cflags",
31 "srcs",
32 "local_include_dirs",
33 ],
34}
35
36uwb_cc_defaults {
37 name: "uwb_defaults",
38 soong_config_variables: {
39 chip: {
40 SR200: {
41 cflags: ["-DSR200=TRUE"],
42 srcs: [
43 "halimpl/hal/sr200/*.cc",
44 ],
45 local_include_dirs: [
46 "halimpl/hal/sr200",
47 ],
48 },
49 conditions_default: {
50 cflags: ["-DSR1XX=TRUE"],
51 srcs: [
52 "halimpl/hal/sr1xx/*.cc",
53 ],
54 local_include_dirs: [
55 "halimpl/hal/sr1xx",
56 ],
57 },
58 },
59 },
60}
61
Bhautik Ardeshanafa2f1c92022-12-16 19:40:05 +053062cc_library_shared {
63 name: "uwb_uci.helios",
64 defaults: [
65 "hidl_defaults",
Ikjoon Jangc00ab0c2024-03-19 05:58:46 +000066 "uwb_defaults",
Bhautik Ardeshanafa2f1c92022-12-16 19:40:05 +053067 ],
68 proprietary: true,
69 srcs: [
Bhautik Ardeshanafa2f1c92022-12-16 19:40:05 +053070 "halimpl/hal/*.cc",
71 "halimpl/log/*.cc",
72 "halimpl/tml/*.cc",
73 "halimpl/utils/*.cc",
74 ],
75 shared_libs: [
76 "android.hardware.uwb-V1-ndk",
77 "libcutils",
78 "liblog",
79 "libhardware",
80 "libbase",
81 "libchrome",
82 "libutils",
83 "libdl",
Ikjoon Jangce2914d2024-03-20 05:56:20 +000084 "libhidlbase",
Bhautik Ardeshanafa2f1c92022-12-16 19:40:05 +053085 ],
86 local_include_dirs: [
Bhautik Ardeshanafa2f1c92022-12-16 19:40:05 +053087 "halimpl/inc",
88 "halimpl/inc/common",
89 "halimpl/hal",
90 "halimpl/log",
91 "halimpl/tml",
92 "halimpl/utils",
93 "extns/inc",
94 ],
Bhautik Ardeshana62507902023-08-31 16:04:01 +053095 required: [
96 "libuwb-uci.conf",
97 "libuwb-nxp.conf",
98 "libuwb-countrycode.conf",
99 ],
Bhautik Ardeshanafa2f1c92022-12-16 19:40:05 +0530100 cflags: [
101 "-DGENERIC",
Bhautik Ardeshanafa2f1c92022-12-16 19:40:05 +0530102 "-DBUILDCFG=1",
103 "-Wno-deprecated-register",
104 "-Wno-unused-parameter",
105 "-Wno-missing-field-initializers",
106 ],
107}