Merge "Change type of Unbundled_build_apps from bool to []string"
This commit is contained in:
@@ -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.
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -247,7 +248,7 @@ type productVariables struct {
|
|||||||
|
|
||||||
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"`
|
||||||
|
Reference in New Issue
Block a user