Merge "Modify Soong to utilize from-text android.jar in build"
This commit is contained in:
@@ -100,6 +100,8 @@ type CmdArgs struct {
|
||||
BazelForceEnabledModules string
|
||||
|
||||
UseBazelProxy bool
|
||||
|
||||
BuildFromTextStub bool
|
||||
}
|
||||
|
||||
// Build modes that soong_build can run as.
|
||||
@@ -272,6 +274,10 @@ type config struct {
|
||||
// If true, for any requests to Bazel, communicate with a Bazel proxy using
|
||||
// unix sockets, instead of spawning Bazel as a subprocess.
|
||||
UseBazelProxy bool
|
||||
|
||||
// If buildFromTextStub is true then the Java API stubs are
|
||||
// built from the signature text files, not the source Java files.
|
||||
buildFromTextStub bool
|
||||
}
|
||||
|
||||
type deviceConfig struct {
|
||||
@@ -466,6 +472,8 @@ func NewConfig(cmdArgs CmdArgs, availableEnv map[string]string) (Config, error)
|
||||
|
||||
MultitreeBuild: cmdArgs.MultitreeBuild,
|
||||
UseBazelProxy: cmdArgs.UseBazelProxy,
|
||||
|
||||
buildFromTextStub: cmdArgs.BuildFromTextStub,
|
||||
}
|
||||
|
||||
config.deviceConfig = &deviceConfig{
|
||||
@@ -1882,3 +1890,7 @@ func (c *config) ApiSurfacesDir(s ApiSurface, version string) string {
|
||||
s.String(),
|
||||
version)
|
||||
}
|
||||
|
||||
func (c *config) BuildFromTextStub() bool {
|
||||
return c.buildFromTextStub
|
||||
}
|
||||
|
Reference in New Issue
Block a user