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

Commit 02a9b1af authored by Colin Cross's avatar Colin Cross Committed by android-build-merger
Browse files

Merge "Support target.hostdex.required"

am: 226586ca

Change-Id: I044fa3272c81ffd894be6a59ed7b1d60d6743973
parents 3109e125 226586ca
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -47,6 +47,9 @@ func (library *Library) AndroidMkHostDex(w io.Writer, name string, data android.
		if len(data.Target_required) > 0 {
			fmt.Fprintln(w, "LOCAL_TARGET_REQUIRED_MODULES :=", strings.Join(data.Target_required, " "))
		}
		if r := library.deviceProperties.Target.Hostdex.Required; len(r) > 0 {
			fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES +=", strings.Join(r, " "))
		}
		fmt.Fprintln(w, "include $(BUILD_SYSTEM)/soong_java_prebuilt.mk")
	}
}
+7 −0
Original line number Diff line number Diff line
@@ -221,6 +221,13 @@ type CompilerDeviceProperties struct {
	// If true, export a copy of the module as a -hostdex module for host testing.
	Hostdex *bool

	Target struct {
		Hostdex struct {
			// Additional required dependencies to add to -hostdex modules.
			Required []string
		}
	}

	// If set to true, compile dex regardless of installable.  Defaults to false.
	Compile_dex *bool