mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
18a33169b8
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.
30 lines
751 B
Python
30 lines
751 B
Python
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"],
|
|
)
|