Use soong_java_prebuilt.mk to export soong jars to java
Instead of trying to squeeze soong jars through prebuilt_internal.mk,
make a separate soong_java_prebuilt.mk.
Test: m -j checkbuild
Change-Id: Idadef3c21a6f618d573110f04c80d7db3db92031
diff --git a/android/androidmk.go b/android/androidmk.go
index a403d8c..319f711 100644
--- a/android/androidmk.go
+++ b/android/androidmk.go
@@ -42,6 +42,7 @@
SubName string
OutputFile OptionalPath
Disabled bool
+ Include string
Custom func(w io.Writer, name, prefix, moduleDir string, data AndroidMkData)
@@ -163,6 +164,10 @@
data := provider.AndroidMk()
+ if data.Include == "" {
+ data.Include = "$(BUILD_PREBUILT)"
+ }
+
// Make does not understand LinuxBionic
if amod.Os() == LinuxBionic {
return nil
@@ -268,5 +273,5 @@
extra(w, data.OutputFile.Path())
}
- fmt.Fprintln(w, "include $(BUILD_PREBUILT)")
+ fmt.Fprintln(w, "include "+data.Include)
}