Bob Badour | 5ec71d0 | 2023-02-09 11:29:21 -0800 | [diff] [blame] | 1 | package { |
| 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 |
| 7 | license { |
| 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 Jang | c00ab0c | 2024-03-19 05:58:46 +0000 | [diff] [blame] | 16 | soong_config_string_variable { |
| 17 | name: "chip", |
| 18 | values: [ |
| 19 | "SR1XX", |
| 20 | "SR200", |
| 21 | ], |
| 22 | } |
| 23 | |
| 24 | soong_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 | |
| 36 | uwb_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 Ardeshana | fa2f1c9 | 2022-12-16 19:40:05 +0530 | [diff] [blame] | 62 | cc_library_shared { |
| 63 | name: "uwb_uci.helios", |
| 64 | defaults: [ |
| 65 | "hidl_defaults", |
Ikjoon Jang | c00ab0c | 2024-03-19 05:58:46 +0000 | [diff] [blame] | 66 | "uwb_defaults", |
Bhautik Ardeshana | fa2f1c9 | 2022-12-16 19:40:05 +0530 | [diff] [blame] | 67 | ], |
| 68 | proprietary: true, |
| 69 | srcs: [ |
Bhautik Ardeshana | fa2f1c9 | 2022-12-16 19:40:05 +0530 | [diff] [blame] | 70 | "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 Jang | ce2914d | 2024-03-20 05:56:20 +0000 | [diff] [blame] | 84 | "libhidlbase", |
Bhautik Ardeshana | fa2f1c9 | 2022-12-16 19:40:05 +0530 | [diff] [blame] | 85 | ], |
| 86 | local_include_dirs: [ |
Bhautik Ardeshana | fa2f1c9 | 2022-12-16 19:40:05 +0530 | [diff] [blame] | 87 | "halimpl/inc", |
| 88 | "halimpl/inc/common", |
| 89 | "halimpl/hal", |
| 90 | "halimpl/log", |
| 91 | "halimpl/tml", |
| 92 | "halimpl/utils", |
| 93 | "extns/inc", |
| 94 | ], |
Bhautik Ardeshana | 6250790 | 2023-08-31 16:04:01 +0530 | [diff] [blame] | 95 | required: [ |
| 96 | "libuwb-uci.conf", |
| 97 | "libuwb-nxp.conf", |
| 98 | "libuwb-countrycode.conf", |
| 99 | ], |
Bhautik Ardeshana | fa2f1c9 | 2022-12-16 19:40:05 +0530 | [diff] [blame] | 100 | cflags: [ |
| 101 | "-DGENERIC", |
Bhautik Ardeshana | fa2f1c9 | 2022-12-16 19:40:05 +0530 | [diff] [blame] | 102 | "-DBUILDCFG=1", |
| 103 | "-Wno-deprecated-register", |
| 104 | "-Wno-unused-parameter", |
| 105 | "-Wno-missing-field-initializers", |
| 106 | ], |
| 107 | } |