summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-01-18 15:14:50 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-01-18 16:11:52 +0000
commit18a33169b8d9b96fc85d8819a1700c729cf794f6 (patch)
tree69d7fcc22663da7682b4ea66cf8e112751904dab /BUILD
parent643eea60bb9dcf4ecb33d64666b1bc77cbfd7438 (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--BUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/BUILD b/BUILD
new file mode 100644
index 00000000..58dc7b43
--- /dev/null
+++ b/BUILD
@@ -0,0 +1,29 @@
1genrule(
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
20cc_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)