Lines Matching refs:ret
95 ret := &configImpl{
100 ret.parallel = runtime.NumCPU() + 2
101 ret.keepGoing = 1
103 ret.totalRAM = detectTotalRAM(ctx)
105 ret.parseArgs(ctx, args)
108 if outDir, ok := ret.environ.Get("OUT_DIR"); ok {
109 ret.environ.Set("OUT_DIR", filepath.Clean(outDir))
112 if baseDir, ok := ret.environ.Get("OUT_DIR_COMMON_BASE"); ok {
119 ret.environ.Set("OUT_DIR", outDir)
122 if distDir, ok := ret.environ.Get("DIST_DIR"); ok {
123 ret.distDir = filepath.Clean(distDir)
125 ret.distDir = filepath.Join(ret.OutDir(), "dist")
128 ret.environ.Unset(
185 ret.environ.Set("PYTHONDONTWRITEBYTECODE", "1")
187 tmpDir := absPath(ctx, ret.TempDir())
188 ret.environ.Set("TMPDIR", tmpDir)
191 symbolizerPath := filepath.Join("prebuilts/clang/host", ret.HostPrebuiltTag(),
193 ret.environ.Set("ASAN_SYMBOLIZER_PATH", absPath(ctx, symbolizerPath))
206 if outDir := ret.OutDir(); strings.ContainsRune(outDir, ' ') {
214 if distDir := ret.DistDir(); strings.ContainsRune(distDir, ' ') {
223 java8Home := filepath.Join("prebuilts/jdk/jdk8", ret.HostPrebuiltTag())
224 java9Home := filepath.Join("prebuilts/jdk/jdk9", ret.HostPrebuiltTag())
225 java11Home := filepath.Join("prebuilts/jdk/jdk11", ret.HostPrebuiltTag())
227 if override, ok := ret.environ.Get("OVERRIDE_ANDROID_JAVA_HOME"); ok {
230 …if toolchain11, ok := ret.environ.Get("EXPERIMENTAL_USE_OPENJDK11_TOOLCHAIN"); ok && toolchain11 !…
237 ret.configureLocale(ctx)
240 if path, ok := ret.environ.Get("PATH"); ok && path != "" {
244 ret.environ.Unset("OVERRIDE_ANDROID_JAVA_HOME")
245 ret.environ.Set("JAVA_HOME", absJavaHome)
246 ret.environ.Set("ANDROID_JAVA_HOME", javaHome)
247 ret.environ.Set("ANDROID_JAVA8_HOME", java8Home)
248 ret.environ.Set("ANDROID_JAVA9_HOME", java9Home)
249 ret.environ.Set("ANDROID_JAVA11_HOME", java11Home)
250 ret.environ.Set("PATH", strings.Join(newPath, string(filepath.ListSeparator)))
252 outDir := ret.OutDir()
254 if buildDateTime, ok := ret.environ.Get("BUILD_DATETIME"); ok && buildDateTime != "" {
255 ret.buildDateTime = buildDateTime
257 ret.buildDateTime = strconv.FormatInt(time.Now().Unix(), 10)
260 ret.environ.Set("BUILD_DATETIME_FILE", buildDateTimeFile)
262 if ret.UseRBE() {
264 ret.environ.Set(k, v)
268 return Config{ret}