|
| 1 | +cc_library( |
| 2 | + name = "benchmark", |
| 3 | + srcs = ["src/benchmark.cc"], |
| 4 | + hdrs = ["include/benchmark/benchmark.h"], |
| 5 | + strip_include_prefix = "include", |
| 6 | + deps = [ |
| 7 | + ":benchmark_api_internal", |
| 8 | + ":benchmark_header", |
| 9 | + ":benchmark_register", |
| 10 | + ":check", |
| 11 | + ":colorprint", |
| 12 | + ":commandlineflags", |
| 13 | + ":complexity", |
| 14 | + ":console_reporter", |
| 15 | + ":counter", |
| 16 | + ":csv_reporter", |
| 17 | + ":internal_macros", |
| 18 | + ":json_reporter", |
| 19 | + ":log", |
| 20 | + ":mutex", |
| 21 | + ":re", |
| 22 | + ":reporter", |
| 23 | + ":statistics", |
| 24 | + ":string_util", |
| 25 | + ":sysinfo", |
| 26 | + ":timers", |
| 27 | + ], |
| 28 | + visibility = [ |
| 29 | + "//visibility:public", |
| 30 | + ], |
| 31 | +) |
| 32 | + |
| 33 | +cc_library( |
| 34 | + name = "arraysize", |
| 35 | + hdrs = ["src/arraysize.h"], |
| 36 | + strip_include_prefix = "src", |
| 37 | + ) |
| 38 | + |
| 39 | +cc_library( |
| 40 | + name = "benchmark_api_internal", |
| 41 | + hdrs = ["src/benchmark_api_internal.h"], |
| 42 | + strip_include_prefix = "src", |
| 43 | +) |
| 44 | + |
| 45 | +cc_library( |
| 46 | + name = "benchmark_header", |
| 47 | + hdrs = ["include/benchmark/benchmark.h"], |
| 48 | + strip_include_prefix = "include", |
| 49 | + ) |
| 50 | + |
| 51 | +cc_library( |
| 52 | + name = "benchmark_register", |
| 53 | + srcs = ["src/benchmark_register.cc"], |
| 54 | + deps = [ |
| 55 | + ":benchmark_api_internal", |
| 56 | + ":benchmark_header", |
| 57 | + ":check", |
| 58 | + ":commandlineflags", |
| 59 | + ":complexity", |
| 60 | + ":internal_macros", |
| 61 | + ":mutex", |
| 62 | + ":re", |
| 63 | + ":statistics", |
| 64 | + ":string_util", |
| 65 | + ":timers", |
| 66 | + ], |
| 67 | + ) |
| 68 | + |
| 69 | +cc_library( |
| 70 | + name = "check", |
| 71 | + hdrs = ["src/check.h"], |
| 72 | + strip_include_prefix = "src", |
| 73 | + deps = [ |
| 74 | + ":benchmark_header", |
| 75 | + ":internal_macros", |
| 76 | + ":log", |
| 77 | + ], |
| 78 | +) |
| 79 | + |
| 80 | +cc_library( |
| 81 | + name = "colorprint", |
| 82 | + hdrs = ["src/colorprint.h"], |
| 83 | + srcs = ["src/colorprint.cc"], |
| 84 | + strip_include_prefix = "src", |
| 85 | + deps = [ |
| 86 | + ":check", |
| 87 | + ":internal_macros", |
| 88 | + ] |
| 89 | +) |
| 90 | + |
| 91 | +cc_library( |
| 92 | + name = "commandlineflags", |
| 93 | + hdrs = ["src/commandlineflags.h"], |
| 94 | + srcs = ["src/commandlineflags.cc"], |
| 95 | + strip_include_prefix = "src", |
| 96 | + deps = [ |
| 97 | + ] |
| 98 | +) |
| 99 | + |
| 100 | +cc_library( |
| 101 | + name = "complexity", |
| 102 | + hdrs = ["src/complexity.h"], |
| 103 | + srcs = ["src/complexity.cc"], |
| 104 | + strip_include_prefix = "src", |
| 105 | + deps = [ |
| 106 | + ":benchmark_header", |
| 107 | + ":check", |
| 108 | + ] |
| 109 | +) |
| 110 | + |
| 111 | +cc_library( |
| 112 | + name = "console_reporter", |
| 113 | + srcs = ["src/console_reporter.cc"], |
| 114 | + strip_include_prefix = "src", |
| 115 | + deps = [ |
| 116 | + ":benchmark_header", |
| 117 | + ":commandlineflags", |
| 118 | + ":complexity", |
| 119 | + ":colorprint", |
| 120 | + ":counter", |
| 121 | + ":string_util", |
| 122 | + ":timers", |
| 123 | + ] |
| 124 | +) |
| 125 | + |
| 126 | +cc_library( |
| 127 | + name = "counter", |
| 128 | + hdrs = ["src/counter.h"], |
| 129 | + srcs = ["src/counter.cc"], |
| 130 | + strip_include_prefix = "src", |
| 131 | + deps = [ |
| 132 | + ":benchmark_header", |
| 133 | + ] |
| 134 | +) |
| 135 | + |
| 136 | +cc_library( |
| 137 | + name = "csv_reporter", |
| 138 | + srcs = ["src/csv_reporter.cc"], |
| 139 | + strip_include_prefix = "src", |
| 140 | + deps = [ |
| 141 | + ":benchmark_header", |
| 142 | + ":complexity", |
| 143 | + ":string_util", |
| 144 | + ":timers", |
| 145 | + ] |
| 146 | +) |
| 147 | + |
| 148 | +cc_library( |
| 149 | + name = "cycleclock", |
| 150 | + hdrs = ["src/cycleclock.h"], |
| 151 | + strip_include_prefix = "src", |
| 152 | + deps = [ |
| 153 | + ] |
| 154 | +) |
| 155 | +cc_library( |
| 156 | + name = "internal_macros", |
| 157 | + hdrs = ["src/internal_macros.h"], |
| 158 | + strip_include_prefix = "src", |
| 159 | + deps = [ |
| 160 | + ":benchmark_header", |
| 161 | + ], |
| 162 | +) |
| 163 | + |
| 164 | +cc_library( |
| 165 | + name = "json_reporter", |
| 166 | + srcs = ["src/json_reporter.cc"], |
| 167 | + strip_include_prefix = "src", |
| 168 | + deps = [ |
| 169 | + ":benchmark_header", |
| 170 | + ":complexity", |
| 171 | + ":string_util", |
| 172 | + ":timers", |
| 173 | + ] |
| 174 | +) |
| 175 | + |
| 176 | +cc_library( |
| 177 | + name = "log", |
| 178 | + hdrs = ["src/log.h"], |
| 179 | + strip_include_prefix = "src", |
| 180 | +) |
| 181 | + |
| 182 | +cc_library( |
| 183 | + name = "mutex", |
| 184 | + hdrs = ["src/mutex.h"], |
| 185 | + strip_include_prefix = "src", |
| 186 | + deps = [ |
| 187 | + ] |
| 188 | +) |
| 189 | + |
| 190 | +cc_library( |
| 191 | + name = "re", |
| 192 | + hdrs = ["src/re.h"], |
| 193 | + strip_include_prefix = "src", |
| 194 | + deps = [ |
| 195 | + ], |
| 196 | + defines = ["HAVE_POSIX_REGEX"], |
| 197 | +) |
| 198 | + |
| 199 | +cc_library( |
| 200 | + name = "reporter", |
| 201 | + srcs = ["src/reporter.cc"], |
| 202 | + strip_include_prefix = "src", |
| 203 | + deps = [ |
| 204 | + ":benchmark_header", |
| 205 | + ":timers", |
| 206 | + ] |
| 207 | +) |
| 208 | + |
| 209 | +cc_library( |
| 210 | + name = "sleep", |
| 211 | + hdrs = ["src/sleep.h"], |
| 212 | + srcs = ["src/sleep.cc"], |
| 213 | + strip_include_prefix = "src", |
| 214 | + deps = [ |
| 215 | + ":internal_macros", |
| 216 | + ] |
| 217 | +) |
| 218 | + |
| 219 | +cc_library( |
| 220 | + name = "statistics", |
| 221 | + hdrs = ["src/statistics.h"], |
| 222 | + srcs = ["src/statistics.cc"], |
| 223 | + strip_include_prefix = "src", |
| 224 | + deps = [ |
| 225 | + ":benchmark_header", |
| 226 | + ":check", |
| 227 | + ] |
| 228 | +) |
| 229 | + |
| 230 | +cc_library( |
| 231 | + name = "string_util", |
| 232 | + hdrs = ["src/string_util.h"], |
| 233 | + srcs = ["src/string_util.cc"], |
| 234 | + strip_include_prefix = "src", |
| 235 | + deps = [ |
| 236 | + ":arraysize", |
| 237 | + ":internal_macros", |
| 238 | + ] |
| 239 | +) |
| 240 | + |
| 241 | +cc_library( |
| 242 | + name = "sysinfo", |
| 243 | + srcs = ["src/sysinfo.cc"], |
| 244 | + strip_include_prefix = "src", |
| 245 | + deps = [ |
| 246 | + ":check", |
| 247 | + ":cycleclock", |
| 248 | + ":internal_macros", |
| 249 | + ":sleep", |
| 250 | + ":string_util", |
| 251 | + ] |
| 252 | +) |
| 253 | + |
| 254 | +cc_library( |
| 255 | + name = "timers", |
| 256 | + hdrs = ["src/timers.h"], |
| 257 | + srcs = ["src/timers.cc"], |
| 258 | + strip_include_prefix = "src", |
| 259 | + deps = [ |
| 260 | + ":check", |
| 261 | + ":internal_macros", |
| 262 | + ":sleep", |
| 263 | + ":string_util", |
| 264 | + ] |
| 265 | +) |
| 266 | + |
| 267 | +cc_test( |
| 268 | + name = "basic_test", |
| 269 | + srcs = ["test/basic_test.cc"], |
| 270 | + deps = [":benchmark"], |
| 271 | +) |
| 272 | + |
| 273 | +cc_test( |
| 274 | + name = "benchmark_test", |
| 275 | + srcs = ["test/benchmark_test.cc"], |
| 276 | + deps = [":benchmark"], |
| 277 | +) |
| 278 | + |
| 279 | +cc_test( |
| 280 | + name = "complexity_test", |
| 281 | + srcs = ["test/complexity_test.cc"], |
| 282 | + deps = [ |
| 283 | + ":benchmark", |
| 284 | + ":output_test", |
| 285 | + ], |
| 286 | +) |
| 287 | + |
| 288 | +#cc_test( |
| 289 | +# name = "cxx03_test", |
| 290 | +# srcs = ["test/cxx03_test.cc"], |
| 291 | +# deps = [":benchmark"], |
| 292 | +#) |
| 293 | + |
| 294 | +cc_test( |
| 295 | + name = "diagnostics_test", |
| 296 | + srcs = ["test/diagnostics_test.cc"], |
| 297 | + deps = [":benchmark"], |
| 298 | +) |
| 299 | + |
| 300 | +cc_test( |
| 301 | + name = "donotoptimize_test", |
| 302 | + srcs = ["test/donotoptimize_test.cc"], |
| 303 | + deps = [":benchmark"], |
| 304 | +) |
| 305 | + |
| 306 | +cc_test( |
| 307 | + name = "filter_test", |
| 308 | + srcs = ["test/filter_test.cc"], |
| 309 | + deps = [":benchmark"], |
| 310 | +) |
| 311 | + |
| 312 | +cc_test( |
| 313 | + name = "fixture_test", |
| 314 | + srcs = ["test/fixture_test.cc"], |
| 315 | + deps = [":benchmark"], |
| 316 | +) |
| 317 | + |
| 318 | +cc_test( |
| 319 | + name = "map_test", |
| 320 | + srcs = ["test/map_test.cc"], |
| 321 | + deps = [":benchmark"], |
| 322 | +) |
| 323 | + |
| 324 | +cc_test( |
| 325 | + name = "multiple_ranges_test", |
| 326 | + srcs = ["test/multiple_ranges_test.cc"], |
| 327 | + deps = [":benchmark"], |
| 328 | +) |
| 329 | + |
| 330 | +cc_test( |
| 331 | + name = "options_test", |
| 332 | + srcs = ["test/options_test.cc"], |
| 333 | + deps = [":benchmark"], |
| 334 | +) |
| 335 | + |
| 336 | +cc_test( |
| 337 | + name = "register_benchmark_test", |
| 338 | + srcs = ["test/register_benchmark_test.cc"], |
| 339 | + deps = [":benchmark"], |
| 340 | +) |
| 341 | + |
| 342 | +cc_test( |
| 343 | + name = "reporter_output_test", |
| 344 | + srcs = ["test/reporter_output_test.cc"], |
| 345 | + deps = [ |
| 346 | + ":benchmark", |
| 347 | + ":output_test", |
| 348 | + ], |
| 349 | +) |
| 350 | + |
| 351 | +cc_test( |
| 352 | + name = "skip_with_error_test", |
| 353 | + srcs = ["test/skip_with_error_test.cc"], |
| 354 | + deps = [":benchmark"], |
| 355 | +) |
| 356 | + |
| 357 | +cc_test( |
| 358 | + name = "templated_fixture_test", |
| 359 | + srcs = ["test/templated_fixture_test.cc"], |
| 360 | + deps = [":benchmark"], |
| 361 | +) |
| 362 | + |
| 363 | +cc_test( |
| 364 | + name = "user_counters_tabular_test", |
| 365 | + srcs = ["test/user_counters_tabular_test.cc"], |
| 366 | + deps = [ |
| 367 | + ":benchmark", |
| 368 | + ":output_test", |
| 369 | + ], |
| 370 | +) |
| 371 | + |
| 372 | +cc_test( |
| 373 | + name = "user_counters_test", |
| 374 | + srcs = ["test/user_counters_test.cc"], |
| 375 | + deps = [ |
| 376 | + ":benchmark", |
| 377 | + ":output_test", |
| 378 | + ], |
| 379 | +) |
| 380 | + |
| 381 | +cc_library( |
| 382 | + name = "output_test", |
| 383 | + hdrs = ["test/output_test.h"], |
| 384 | + srcs = ["test/output_test_helper.cc"], |
| 385 | + strip_include_prefix = "test", |
| 386 | + deps = [ |
| 387 | + ":benchmark_api_internal", |
| 388 | + ":check", |
| 389 | + ":re", |
| 390 | + ], |
| 391 | +) |
| 392 | + |
| 393 | + |
0 commit comments