Add sdk_version property to imported jars

am: 461bd1aae7

Change-Id: I2782bf3ba9d412499124c371fb16e68fce212dbe
This commit is contained in:
Colin Cross
2017-10-21 03:37:43 +00:00
committed by android-build-merger
2 changed files with 3 additions and 0 deletions

View File

@@ -76,6 +76,7 @@ func (prebuilt *Import) AndroidMk() android.AndroidMkData {
func(w io.Writer, outputFile android.Path) {
fmt.Fprintln(w, "LOCAL_UNINSTALLABLE_MODULE := true")
fmt.Fprintln(w, "LOCAL_SOONG_HEADER_JAR :=", prebuilt.combinedClasspathFile.String())
fmt.Fprintln(w, "LOCAL_SDK_VERSION :=", prebuilt.properties.Sdk_version)
},
},
}

View File

@@ -913,6 +913,8 @@ func BinaryHostFactory() android.Module {
type ImportProperties struct {
Jars []string
Sdk_version string
}
type Import struct {