Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f16fe206 authored by Dan Willemsen's avatar Dan Willemsen Committed by android-build-merger
Browse files

Merge "Support host phony modules" am: 3bdefa9f am: 7aafa96c

am: d0057658

Change-Id: Ia0417704e8c48f6413c8a6fa52ee0750c6f24081
parents bf9f355f d0057658
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ type phony struct {
func PhonyFactory() android.Module {
	module := &phony{}

	android.InitAndroidModule(module)
	android.InitAndroidArchModule(module, android.HostAndDeviceSupported, android.MultilibCommon)
	return module
}

@@ -51,6 +51,9 @@ func (p *phony) AndroidMk() android.AndroidMkData {
			fmt.Fprintln(w, "\ninclude $(CLEAR_VARS)")
			fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir)
			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, "include $(BUILD_PHONY_PACKAGE)")
		},