Merge "Skip passing "--product default" to aapt2" into main am: d8bab3758b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2960503 Change-Id: If075e7b1fa924b2c7e72b1deb3a0cc465d1e39c2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
4532d929bf
1 changed files with 3 additions and 2 deletions
|
@ -472,8 +472,9 @@ func (a *AndroidApp) aaptBuildActions(ctx android.ModuleContext) {
|
|||
// Add TARGET_AAPT_CHARACTERISTICS values to AAPT link flags if they exist and --product flags were not provided.
|
||||
autogenerateRRO := proptools.Bool(a.appProperties.Generate_product_characteristics_rro)
|
||||
hasProduct := android.PrefixInList(a.aaptProperties.Aaptflags, "--product")
|
||||
if !autogenerateRRO && !hasProduct && len(ctx.Config().ProductAAPTCharacteristics()) > 0 {
|
||||
aaptLinkFlags = append(aaptLinkFlags, "--product", ctx.Config().ProductAAPTCharacteristics())
|
||||
characteristics := ctx.Config().ProductAAPTCharacteristics()
|
||||
if !autogenerateRRO && !hasProduct && len(characteristics) > 0 && characteristics != "default" {
|
||||
aaptLinkFlags = append(aaptLinkFlags, "--product", characteristics)
|
||||
}
|
||||
|
||||
if !Bool(a.aaptProperties.Aapt_include_all_resources) {
|
||||
|
|
Loading…
Reference in a new issue