-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD.bazel
44 lines (40 loc) · 1.02 KB
/
BUILD.bazel
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
config_setting(
name = "linux",
constraint_values = [
"@bazel_tools//platforms:linux",
],
visibility = ["//visibility:public"],
)
config_setting(
name = "osx",
constraint_values = [
"@bazel_tools//platforms:osx",
],
visibility = ["//visibility:public"],
)
config_setting(
name = "windows",
constraint_values = [
"@bazel_tools//platforms:windows",
],
visibility = ["//visibility:public"],
)
cc_library(
name = "rockssnmp",
srcs = glob(["*.cpp"], exclude = [ "stats_test.cpp" ])
+ glob(["libmevent/*.cpp"]) + glob(["snmpagent/*.cpp"]) + glob(["util/*.cpp"]),
deps = [
"@com_facebook_rocksdb//:rocksdb",
":headers",
],
includes = [ "libmevent", "snmpagent", "util" ],
visibility = ["//visibility:public"],
alwayslink = 1,
)
cc_library(
name = "headers",
hdrs = glob(["*.h"]) + glob(["libmevent/*.h"]) + glob(["snmpagent/*.h"]) + glob(["util/*.h"]),
deps = [
],
visibility = ["//visibility:public"],
)