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