kleaf: Add declarations to support building C++ host binaries.
This adds around 100 files to the toolchain.
Test: TH
Bug: 324206397
Change-Id: I00790095c0c33c499e157ac5d8e0dfb3590d47a9
diff --git a/BUILD.bazel b/BUILD.bazel
index 697b5a9..59d8811 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -11,3 +11,39 @@
srcs = glob(["**/**"]),
visibility = ["//prebuilts/clang/host/linux-x86:__pkg__"],
)
+
+# Kleaf stuff
+
+# Value for -B. These are directories!
+filegroup(
+ name = "bin_dirs",
+ srcs = [
+ "lib/gcc/x86_64-linux/4.8.3",
+ "x86_64-linux/lib64",
+ ],
+ visibility = ["@kleaf_clang_toolchain//:__subpackages__"],
+)
+
+# Files for :bin_dirs
+filegroup(
+ name = "bin_files",
+ srcs = glob([
+ "x86_64-linux/lib64/**",
+ "lib/gcc/x86_64-linux/4.8.3/**",
+ ]),
+ visibility = ["@kleaf_clang_toolchain//:__subpackages__"],
+)
+
+# Value for -L. These are directories!
+alias(
+ name = "lib_files",
+ actual = ":bin_files",
+ visibility = ["@kleaf_clang_toolchain//:__subpackages__"],
+)
+
+# Files for :lib_dirs
+alias(
+ name = "lib_dirs",
+ actual = ":bin_dirs",
+ visibility = ["@kleaf_clang_toolchain//:__subpackages__"],
+)