/build/soong/ui/build/ |
D | build.go | 28 func SetupOutDir(ctx Context, config Config) { 29 ensureEmptyFileExists(ctx, filepath.Join(config.OutDir(), "Android.mk")) 30 ensureEmptyFileExists(ctx, filepath.Join(config.OutDir(), "CleanSpec.mk")) 31 if !config.SkipKati() { 39 ensureEmptyFileExists(ctx, filepath.Join(config.SoongOutDir(), ".soong.kati_enabled")) 43 ensureEmptyFileExists(ctx, filepath.Join(config.OutDir(), "ninja_build")) 44 ensureEmptyFileExists(ctx, filepath.Join(config.OutDir(), ".out-dir")) 46 if buildDateTimeFile, ok := config.environ.Get("BUILD_DATETIME_FILE"); ok { 47 err := ioutil.WriteFile(buildDateTimeFile, []byte(config.buildDateTime), 0666) // a+rw 69 func createCombinedBuildNinjaFile(ctx Context, config Config) { [all …]
|
D | kati.go | 43 func genKatiSuffix(ctx Context, config Config) { 45 katiSuffix := "-" + config.TargetProduct() 48 if args := config.KatiArgs(); len(args) > 0 { 56 config.SetKatiSuffix(shortSuffix) 61 …if err := ioutil.WriteFile(strings.TrimSuffix(config.KatiBuildNinjaFile(), "ninja")+"suf", []byte(… 65 config.SetKatiSuffix(katiSuffix) 72 func runKati(ctx Context, config Config, extraSuffix string, args []string, envFunc func(*Environme… 73 executable := config.PrebuiltBuildTool("ckati") 79 "--ninja_dir=" + config.OutDir(), 81 "--ninja_suffix=" + config.KatiSuffix() + extraSuffix, [all …]
|
D | soong.go | 96 func environmentArgs(config Config, suffix string) []string { 98 "--available_env", shared.JoinPath(config.SoongOutDir(), availableEnvFile), 99 "--used_env", shared.JoinPath(config.SoongOutDir(), usedEnvFile+suffix), 102 func bootstrapBlueprint(ctx Context, config Config, integratedBp2Build bool) { 108 mainNinjaFile := shared.JoinPath(config.SoongOutDir(), "build.ninja") 109 globFile := shared.JoinPath(config.SoongOutDir(), ".bootstrap/soong-build-globs.ninja") 110 bootstrapGlobFile := shared.JoinPath(config.SoongOutDir(), ".bootstrap/build-globs.ninja") 111 bootstrapDepFile := shared.JoinPath(config.SoongOutDir(), ".bootstrap/build.ninja.d") 113 args.RunGoTests = !config.skipSoongTests 115 args.BuildDir = config.SoongOutDir() [all …]
|
D | rbe.go | 41 func rbeCommand(ctx Context, config Config, rbeCmd string) string { 43 if rbeDir := config.rbeDir(); rbeDir != "" { 74 func getRBEVars(ctx Context, config Config) map[string]string { 76 "RBE_log_path": config.rbeLogPath(), 77 "RBE_log_dir": config.rbeLogDir(), 78 "RBE_re_proxy": config.rbeReproxy(), 79 "RBE_exec_root": config.rbeExecRoot(), 80 "RBE_output_dir": config.rbeStatsOutputDir(), 82 if config.StartRBE() { 83 name, err := sockAddr(absPath(ctx, config.TempDir())) [all …]
|
D | ninja.go | 33 func runNinjaForBuild(ctx Context, config Config) { 40 fifo := filepath.Join(config.OutDir(), ".ninja_fifo") 44 executable := config.PrebuiltBuildTool("ninja") 52 args = append(args, config.NinjaArgs()...) 55 if config.UseRemoteBuild() { 56 parallel = config.RemoteParallel() 58 parallel = config.Parallel() 61 if config.keepGoing != 1 { 62 args = append(args, "-k", strconv.Itoa(config.keepGoing)) 65 args = append(args, "-f", config.CombinedNinjaFile()) [all …]
|
D | bazel.go | 30 func getBazelInfo(ctx Context, config Config, bazelExecutable string, bazelEnv map[string]string, q… 31 infoCmd := Command(ctx, config, "bazel", bazelExecutable) 47 infoCmd.Dir = filepath.Join(config.OutDir(), "..") 55 func runBazel(ctx Context, config Config) { 63 if len(config.ninjaArgs) > 0 { 67 outputGroups = strings.Join(config.ninjaArgs, ",") 77 bazelEnv["COMBINED_NINJA"] = config.CombinedNinjaFile() 78 bazelEnv["KATI_NINJA"] = config.KatiBuildNinjaFile() 79 bazelEnv["PACKAGE_NINJA"] = config.KatiPackageNinjaFile() 80 bazelEnv["SOONG_NINJA"] = config.SoongNinjaFile() [all …]
|
D | dumpvars.go | 41 func DumpMakeVars(ctx Context, config Config, goals, vars []string) (map[string]string, error) { 43 "OUT_DIR": func() string { return config.OutDir() }, 44 "DIST_DIR": func() string { return config.DistDir() }, 45 "TMPDIR": func() string { return absPath(ctx, config.TempDir()) }, 64 SetupLitePath(ctx, config, tmpDir) 66 ret, err = dumpMakeVars(ctx, config, goals, makeVars, false, tmpDir) 83 func dumpMakeVars(ctx Context, config Config, goals, vars []string, write_soong_vars bool, tmpDir s… 87 cmd := Command(ctx, config, "dumpvars", 88 config.PrebuiltBuildTool("ckati"), 183 func runMakeProductConfig(ctx Context, config Config) { [all …]
|
D | goma.go | 37 func ulimitOrFatal(ctx Context, config Config, opt string) int { 39 cmd := Command(ctx, config, commandText, "bash", "-c", commandText) 54 func startGoma(ctx Context, config Config) { 58 if u := ulimitOrFatal(ctx, config, "-u"); u < gomaLeastNProcs { 61 if n := ulimitOrFatal(ctx, config, "-n"); n < gomaLeastNFiles { 66 if gomaDir, ok := config.Environment().Get("GOMA_DIR"); ok { 68 } else if home, ok := config.Environment().Get("HOME"); ok { 74 cmd := Command(ctx, config, "goma_ctl.py ensure_start", gomaCtl, "ensure_start") 75 cmd.Environment.Set("DIST_DIR", config.DistDir())
|
D | finder.go | 37 func NewSourceFinder(ctx Context, config Config) (f *finder.Finder) { 92 dumpDir := config.FileListDir() 114 func FindSources(ctx Context, config Config, f *finder.Finder) { 117 dumpDir := config.FileListDir() 122 err := dumpListToFile(ctx, config, androidMks, filepath.Join(dumpDir, "Android.mk.list")) 129 err = dumpListToFile(ctx, config, cleanSpecs, filepath.Join(dumpDir, "CleanSpec.mk.list")) 138 …err = dumpListToFile(ctx, config, androidProductsMks, filepath.Join(dumpDir, "AndroidProducts.mk.l… 145 err = dumpListToFile(ctx, config, bazelFiles, filepath.Join(dumpDir, "bazel.list")) 152 err = dumpListToFile(ctx, config, owners, filepath.Join(dumpDir, "OWNERS.list")) 159 err = dumpListToFile(ctx, config, testMappings, filepath.Join(dumpDir, "TEST_MAPPING.list")) [all …]
|
D | path.go | 64 func SetupLitePath(ctx Context, config Config, tmpDir string) { 66 if config.pathReplaced { 73 origPath, _ := config.Environment().Get("PATH") 77 tmpDir, _ = config.Environment().Get("TMPDIR") 114 config.Environment().Set("PATH", myPath) 115 config.pathReplaced = true 126 func SetupPath(ctx Context, config Config) { 128 if config.pathReplaced { 135 origPath, _ := config.Environment().Get("PATH") 137 myPath := filepath.Join(config.OutDir(), ".path") [all …]
|
D | cleanbuild.go | 51 func clean(ctx Context, config Config) { 52 removeGlobs(ctx, filepath.Join(config.OutDir(), "*")) 57 func dataClean(ctx Context, config Config) { 58 removeGlobs(ctx, filepath.Join(config.ProductOut(), "data", "*")) 69 func installClean(ctx Context, config Config) { 70 dataClean(ctx, config) 72 if hostCrossOutPath := config.hostCrossOut(); hostCrossOutPath != "" { 83 hostOutPath := config.HostOut() 89 return filepath.Join(config.hostOutRoot(), "common", path) 92 productOutPath := config.ProductOut() [all …]
|
/build/soong/dexpreopt/ |
D | config.go | 198 config := GlobalJSONConfig{} 199 err := json.Unmarshal(data, &config) 201 return config.GlobalConfig, err 205 config.GlobalConfig.BootImageProfiles = constructPaths(ctx, config.BootImageProfiles) 207 return config.GlobalConfig, nil 260 func SetTestGlobalConfig(config android.Config, globalConfig *GlobalConfig) { 261 …config.Once(testGlobalConfigOnceKey, func() interface{} { return globalConfigAndRaw{globalConfig, … 291 config := moduleJSONConfig{} 293 err := json.Unmarshal(data, &config) 295 return config.ModuleConfig, err [all …]
|
/build/make/tools/ |
D | auto_gen_test_config.py | 83 config = template.read() 84 config = config.replace(PLACEHOLDER_LABEL, label) 85 config = config.replace(PLACEHOLDER_MODULE, module) 86 config = config.replace(PLACEHOLDER_PACKAGE, package) 87 config = config.replace(PLACEHOLDER_TEST_TYPE, test_type) 88 config = config.replace(PLACEHOLDER_EXTRA_CONFIGS, extra_configs) 89 config = config.replace(PLACEHOLDER_RUNNER, runner) 91 config_file.write(config)
|
/build/make/tools/product_config/src/com/android/build/config/ |
D | MakeWriter.java | 17 package com.android.build.config; 32 public static void write(PrintStream out, GenericConfig config, int flags) { in write() argument 33 (new MakeWriter(flags)).writeGeneric(out, config); in write() 36 public static void write(PrintStream out, FlatConfig config, int flags) { in write() argument 37 (new MakeWriter(flags)).writeFlat(out, config); in write() 46 private void writeGeneric(PrintStream out, GenericConfig config) { in writeGeneric() argument 47 for (GenericConfig.ConfigFile file: config.getFiles().values()) { in writeGeneric() 51 writeFile(out, config, file); in writeGeneric() 57 writeStrVars(out, OutputChecker.getModifiedVars(config.getInitialVariables(), in writeGeneric() 58 config.getFinalVariables()), config); in writeGeneric() [all …]
|
D | OutputChecker.java | 17 package com.android.build.config; 96 public OutputChecker(FlatConfig config) { in OutputChecker() argument 97 mConfig = config; in OutputChecker() 98 mVariables = getVariables(config); in OutputChecker() 138 static TreeMap<String, Variable> getVariables(FlatConfig config) { in getVariables() argument 142 for (Map.Entry<String, Str> entry: getModifiedVars(config.getInitialVariables(), in getVariables() 143 config.getFinalVariables()).entrySet()) { in getVariables() 145 result.put(name, new Variable(name, config.getVarType(name), entry.getValue())); in getVariables() 149 for (Map.Entry<String, Value> entry: config.getValues().entrySet()) { in getVariables() 154 result.put(name, new Variable(name, config.getVarType(name), null, value)); in getVariables()
|
/build/soong/android/ |
D | fixture.go | 217 func FixtureModifyConfig(mutator func(config Config)) FixturePreparer { 219 mutator(f.config) 224 func FixtureModifyConfigAndContext(mutator func(config Config, ctx *TestContext)) FixturePreparer { 226 mutator(f.config, f.ctx) 305 return FixtureModifyConfig(func(config Config) { 310 config.env[k] = v 319 return FixtureModifyConfig(func(config Config) { 320 oldPath := config.env["PATH"] 321 mutator(config.env) 322 newPath := config.env["PATH"] [all …]
|
D | metrics.go | 33 func ReadSoongMetrics(config Config) SoongMetrics { 34 return config.Get(soongMetricsOnceKey).(SoongMetrics) 58 func collectMetrics(config Config) *soong_metrics_proto.SoongBuildMetrics { 61 soongMetrics := ReadSoongMetrics(config) 74 func WriteMetrics(config Config, metricsFile string) error { 75 metrics := collectMetrics(config)
|
/build/blueprint/microfactory/ |
D | microfactory_test.go | 100 setupDir(t, func(config *Config, dir string, loadPkg loadPkgFunc) { 106 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil { 110 if err := pkg.Link(config, out); err != nil { 125 modify func(config *Config, dir string, loadPkg loadPkgFunc), 130 setupDir(t, func(config *Config, dir string, loadPkg loadPkgFunc) { 136 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil { 140 if err := pkg.Link(config, out); err != nil { 158 modify(config, dir, loadPkg) 162 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil { 175 if err := pkg.Link(config, out); err != nil { [all …]
|
D | microfactory.go | 191 func (p *GoPackage) FindDeps(config *Config, path string) error { 192 defer un(config.trace("findDeps")) 195 err := p.findDeps(config, path, depSet) 262 func (p *GoPackage) findDeps(config *Config, path string, allPackages *linkedDepSet) error { 327 if path, ok, err := config.Path(name); err != nil { 345 if err := pkg.findDeps(config, pkgPath, allPackages); err != nil { 353 if config.Verbose { 365 func (p *GoPackage) Compile(config *Config, outDir string) error { 379 dep.Compile(config, outDir) 390 endTrace := config.trace("check compile %s", p.Name) [all …]
|
/build/blueprint/bootstrap/ |
D | bootstrap.go | 157 _ = pctx.VariableFunc("BinDir", func(config interface{}) (string, error) { 158 return bootstrapBinDir(config), nil 161 _ = pctx.VariableFunc("ToolDir", func(config interface{}) (string, error) { 162 return toolDir(config), nil 181 func bootstrapBinDir(config interface{}) string { 182 return filepath.Join(config.(BootstrapConfig).BuildDir(), bootstrapSubDir, "bin") 185 func toolDir(config interface{}) string { 186 if c, ok := config.(ConfigBlueprintToolLocation); ok { 189 return filepath.Join(config.(BootstrapConfig).BuildDir(), "bin") 269 config *Config member [all …]
|
D | glob.go | 151 config *Config member 156 func globSingletonFactory(config *Config, ctx *blueprint.Context) func() blueprint.Singleton { 159 config: config, 176 globsDir := globsDir(ctx.Config().(BootstrapConfig), s.config.stage) 208 func generateGlobNinjaFile(bootstrapConfig *Config, config interface{}, 214 config: bootstrapConfig, 220 extraDeps, errs := ctx.ResolveDependencies(config) 228 extraDeps, errs = ctx.PrepareBuildActions(config) 247 func globsDir(config BootstrapConfig, stage Stage) string { 248 buildDir := config.BuildDir() [all …]
|
/build/soong/cmd/soong_ui/ |
D | main.go | 59 config func(ctx build.Context, args ...string) build.Config member 65 run func(ctx build.Context, config build.Config, args []string, logsDir string) 73 config: func(ctx build.Context, args ...string) build.Config { 83 config: dumpVarConfig, 91 config: dumpVarConfig, 97 config: buildActionConfig, 213 config := c.config(buildCtx, args...) 215 build.SetupOutDir(buildCtx, config) 217 if config.UseBazel() && config.Dist() { 218 defer populateExternalDistDir(buildCtx, config) [all …]
|
/build/make/tools/product_config/ |
D | Android.bp | 6 name: "product-config-defaults", 11 name: "product-config", 12 defaults: ["product-config-defaults"], 17 name: "product-config-test", 18 defaults: ["product-config-defaults"],
|
/build/soong/cc/ |
D | makevars.go | 37 func getNamedMapForConfig(config android.Config, key android.OnceKey) *sync.Map { 38 return config.Once(key, func() interface{} { 55 allProjects := append([]string{}, config.WarningAllowedProjects...) 56 allProjects = append(allProjects, config.WarningAllowedOldProjects...) 85 ctx.StrictSorted("CLANG_CONFIG_UNKNOWN_CFLAGS", strings.Join(config.ClangUnknownCflags, " ")) 137 ctx.Strict("DEFAULT_C_STD_VERSION", config.CStdVersion) 138 ctx.Strict("DEFAULT_CPP_STD_VERSION", config.CppStdVersion) 139 ctx.Strict("EXPERIMENTAL_C_STD_VERSION", config.ExperimentalCStdVersion) 140 ctx.Strict("EXPERIMENTAL_CPP_STD_VERSION", config.ExperimentalCppStdVersion) 143 ctx.Strict("DEFAULT_LOCAL_TIDY_CHECKS", joinLocalTidyChecks(config.DefaultLocalTidyChecks)) [all …]
|
/build/soong/java/ |
D | legacy_core_platform_api_usage.go | 242 return config.LegacyCorePlatformSystemModules 244 return config.StableCorePlatformSystemModules 250 return config.LegacyCorePlatformBootclasspathLibraries 252 return config.StableCorePlatformBootclasspathLibraries
|