Merge "Add module based host-tools snapshot"

This commit is contained in:
Rob Seymour
2021-09-14 14:47:03 +00:00
committed by Gerrit Code Review
15 changed files with 642 additions and 20 deletions

View File

@@ -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)
}
@@ -548,3 +552,5 @@ func ShBinaryBp2Build(ctx android.TopDownMutatorContext) {
}
var Bool = proptools.Bool
var _ snapshot.RelativeInstallPath = (*ShBinary)(nil)