Merge "Modify Soong to utilize from-text android.jar in build"

This commit is contained in:
Treehugger Robot
2023-03-29 20:31:20 +00:00
committed by Gerrit Code Review
7 changed files with 71 additions and 3 deletions

View File

@@ -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
}