-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
34 lines (29 loc) · 747 Bytes
/
BUILD
File metadata and controls
34 lines (29 loc) · 747 Bytes
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
load("@rules_cc//cc:defs.bzl", "cc_binary")
load("@rules_proto//proto:defs.bzl", "proto_library")
# This is the main target for the binary
cc_binary(
name = "main",
srcs = ["src/main.cpp"],
deps = [
":taskrequest",
],
)
# These are the libraries that the binary depends on
cc_library(
name = "taskrequest",
srcs = ["src/taskrequest.cpp"],
hdrs = ["include/taskrequest.h"],
deps = [
"//:taskrequest_cc_proto"
],
)
# These are the proto files that the library depends on
proto_library(
name = "taskrequest_proto",
srcs = ["proto/taskrequest.proto"],
)
cc_proto_library(
name = "taskrequest_cc_proto",
deps = [":taskrequest_proto"],
visibility = ["//visibility:public"],
)