Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 1 | // Copyright (C) 2008 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Vijay Venkatraman | 75acc7b | 2017-01-05 10:39:38 -0800 | [diff] [blame] | 15 | cc_library_headers { |
| 16 | name: "libutils_headers", |
Steven Moreland | 91527ed | 2017-04-11 12:43:16 -0700 | [diff] [blame] | 17 | vendor_available: true, |
Justin Yun | feef4d3 | 2020-11-11 19:17:40 +0900 | [diff] [blame^] | 18 | product_available: true, |
Jiyong Park | 612210c | 2018-04-27 21:48:43 +0900 | [diff] [blame] | 19 | recovery_available: true, |
Yifan Hong | 55015ff | 2020-10-27 16:37:06 -0700 | [diff] [blame] | 20 | vendor_ramdisk_available: true, |
Vijay Venkatraman | 75acc7b | 2017-01-05 10:39:38 -0800 | [diff] [blame] | 21 | host_supported: true, |
dimitry | 454ba7e | 2019-05-16 13:48:17 +0200 | [diff] [blame] | 22 | native_bridge_supported: true, |
Jiyong Park | 8bf9b16 | 2020-03-07 16:36:09 +0900 | [diff] [blame] | 23 | apex_available: [ |
| 24 | "//apex_available:platform", |
| 25 | "//apex_available:anyapex", |
| 26 | ], |
Jooyung Han | 7ea0d74 | 2020-04-16 18:48:33 +0900 | [diff] [blame] | 27 | min_sdk_version: "apex_inherit", |
Steven Moreland | d3b4b2c | 2017-04-13 21:01:40 -0700 | [diff] [blame] | 28 | |
Jaesoo Lee | 1e8ac0f | 2017-04-20 16:56:45 +0900 | [diff] [blame] | 29 | header_libs: [ |
Steven Moreland | 95d7cbb | 2017-07-10 16:40:36 -0700 | [diff] [blame] | 30 | "liblog_headers", |
Jaesoo Lee | 1e8ac0f | 2017-04-20 16:56:45 +0900 | [diff] [blame] | 31 | "libsystem_headers", |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 32 | "libcutils_headers", |
Suren Baghdasaryan | 9491078 | 2019-01-25 05:32:52 +0000 | [diff] [blame] | 33 | "libprocessgroup_headers", |
Jaesoo Lee | 1e8ac0f | 2017-04-20 16:56:45 +0900 | [diff] [blame] | 34 | ], |
| 35 | export_header_lib_headers: [ |
Steven Moreland | 95d7cbb | 2017-07-10 16:40:36 -0700 | [diff] [blame] | 36 | "liblog_headers", |
Jaesoo Lee | 1e8ac0f | 2017-04-20 16:56:45 +0900 | [diff] [blame] | 37 | "libsystem_headers", |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 38 | "libcutils_headers", |
Suren Baghdasaryan | 9491078 | 2019-01-25 05:32:52 +0000 | [diff] [blame] | 39 | "libprocessgroup_headers", |
Jaesoo Lee | 1e8ac0f | 2017-04-20 16:56:45 +0900 | [diff] [blame] | 40 | ], |
Vijay Venkatraman | 75acc7b | 2017-01-05 10:39:38 -0800 | [diff] [blame] | 41 | export_include_dirs: ["include"], |
Steven Moreland | d3b4b2c | 2017-04-13 21:01:40 -0700 | [diff] [blame] | 42 | |
Vijay Venkatraman | 75acc7b | 2017-01-05 10:39:38 -0800 | [diff] [blame] | 43 | target: { |
Steven Moreland | d3b4b2c | 2017-04-13 21:01:40 -0700 | [diff] [blame] | 44 | android: { |
| 45 | header_libs: ["libbacktrace_headers"], |
| 46 | export_header_lib_headers: ["libbacktrace_headers"], |
| 47 | }, |
Christopher Ferris | 0e69160 | 2020-10-14 14:13:58 -0700 | [diff] [blame] | 48 | linux_glibc: { |
| 49 | header_libs: ["libbacktrace_headers"], |
| 50 | export_header_lib_headers: ["libbacktrace_headers"], |
| 51 | }, |
Dan Willemsen | e0cd1e0 | 2017-03-15 15:23:36 -0700 | [diff] [blame] | 52 | linux_bionic: { |
Christopher Ferris | 0e69160 | 2020-10-14 14:13:58 -0700 | [diff] [blame] | 53 | header_libs: ["libbacktrace_headers"], |
| 54 | export_header_lib_headers: ["libbacktrace_headers"], |
Dan Willemsen | e0cd1e0 | 2017-03-15 15:23:36 -0700 | [diff] [blame] | 55 | enabled: true, |
| 56 | }, |
Vijay Venkatraman | 75acc7b | 2017-01-05 10:39:38 -0800 | [diff] [blame] | 57 | windows: { |
Dan Willemsen | e0cd1e0 | 2017-03-15 15:23:36 -0700 | [diff] [blame] | 58 | enabled: true, |
| 59 | }, |
Vijay Venkatraman | 75acc7b | 2017-01-05 10:39:38 -0800 | [diff] [blame] | 60 | }, |
| 61 | } |
| 62 | |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 63 | cc_defaults { |
| 64 | name: "libutils_defaults", |
Steven Moreland | 91527ed | 2017-04-11 12:43:16 -0700 | [diff] [blame] | 65 | vendor_available: true, |
Justin Yun | feef4d3 | 2020-11-11 19:17:40 +0900 | [diff] [blame^] | 66 | product_available: true, |
Jiyong Park | 011ee12 | 2018-05-29 16:41:30 +0900 | [diff] [blame] | 67 | recovery_available: true, |
Justin Yun | 9ca9245 | 2017-07-31 15:41:10 +0900 | [diff] [blame] | 68 | vndk: { |
| 69 | enabled: true, |
| 70 | support_system_process: true, |
| 71 | }, |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 72 | host_supported: true, |
| 73 | |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 74 | cflags: [ |
| 75 | "-Wall", |
| 76 | "-Werror", |
| 77 | ], |
Steven Moreland | b084bc3 | 2017-04-12 18:57:57 -0700 | [diff] [blame] | 78 | header_libs: [ |
Chih-Hung Hsieh | 502f486 | 2018-09-13 11:08:41 -0700 | [diff] [blame] | 79 | "libbase_headers", |
Steven Moreland | b084bc3 | 2017-04-12 18:57:57 -0700 | [diff] [blame] | 80 | "libutils_headers", |
| 81 | ], |
| 82 | export_header_lib_headers: [ |
Steven Moreland | b084bc3 | 2017-04-12 18:57:57 -0700 | [diff] [blame] | 83 | "libutils_headers", |
| 84 | ], |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 85 | |
Steven Moreland | 1f64241 | 2017-06-26 13:52:06 -0700 | [diff] [blame] | 86 | shared_libs: [ |
Steven Moreland | e6132be | 2019-03-25 20:38:56 -0700 | [diff] [blame] | 87 | "libcutils", |
Steven Moreland | 1f64241 | 2017-06-26 13:52:06 -0700 | [diff] [blame] | 88 | "liblog", |
| 89 | ], |
Steven Moreland | 9c83202 | 2020-07-07 22:37:07 +0000 | [diff] [blame] | 90 | sanitize: { |
| 91 | misc_undefined: ["integer"], |
| 92 | }, |
Steven Moreland | 1f64241 | 2017-06-26 13:52:06 -0700 | [diff] [blame] | 93 | |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 94 | target: { |
| 95 | android: { |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 96 | cflags: ["-fvisibility=protected"], |
| 97 | |
| 98 | shared_libs: [ |
Suren Baghdasaryan | 9491078 | 2019-01-25 05:32:52 +0000 | [diff] [blame] | 99 | "libprocessgroup", |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 100 | "libdl", |
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 | }, |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 131 | } |
| 132 | |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 133 | cc_library { |
| 134 | name: "libutils", |
| 135 | defaults: ["libutils_defaults"], |
dimitry | 454ba7e | 2019-05-16 13:48:17 +0200 | [diff] [blame] | 136 | native_bridge_supported: true, |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 137 | |
| 138 | srcs: [ |
Steven Moreland | 591cab8 | 2019-11-15 00:07:32 -0800 | [diff] [blame] | 139 | "Errors.cpp", |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 140 | "FileMap.cpp", |
| 141 | "JenkinsHash.cpp", |
| 142 | "NativeHandle.cpp", |
| 143 | "Printer.cpp", |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 144 | "RefBase.cpp", |
| 145 | "SharedBuffer.cpp", |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 146 | "StopWatch.cpp", |
| 147 | "String8.cpp", |
| 148 | "String16.cpp", |
| 149 | "StrongPointer.cpp", |
| 150 | "SystemClock.cpp", |
| 151 | "Threads.cpp", |
| 152 | "Timers.cpp", |
| 153 | "Tokenizer.cpp", |
| 154 | "Unicode.cpp", |
| 155 | "VectorImpl.cpp", |
| 156 | "misc.cpp", |
| 157 | ], |
| 158 | |
| 159 | target: { |
| 160 | android: { |
| 161 | srcs: [ |
| 162 | "Trace.cpp", |
| 163 | ], |
| 164 | }, |
| 165 | linux: { |
Josh Gao | f0ea1e6 | 2019-01-02 14:31:26 -0800 | [diff] [blame] | 166 | header_libs: ["libbase_headers"], |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 167 | srcs: [ |
| 168 | "Looper.cpp", |
| 169 | ], |
| 170 | }, |
| 171 | }, |
Jeffrey Huang | 18986cb | 2020-02-12 17:06:05 -0800 | [diff] [blame] | 172 | |
| 173 | apex_available: [ |
| 174 | "//apex_available:anyapex", |
| 175 | "//apex_available:platform", |
| 176 | ], |
Jooyung Han | 7ea0d74 | 2020-04-16 18:48:33 +0900 | [diff] [blame] | 177 | min_sdk_version: "apex_inherit", |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 178 | } |
| 179 | |
| 180 | cc_library { |
| 181 | name: "libutilscallstack", |
| 182 | defaults: ["libutils_defaults"], |
Victor Khimenko | 7428c52 | 2020-06-18 22:01:13 +0200 | [diff] [blame] | 183 | // TODO(b/153609531): remove when no longer needed. |
| 184 | native_bridge_supported: true, |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 185 | |
| 186 | srcs: [ |
| 187 | "CallStack.cpp", |
| 188 | ], |
| 189 | |
Steven Moreland | e6132be | 2019-03-25 20:38:56 -0700 | [diff] [blame] | 190 | shared_libs: [ |
Dylan Katz | 9d5845b | 2020-05-11 15:44:01 -0700 | [diff] [blame] | 191 | "libutils", |
| 192 | "libbacktrace", |
Steven Moreland | e6132be | 2019-03-25 20:38:56 -0700 | [diff] [blame] | 193 | ], |
| 194 | |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 195 | target: { |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 196 | linux: { |
| 197 | srcs: [ |
| 198 | "ProcessCallStack.cpp", |
| 199 | ], |
| 200 | }, |
Steven Moreland | d33a2ee | 2019-04-01 15:01:53 -0700 | [diff] [blame] | 201 | darwin: { |
| 202 | enabled: false, |
| 203 | }, |
Steven Moreland | e6132be | 2019-03-25 20:38:56 -0700 | [diff] [blame] | 204 | windows: { |
| 205 | enabled: false, |
| 206 | }, |
David Sehr | abfb9f3 | 2018-01-17 17:07:09 -0800 | [diff] [blame] | 207 | }, |
| 208 | } |
| 209 | |
Dylan Katz | 9d5845b | 2020-05-11 15:44:01 -0700 | [diff] [blame] | 210 | cc_defaults { |
| 211 | name: "libutils_fuzz_defaults", |
| 212 | host_supported: true, |
| 213 | shared_libs: [ |
| 214 | "libutils", |
| 215 | "libbase", |
Dylan Katz | 7168f27 | 2020-07-02 11:51:44 -0700 | [diff] [blame] | 216 | "liblog", |
Dylan Katz | 9d5845b | 2020-05-11 15:44:01 -0700 | [diff] [blame] | 217 | ], |
| 218 | } |
| 219 | |
| 220 | cc_fuzz { |
| 221 | name: "libutils_fuzz_bitset", |
| 222 | defaults: ["libutils_fuzz_defaults"], |
| 223 | srcs: ["BitSet_fuzz.cpp"], |
| 224 | } |
| 225 | |
| 226 | cc_fuzz { |
| 227 | name: "libutils_fuzz_filemap", |
| 228 | defaults: ["libutils_fuzz_defaults"], |
| 229 | srcs: ["FileMap_fuzz.cpp"], |
| 230 | } |
| 231 | |
| 232 | cc_fuzz { |
| 233 | name: "libutils_fuzz_string8", |
| 234 | defaults: ["libutils_fuzz_defaults"], |
| 235 | srcs: ["String8_fuzz.cpp"], |
| 236 | } |
| 237 | |
| 238 | cc_fuzz { |
| 239 | name: "libutils_fuzz_string16", |
| 240 | defaults: ["libutils_fuzz_defaults"], |
| 241 | srcs: ["String16_fuzz.cpp"], |
| 242 | } |
| 243 | |
| 244 | cc_fuzz { |
| 245 | name: "libutils_fuzz_vector", |
| 246 | defaults: ["libutils_fuzz_defaults"], |
| 247 | srcs: ["Vector_fuzz.cpp"], |
| 248 | } |
| 249 | |
Dylan Katz | 7168f27 | 2020-07-02 11:51:44 -0700 | [diff] [blame] | 250 | cc_fuzz { |
| 251 | name: "libutils_fuzz_printer", |
| 252 | defaults: ["libutils_fuzz_defaults"], |
| 253 | srcs: ["Printer_fuzz.cpp"], |
| 254 | } |
| 255 | |
| 256 | cc_fuzz { |
| 257 | name: "libutils_fuzz_callstack", |
| 258 | defaults: ["libutils_fuzz_defaults"], |
| 259 | srcs: ["CallStack_fuzz.cpp"], |
| 260 | shared_libs: [ |
| 261 | "libutilscallstack", |
| 262 | ], |
| 263 | } |
| 264 | |
| 265 | cc_fuzz { |
| 266 | name: "libutils_fuzz_process_callstack", |
| 267 | defaults: ["libutils_fuzz_defaults"], |
| 268 | srcs: ["ProcessCallStack_fuzz.cpp"], |
| 269 | shared_libs: [ |
| 270 | "libutilscallstack", |
| 271 | ], |
| 272 | } |
| 273 | |
| 274 | cc_fuzz { |
| 275 | name: "libutils_fuzz_stopwatch", |
| 276 | defaults: ["libutils_fuzz_defaults"], |
| 277 | srcs: ["StopWatch_fuzz.cpp"], |
| 278 | } |
| 279 | |
| 280 | cc_fuzz { |
Dylan Katz | 7168f27 | 2020-07-02 11:51:44 -0700 | [diff] [blame] | 281 | name: "libutils_fuzz_refbase", |
| 282 | defaults: ["libutils_fuzz_defaults"], |
| 283 | srcs: ["RefBase_fuzz.cpp"], |
| 284 | } |
| 285 | |
| 286 | cc_fuzz { |
| 287 | name: "libutils_fuzz_lrucache", |
| 288 | defaults: ["libutils_fuzz_defaults"], |
| 289 | srcs: ["LruCache_fuzz.cpp"], |
| 290 | } |
| 291 | |
| 292 | cc_fuzz { |
| 293 | name: "libutils_fuzz_looper", |
| 294 | defaults: ["libutils_fuzz_defaults"], |
| 295 | srcs: ["Looper_fuzz.cpp"], |
| 296 | } |
| 297 | |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 298 | cc_test { |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 299 | name: "libutils_test", |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 300 | host_supported: true, |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 301 | |
| 302 | srcs: [ |
| 303 | "BitSet_test.cpp", |
| 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", |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 309 | "String8_test.cpp", |
Vic Yang | 9fb93ed | 2019-09-05 13:18:27 -0700 | [diff] [blame] | 310 | "String16_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: [ |
| 323 | "libz", |
| 324 | "liblog", |
| 325 | "libcutils", |
| 326 | "libutils", |
| 327 | "libbase", |
| 328 | ], |
| 329 | }, |
| 330 | linux: { |
| 331 | srcs: [ |
| 332 | "Looper_test.cpp", |
| 333 | "RefBase_test.cpp", |
| 334 | ], |
| 335 | }, |
| 336 | host: { |
| 337 | static_libs: [ |
| 338 | "libutils", |
| 339 | "liblog", |
| 340 | "libbase", |
| 341 | ], |
| 342 | }, |
| 343 | }, |
| 344 | |
Yo Chiang | 5b028ba | 2020-07-10 19:34:53 +0800 | [diff] [blame] | 345 | data_libs: [ |
| 346 | "libutils_test_singleton1", |
| 347 | "libutils_test_singleton2", |
| 348 | ], |
| 349 | |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 350 | cflags: [ |
| 351 | "-Wall", |
| 352 | "-Wextra", |
| 353 | "-Werror", |
| 354 | "-Wthread-safety", |
| 355 | ], |
Elliott Hughes | cb65c35 | 2019-02-20 15:23:34 -0800 | [diff] [blame] | 356 | |
| 357 | test_suites: ["device-tests"], |
| 358 | } |
| 359 | |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 360 | cc_test_library { |
| 361 | name: "libutils_test_singleton1", |
| 362 | host_supported: true, |
Yo Chiang | 5b028ba | 2020-07-10 19:34:53 +0800 | [diff] [blame] | 363 | installable: false, |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 364 | srcs: ["Singleton_test1.cpp"], |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 365 | cflags: [ |
| 366 | "-Wall", |
| 367 | "-Werror", |
| 368 | ], |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 369 | } |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 370 | |
| 371 | cc_test_library { |
| 372 | name: "libutils_test_singleton2", |
| 373 | host_supported: true, |
Yo Chiang | 5b028ba | 2020-07-10 19:34:53 +0800 | [diff] [blame] | 374 | installable: false, |
Elliott Hughes | 01705e4 | 2019-02-07 12:41:37 -0800 | [diff] [blame] | 375 | srcs: ["Singleton_test2.cpp"], |
| 376 | cflags: [ |
| 377 | "-Wall", |
| 378 | "-Werror", |
| 379 | ], |
| 380 | shared_libs: ["libutils_test_singleton1"], |
| 381 | } |
Steven Moreland | c732c03 | 2019-09-03 18:04:50 -0700 | [diff] [blame] | 382 | |
| 383 | cc_benchmark { |
| 384 | name: "libutils_benchmark", |
| 385 | srcs: ["Vector_benchmark.cpp"], |
| 386 | shared_libs: ["libutils"], |
| 387 | } |