-
Notifications
You must be signed in to change notification settings - Fork 1
/
ppp.BUILD
59 lines (54 loc) · 1.55 KB
/
ppp.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
cc_library(
name = "common",
srcs = glob(["Common++/src/*.cpp"], allow_empty=False),
hdrs = glob(["Common++/header/*.h"]),
strip_include_prefix = "Common++/header",
visibility = ["//visibility:public"],
deps = [
":endian_portable",
],
defines = ["LINUX"],
)
cc_library(
name = "packet",
srcs = glob(["Packet++/src/*.cpp"], allow_empty=False),
hdrs = glob(["Packet++/header/*.h"]),
strip_include_prefix = "Packet++/header",
visibility = ["//visibility:public"],
deps = [
":common",
":endian_portable",
":hash_lib",
],
)
cc_library(
name = "pcap",
srcs = glob(["Pcap++/src/*.cpp"], allow_empty=False),
hdrs = glob(["Pcap++/header/*.h"]),
strip_include_prefix = "Pcap++/header",
visibility = ["//visibility:public"],
deps = [
":packet",
":light_pcapng"
],
copts = ["-I", "/usr/include/pcap/"],
linkopts = ["-lpcap"],
)
cc_library(
name = "endian_portable",
hdrs = ["3rdParty/EndianPortable/include/EndianPortable.h"],
strip_include_prefix = "3rdParty/EndianPortable/include",
)
cc_library(
name = "light_pcapng",
hdrs = glob(["3rdParty/LightPcapNg/LightPcapNg/include/*.h"]),
srcs = glob(["3rdParty/LightPcapNg/LightPcapNg/src/*.c"]),
strip_include_prefix = "3rdParty/LightPcapNg/LightPcapNg/include",
)
cc_library(
name = "hash_lib",
hdrs = ["3rdParty/hash-library/md5.h"],
srcs = ["3rdParty/hash-library/md5.cpp"],
strip_include_prefix = "3rdParty/hash-library",
deps = [":endian_portable",]
)