Home
last modified time | relevance | path

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

123456

/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/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...)
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() {
Dapi_levels.go57 func getApiLevelsMap(config Config) map[string]int { argument
95 if num, ok := getApiLevelsMap(ctx.Config())[apiLevel]; ok {
105 apiLevelsMap := getApiLevelsMap(ctx.Config())
Dpaths.go35 Config() Config methodSpec
256 if ctx.Config().AllowMissingDependencies() {
397 if exists, _, err := ctx.Config().fs.Exists(p.String()); err != nil {
399 } else if !exists && !ctx.Config().testAllowNonExistentPaths {
417 prefix := filepath.Join(ctx.Config().srcDir, ctx.ModuleDir()) + "/"
453 path := filepath.Join(ctx.Config().srcDir, ctx.ModuleDir(), def)
653 config Config
698 ret := SourcePath{basePath{p, ctx.Config(), ""}}
704 if strings.HasPrefix(ret.String(), ctx.Config().buildDir) {
714 ret := SourcePath{basePath{p, ctx.Config(), ""}}
[all …]
/build/soong/cc/config/
Dglobal.go166 if ctx.Config().IsEnvTrue("AUTO_ZERO_INITIALIZE") {
168 } else if ctx.Config().IsEnvTrue("AUTO_PATTERN_INITIALIZE") {
170 } else if ctx.Config().IsEnvTrue("AUTO_UNINITIALIZE") {
181 if ctx.Config().Fuchsia() {
217 if override := ctx.Config().Getenv("LLVM_PREBUILTS_BASE"); override != "" {
223 if override := ctx.Config().Getenv("LLVM_PREBUILTS_VERSION"); override != "" {
232 if override := ctx.Config().Getenv("LLVM_RELEASE_VERSION"); override != "" {
254 if override := ctx.Config().Getenv("CC_WRAPPER"); override != "" {
267 var HostPrebuiltTag = pctx.VariableConfigMethod("HostPrebuiltTag", android.Config.PrebuiltOS)
281 if override := ctx.Config().Getenv(envVar); override != "" {
Dtidy.go28 if override := ctx.Config().Getenv("DEFAULT_GLOBAL_TIDY_CHECKS"); override != "" {
45 if override := ctx.Config().Getenv("DEFAULT_EXTERNAL_VENDOR_TIDY_CHECKS"); override != "" {
65 if override := ctx.Config().Getenv("DEFAULT_TIDY_HEADER_DIRS"); override != "" {
86 return ctx.Config().Getenv("WITH_TIDY_FLAGS")
/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()]
820 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 {
Drs.go28 if ctx.Config().UnbundledBuild() {
32 return ctx.Config().HostToolPath(ctx, "llvm-rs-cc").String()
/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
331 if ctx.Config().IsPdkBuild() {
346 if (!jarPath.Valid() || !aidlPath.Valid()) && ctx.Config().AllowMissingDependencies() {
[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_bootjars.go180 if ctx.Config().UnbundledBuild() {
184 if len(ctx.Config().Targets[android.Android]) == 0 {
222 …d.dexpreoptConfigForMake = android.PathForOutput(ctx, ctx.Config().DeviceName(), "dexpreopt.config…
231 if len(ctx.Config().SanitizeDevice()) == 1 &&
232 ctx.Config().SanitizeDevice()[0] == "address" &&
274 } else if name == "jacocoagent" && ctx.Config().IsEnvTrue("EMMA_INSTRUMENT_FRAMEWORK") {
313 if ctx.Config().AllowMissingDependencies() {
388 extraFlags := ctx.Config().Getenv("ART_BOOT_IMAGE_EXTRA_ARGS")
421 cmd.FlagWithArg("--base=", ctx.Config().LibartImgDeviceBaseAddress())
506 if global.DisableGenerateProfile || ctx.Config().IsPdkBuild() || ctx.Config().UnbundledBuild() {
[all …]
Ddexpreopt_config.go30 return ctx.Config().OnceStringSlice(systemServerClasspathKey, func() []string {
59 for _, target := range ctx.Config().Targets[android.Android] {
86 return ctx.Config().Once(bootImageConfigKey, func() interface{} {
90 deviceDir := android.PathForOutput(ctx, ctx.Config().DeviceName())
94 if ctx.Config().IsEnvTrue("EMMA_INSTRUMENT_FRAMEWORK") {
196 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.go148 buildDirPrefix := ctx.Config().BuildDir() + "/"
230 return ctx.Config().Once(globalConfigOnceKey, func() interface{} {
231 if data, err := ctx.Config().DexpreoptGlobalConfig(ctx); err != nil {
242 return ctx.Config().Once(testGlobalConfigOnceKey, func() interface{} {
255 func SetTestGlobalConfig(config android.Config, globalConfig *GlobalConfig) { argument
306 func dex2oatModuleName(config android.Config) string { argument
325 dex2oatBin := dex2oatModuleName(ctx.Config())
326 v := ctx.Config().BuildOSTarget.Variations()
331 dex2oatBin := dex2oatModuleName(ctx.Config())
350 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/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/
Drbe.go38 func rbeCommand(ctx Context, config Config, rbeCmd string) string { argument
53 func getRBEVars(ctx Context, config Config) map[string]string { argument
70 func startRBE(ctx Context, config Config) { argument
88 func stopRBE(ctx Context, config Config) { argument
99 func DumpRBEMetrics(ctx Context, config Config, filename string) { argument
Dkati.go40 func genKatiSuffix(ctx Context, config Config) { argument
63 func runKati(ctx Context, config Config, extraSuffix string, args []string, envFunc func(*Environme… argument
127 func runKatiBuild(ctx Context, config Config) { argument
159 func cleanCopyHeaders(ctx Context, config Config) { argument
196 func cleanOldInstalledFiles(ctx Context, config Config) { argument
213 func runKatiPackage(ctx Context, config Config) { argument
252 func runKatiCleanSpec(ctx Context, config Config) { argument
/build/soong/rust/config/
Dglobal.go64 pctx.VariableConfigMethod("HostPrebuiltTag", android.Config.PrebuiltOS)
67 if override := ctx.Config().Getenv("RUST_PREBUILTS_BASE"); override != "" {
74 if override := ctx.Config().Getenv("RUST_PREBUILTS_VERSION"); override != "" {

123456