From 28569435317d547ed33a8fbfa605ec3f9dbe995b Mon Sep 17 00:00:00 2001 From: iphydf Date: Mon, 17 Jan 2022 01:03:47 +0000 Subject: [PATCH] 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. --- BUILD.bazel | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 750b3bf1..4d39dab3 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -6,7 +6,7 @@ package(features = ["layering_check"]) project() genrule( - name = "copy_headers", + name = "public_headers", srcs = [ "//c-toxcore/toxav:toxav.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/toxencryptsave:toxencryptsave.h) $(GENDIR)/c-toxcore/tox/toxencryptsave.h """, + visibility = ["//visibility:public"], ) cc_library( name = "c-toxcore", - hdrs = [":copy_headers"], + hdrs = [":public_headers"], includes = ["."], visibility = ["//visibility:public"], deps = [