/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.SkipMake() { 32 ensureEmptyFileExists(ctx, filepath.Join(config.SoongOutDir(), ".soong.in_make")) 36 ensureEmptyFileExists(ctx, filepath.Join(config.OutDir(), "ninja_build")) 37 ensureEmptyFileExists(ctx, filepath.Join(config.OutDir(), ".out-dir")) 39 if buildDateTimeFile, ok := config.environ.Get("BUILD_DATETIME_FILE"); ok { 40 err := ioutil.WriteFile(buildDateTimeFile, []byte(config.buildDateTime), 0777) 62 func createCombinedBuildNinjaFile(ctx Context, config Config) { [all …]
|
D | kati.go | 40 func genKatiSuffix(ctx Context, config Config) { 41 katiSuffix := "-" + config.TargetProduct() 42 if args := config.KatiArgs(); len(args) > 0 { 50 config.SetKatiSuffix(shortSuffix) 55 …if err := ioutil.WriteFile(strings.TrimSuffix(config.KatiBuildNinjaFile(), "ninja")+"suf", []byte(… 59 config.SetKatiSuffix(katiSuffix) 63 func runKati(ctx Context, config Config, extraSuffix string, args []string, envFunc func(*Environme… 64 executable := config.PrebuiltBuildTool("ckati") 67 "--ninja_dir=" + config.OutDir(), 68 "--ninja_suffix=" + config.KatiSuffix() + extraSuffix, [all …]
|
D | soong.go | 33 func runSoong(ctx Context, config Config) { 41 cmd := Command(ctx, config, "blueprint bootstrap", "build/blueprint/bootstrap.bash", "-t", "-n") 44 cmd.Environment.Set("BUILDDIR", config.SoongOutDir()) 45 cmd.Environment.Set("GOROOT", "./"+filepath.Join("prebuilts/go", config.HostPrebuiltTag())) 46 cmd.Environment.Set("BLUEPRINT_LIST_FILE", filepath.Join(config.FileListDir(), "Android.bp.list")) 47 cmd.Environment.Set("NINJA_BUILDDIR", config.OutDir()) 59 envFile := filepath.Join(config.SoongOutDir(), ".soong.environment") 60 envTool := filepath.Join(config.SoongOutDir(), ".bootstrap/bin/soong_env") 63 cmd := Command(ctx, config, "soong_env", envTool, envFile) 95 minibp := filepath.Join(config.SoongOutDir(), ".minibootstrap/minibp") [all …]
|
D | ninja.go | 30 func runNinja(ctx Context, config Config) { 34 fifo := filepath.Join(config.OutDir(), ".ninja_fifo") 38 executable := config.PrebuiltBuildTool("ninja") 46 args = append(args, config.NinjaArgs()...) 49 if config.UseRemoteBuild() { 50 parallel = config.RemoteParallel() 52 parallel = config.Parallel() 55 if config.keepGoing != 1 { 56 args = append(args, "-k", strconv.Itoa(config.keepGoing)) 59 args = append(args, "-f", config.CombinedNinjaFile()) [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 | rbe.go | 38 func rbeCommand(ctx Context, config Config, rbeCmd string) string { 40 if rbeDir, ok := config.Environment().Get("RBE_DIR"); ok { 42 } else if home, ok := config.Environment().Get("HOME"); ok { 60 func startRBE(ctx Context, config Config) { 64 if u := ulimitOrFatal(ctx, config, "-u"); u < rbeLeastNProcs { 67 if n := ulimitOrFatal(ctx, config, "-n"); n < rbeLeastNFiles { 71 cmd := Command(ctx, config, "startRBE bootstrap", rbeCommand(ctx, config, bootstrapCmd)) 78 func stopRBE(ctx Context, config Config) { 79 …cmd := Command(ctx, config, "stopRBE bootstrap", rbeCommand(ctx, config, bootstrapCmd), "-shutdown… 89 func DumpRBEMetrics(ctx Context, config Config, filename string) { [all …]
|
D | finder.go | 35 func NewSourceFinder(ctx Context, config Config) (f *finder.Finder) { 71 dumpDir := config.FileListDir() 82 func FindSources(ctx Context, config Config, f *finder.Finder) { 85 dumpDir := config.FileListDir() 89 err := dumpListToFile(ctx, config, androidMks, filepath.Join(dumpDir, "Android.mk.list")) 97 …err = dumpListToFile(ctx, config, androidProductsMks, filepath.Join(dumpDir, "AndroidProducts.mk.l… 103 err = dumpListToFile(ctx, config, cleanSpecs, filepath.Join(dumpDir, "CleanSpec.mk.list")) 109 err = dumpListToFile(ctx, config, owners, filepath.Join(dumpDir, "OWNERS.list")) 115 err = dumpListToFile(ctx, config, testMappings, filepath.Join(dumpDir, "TEST_MAPPING.list")) 125 err = dumpListToFile(ctx, config, androidBps, filepath.Join(dumpDir, "Android.bp.list")) [all …]
|
D | path.go | 60 func SetupLitePath(ctx Context, config Config, tmpDir string) { 61 if config.pathReplaced { 68 origPath, _ := config.Environment().Get("PATH") 71 tmpDir, _ = config.Environment().Get("TMPDIR") 102 config.Environment().Set("PATH", myPath) 103 config.pathReplaced = true 106 func SetupPath(ctx Context, config Config) { 107 if config.pathReplaced { 114 origPath, _ := config.Environment().Get("PATH") 115 myPath := filepath.Join(config.OutDir(), ".path") [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 | cleanbuild.go | 48 func clean(ctx Context, config Config, what int) { 49 removeGlobs(ctx, filepath.Join(config.OutDir(), "*")) 53 func dataClean(ctx Context, config Config, what int) { 54 removeGlobs(ctx, filepath.Join(config.ProductOut(), "data", "*")) 64 func installClean(ctx Context, config Config, what int) { 65 dataClean(ctx, config, what) 67 if hostCrossOutPath := config.hostCrossOut(); hostCrossOutPath != "" { 78 hostOutPath := config.HostOut() 83 productOutPath := config.ProductOut() 143 func installCleanIfNecessary(ctx Context, config Config) { [all …]
|
/build/soong/android/ |
D | config.go | 58 *config anonMember 74 type config struct { struct 123 config *config member 131 func loadConfig(config *config) error { argument 132 err := loadFromConfigFile(&config.FileConfigurableOptions, absolutePath(config.ConfigFileName)) 137 return loadFromConfigFile(&config.productVariables, absolutePath(config.ProductVariablesFileName)) 172 func saveToConfigFile(config jsonConfigurable, filename string) error { 173 data, err := json.MarshalIndent(&config, "", " ") 205 config: &config{ 222 config := &config{ [all …]
|
D | arch_test.go | 312 config func(Config) 320 config: nil, 328 config: func(config Config) { 329 config.BuildOSTarget = Target{} 330 config.BuildOSCommonTarget = Target{} 331 config.Targets[Android] = nil 354 config := TestArchConfig(buildDir, nil, bp, nil) 358 ctx.Register(config) 359 if tt.config != nil { 360 tt.config(config) [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/soong/dexpreopt/ |
D | config.go | 196 config := GlobalJSONConfig{} 197 err := json.Unmarshal(data, &config) 199 return config.GlobalConfig, err 203 …config.GlobalConfig.DirtyImageObjects = android.OptionalPathForPath(constructPath(ctx, config.Dirt… 204 config.GlobalConfig.BootImageProfiles = constructPaths(ctx, config.BootImageProfiles) 206 return config.GlobalConfig, nil 258 func SetTestGlobalConfig(config android.Config, globalConfig *GlobalConfig) { 259 …config.Once(testGlobalConfigOnceKey, func() interface{} { return globalConfigAndRaw{globalConfig, … 302 config := ModuleJSONConfig{} 304 err := json.Unmarshal(data, &config) [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/soong/java/ |
D | sdk_test.go | 52 bootclasspath: config.StableCorePlatformBootclasspathLibraries, 53 system: config.StableCorePlatformSystemModules, 54 java8classpath: config.FrameworkLibraries, 55 java9classpath: config.FrameworkLibraries, 61 bootclasspath: config.StableCorePlatformBootclasspathLibraries, 62 system: config.StableCorePlatformSystemModules, 69 bootclasspath: config.StableCorePlatformBootclasspathLibraries, 70 system: config.StableCorePlatformSystemModules, 71 java8classpath: config.FrameworkLibraries, 72 java9classpath: config.FrameworkLibraries, [all …]
|
D | androidmk_test.go | 26 ctx, config := testJava(t, ` 35 entries := android.AndroidMkEntriesForTest(t, config, "", mod)[0] 45 ctx, config := testJava(t, ` 54 entriesList := android.AndroidMkEntriesForTest(t, config, "", mod) 75 ctx, config := testJava(t, ` 85 entriesList := android.AndroidMkEntriesForTest(t, config, "", mod) 106 ctx, config := testJava(t, ` 120 entriesList := android.AndroidMkEntriesForTest(t, config, "", mod) 139 ctx, config := testJava(t, ` 159 …withoutTagEntries := android.AndroidMkEntriesForTest(t, config, "", ctx.ModuleForTests("foo_withou… [all …]
|
/build/soong/cmd/extract_apks/ |
D | main.go | 99 func (m abiTargetingMatcher) matches(config TargetConfig) bool { 103 if _, ok := config.abis[android_bundle_proto.Abi_UNSPECIFIED_CPU_ARCHITECTURE]; ok { 109 if i, ok := config.abis[v.Alias]; ok { 120 if i, ok := config.abis[a.Alias]; ok { 134 func (m apkDescriptionMatcher) matches(config TargetConfig) bool { 135 return m.ApkDescription == nil || (apkTargetingMatcher{m.Targeting}).matches(config) 142 func (m apkTargetingMatcher) matches(config TargetConfig) bool { 144 (abiTargetingMatcher{m.AbiTargeting}.matches(config) && 145 languageTargetingMatcher{m.LanguageTargeting}.matches(config) && 146 screenDensityTargetingMatcher{m.ScreenDensityTargeting}.matches(config) && [all …]
|
/build/blueprint/bootstrap/ |
D | bootstrap.go | 146 _ = pctx.VariableFunc("BinDir", func(config interface{}) (string, error) { 150 _ = pctx.VariableFunc("ToolDir", func(config interface{}) (string, error) { 151 return toolDir(config), nil 174 func toolDir(config interface{}) string { 175 if c, ok := config.(ConfigBlueprintToolLocation); ok { 256 config *Config member 261 func newGoPackageModuleFactory(config *Config) func() (blueprint.Module, []interface{}) { 264 config: config, 312 g.pkgRoot = packageRoot(ctx, g.config) 319 pluginSrc = filepath.Join(moduleGenSrcDir(ctx, g.config), "plugin.go") [all …]
|
/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/soong/etc/ |
D | prebuilt_etc_test.go | 59 config := android.TestArchConfig(buildDir, nil, bp, fs) 69 ctx.Register(config) 71 return ctx, config 77 ctx, config := testPrebuiltEtcContext(t, bp) 80 _, errs = ctx.PrepareBuildActions(config) 83 return ctx, config 89 ctx, config := testPrebuiltEtcContext(t, bp) 96 _, errs = ctx.PrepareBuildActions(config) 178 ctx, config := testPrebuiltEtc(t, ` 201 entries := android.AndroidMkEntriesForTest(t, config, "", mod)[0] [all …]
|
/build/soong/cmd/soong_ui/ |
D | main.go | 51 config func(ctx build.Context, args ...string) build.Config member 57 run func(ctx build.Context, config build.Config, args []string, logsDir string) 67 config: func(ctx build.Context, args ...string) build.Config { 77 config: dumpVarConfig, 85 config: dumpVarConfig, 91 config: buildActionConfig, 163 config := c.config(buildCtx, args...) 165 build.SetupOutDir(buildCtx, config) 167 logsDir := config.OutDir() 168 if config.Dist() { [all …]
|
/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...) 87 ctx.StrictSorted("CLANG_CONFIG_UNKNOWN_CFLAGS", strings.Join(config.ClangUnknownCflags, " ")) 138 ctx.Strict("DEFAULT_C_STD_VERSION", config.CStdVersion) 139 ctx.Strict("DEFAULT_CPP_STD_VERSION", config.CppStdVersion) 140 ctx.Strict("EXPERIMENTAL_C_STD_VERSION", config.ExperimentalCStdVersion) 141 ctx.Strict("EXPERIMENTAL_CPP_STD_VERSION", config.ExperimentalCppStdVersion) 144 ctx.Strict("DEFAULT_LOCAL_TIDY_CHECKS", joinLocalTidyChecks(config.DefaultLocalTidyChecks)) [all …]
|
/build/soong/sh/ |
D | sh_binary_test.go | 44 config := android.TestArchConfig(buildDir, nil, bp, fs) 49 ctx.Register(config) 52 _, errs = ctx.PrepareBuildActions(config) 55 return ctx, config 59 ctx, config := testShBinary(t, ` 69 entries := android.AndroidMkEntriesForTest(t, config, "", mod)[0] 79 ctx, config := testShBinary(t, ` 93 entries := android.AndroidMkEntriesForTest(t, config, "", mod)[0]
|