Remove export_package_resources check when exporting apps to Make
All of the properties for Make were inside an incorrect export_package_resources check, which only worked because the only app so far was framework-res, which had the property set. Test: m checkbuild Change-Id: Idd9be1f497c31b2bd38fee0a83bb4756c6e94305
This commit is contained in:
@@ -152,12 +152,10 @@ func (app *AndroidApp) AndroidMk() android.AndroidMkData {
|
|||||||
Include: "$(BUILD_SYSTEM)/soong_app_prebuilt.mk",
|
Include: "$(BUILD_SYSTEM)/soong_app_prebuilt.mk",
|
||||||
Extra: []android.AndroidMkExtraFunc{
|
Extra: []android.AndroidMkExtraFunc{
|
||||||
func(w io.Writer, outputFile android.Path) {
|
func(w io.Writer, outputFile android.Path) {
|
||||||
if Bool(app.appProperties.Export_package_resources) {
|
fmt.Fprintln(w, "LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE :=", app.exportPackage.String())
|
||||||
if app.dexJarFile != nil {
|
if app.dexJarFile != nil {
|
||||||
fmt.Fprintln(w, "LOCAL_SOONG_DEX_JAR :=", app.dexJarFile.String())
|
fmt.Fprintln(w, "LOCAL_SOONG_DEX_JAR :=", app.dexJarFile.String())
|
||||||
}
|
}
|
||||||
fmt.Fprintln(w, "LOCAL_SOONG_RESOURCE_EXPORT_PACKAGE :=", app.exportPackage.String())
|
|
||||||
|
|
||||||
if app.jacocoReportClassesFile != nil {
|
if app.jacocoReportClassesFile != nil {
|
||||||
fmt.Fprintln(w, "LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR :=", app.jacocoReportClassesFile.String())
|
fmt.Fprintln(w, "LOCAL_SOONG_JACOCO_REPORT_CLASSES_JAR :=", app.jacocoReportClassesFile.String())
|
||||||
}
|
}
|
||||||
@@ -172,10 +170,13 @@ func (app *AndroidApp) AndroidMk() android.AndroidMkData {
|
|||||||
if len(app.rroDirs) > 0 {
|
if len(app.rroDirs) > 0 {
|
||||||
fmt.Fprintln(w, "LOCAL_SOONG_RRO_DIRS :=", strings.Join(app.rroDirs.Strings(), " "))
|
fmt.Fprintln(w, "LOCAL_SOONG_RRO_DIRS :=", strings.Join(app.rroDirs.Strings(), " "))
|
||||||
}
|
}
|
||||||
fmt.Fprintln(w, "LOCAL_EXPORT_PACKAGE_RESOURCES :=",
|
|
||||||
Bool(app.appProperties.Export_package_resources))
|
if Bool(app.appProperties.Export_package_resources) {
|
||||||
fmt.Fprintln(w, "LOCAL_FULL_MANIFEST_FILE :=", app.manifestPath.String())
|
fmt.Fprintln(w, "LOCAL_EXPORT_PACKAGE_RESOURCES := true")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Fprintln(w, "LOCAL_FULL_MANIFEST_FILE :=", app.manifestPath.String())
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user