-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
38 lines (32 loc) · 827 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
32
33
34
35
36
37
load("@protobuf//:protobuf.bzl", "cc_proto_library")
cc_proto_library(
name="archive.proto",
srcs=["proto/archive.proto"],
protoc="@protobuf//:protoc",
default_runtime="@protobuf//:protobuf",
)
cc_library(
name="archive",
srcs=["src/archive.cc", "src/exception.cc",],
hdrs=["include/multipack/archive.h", "include/multipack/exception.h",],
includes=["include"],
copts=["-g"],
deps=[":archive.proto", "@boost//:iostreams", "@boost//:filesystem"],
)
cc_binary(
name="exec",
srcs=["src/exec.cc"],
deps=[":archive"],
)
cc_binary(
name="pack",
srcs=["src/pack.cc",],
includes=["include"],
copts=["-g"],
deps=["@boost//:program_options", ":archive.proto", ":archive"],
)
sh_test(
name="lint",
srcs=["lint.sh"],
data=["cpplint.py"] + glob(["include/**/*.h"]) + glob(["src/**/*.cc"]),
)