Merge "Change type of Unbundled_build_apps from bool to []string" am: b3a4ff4fa5 am: afb25de476

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1901371

Change-Id: Ibd046bdad10b6f98ac76e3a41c67c2b63fe5f38a
This commit is contained in:
Cole Faust
2021-11-25 01:42:52 +00:00
committed by Automerger Merge Worker
2 changed files with 28 additions and 27 deletions

View File

@@ -856,7 +856,7 @@ func (c *config) UnbundledBuild() bool {
// Returns true if building apps that aren't bundled with the platform. // Returns true if building apps that aren't bundled with the platform.
// UnbundledBuild() is always true when this is true. // UnbundledBuild() is always true when this is true.
func (c *config) UnbundledBuildApps() bool { func (c *config) UnbundledBuildApps() bool {
return Bool(c.productVariables.Unbundled_build_apps) return len(c.productVariables.Unbundled_build_apps) > 0
} }
// Returns true if building image that aren't bundled with the platform. // Returns true if building image that aren't bundled with the platform.

View File

@@ -15,13 +15,14 @@
package android package android
import ( import (
"android/soong/android/soongconfig"
"android/soong/bazel"
"fmt" "fmt"
"reflect" "reflect"
"runtime" "runtime"
"strings" "strings"
"android/soong/android/soongconfig"
"android/soong/bazel"
"github.com/google/blueprint/proptools" "github.com/google/blueprint/proptools"
) )
@@ -245,30 +246,30 @@ type productVariables struct {
AppsDefaultVersionName *string `json:",omitempty"` AppsDefaultVersionName *string `json:",omitempty"`
Allow_missing_dependencies *bool `json:",omitempty"` Allow_missing_dependencies *bool `json:",omitempty"`
Unbundled_build *bool `json:",omitempty"` Unbundled_build *bool `json:",omitempty"`
Unbundled_build_apps *bool `json:",omitempty"` Unbundled_build_apps []string `json:",omitempty"`
Unbundled_build_image *bool `json:",omitempty"` Unbundled_build_image *bool `json:",omitempty"`
Always_use_prebuilt_sdks *bool `json:",omitempty"` Always_use_prebuilt_sdks *bool `json:",omitempty"`
Skip_boot_jars_check *bool `json:",omitempty"` Skip_boot_jars_check *bool `json:",omitempty"`
Malloc_not_svelte *bool `json:",omitempty"` Malloc_not_svelte *bool `json:",omitempty"`
Malloc_zero_contents *bool `json:",omitempty"` Malloc_zero_contents *bool `json:",omitempty"`
Malloc_pattern_fill_contents *bool `json:",omitempty"` Malloc_pattern_fill_contents *bool `json:",omitempty"`
Safestack *bool `json:",omitempty"` Safestack *bool `json:",omitempty"`
HostStaticBinaries *bool `json:",omitempty"` HostStaticBinaries *bool `json:",omitempty"`
Binder32bit *bool `json:",omitempty"` Binder32bit *bool `json:",omitempty"`
UseGoma *bool `json:",omitempty"` UseGoma *bool `json:",omitempty"`
UseRBE *bool `json:",omitempty"` UseRBE *bool `json:",omitempty"`
UseRBEJAVAC *bool `json:",omitempty"` UseRBEJAVAC *bool `json:",omitempty"`
UseRBER8 *bool `json:",omitempty"` UseRBER8 *bool `json:",omitempty"`
UseRBED8 *bool `json:",omitempty"` UseRBED8 *bool `json:",omitempty"`
Debuggable *bool `json:",omitempty"` Debuggable *bool `json:",omitempty"`
Eng *bool `json:",omitempty"` Eng *bool `json:",omitempty"`
Treble_linker_namespaces *bool `json:",omitempty"` Treble_linker_namespaces *bool `json:",omitempty"`
Enforce_vintf_manifest *bool `json:",omitempty"` Enforce_vintf_manifest *bool `json:",omitempty"`
Uml *bool `json:",omitempty"` Uml *bool `json:",omitempty"`
Arc *bool `json:",omitempty"` Arc *bool `json:",omitempty"`
MinimizeJavaDebugInfo *bool `json:",omitempty"` MinimizeJavaDebugInfo *bool `json:",omitempty"`
Check_elf_files *bool `json:",omitempty"` Check_elf_files *bool `json:",omitempty"`