diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-01-18 15:14:50 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-01-18 16:11:52 +0000 |
commit | 18a33169b8d9b96fc85d8819a1700c729cf794f6 (patch) | |
tree | 69d7fcc22663da7682b4ea66cf8e112751904dab /BUILD | |
parent | 643eea60bb9dcf4ecb33d64666b1bc77cbfd7438 (diff) |
Add bazel build scripts for c-toxcore.
This allows us and users to reproducibly build verified versions of the
library with checksums. It will power the toktok-stack continuous build
with checked-in checksums at specific git revisions.
Diffstat (limited to 'BUILD')
-rw-r--r-- | BUILD | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -0,0 +1,29 @@ | |||
1 | genrule( | ||
2 | name = "copy_headers", | ||
3 | srcs = [ | ||
4 | "//c-toxcore/toxav:public", | ||
5 | "//c-toxcore/toxcore:public", | ||
6 | "//c-toxcore/toxencryptsave:public", | ||
7 | ], | ||
8 | outs = [ | ||
9 | "tox/toxav.h", | ||
10 | "tox/tox.h", | ||
11 | "tox/toxencryptsave.h", | ||
12 | ], | ||
13 | cmd = """ | ||
14 | cp $(location //c-toxcore/toxav:public) $(GENDIR)/c-toxcore/tox/toxav.h | ||
15 | cp $(location //c-toxcore/toxcore:public) $(GENDIR)/c-toxcore/tox/tox.h | ||
16 | cp $(location //c-toxcore/toxencryptsave:public) $(GENDIR)/c-toxcore/tox/toxencryptsave.h | ||
17 | """, | ||
18 | ) | ||
19 | |||
20 | cc_library( | ||
21 | name = "headers", | ||
22 | hdrs = [ | ||
23 | "tox/tox.h", | ||
24 | "tox/toxav.h", | ||
25 | "tox/toxencryptsave.h", | ||
26 | ], | ||
27 | includes = ["."], | ||
28 | visibility = ["//visibility:public"], | ||
29 | ) | ||