-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathBUILD
77 lines (72 loc) · 1.14 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
package(default_visibility = ["//visibility:public"])
cc_library(
name = "hyperudp",
includes = ["src"],
copts = [
"-g",
"-O2",
"-Wall",
"-Wno-unused-result",
],
linkopts = [
"-lrt",
],
nocopts = "-fPIC",
linkstatic = 1,
srcs = glob([
"src/hyperudp/*.cc",
"src/hyperudp/*.h",
]),
deps = [
"//ccbase",
"//shm_container",
"//third_party/gflags-20",
],
)
cc_test(
name = "test",
copts = [
"-g",
"-O2",
"-Wall",
"-fno-strict-aliasing",
],
nocopts = "-fPIC",
linkstatic = 1,
srcs = glob(["test/*_test.cc"]),
deps = [
":hyperudp",
"//gtestx",
],
malloc = "//third_party/jemalloc-360"
)
cc_binary(
name = "echo_server",
copts = [
"-g",
"-O2",
"-Wall",
],
nocopts = "-fPIC",
linkstatic = 1,
srcs = ["example/echo_server.cc"],
deps = [
":hyperudp",
],
malloc = "//third_party/jemalloc-360"
)
cc_binary(
name = "echo_client",
copts = [
"-g",
"-O2",
"-Wall",
],
nocopts = "-fPIC",
linkstatic = 1,
srcs = ["example/echo_client.cc"],
deps = [
":hyperudp",
],
malloc = "//third_party/jemalloc-360"
)