-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
85 lines (78 loc) · 1.76 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
# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_binary
cc_binary(
name = "test",
srcs = ["test.cpp"],
deps = [":base_server", "@boost//:lockfree", "@boost//:iterator"],
)
cc_binary(
name = "select_multi_server_run",
srcs = ["select/thread/main.cpp"],
deps = [":select_multi_server"],
linkopts = ["-pthread"]
)
cc_library(
name = "select_multi_server",
srcs = ["select/thread/multi_thread_select_server.cpp"],
hdrs = ["select/thread/multi_thread_select_server.h"],
deps = [
":select_single_server",
"@boost//:lockfree",
"@boost//:iterator",
],
)
cc_library(
name = "base_server",
srcs = ["base_server.cpp"],
hdrs = ["base_server.h"],
visibility = ["//visibility:public"]
)
cc_binary(
name = "bio_server",
srcs = ["server.cpp"],
copts = [
"--std=c++11",
],
deps = [
":base_server",
],
)
cc_library(
name = "common",
srcs = [
"select/buffer.cpp",
"select/context.cpp",
],
hdrs = [
"select/buffer.h",
"select/context.h",
],
visibility = ["//visibility:public"]
)
cc_library(
name = "select_single_server",
srcs = ["select/select_server.cpp"],
hdrs = ["select/select_server.h"],
copts = [],
deps = [
":base_server",
":common",
],
)
cc_binary(
name = "select_single_run",
srcs = ["select.cpp"],
copts = [
"--std=c++11",
],
deps = [
":select_single_server",
],
)
# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_binary
# cc_binary(
# name = "rule unique name",
# srcs = ["source files"],
# copts = [],
# deps = ["libraries to be linked"],
# )
# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_library