toxcore/BUILD
iphydf 52778aed93
Make BUILD files more finely-grained.
This allows us to precisely see which libraries depend on which and lets
us split them up more, if necessary.
2018-01-21 19:44:09 +00:00

30 lines
799 B
Python

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 = "headers",
hdrs = [
"tox/tox.h",
"tox/toxav.h",
"tox/toxencryptsave.h",
],
includes = ["."],
visibility = ["//visibility:public"],
)