mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
chore: Expose public API headers as files in bazel.
They were already exposed as `cc_library`, but we need to make the files as text available so that binding generators can access them.
This commit is contained in:
parent
4ce02c0af9
commit
2856943531
|
@ -6,7 +6,7 @@ package(features = ["layering_check"])
|
||||||
project()
|
project()
|
||||||
|
|
||||||
genrule(
|
genrule(
|
||||||
name = "copy_headers",
|
name = "public_headers",
|
||||||
srcs = [
|
srcs = [
|
||||||
"//c-toxcore/toxav:toxav.h",
|
"//c-toxcore/toxav:toxav.h",
|
||||||
"//c-toxcore/toxcore:tox.h",
|
"//c-toxcore/toxcore:tox.h",
|
||||||
|
@ -22,11 +22,12 @@ genrule(
|
||||||
cp $(location //c-toxcore/toxcore:tox.h) $(GENDIR)/c-toxcore/tox/tox.h
|
cp $(location //c-toxcore/toxcore:tox.h) $(GENDIR)/c-toxcore/tox/tox.h
|
||||||
cp $(location //c-toxcore/toxencryptsave:toxencryptsave.h) $(GENDIR)/c-toxcore/tox/toxencryptsave.h
|
cp $(location //c-toxcore/toxencryptsave:toxencryptsave.h) $(GENDIR)/c-toxcore/tox/toxencryptsave.h
|
||||||
""",
|
""",
|
||||||
|
visibility = ["//visibility:public"],
|
||||||
)
|
)
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "c-toxcore",
|
name = "c-toxcore",
|
||||||
hdrs = [":copy_headers"],
|
hdrs = [":public_headers"],
|
||||||
includes = ["."],
|
includes = ["."],
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user