2018-01-18 23:14:50 +08:00
|
|
|
genrule(
|
|
|
|
name = "copy_headers",
|
|
|
|
srcs = [
|
2018-01-22 00:58:32 +08:00
|
|
|
"//c-toxcore/toxav:public_headers",
|
|
|
|
"//c-toxcore/toxcore:public_headers",
|
|
|
|
"//c-toxcore/toxencryptsave:public_headers",
|
2018-01-18 23:14:50 +08:00
|
|
|
],
|
|
|
|
outs = [
|
|
|
|
"tox/toxav.h",
|
|
|
|
"tox/tox.h",
|
|
|
|
"tox/toxencryptsave.h",
|
|
|
|
],
|
|
|
|
cmd = """
|
2018-01-22 00:58:32 +08:00
|
|
|
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
|
2018-01-18 23:14:50 +08:00
|
|
|
""",
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "headers",
|
|
|
|
hdrs = [
|
|
|
|
"tox/tox.h",
|
|
|
|
"tox/toxav.h",
|
|
|
|
"tox/toxencryptsave.h",
|
|
|
|
],
|
|
|
|
includes = ["."],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|