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

Commit fb49bd19 authored by Martin Stjernholm's avatar Martin Stjernholm Committed by Gerrit Code Review
Browse files

Merge "Expose the SkipInstall flag."

parents 50ab3ff0 9e7f45eb
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -454,6 +454,7 @@ type Module interface {
	InstallForceOS() (*OsType, *ArchType)
	HideFromMake()
	IsHideFromMake() bool
	IsSkipInstall() bool
	MakeUninstallable()
	ReplacedByPrebuilt()
	IsReplacedByPrebuilt() bool
@@ -1398,6 +1399,12 @@ func (m *ModuleBase) SkipInstall() {
	m.commonProperties.SkipInstall = true
}

// IsSkipInstall returns true if this variant is marked to not create install
// rules when ctx.Install* are called.
func (m *ModuleBase) IsSkipInstall() bool {
	return m.commonProperties.SkipInstall
}

// Similar to HideFromMake, but if the AndroidMk entry would set
// LOCAL_UNINSTALLABLE_MODULE then this variant may still output that entry
// rather than leaving it out altogether. That happens in cases where it would