From 18a33169b8d9b96fc85d8819a1700c729cf794f6 Mon Sep 17 00:00:00 2001 From: iphydf Date: Thu, 18 Jan 2018 15:14:50 +0000 Subject: 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. --- BUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 BUILD (limited to 'BUILD') diff --git a/BUILD b/BUILD new file mode 100644 index 00000000..58dc7b43 --- /dev/null +++ b/BUILD @@ -0,0 +1,29 @@ +genrule( + name = "copy_headers", + srcs = [ + "//c-toxcore/toxav:public", + "//c-toxcore/toxcore:public", + "//c-toxcore/toxencryptsave:public", + ], + outs = [ + "tox/toxav.h", + "tox/tox.h", + "tox/toxencryptsave.h", + ], + cmd = """ + cp $(location //c-toxcore/toxav:public) $(GENDIR)/c-toxcore/tox/toxav.h + cp $(location //c-toxcore/toxcore:public) $(GENDIR)/c-toxcore/tox/tox.h + cp $(location //c-toxcore/toxencryptsave:public) $(GENDIR)/c-toxcore/tox/toxencryptsave.h + """, +) + +cc_library( + name = "headers", + hdrs = [ + "tox/tox.h", + "tox/toxav.h", + "tox/toxencryptsave.h", + ], + includes = ["."], + visibility = ["//visibility:public"], +) -- cgit v1.2.3