Home
last modified time | relevance | path

Searched refs:config (Results 1 – 25 of 236) sorted by relevance

12345678910

/build/soong/ui/build/
Dbuild.go28 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 …]
Dkati.go40 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 …]
Dsoong.go33 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 …]
Dninja.go30 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 …]
Ddumpvars.go41 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 …]
Drbe.go38 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 …]
Dfinder.go35 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 …]
Dpath.go60 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 …]
Dgoma.go37 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())
Dcleanbuild.go48 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/
Dconfig.go58 *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 …]
Darch_test.go312 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 …]
Dmetrics.go33 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/
Dconfig.go196 config := GlobalJSONConfig{}
197 err := json.Unmarshal(data, &config)
199 return config.GlobalConfig, err
203config.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) {
259config.Once(testGlobalConfigOnceKey, func() interface{} { return globalConfigAndRaw{globalConfig, …
302 config := ModuleJSONConfig{}
304 err := json.Unmarshal(data, &config)
[all …]
/build/make/tools/
Dauto_gen_test_config.py83 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/
Dsdk_test.go52 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 …]
Dandroidmk_test.go26 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/
Dmain.go99 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/
Dbootstrap.go146 _ = 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/
Dmicrofactory_test.go100 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 …]
Dmicrofactory.go191 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/
Dprebuilt_etc_test.go59 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/
Dmain.go51 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/
Dmakevars.go37 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/
Dsh_binary_test.go44 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]

12345678910