Merge "Support required property"

This commit is contained in:
Colin Cross
2016-08-17 17:06:21 +00:00
committed by Gerrit Code Review
3 changed files with 7 additions and 1 deletions

View File

@@ -200,6 +200,10 @@ func translateAndroidMkModule(ctx blueprint.SingletonContext, w io.Writer, mod b
fmt.Fprintln(w, "LOCAL_MULTILIB :=", amod.commonProperties.Compile_multilib) fmt.Fprintln(w, "LOCAL_MULTILIB :=", amod.commonProperties.Compile_multilib)
fmt.Fprintln(w, "LOCAL_PREBUILT_MODULE_FILE :=", data.OutputFile.String()) fmt.Fprintln(w, "LOCAL_PREBUILT_MODULE_FILE :=", data.OutputFile.String())
if len(amod.commonProperties.Required) > 0 {
fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES := "+strings.Join(amod.commonProperties.Required, " "))
}
archStr := amod.Arch().ArchType.String() archStr := amod.Arch().ArchType.String()
host := false host := false
switch amod.Os().Class { switch amod.Os().Class {

View File

@@ -120,6 +120,9 @@ type commonProperties struct {
// init.rc files to be installed if this module is installed // init.rc files to be installed if this module is installed
Init_rc []string Init_rc []string
// names of other modules to install if this module is installed
Required []string
// Set by TargetMutator // Set by TargetMutator
CompileTarget Target `blueprint:"mutated"` CompileTarget Target `blueprint:"mutated"`

View File

@@ -124,7 +124,6 @@ type BaseProperties struct {
type UnusedProperties struct { type UnusedProperties struct {
Native_coverage *bool Native_coverage *bool
Required []string
Tags []string Tags []string
} }