-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathBUILD.bazel
53 lines (45 loc) · 944 Bytes
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
cc_library(
name = "ulid_uint128",
srcs = ["src/ulid_uint128.hh"],
)
cc_library(
name = "ulid_struct",
srcs = ["src/ulid_struct.hh"],
)
# benchmarks
cc_binary(
name = "ulid_bench_uint128",
srcs = ["src/ulid_bench.cc"],
defines = ["ULIDUINT128"],
deps = [
":ulid_uint128",
"//vendor/benchmark",
],
)
cc_binary(
name = "ulid_bench_struct",
srcs = ["src/ulid_bench.cc"],
deps = [
":ulid_struct",
"//vendor/benchmark",
],
)
# tests
cc_test(
name = "ulid_test_uint128",
srcs = ["src/ulid_test.cc"],
defines = ["ULIDUINT128"],
deps = [
":ulid_uint128",
"//vendor/googletest:gtest_main",
],
)
cc_test(
name = "ulid_test_struct",
srcs = ["src/ulid_test.cc"],
deps = [
":ulid_struct",
"//vendor/googletest:gtest_main",
],
)