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