forked from baidu/braft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
61 lines (57 loc) · 1.33 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
licenses(["notice"])
exports_files(["LICENSE"])
load(":bazel/braft.bzl", "braft_proto_library")
cc_library(
name = "braft",
srcs = glob([
"src/braft/*.cpp",
]),
hdrs = glob([
"src/braft/*.h",
]),
includes = [
"src",
],
defines = [],
copts = [
"-DGFLAGS=gflags",
"-DOS_LINUX",
"-DSNAPPY",
"-DHAVE_SSE42",
"-DNDEBUG",
"-D__STDC_FORMAT_MACROS",
"-fno-omit-frame-pointer",
"-momit-leaf-frame-pointer",
"-msse4.2",
"-pthread",
"-Wsign-compare",
"-Wno-unused-parameter",
"-Wno-unused-variable",
"-Woverloaded-virtual",
"-Wnon-virtual-dtor",
"-Wno-missing-field-initializers",
"-std=c++11",
"-DGFLAGS_NS=google",
],
linkopts = [
"-lm",
"-lpthread",
],
deps = [
"@com_github_brpc_brpc//:brpc",
"@com_github_gflags_gflags//:gflags",
"@com_github_google_glog//:glog",
"@com_google_protobuf//:protobuf",
"@zlib//:zlib",
":cc_braft_internal_proto",
],
visibility = ["//visibility:public"],
)
braft_proto_library(
name = "cc_braft_internal_proto",
srcs = glob([
"src/braft/*.proto",
]),
include = "src",
visibility = ["//visibility:public"],
)