Add module based host-tools snapshot
Add new module: host_snapshot { name: "host-snapshot" deps: [ (list of host tools) ], ... } Package host tools using android.PackagingBase to capture host tools and transitive packaging data. Add JSON meta data to snapshot that allows snapshot to be installed via development/vendor_snapshot/update.py Add support to generate a fake host snapshot of all host modules that is used to detect required modules via development/vendor_snapshot/update.py. Bug: 192556798 Bug: 194799048 Bug: 192896149 Test: m HOST_FAKE_SNAPSHOT_ENABLE=true host-fake-snapshot dist -- check snapshot exists in dist Change-Id: I849c4db801cd858408f6fe6a3ce69262a23a5be9
This commit is contained in:
@@ -26,6 +26,7 @@ import (
|
||||
"android/soong/android"
|
||||
"android/soong/bazel"
|
||||
"android/soong/cc"
|
||||
"android/soong/snapshot"
|
||||
"android/soong/tradefed"
|
||||
)
|
||||
|
||||
@@ -195,6 +196,9 @@ func (s *ShBinary) SubDir() string {
|
||||
return proptools.String(s.properties.Sub_dir)
|
||||
}
|
||||
|
||||
func (s *ShBinary) RelativeInstallPath() string {
|
||||
return s.SubDir()
|
||||
}
|
||||
func (s *ShBinary) Installable() bool {
|
||||
return s.properties.Installable == nil || proptools.Bool(s.properties.Installable)
|
||||
}
|
||||
@@ -566,3 +570,5 @@ func (m *bazelShBinary) Name() string {
|
||||
func (m *bazelShBinary) GenerateAndroidBuildActions(ctx android.ModuleContext) {}
|
||||
|
||||
var Bool = proptools.Bool
|
||||
|
||||
var _ snapshot.RelativeInstallPath = (*ShBinary)(nil)
|
||||
|
Reference in New Issue
Block a user