diff options
author | 2019-03-04 22:35:41 -0800 | |
---|---|---|
committer | 2019-03-07 18:36:35 +0000 | |
commit | 27b922f53e938896c0a693a1d9f50e6c9e686ad7 (patch) | |
tree | d3383cbdebb9fb78d8d96fa3a3023764620d483e /android/sh_binary.go | |
parent | 1b48842a4b83ba6234d26ff4c77a0884f5008f62 (diff) |
Annotate paths and deprecate ExtractSource(s)Deps
Add `android:"path"` to all properties that take paths to source
files, and remove the calls to ExtractSource(s)Deps, the
pathsDepsMutator will add the necessary SourceDepTag dependency.
Test: All soong tests
Change-Id: I488ba1a5d680aaa50b04fc38acf693e23c6d4d6d
Diffstat (limited to 'android/sh_binary.go')
-rw-r--r-- | android/sh_binary.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/android/sh_binary.go b/android/sh_binary.go index 391519391..eaedc9fde 100644 --- a/android/sh_binary.go +++ b/android/sh_binary.go @@ -32,7 +32,7 @@ func init() { type shBinaryProperties struct { // Source file of this prebuilt. - Src *string `android:"arch_variant"` + Src *string `android:"path,arch_variant"` // optional subdirectory under which this file is installed into Sub_dir *string `android:"arch_variant"` @@ -61,9 +61,6 @@ func (s *ShBinary) DepsMutator(ctx BottomUpMutatorContext) { if s.properties.Src == nil { ctx.PropertyErrorf("src", "missing prebuilt source file") } - - // To support ":modulename" in src - ExtractSourceDeps(ctx, s.properties.Src) } func (s *ShBinary) SourceFilePath(ctx ModuleContext) Path { |