Add sdk_version property to imported jars

Test: m checkbuild
Change-Id: I83dd6ad157c7a5918747ce8c9be05c1e1e22d710
This commit is contained in:
Colin Cross 2017-10-20 13:59:18 -07:00
parent ed19fc3e2c
commit 461bd1aae7
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 {