diff options
Diffstat (limited to 'android/config.go')
-rw-r--r-- | android/config.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/android/config.go b/android/config.go index 2d32686ec..33deba500 100644 --- a/android/config.go +++ b/android/config.go @@ -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 +} |