Add vendor snapshot modules
This implements four modules (static/shared/header libraries, and binaries) for vendor snapshot. These modules will override source modules if BOARD_VNDK_VERSION != current. Bug: 65377115 Test: 1) VNDK_SNAPSHOT_BUILD_ARTIFACTS=true m dist vndk vendor-snapshot Test: 2) install snapshot under source tree Test: 3) set BOARD_VNDK_VERSION and boot cuttlefish Change-Id: I24ddb4c3aa6abeab60bbfd31bcbd8753e2592dc5
This commit is contained in:
@@ -204,6 +204,7 @@ type Module interface {
|
||||
DepsMutator(BottomUpMutatorContext)
|
||||
|
||||
base() *ModuleBase
|
||||
Disable()
|
||||
Enabled() bool
|
||||
Target() Target
|
||||
InstallInData() bool
|
||||
@@ -839,6 +840,10 @@ func (m *ModuleBase) Enabled() bool {
|
||||
return *m.commonProperties.Enabled
|
||||
}
|
||||
|
||||
func (m *ModuleBase) Disable() {
|
||||
m.commonProperties.Enabled = proptools.BoolPtr(false)
|
||||
}
|
||||
|
||||
func (m *ModuleBase) SkipInstall() {
|
||||
m.commonProperties.SkipInstall = true
|
||||
}
|
||||
|
Reference in New Issue
Block a user