Merge "Add module based host-tools snapshot"
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)
|
||||
}
|
||||
@@ -548,3 +552,5 @@ func ShBinaryBp2Build(ctx android.TopDownMutatorContext) {
|
||||
}
|
||||
|
||||
var Bool = proptools.Bool
|
||||
|
||||
var _ snapshot.RelativeInstallPath = (*ShBinary)(nil)
|
||||
|
Reference in New Issue
Block a user