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