-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBUILD
85 lines (76 loc) · 1.75 KB
/
BUILD
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package(default_visibility = ["//visibility:public"])
# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_library
cc_library(
name = "bptree",
srcs = glob(["src/*.cc", "src/*.h", "include/**/*.h"]),
hdrs = glob(["include/bptree/block_manager.h"]),
includes = ["include"],
deps = [
"@crc32//:crc32c",
"@spdlog//:spdlog",
"@mpmcqueue//:mpmc_queue",
"@fmt//:fmt",
]
)
# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_binary
cc_binary(
name = "bptree_write",
srcs = ["example/bptree_write.cc", "example/helper.h"],
deps = [
":bptree",
"@com_github_gflags_gflags//:gflags",
]
)
# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_binary
cc_binary(
name = "bptree_read",
srcs = ["example/bptree_read.cc", "example/helper.h"],
deps = [
":bptree",
"@com_github_gflags_gflags//:gflags",
]
)
cc_binary(
name = "leveldb_write",
srcs = ["example/leveldb_write.cc", "example/helper.h"],
deps = [
"//third_party:leveldb",
"@spdlog//:spdlog",
"@com_github_gflags_gflags//:gflags",
]
)
cc_binary(
name = "leveldb_read",
srcs = ["example/leveldb_read.cc", "example/helper.h"],
deps = [
"//third_party:leveldb",
"@spdlog//:spdlog",
"@com_github_gflags_gflags//:gflags",
]
)
cc_binary(
name = "block_print",
srcs = ["tool/block_print.cc"],
deps = [":bptree"],
)
cc_binary(
name = "find_block_by_key",
srcs = ["tool/find_block_by_key.cc"],
deps = [":bptree"],
)
cc_binary(
name = "block_filling_rate",
srcs = ["tool/block_filling_rate.cc"],
deps = [":bptree"],
)
cc_test(
name = "bptree_test",
srcs = glob(["test/*.cc"]),
deps = [
":bptree",
"@crc32//:crc32c",
"@googletest//:gtest",
"@googletest//:gtest_main",
"@fmt//:fmt",
],
)