Home
last modified time | relevance | path

Searched refs:Config (Results 1 – 25 of 155) sorted by relevance

1234567

/build/soong/java/config/
Dconfig.go90 pctx.VariableConfigMethod("hostPrebuiltTag", android.Config.PrebuiltOS)
94 return ctx.Config().Getenv("ANDROID_JAVA_HOME")
97 if override := ctx.Config().Getenv("OVERRIDE_JLINK_VERSION_NUMBER"); override != "" {
131 if ctx.Config().UnbundledBuild() {
134 return ctx.Config().HostJavaToolPath(ctx, turbine).String()
181 if ctx.Config().UnbundledBuild() || ctx.Config().IsPdkBuild() {
184 return ctx.Config().HostToolPath(ctx, tool).String()
191 if ctx.Config().UnbundledBuild() || ctx.Config().IsPdkBuild() {
194 return ctx.Config().HostJavaToolPath(ctx, tool+".jar").String()
201 if ctx.Config().UnbundledBuild() || ctx.Config().IsPdkBuild() {
[all …]
/build/soong/cc/config/
Dglobal.go168 if ctx.Config().IsEnvTrue("AUTO_ZERO_INITIALIZE") {
170 } else if ctx.Config().IsEnvTrue("AUTO_PATTERN_INITIALIZE") {
172 } else if ctx.Config().IsEnvTrue("AUTO_UNINITIALIZE") {
183 if ctx.Config().Fuchsia() {
219 if override := ctx.Config().Getenv("LLVM_PREBUILTS_BASE"); override != "" {
225 if override := ctx.Config().Getenv("LLVM_PREBUILTS_VERSION"); override != "" {
234 if override := ctx.Config().Getenv("LLVM_RELEASE_VERSION"); override != "" {
256 if override := ctx.Config().Getenv("CC_WRAPPER"); override != "" {
269 var HostPrebuiltTag = pctx.VariableConfigMethod("HostPrebuiltTag", android.Config.PrebuiltOS)
273 if override := ctx.Config().Getenv(envVar); override != "" {
Dtidy.go28 if override := ctx.Config().Getenv("DEFAULT_GLOBAL_TIDY_CHECKS"); override != "" {
47 if override := ctx.Config().Getenv("DEFAULT_EXTERNAL_VENDOR_TIDY_CHECKS"); override != "" {
67 if override := ctx.Config().Getenv("DEFAULT_TIDY_HEADER_DIRS"); override != "" {
88 return ctx.Config().Getenv("WITH_TIDY_FLAGS")
/build/soong/android/
Dpackage_ctx.go42 config Config
52 func (e *configErrorWrapper) Config() Config { func
76 ctx := &configErrorWrapper{p, config.(Config), nil}
91 ctx := &configErrorWrapper{p, config.(Config), nil}
107 ctx := &configErrorWrapper{p, config.(Config), nil}
112 if ctx.Config().UseRemoteBuild() && params.Pool == nil {
164 return ctx.Config().GetenvWithDefault(env, p.String())
174 return ctx.Config().HostToolPath(ctx, path).String()
184 return ctx.Config().HostJNIToolPath(ctx, path).String()
194 return ctx.Config().HostJavaToolPath(ctx, path).String()
[all …]
Dsingleton.go23 Config() Config methodSpec
95 if sctx.Config().captureBuild {
124 func (s *singletonContextAdaptor) Config() Config { func
125 return s.SingletonContext.Config().(Config)
129 return DeviceConfig{s.Config().deviceConfig}
137 if s.Config().UseRemoteBuild() {
150 if s.Config().captureBuild {
157 if s.Config().captureBuild {
166 addPhony(s.Config(), name, deps...)
Dwritedocs.go37 primaryBuilder, err := filepath.Rel(ctx.Config().BuildDir(), os.Args[0])
40 os.Args[0], ctx.Config().BuildDir())
48 deps = append(deps, pathForBuildToolDep(ctx, ctx.Config().moduleListFile))
49 deps = append(deps, pathForBuildToolDep(ctx, ctx.Config().ProductVariablesFileName))
Dphony.go29 func getPhonyMap(config Config) phonyMap { argument
35 func addPhony(config Config, name string, deps ...Path) { argument
50 p.phonyMap = getPhonyMap(ctx.Config())
56 if !ctx.Config().EmbeddedInMake() {
Dmetrics.go33 func ReadSoongMetrics(config Config) SoongMetrics { argument
53 ctx.Config().Once(soongMetricsOnceKey, func() interface{} {
58 func collectMetrics(config Config) *soong_metrics_proto.SoongBuildMetrics { argument
74 func WriteMetrics(config Config, metricsFile string) error { argument
Dpaths.go35 Config() Config methodSpec
48 config Config
52 func (ctx NullPathContext) Config() Config { return ctx.config } func
274 if ctx.Config().AllowMissingDependencies() {
418 if exists, _, err := ctx.Config().fs.Exists(p.String()); err != nil {
420 } else if !exists && !ctx.Config().testAllowNonExistentPaths {
437 prefix := filepath.Join(ctx.Config().srcDir, ctx.ModuleDir()) + "/"
473 path := filepath.Join(ctx.Config().srcDir, ctx.ModuleDir(), def)
696 config Config
741 ret := SourcePath{basePath{p, ctx.Config(), ""}}
[all …]
/build/soong/tradefed/
Dautogen.go61 type Config interface { interface
62 Config() string methodSpec
71 var _ Config = Option{}
73 func (o Option) Config() string { func
88 var _ Config = Object{}
90 func (ob Object) Config() string { func
93 optionStrings = append(optionStrings, option.Config())
110 …mplate(ctx android.ModuleContext, output android.WritablePath, template string, configs []Config) { argument
114 …droid.ModuleContext, name string, output android.WritablePath, template string, configs []Config) { argument
118 …xt, name string, output android.WritablePath, template string, configs []Config, outputFileName st… argument
[all …]
/build/soong/cc/
Dvndk.go235 func vndkCoreLibraries(config android.Config) map[string]string { argument
241 func vndkSpLibraries(config android.Config) map[string]string { argument
247 func isLlndkLibrary(baseModuleName string, config android.Config) bool { argument
252 func llndkLibraries(config android.Config) map[string]string { argument
258 func isVndkPrivateLibrary(baseModuleName string, config android.Config) bool { argument
263 func vndkPrivateLibraries(config android.Config) map[string]string { argument
269 func vndkUsingCoreVariantLibraries(config android.Config) map[string]string { argument
275 func vndkMustUseVendorVariantList(cfg android.Config) []string { argument
283 func setVndkMustUseVendorVariantListForTest(config android.Config, mustUseVendorVariantList []strin… argument
297 llndkLibraries(mctx.Config())[name] = filename
[all …]
Dvendor_snapshot.go47 func vendorSuffixModules(config android.Config) map[string]bool { argument
53 func vendorSnapshotHeaderLibs(config android.Config) *snapshotMap { argument
59 func vendorSnapshotSharedLibs(config android.Config) *snapshotMap { argument
65 func vendorSnapshotStaticLibs(config android.Config) *snapshotMap { argument
71 func vendorSnapshotBinaries(config android.Config) *snapshotMap { argument
77 func vendorSnapshotObjects(config android.Config) *snapshotMap { argument
162 p.androidMkVendorSuffix = vendorSuffixModules(ctx.Config())[m.BaseModuleName()]
338 p.androidMkVendorSuffix = vendorSuffixModules(ctx.Config())[m.BaseModuleName()]
437 p.androidMkVendorSuffix = vendorSuffixModules(ctx.Config())[m.BaseModuleName()]
827 zipPath := android.PathForOutput(ctx, snapshotDir, "vendor-"+ctx.Config().DeviceName()+".zip")
[all …]
Dtidy.go64 if tidy.Properties.Tidy == nil && !ctx.Config().ClangTidy() {
71 withTidyFlags := ctx.Config().Getenv("WITH_TIDY_FLAGS")
84 if !ctx.Config().ClangTidy() {
106 if checks := ctx.Config().TidyChecks(); len(checks) > 0 {
/build/soong/java/
Dsdk.go55 if ctx.Config().UnbundledBuild() &&
56 !ctx.Config().UnbundledBuildUsePrebuiltSdks() &&
57 ctx.Config().IsEnvTrue("UNBUNDLED_BUILD_TARGET_SDK_WITH_API_FINGERPRINT") {
215 return ctx.Config().UnbundledBuildUsePrebuiltSdks()
236 if ctx.Config().IsPdkBuild() {
242 return sdkVersion(ctx.Config().DefaultAppTargetSdkInt()), nil
250 if err == nil && int(ver) == ctx.Config().DefaultAppTargetSdkInt() {
251 return ctx.Config().DefaultAppTargetSdk(), nil
332 …if ctx.DeviceSpecific() || ctx.SocSpecific() || (ctx.ProductSpecific() && ctx.Config().EnforceProd…
353 if ctx.Config().IsPdkBuild() {
[all …]
Dandroid_resources.go72 overlayData := ctx.Config().Get(overlayDataKey).([]overlayGlobResult)
75 rroEnabled := ctx.Config().EnforceRROForModule(ctx.ModuleName())
85 if rroEnabled && !ctx.Config().EnforceRROExcludedOverlay(overlayModuleDir.String()) {
133 appendOverlayData(ctx.Config().DeviceResourceOverlays(), device)
134 appendOverlayData(ctx.Config().ProductResourceOverlays(), product)
135 ctx.Config().Once(overlayDataKey, func() interface{} {
Dhiddenapi_singleton.go42 return ctx.Config().Once(hiddenAPISingletonPathsKey, func() interface{} {
63 if ctx.Config().IsEnvTrue("UNSAFE_DISABLE_HIDDENAPI_FLAGS") {
70 if ctx.Config().FrameworksBaseDirExists(ctx) {
81 if ctx.Config().IsEnvTrue("UNSAFE_DISABLE_HIDDENAPI_FLAGS") {
103 …if inList("android.test.base", ctx.Config().BootJars()) && !ctx.Config().UnbundledBuildUsePrebuilt…
123 publicStubModules = append(publicStubModules, ctx.Config().ProductHiddenAPIStubs()...)
124 systemStubModules = append(systemStubModules, ctx.Config().ProductHiddenAPIStubsSystem()...)
125 testStubModules = append(testStubModules, ctx.Config().ProductHiddenAPIStubsTest()...)
126 if ctx.Config().IsEnvTrue("EMMA_INSTRUMENT") {
177 if ctx.Config().AllowMissingDependencies() {
[all …]
Ddexpreopt_config.go30 return ctx.Config().OnceStringSlice(systemServerClasspathKey, func() []string {
59 for _, target := range ctx.Config().Targets[android.Android] {
65 for _, target := range ctx.Config().Targets[android.BuildOs] {
99 …return filepath.Join(ctx.Config().Getenv("OUT_DIR"), "host", ctx.Config().PrebuiltOS(), subdir, na…
113 return ctx.Config().Once(bootImageConfigKey, func() interface{} {
117 deviceDir := android.PathForOutput(ctx, ctx.Config().DeviceName())
121 if ctx.Config().IsEnvTrue("EMMA_INSTRUMENT_FRAMEWORK") {
212 return ctx.Config().OnceStringSlice(defaultBootclasspathKey, func() []string {
/build/blueprint/bootstrap/minibp/
Dmain.go32 type Config struct { struct
36 func (c Config) GeneratingPrimaryBuilder() bool { argument
40 func (c Config) RemoveAbandonedFilesUnder() (under, exempt []string) { argument
56 config := Config{
/build/soong/dexpreopt/
Dconfig.go159 buildDirPrefix := ctx.Config().BuildDir() + "/"
233 return ctx.Config().Once(globalConfigOnceKey, func() interface{} {
234 if data, err := ctx.Config().DexpreoptGlobalConfig(ctx); err != nil {
245 return ctx.Config().Once(testGlobalConfigOnceKey, func() interface{} {
258 func SetTestGlobalConfig(config android.Config, globalConfig *GlobalConfig) { argument
328 func dex2oatModuleName(config android.Config) string { argument
347 dex2oatBin := dex2oatModuleName(ctx.Config())
348 v := ctx.Config().BuildOSTarget.Variations()
353 dex2oatBin := dex2oatModuleName(ctx.Config())
372 if ctx.Config().TestProductVariables != nil {
[all …]
/build/blueprint/microfactory/
Dmicrofactory_test.go31 pkgMap := pkgPathMappingVar{&Config{}}
76 pkgMap := pkgPathMappingVar{&Config{}}
100 setupDir(t, func(config *Config, dir string, loadPkg loadPkgFunc) {
125 modify func(config *Config, dir string, loadPkg loadPkgFunc), argument
130 setupDir(t, func(config *Config, dir string, loadPkg loadPkgFunc) {
211 …testBuildAgain(t, false, false, func(config *Config, dir string, loadPkg loadPkgFunc) {}, func(pkg…
218 testBuildAgain(t, false, false, func(config *Config, dir string, loadPkg loadPkgFunc) {
234 testBuildAgain(t, true, true, func(config *Config, dir string, loadPkg loadPkgFunc) {
251 testBuildAgain(t, true, true, func(config *Config, dir string, loadPkg loadPkgFunc) {
268 testBuildAgain(t, false, true, func(config *Config, dir string, loadPkg loadPkgFunc) {
[all …]
/build/soong/rust/config/
Dlints.go77 if override := ctx.Config().Getenv("RUST_DEFAULT_LINTS"); override != "" {
83 if override := ctx.Config().Getenv("CLIPPY_DEFAULT_LINTS"); override != "" {
91 if override := ctx.Config().Getenv("RUST_VENDOR_LINTS"); override != "" {
97 if override := ctx.Config().Getenv("CLIPPY_VENDOR_LINTS"); override != "" {
Dglobal.go65 pctx.VariableConfigMethod("HostPrebuiltTag", android.Config.PrebuiltOS)
68 if override := ctx.Config().Getenv("RUST_PREBUILTS_BASE"); override != "" {
75 if override := ctx.Config().Getenv("RUST_PREBUILTS_VERSION"); override != "" {
/build/soong/apex/
Dvndk.go69 func vndkApexList(config android.Config) map[string]string { argument
88 vndkApexList := vndkApexList(mctx.Config())
103 vndkApexList := vndkApexList(mctx.Config())
135 if ctx.Config().Android64() {
139 if !ctx.Config().Android64() || ctx.DeviceConfig().DeviceSecondaryArch() != "" {
159 if ctx.Config().Android64() {
/build/soong/ui/build/
Dkati.go40 func genKatiSuffix(ctx Context, config Config) { argument
63 func runKati(ctx Context, config Config, extraSuffix string, args []string, envFunc func(*Environme… argument
131 func runKatiBuild(ctx Context, config Config) { argument
165 func cleanCopyHeaders(ctx Context, config Config) { argument
202 func cleanOldInstalledFiles(ctx Context, config Config) { argument
219 func runKatiPackage(ctx Context, config Config) { argument
260 func runKatiCleanSpec(ctx Context, config Config) { argument
Drbe.go38 func rbeCommand(ctx Context, config Config, rbeCmd string) string { argument
60 func startRBE(ctx Context, config Config) { argument
78 func stopRBE(ctx Context, config Config) { argument
89 func DumpRBEMetrics(ctx Context, config Config, filename string) { argument

1234567