Reland "Add prebuilt_build_tool modules for genrule use"
So that genrules can use these tools.
Bug: 128690776
Test: build one-true-awk with this bison
Change-Id: I7e16a4c678d4a0cdb6a7fb0de945793dbd3d5169
diff --git a/Android.bp b/Android.bp
index 758bd46..ee4089c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -7,3 +7,42 @@
export_include_dirs: ["common/flex"],
notice: "common/flex/NOTICE",
}
+
+prebuilt_build_tool {
+ name: "bison",
+ deps: ["common/bison/**/*"],
+ target: {
+ darwin: {
+ src: "darwin-x86/bin/bison",
+ deps: ["darwin-x86/lib64/libc++.dylib"],
+ },
+ linux: {
+ src: "linux-x86/bin/bison",
+ deps: ["linux-x86/lib64/libc++.so"],
+ },
+ },
+}
+
+prebuilt_build_tool {
+ name: "flex",
+ target: {
+ darwin: {
+ src: "darwin-x86/bin/flex",
+ },
+ linux: {
+ src: "linux-x86/bin/flex",
+ },
+ },
+}
+
+prebuilt_build_tool {
+ name: "m4",
+ target: {
+ darwin: {
+ src: "darwin-x86/bin/m4",
+ },
+ linux: {
+ src: "linux-x86/bin/m4",
+ },
+ },
+}