Bob Badour | d69ad69 | 2021-02-16 19:02:14 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["system_core_libutils_license"], |
| 3 | } |
| 4 | |
Bob Badour | d69ad69 | 2021-02-16 19:02:14 -0800 | [diff] [blame] | 5 | license { |
| 6 | name: "system_core_libutils_license", |
| 7 | visibility: [":__subpackages__"], |
| 8 | license_kinds: [ |
| 9 | "SPDX-license-identifier-Apache-2.0", |
| 10 | ], |
| 11 | license_text: [ |
| 12 | "NOTICE", |
| 13 | ], |
| 14 | } |
| 15 | |
Vijay Venkatraman | 75acc7b | 2017-01-05 10:39:38 -0800 | [diff] [blame] | 16 | cc_library_headers { |
| 17 | name: "libutils_headers", |
Steven Moreland | 91527ed | 2017-04-11 12:43:16 -0700 | [diff] [blame] | 18 | vendor_available: true, |
Justin Yun | feef4d3 | 2020-11-11 19:17:40 +0900 | [diff] [blame] | 19 | product_available: true, |
Jiyong Park | 612210c | 2018-04-27 21:48:43 +0900 | [diff] [blame] | 20 | recovery_available: true, |
Yifan Hong | 55015ff | 2020-10-27 16:37:06 -0700 | [diff] [blame] | 21 | vendor_ramdisk_available: true, |
Vijay Venkatraman | 75acc7b | 2017-01-05 10:39:38 -0800 | [diff] [blame] | 22 | host_supported: true, |
dimitry | 454ba7e | 2019-05-16 13:48:17 +0200 | [diff] [blame] | 23 | native_bridge_supported: true, |
Jiyong Park | 8bf9b16 | 2020-03-07 16:36:09 +0900 | [diff] [blame] | 24 | apex_available: [ |
| 25 | "//apex_available:platform", |
| 26 | "//apex_available:anyapex", |
| 27 | ], |
Jooyung Han | 7ea0d74 | 2020-04-16 18:48:33 +0900 | [diff] [blame] | 28 | min_sdk_version: "apex_inherit", |
Steven Moreland | d3b4b2c | 2017-04-13 21:01:40 -0700 | [diff] [blame] | 29 | |
Jaesoo Lee | 1e8ac0f | 2017-04-20 16:56:45 +0900 | [diff] [blame] | 30 | header_libs: [ |
Jiyong Park | 705abe2 | 2021-12-14 22:55:34 +0900 | [diff] [blame] | 31 | "libbase_headers", |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 32 | "libcutils_headers", |
Jiyong Park | 8b196a7 | 2022-01-12 09:23:29 +0900 | [diff] [blame] | 33 | "liblog_headers", |
Suren Baghdasaryan | 9491078 | 2019-01-25 05:32:52 +0000 | [diff] [blame] | 34 | "libprocessgroup_headers", |
Jiyong Park | 8b196a7 | 2022-01-12 09:23:29 +0900 | [diff] [blame] | 35 | "libsystem_headers", |
Jaesoo Lee | 1e8ac0f | 2017-04-20 16:56:45 +0900 | [diff] [blame] | 36 | ], |
| 37 | export_header_lib_headers: [ |
Jiyong Park | 705abe2 | 2021-12-14 22:55:34 +0900 | [diff] [blame] | 38 | "libbase_headers", |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 39 | "libcutils_headers", |
Jiyong Park | 8b196a7 | 2022-01-12 09:23:29 +0900 | [diff] [blame] | 40 | "liblog_headers", |
Suren Baghdasaryan | 9491078 | 2019-01-25 05:32:52 +0000 | [diff] [blame] | 41 | "libprocessgroup_headers", |
Jiyong Park | 8b196a7 | 2022-01-12 09:23:29 +0900 | [diff] [blame] | 42 | "libsystem_headers", |
Jaesoo Lee | 1e8ac0f | 2017-04-20 16:56:45 +0900 | [diff] [blame] | 43 | ], |
Vijay Venkatraman | 75acc7b | 2017-01-05 10:39:38 -0800 | [diff] [blame] | 44 | export_include_dirs: ["include"], |
Steven Moreland | d3b4b2c | 2017-04-13 21:01:40 -0700 | [diff] [blame] | 45 | |
Vijay Venkatraman | 75acc7b | 2017-01-05 10:39:38 -0800 | [diff] [blame] | 46 | target: { |
Dan Willemsen | e0cd1e0 | 2017-03-15 15:23:36 -0700 | [diff] [blame] | 47 | linux_bionic: { |
| 48 | enabled: true, |
| 49 | }, |
Vijay Venkatraman | 75acc7b | 2017-01-05 10:39:38 -0800 | [diff] [blame] | 50 | windows: { |
Dan Willemsen | e0cd1e0 | 2017-03-15 15:23:36 -0700 | [diff] [blame] | 51 | enabled: true, |
| 52 | }, |
Vijay Venkatraman | 75acc7b | 2017-01-05 10:39:38 -0800 | [diff] [blame] | 53 | }, |
| 54 | } |
| 55 | |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 56 | cc_defaults { |
| 57 | name: "libutils_defaults", |
Steven Moreland | 91527ed | 2017-04-11 12:43:16 -0700 | [diff] [blame] | 58 | vendor_available: true, |
Justin Yun | feef4d3 | 2020-11-11 19:17:40 +0900 | [diff] [blame] | 59 | product_available: true, |
Jiyong Park | 011ee12 | 2018-05-29 16:41:30 +0900 | [diff] [blame] | 60 | recovery_available: true, |
Justin Yun | 9ca9245 | 2017-07-31 15:41:10 +0900 | [diff] [blame] | 61 | vndk: { |
| 62 | enabled: true, |
| 63 | support_system_process: true, |
| 64 | }, |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 65 | host_supported: true, |
| 66 | |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 67 | cflags: [ |
| 68 | "-Wall", |
| 69 | "-Werror", |
Elliott Hughes | 48a9eb4 | 2021-03-04 09:46:23 -0800 | [diff] [blame] | 70 | "-Wno-exit-time-destructors", |
Steven Moreland | a06e68c | 2021-04-27 00:09:23 +0000 | [diff] [blame] | 71 | "-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION", |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 72 | ], |
Steven Moreland | b084bc3 | 2017-04-12 18:57:57 -0700 | [diff] [blame] | 73 | header_libs: [ |
Chih-Hung Hsieh | 502f486 | 2018-09-13 11:08:41 -0700 | [diff] [blame] | 74 | "libbase_headers", |
Steven Moreland | b084bc3 | 2017-04-12 18:57:57 -0700 | [diff] [blame] | 75 | "libutils_headers", |
| 76 | ], |
| 77 | export_header_lib_headers: [ |
Steven Moreland | b084bc3 | 2017-04-12 18:57:57 -0700 | [diff] [blame] | 78 | "libutils_headers", |
| 79 | ], |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 80 | |
Steven Moreland | 1f64241 | 2017-06-26 13:52:06 -0700 | [diff] [blame] | 81 | shared_libs: [ |
Steven Moreland | e6132be | 2019-03-25 20:38:56 -0700 | [diff] [blame] | 82 | "libcutils", |
Steven Moreland | 1f64241 | 2017-06-26 13:52:06 -0700 | [diff] [blame] | 83 | "liblog", |
| 84 | ], |
Steven Moreland | 9c83202 | 2020-07-07 22:37:07 +0000 | [diff] [blame] | 85 | sanitize: { |
| 86 | misc_undefined: ["integer"], |
| 87 | }, |
Steven Moreland | 1f64241 | 2017-06-26 13:52:06 -0700 | [diff] [blame] | 88 | |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 89 | target: { |
| 90 | android: { |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 91 | cflags: ["-fvisibility=protected"], |
| 92 | |
| 93 | shared_libs: [ |
Jiyong Park | 0b3c24b | 2017-05-26 17:57:18 +0900 | [diff] [blame] | 94 | "libvndksupport", |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 95 | ], |
Dan Willemsen | e16bdb1 | 2016-07-13 00:20:20 -0700 | [diff] [blame] | 96 | |
| 97 | sanitize: { |
| 98 | misc_undefined: ["integer"], |
| 99 | }, |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 100 | }, |
| 101 | |
Jiyong Park | 011ee12 | 2018-05-29 16:41:30 +0900 | [diff] [blame] | 102 | recovery: { |
| 103 | exclude_shared_libs: ["libvndksupport"], |
| 104 | }, |
| 105 | |
Dan Willemsen | ab34b47 | 2016-11-29 13:32:55 -0800 | [diff] [blame] | 106 | linux_bionic: { |
| 107 | enabled: true, |
Dan Willemsen | ab34b47 | 2016-11-29 13:32:55 -0800 | [diff] [blame] | 108 | }, |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 109 | |
| 110 | darwin: { |
| 111 | cflags: ["-Wno-unused-parameter"], |
| 112 | }, |
| 113 | |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 114 | windows: { |
Dan Willemsen | 528f144 | 2017-11-29 18:06:11 -0800 | [diff] [blame] | 115 | cflags: [ |
| 116 | // Under MinGW, ctype.h doesn't need multi-byte support |
| 117 | "-DMB_CUR_MAX=1", |
| 118 | "-Wno-unused-private-field", |
| 119 | ], |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 120 | |
| 121 | enabled: true, |
| 122 | }, |
| 123 | }, |
Anis Assi | e75dd9a | 2022-03-08 19:48:19 +0000 | [diff] [blame] | 124 | fuzz_config: { |
| 125 | cc: ["smoreland@google.com"], |
| 126 | }, |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 127 | } |
| 128 | |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 129 | cc_library { |
| 130 | name: "libutils", |
| 131 | defaults: ["libutils_defaults"], |
dimitry | 454ba7e | 2019-05-16 13:48:17 +0200 | [diff] [blame] | 132 | native_bridge_supported: true, |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 133 | |
| 134 | srcs: [ |
Steven Moreland | 591cab8 | 2019-11-15 00:07:32 -0800 | [diff] [blame] | 135 | "Errors.cpp", |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 136 | "FileMap.cpp", |
| 137 | "JenkinsHash.cpp", |
Steven Moreland | c2dc7cd | 2021-05-04 21:27:56 +0000 | [diff] [blame] | 138 | "LightRefBase.cpp", |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 139 | "NativeHandle.cpp", |
| 140 | "Printer.cpp", |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 141 | "RefBase.cpp", |
| 142 | "SharedBuffer.cpp", |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 143 | "StopWatch.cpp", |
| 144 | "String8.cpp", |
| 145 | "String16.cpp", |
| 146 | "StrongPointer.cpp", |
| 147 | "SystemClock.cpp", |
| 148 | "Threads.cpp", |
| 149 | "Timers.cpp", |
| 150 | "Tokenizer.cpp", |
| 151 | "Unicode.cpp", |
| 152 | "VectorImpl.cpp", |
| 153 | "misc.cpp", |
| 154 | ], |
| 155 | |
| 156 | target: { |
| 157 | android: { |
| 158 | srcs: [ |
| 159 | "Trace.cpp", |
| 160 | ], |
| 161 | }, |
| 162 | linux: { |
Josh Gao | f0ea1e6 | 2019-01-02 14:31:26 -0800 | [diff] [blame] | 163 | header_libs: ["libbase_headers"], |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 164 | srcs: [ |
| 165 | "Looper.cpp", |
| 166 | ], |
| 167 | }, |
| 168 | }, |
Jeffrey Huang | 18986cb | 2020-02-12 17:06:05 -0800 | [diff] [blame] | 169 | |
| 170 | apex_available: [ |
| 171 | "//apex_available:anyapex", |
| 172 | "//apex_available:platform", |
| 173 | ], |
Jooyung Han | 7ea0d74 | 2020-04-16 18:48:33 +0900 | [diff] [blame] | 174 | min_sdk_version: "apex_inherit", |
Yi Kong | 6ee028f | 2021-12-23 15:57:40 +0800 | [diff] [blame] | 175 | |
| 176 | afdo: true, |
Hsin-Yi Chen | c7d9320 | 2022-05-26 14:06:36 +0800 | [diff] [blame] | 177 | |
| 178 | header_abi_checker: { |
| 179 | diff_flags: ["-allow-adding-removing-weak-symbols"], |
| 180 | }, |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 181 | } |
| 182 | |
| 183 | cc_library { |
| 184 | name: "libutilscallstack", |
| 185 | defaults: ["libutils_defaults"], |
Victor Khimenko | 7428c52 | 2020-06-18 22:01:13 +0200 | [diff] [blame] | 186 | // TODO(b/153609531): remove when no longer needed. |
| 187 | native_bridge_supported: true, |
Steven Moreland | 6c509ca | 2022-04-11 22:30:07 +0000 | [diff] [blame] | 188 | min_sdk_version: "29", |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 189 | |
| 190 | srcs: [ |
| 191 | "CallStack.cpp", |
| 192 | ], |
| 193 | |
Steven Moreland | e6132be | 2019-03-25 20:38:56 -0700 | [diff] [blame] | 194 | shared_libs: [ |
Dylan Katz | 9d5845b | 2020-05-11 15:44:01 -0700 | [diff] [blame] | 195 | "libutils", |
Christopher Ferris | ab63124 | 2022-05-10 16:13:02 -0700 | [diff] [blame] | 196 | "libunwindstack", |
Steven Moreland | e6132be | 2019-03-25 20:38:56 -0700 | [diff] [blame] | 197 | ], |
| 198 | |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 199 | target: { |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 200 | linux: { |
| 201 | srcs: [ |
| 202 | "ProcessCallStack.cpp", |
| 203 | ], |
| 204 | }, |
Steven Moreland | d33a2ee | 2019-04-01 15:01:53 -0700 | [diff] [blame] | 205 | darwin: { |
| 206 | enabled: false, |
| 207 | }, |
Steven Moreland | e6132be | 2019-03-25 20:38:56 -0700 | [diff] [blame] | 208 | windows: { |
| 209 | enabled: false, |
| 210 | }, |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 211 | }, |
| 212 | } |
| 213 | |
Dylan Katz | 9d5845b | 2020-05-11 15:44:01 -0700 | [diff] [blame] | 214 | cc_defaults { |
| 215 | name: "libutils_fuzz_defaults", |
| 216 | host_supported: true, |
| 217 | shared_libs: [ |
| 218 | "libutils", |
| 219 | "libbase", |
Dylan Katz | 7168f27 | 2020-07-02 11:51:44 -0700 | [diff] [blame] | 220 | "liblog", |
Dylan Katz | 9d5845b | 2020-05-11 15:44:01 -0700 | [diff] [blame] | 221 | ], |
| 222 | } |
| 223 | |
| 224 | cc_fuzz { |
| 225 | name: "libutils_fuzz_bitset", |
| 226 | defaults: ["libutils_fuzz_defaults"], |
| 227 | srcs: ["BitSet_fuzz.cpp"], |
| 228 | } |
| 229 | |
| 230 | cc_fuzz { |
| 231 | name: "libutils_fuzz_filemap", |
| 232 | defaults: ["libutils_fuzz_defaults"], |
| 233 | srcs: ["FileMap_fuzz.cpp"], |
| 234 | } |
| 235 | |
| 236 | cc_fuzz { |
| 237 | name: "libutils_fuzz_string8", |
| 238 | defaults: ["libutils_fuzz_defaults"], |
| 239 | srcs: ["String8_fuzz.cpp"], |
| 240 | } |
| 241 | |
| 242 | cc_fuzz { |
| 243 | name: "libutils_fuzz_string16", |
| 244 | defaults: ["libutils_fuzz_defaults"], |
| 245 | srcs: ["String16_fuzz.cpp"], |
| 246 | } |
| 247 | |
| 248 | cc_fuzz { |
| 249 | name: "libutils_fuzz_vector", |
| 250 | defaults: ["libutils_fuzz_defaults"], |
| 251 | srcs: ["Vector_fuzz.cpp"], |
| 252 | } |
| 253 | |
Dylan Katz | 7168f27 | 2020-07-02 11:51:44 -0700 | [diff] [blame] | 254 | cc_fuzz { |
| 255 | name: "libutils_fuzz_printer", |
| 256 | defaults: ["libutils_fuzz_defaults"], |
| 257 | srcs: ["Printer_fuzz.cpp"], |
| 258 | } |
| 259 | |
| 260 | cc_fuzz { |
| 261 | name: "libutils_fuzz_callstack", |
| 262 | defaults: ["libutils_fuzz_defaults"], |
| 263 | srcs: ["CallStack_fuzz.cpp"], |
| 264 | shared_libs: [ |
| 265 | "libutilscallstack", |
| 266 | ], |
| 267 | } |
| 268 | |
| 269 | cc_fuzz { |
| 270 | name: "libutils_fuzz_process_callstack", |
| 271 | defaults: ["libutils_fuzz_defaults"], |
| 272 | srcs: ["ProcessCallStack_fuzz.cpp"], |
| 273 | shared_libs: [ |
| 274 | "libutilscallstack", |
| 275 | ], |
| 276 | } |
| 277 | |
| 278 | cc_fuzz { |
Dylan Katz | 7168f27 | 2020-07-02 11:51:44 -0700 | [diff] [blame] | 279 | name: "libutils_fuzz_refbase", |
| 280 | defaults: ["libutils_fuzz_defaults"], |
| 281 | srcs: ["RefBase_fuzz.cpp"], |
| 282 | } |
| 283 | |
| 284 | cc_fuzz { |
| 285 | name: "libutils_fuzz_lrucache", |
| 286 | defaults: ["libutils_fuzz_defaults"], |
| 287 | srcs: ["LruCache_fuzz.cpp"], |
| 288 | } |
| 289 | |
| 290 | cc_fuzz { |
| 291 | name: "libutils_fuzz_looper", |
| 292 | defaults: ["libutils_fuzz_defaults"], |
| 293 | srcs: ["Looper_fuzz.cpp"], |
| 294 | } |
| 295 | |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 296 | cc_test { |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 297 | name: "libutils_test", |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 298 | host_supported: true, |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 299 | |
| 300 | srcs: [ |
| 301 | "BitSet_test.cpp", |
Christopher Ferris | 15fee82 | 2022-09-12 18:00:10 -0700 | [diff] [blame^] | 302 | "CallStack_test.cpp", |
Jiyong Park | 705abe2 | 2021-12-14 22:55:34 +0900 | [diff] [blame] | 303 | "Errors_test.cpp", |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 304 | "FileMap_test.cpp", |
| 305 | "LruCache_test.cpp", |
| 306 | "Mutex_test.cpp", |
| 307 | "SharedBuffer_test.cpp", |
Yo Chiang | 5b028ba | 2020-07-10 19:34:53 +0800 | [diff] [blame] | 308 | "Singleton_test.cpp", |
Vic Yang | 9fb93ed | 2019-09-05 13:18:27 -0700 | [diff] [blame] | 309 | "String16_test.cpp", |
Jiyong Park | 705abe2 | 2021-12-14 22:55:34 +0900 | [diff] [blame] | 310 | "String8_test.cpp", |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 311 | "StrongPointer_test.cpp", |
Elliott Hughes | 842e1cc | 2020-05-27 12:24:30 -0700 | [diff] [blame] | 312 | "Timers_test.cpp", |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 313 | "Unicode_test.cpp", |
| 314 | "Vector_test.cpp", |
| 315 | ], |
| 316 | |
| 317 | target: { |
| 318 | android: { |
| 319 | srcs: [ |
| 320 | "SystemClock_test.cpp", |
| 321 | ], |
| 322 | shared_libs: [ |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 323 | "libbase", |
Christopher Ferris | 15fee82 | 2022-09-12 18:00:10 -0700 | [diff] [blame^] | 324 | "libcutils", |
| 325 | "liblog", |
| 326 | "liblzma", |
| 327 | "libunwindstack", |
| 328 | "libutils", |
| 329 | "libutilscallstack", |
| 330 | "libz", |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 331 | ], |
| 332 | }, |
| 333 | linux: { |
| 334 | srcs: [ |
| 335 | "Looper_test.cpp", |
| 336 | "RefBase_test.cpp", |
| 337 | ], |
| 338 | }, |
| 339 | host: { |
| 340 | static_libs: [ |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 341 | "libbase", |
Christopher Ferris | 15fee82 | 2022-09-12 18:00:10 -0700 | [diff] [blame^] | 342 | "liblog", |
| 343 | "liblzma", |
| 344 | "libunwindstack_no_dex", |
| 345 | "libutils", |
| 346 | "libutilscallstack", |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 347 | ], |
| 348 | }, |
| 349 | }, |
| 350 | |
Yo Chiang | 5b028ba | 2020-07-10 19:34:53 +0800 | [diff] [blame] | 351 | data_libs: [ |
| 352 | "libutils_test_singleton1", |
| 353 | "libutils_test_singleton2", |
| 354 | ], |
| 355 | |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 356 | cflags: [ |
| 357 | "-Wall", |
| 358 | "-Wextra", |
| 359 | "-Werror", |
| 360 | "-Wthread-safety", |
| 361 | ], |
Elliott Hughes | cb65c35 | 2019-02-20 15:23:34 -0800 | [diff] [blame] | 362 | |
| 363 | test_suites: ["device-tests"], |
| 364 | } |
| 365 | |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 366 | cc_test_library { |
| 367 | name: "libutils_test_singleton1", |
| 368 | host_supported: true, |
Yo Chiang | 5b028ba | 2020-07-10 19:34:53 +0800 | [diff] [blame] | 369 | installable: false, |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 370 | srcs: ["Singleton_test1.cpp"], |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 371 | cflags: [ |
| 372 | "-Wall", |
| 373 | "-Werror", |
| 374 | ], |
Jiyong Park | 705abe2 | 2021-12-14 22:55:34 +0900 | [diff] [blame] | 375 | header_libs: ["libutils_headers"], |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 376 | } |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 377 | |
| 378 | cc_test_library { |
| 379 | name: "libutils_test_singleton2", |
| 380 | host_supported: true, |
Yo Chiang | 5b028ba | 2020-07-10 19:34:53 +0800 | [diff] [blame] | 381 | installable: false, |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 382 | srcs: ["Singleton_test2.cpp"], |
| 383 | cflags: [ |
| 384 | "-Wall", |
| 385 | "-Werror", |
| 386 | ], |
| 387 | shared_libs: ["libutils_test_singleton1"], |
Jiyong Park | 705abe2 | 2021-12-14 22:55:34 +0900 | [diff] [blame] | 388 | header_libs: ["libutils_headers"], |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 389 | } |
Steven Moreland | c732c03 | 2019-09-03 18:04:50 -0700 | [diff] [blame] | 390 | |
| 391 | cc_benchmark { |
| 392 | name: "libutils_benchmark", |
| 393 | srcs: ["Vector_benchmark.cpp"], |
| 394 | shared_libs: ["libutils"], |
| 395 | } |