From 6e0ac337c979af420bef197f2a9e2bde5e65d0fc Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 28 Jan 2018 15:17:34 +0000 Subject: Avoid clashes with "build" directories on case-insensitive file systems. --- BUILD.bazel | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 BUILD.bazel (limited to 'BUILD.bazel') diff --git a/BUILD.bazel b/BUILD.bazel new file mode 100644 index 00000000..09fd269b --- /dev/null +++ b/BUILD.bazel @@ -0,0 +1,34 @@ +genrule( + name = "copy_headers", + srcs = [ + "//c-toxcore/toxav:public_headers", + "//c-toxcore/toxcore:public_headers", + "//c-toxcore/toxencryptsave:public_headers", + ], + outs = [ + "tox/toxav.h", + "tox/tox.h", + "tox/toxencryptsave.h", + ], + cmd = """ + cp $(location //c-toxcore/toxav:public_headers) $(GENDIR)/c-toxcore/tox/toxav.h + cp $(location //c-toxcore/toxcore:public_headers) $(GENDIR)/c-toxcore/tox/tox.h + cp $(location //c-toxcore/toxencryptsave:public_headers) $(GENDIR)/c-toxcore/tox/toxencryptsave.h + """, +) + +cc_library( + name = "c-toxcore", + hdrs = [ + "tox/tox.h", + "tox/toxav.h", + "tox/toxencryptsave.h", + ], + includes = ["."], + visibility = ["//visibility:public"], + deps = [ + "//c-toxcore/toxav", + "//c-toxcore/toxcore", + "//c-toxcore/toxencryptsave", + ], +) -- cgit v1.2.3