Merge "Propagate "required" for prebuilt_etc"

This commit is contained in:
Anton Hansson
2019-01-15 09:03:38 +00:00
committed by Gerrit Code Review

View File

@@ -17,6 +17,7 @@ package android
import (
"fmt"
"io"
"strings"
)
// prebuilt_etc is for prebuilts that will be installed to
@@ -148,6 +149,7 @@ func (p *PrebuiltEtc) AndroidMk() AndroidMkData {
fmt.Fprintln(w, "LOCAL_MODULE_PATH :=", "$(OUT_DIR)/"+p.installDirPath.RelPathString())
fmt.Fprintln(w, "LOCAL_INSTALLED_MODULE_STEM :=", p.outputFilePath.Base())
fmt.Fprintln(w, "LOCAL_UNINSTALLABLE_MODULE :=", !p.Installable())
fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES :=", strings.Join(data.Required, " "))
if p.additionalDependencies != nil {
fmt.Fprint(w, "LOCAL_ADDITIONAL_DEPENDENCIES :=")
for _, path := range *p.additionalDependencies {