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