Merge "Support host phony modules" am: 3bdefa9f06
am: 7aafa96cda
Change-Id: I2a7b8e25c83673a82246e333109b2ce827f2c317
This commit is contained in:
commit
d005765856
1 changed files with 4 additions and 1 deletions
|
@ -34,7 +34,7 @@ type phony struct {
|
||||||
func PhonyFactory() android.Module {
|
func PhonyFactory() android.Module {
|
||||||
module := &phony{}
|
module := &phony{}
|
||||||
|
|
||||||
android.InitAndroidModule(module)
|
android.InitAndroidArchModule(module, android.HostAndDeviceSupported, android.MultilibCommon)
|
||||||
return module
|
return module
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,6 +51,9 @@ func (p *phony) AndroidMk() android.AndroidMkData {
|
||||||
fmt.Fprintln(w, "\ninclude $(CLEAR_VARS)")
|
fmt.Fprintln(w, "\ninclude $(CLEAR_VARS)")
|
||||||
fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir)
|
fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir)
|
||||||
fmt.Fprintln(w, "LOCAL_MODULE :=", name)
|
fmt.Fprintln(w, "LOCAL_MODULE :=", name)
|
||||||
|
if p.Host() {
|
||||||
|
fmt.Fprintln(w, "LOCAL_IS_HOST_MODULE := true")
|
||||||
|
}
|
||||||
fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES := "+strings.Join(p.requiredModuleNames, " "))
|
fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES := "+strings.Join(p.requiredModuleNames, " "))
|
||||||
fmt.Fprintln(w, "include $(BUILD_PHONY_PACKAGE)")
|
fmt.Fprintln(w, "include $(BUILD_PHONY_PACKAGE)")
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue