forked from sonic-net/sonic-swss-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
31 lines (28 loc) · 803 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
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 = [
"-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"],
)