-
Notifications
You must be signed in to change notification settings - Fork 272
/
BUILD
32 lines (29 loc) · 825 Bytes
/
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
package(default_visibility = ["//visibility:public"])
exports_files(["LICENSE"])
cc_library(
name = "common",
srcs = glob(["common/*.cpp"], exclude=["common/loglevel.cpp", "common/loglevel_util.cpp"]),
hdrs = glob([
"common/*.h",
"common/*.hpp",
]),
copts = [
"-std=c++14",
"-I/usr/include/libnl3", # Expected location in the SONiC build container"
],
includes = [
"common",
],
linkopts = ["-lpthread -lhiredis -lnl-genl-3 -lnl-nf-3 -lnl-route-3 -lnl-3 -lzmq -lboost_serialization -luuid -lyang"],
visibility = ["//visibility:public"],
)
cc_library(
name = "libswsscommon",
hdrs = glob([
"common/*.h",
"common/*.hpp",
]),
include_prefix = "swss",
strip_include_prefix = "common",
deps = [":common"],
)