Add cc_library_headers macro to support cc_library_headers bp2build conversion.
Test: cd bionic/libc; bazel build ...
Change-Id: I85436a6d8510e4cb9d82f355db3c5827a3c99bea
diff --git a/rules/cc_library_headers.bzl b/rules/cc_library_headers.bzl
new file mode 100644
index 0000000..e0d91a5
--- /dev/null
+++ b/rules/cc_library_headers.bzl
@@ -0,0 +1,19 @@
+def cc_library_headers(
+ name,
+ deps = [],
+ hdrs = [],
+ includes = [],
+ native_bridge_supported = False, # TODO: not supported yet.
+ **kwargs):
+ "Bazel macro to correspond with the cc_library_headers Soong module."
+
+ # Silently drop these attributes for now:
+ # - native_bridge_supported
+ native.cc_library(
+ name = name,
+ deps = deps,
+ hdrs = hdrs,
+ includes = includes,
+ **kwargs
+ )
+