Filling in remaining build targets

pull/1106/head
Clark Rinker 6 years ago
parent 919a01f8b1
commit 3bf4a07dc2

3
.gitignore vendored

@ -1,5 +1,6 @@
# Auto generated files
.vscode*
bazel*
# Auto generated files
build/*
*.slo
*.lo

59
BUILD

@ -5,57 +5,16 @@ cc_library(
includes = ["include"],
)
cc_binary(
name="bench",
srcs=[
"bench/utils.h",
"bench/bench.cpp"
],
includes=[
"bench"
],
deps=[
":headers"
]
)
cc_binary(
name="async_bench",
srcs=[
"bench/utils.h",
"bench/async_bench.cpp"
],
includes=[
"bench"
],
deps=[
":headers"
]
cc_library(
name = "spdlog",
visibility = ["//visibility:public"],
defines=[
"SPDLOG_COMPILED_LIB"
],
srcs = ["src/spdlog.cpp"],
includes = ["include"],
)
cc_binary(
name="latency",
srcs=[
"bench/utils.h",
"bench/latency.cpp"
],
includes=[
"bench"
],
deps=[
":headers"
]
)
cc_binary(
name="example",
srcs=[
"example/example.cpp"
],
includes=[
"bench"
],
deps=[
":headers"
]
)

@ -0,0 +1,41 @@
cc_binary(
name="bench",
srcs=[
"bench/utils.h",
"bench/bench.cpp"
],
includes=[
"bench"
],
deps=[
":headers"
]
)
cc_binary(
name="async_bench",
srcs=[
"bench/utils.h",
"bench/async_bench.cpp"
],
includes=[
"bench"
],
deps=[
":headers"
]
)
cc_binary(
name="latency",
srcs=[
"bench/utils.h",
"bench/latency.cpp"
],
includes=[
"bench"
],
deps=[
":headers"
]
)

@ -0,0 +1,23 @@
cc_test(
name="main",
srcs=glob([
"*.h*",
"utils.cpp",
"main.cpp",
"test_*.cpp"
],
exclude=[
"test_systemd.cpp"
]
) + select({
"@bazel_tools//src/conditions:windows": [],
"@bazel_tools//src/conditions:darwin": [],
"//conditions:default": ["test_systemd.cpp"],
}),
includes=[
"tests"
],
deps=[
"//:headers"
]
)
Loading…
Cancel
Save