-
Notifications
You must be signed in to change notification settings - Fork 246
/
BUILD.bazel
101 lines (94 loc) · 2.2 KB
/
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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
load("//bazel:defs.bzl", "YA_BIN_COPT", "YA_LT_COPT")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "ylt",
srcs = glob([
"include/ylt/**/*.hpp",
"include/ylt/**/*.h",
"include/ylt/**/*.ipp",
"src/include/*.h",
]),
copts = YA_LT_COPT,
includes = [
"include",
"include/ylt",
"include/ylt/thirdparty",
"include/ylt/standalone",
"src/include",
],
linkopts = ["-lpthread"],
visibility = ["//visibility:public"],
)
# List one example for ylt tests.
cc_test(
name = "easylog_test",
srcs = [
"src/easylog/tests/main.cpp",
"src/easylog/tests/test_easylog.cpp",
],
copts = YA_BIN_COPT,
includes = [
"include",
"include/ylt/thirdparty",
"include/ylt/standalone",
"src/include",
],
deps = [":ylt"],
)
cc_binary(
name = "easylog_benchmark",
srcs = [
"src/easylog/benchmark/main.cpp",
],
copts = YA_BIN_COPT,
includes = [
"include",
"include/ylt/thirdparty",
"include/ylt/standalone",
"src/include",
],
deps = [":ylt"],
)
cc_binary(
name = "coro_http_example",
srcs = ["src/coro_http/examples/example.cpp"],
copts = YA_BIN_COPT,
includes = [
"include",
"include/ylt",
"include/ylt/thirdparty",
"include/ylt/standalone",
"src/include",
],
linkopts = ["-lpthread"],
deps = [":ylt"],
)
cc_binary(
name = "coro_http_load_blancer",
srcs = ["src/coro_http/examples/load_blancer.cpp"],
copts = YA_BIN_COPT,
includes = [
"include",
"include/ylt",
"include/ylt/thirdparty",
"include/ylt/standalone",
"src/include",
],
linkopts = ["-lpthread"],
deps = [":ylt"],
)
cc_binary(
name = "coro_http_chat_room",
srcs = ["src/coro_http/examples/chat_room.cpp"],
copts = YA_BIN_COPT,
includes = [
"include",
"include/ylt",
"include/ylt/thirdparty",
"include/ylt/standalone",
"src/include",
],
linkopts = ["-lpthread"],
deps = [":ylt"],
)