diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-01-28 15:17:34 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-01-28 15:17:34 +0000 |
commit | 6e0ac337c979af420bef197f2a9e2bde5e65d0fc (patch) | |
tree | 77f2a92c7f09d994b207ddf8a10658ca5ccf4df2 /BUILD.bazel | |
parent | 651ef3adb6299e66745cc1d1b57feb29fd17090a (diff) |
Avoid clashes with "build" directories on case-insensitive file systems.
Diffstat (limited to 'BUILD.bazel')
-rw-r--r-- | BUILD.bazel | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/BUILD.bazel b/BUILD.bazel new file mode 100644 index 00000000..09fd269b --- /dev/null +++ b/BUILD.bazel | |||
@@ -0,0 +1,34 @@ | |||
1 | genrule( | ||
2 | name = "copy_headers", | ||
3 | srcs = [ | ||
4 | "//c-toxcore/toxav:public_headers", | ||
5 | "//c-toxcore/toxcore:public_headers", | ||
6 | "//c-toxcore/toxencryptsave:public_headers", | ||
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_headers) $(GENDIR)/c-toxcore/tox/toxav.h | ||
15 | cp $(location //c-toxcore/toxcore:public_headers) $(GENDIR)/c-toxcore/tox/tox.h | ||
16 | cp $(location //c-toxcore/toxencryptsave:public_headers) $(GENDIR)/c-toxcore/tox/toxencryptsave.h | ||
17 | """, | ||
18 | ) | ||
19 | |||
20 | cc_library( | ||
21 | name = "c-toxcore", | ||
22 | hdrs = [ | ||
23 | "tox/tox.h", | ||
24 | "tox/toxav.h", | ||
25 | "tox/toxencryptsave.h", | ||
26 | ], | ||
27 | includes = ["."], | ||
28 | visibility = ["//visibility:public"], | ||
29 | deps = [ | ||
30 | "//c-toxcore/toxav", | ||
31 | "//c-toxcore/toxcore", | ||
32 | "//c-toxcore/toxencryptsave", | ||
33 | ], | ||
34 | ) | ||