-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
70 lines (62 loc) · 1.26 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
load("@protobuf//bazel:proto_library.bzl", "proto_library")
proto_library(
name = "packet_proto",
srcs = ["packet.proto"],
deps = [],
)
cc_proto_library(
name = "packet_cc_proto",
deps = [":packet_proto"],
)
cc_library(
name = "common_vars",
hdrs = ["common_variables.h"],
visibility = ["//visibility:public"], # Make the library accessible to other targets
)
cc_library(
name = "TX_headers",
hdrs = ["Transmitter.h"],
visibility = ["//visibility:public"], # Make the library accessible to other targets
)
cc_binary(
name = "TX",
deps = [
":common_vars",
#":TX_headers",
":packet_cc_proto",
"@protobuf//:protobuf",
"@abseil-cpp//absl/strings"
],
srcs = ["Transmitter.cpp"],
)
cc_binary(
name = "RX",
deps = [
":common_vars",
":packet_cc_proto",
"@protobuf//:protobuf",
"@abseil-cpp//absl/strings"
],
srcs = ["Receiver.cpp"],
)
cc_binary(
name = "RandGen",
deps = [
":common_vars",
":packet_cc_proto",
"@protobuf//:protobuf",
"@abseil-cpp//absl/strings"
],
srcs = ["RandomBinaryGenerator.cpp"],
)
cc_binary(
name = "all",
deps = [
":common_vars",
"TX",
"RX",
":packet_cc_proto",
"@protobuf//:protobuf",
"@abseil-cpp//absl/strings"
],
)