diff options
| author | Jaewoong Jung <jungjw@google.com> | 2019-04-26 14:31:50 -0700 |
|---|---|---|
| committer | Rashed Abdel-Tawab <rashed@linux.com> | 2019-09-27 20:30:59 -0700 |
| commit | 6872d949f2d00fddf9e12d84e9706eb5bea0c887 (patch) | |
| tree | 2f150cbd3ee4e883ded20a194615617e721a071c /android | |
| parent | 0a7d9b3cfda3747ffb69a305c96d326453019285 (diff) | |
| download | build_soong-6872d949f2d00fddf9e12d84e9706eb5bea0c887.tar.gz build_soong-6872d949f2d00fddf9e12d84e9706eb5bea0c887.tar.bz2 build_soong-6872d949f2d00fddf9e12d84e9706eb5bea0c887.zip | |
Implement DPI variants in android_app_import.
Bug: 128610294
Test: app_test.go
Change-Id: Ie3e558bfdb40de6b0b9df95d3b373d08a4084d7b
Diffstat (limited to 'android')
| -rw-r--r-- | android/prebuilt.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/prebuilt.go b/android/prebuilt.go index 3be10f72..3d9804ce 100644 --- a/android/prebuilt.go +++ b/android/prebuilt.go @@ -50,6 +50,11 @@ func (p *Prebuilt) Name(name string) string { return "prebuilt_" + name } +// The below source-related functions and the srcs, src fields are based on an assumption that +// prebuilt modules have a static source property at the moment. Currently there is only one +// exception, android_app_import, which chooses a source file depending on the product's DPI +// preference configs. We'll want to add native support for dynamic source cases if we end up having +// more modules like this. func (p *Prebuilt) SingleSourcePath(ctx ModuleContext) Path { if p.srcs != nil { if len(*p.srcs) == 0 { |
