/build/soong/java/ |
D | sdk_library.go | 73 legacyEnabledStatus func(module *SdkLibrary) bool 80 scopeSpecificProperties func(module *SdkLibrary) *ApiScopeProperties 223 legacyEnabledStatus: func(module *SdkLibrary) bool { 228 scopeSpecificProperties: func(module *SdkLibrary) *ApiScopeProperties { 229 return &module.sdkLibraryProperties.Public 237 scopeSpecificProperties: func(module *SdkLibrary) *ApiScopeProperties { 238 return &module.sdkLibraryProperties.System 249 scopeSpecificProperties: func(module *SdkLibrary) *ApiScopeProperties { 250 return &module.sdkLibraryProperties.Test 264 legacyEnabledStatus: func(module *SdkLibrary) bool { [all …]
|
D | jdeps_test.go | 26 module := LibraryFactory().(*Library) 27 module.properties.Libs = append(module.properties.Libs, expected...) 30 module.IDEInfo(dpInfo) 39 module := LibraryFactory().(*Library) 40 module.properties.Static_libs = append(module.properties.Static_libs, expected...) 43 module.IDEInfo(dpInfo) 52 module := LibraryFactory().(*Library) 53 module.expandIDEInfoCompiledSrcs = append(module.expandIDEInfoCompiledSrcs, expected...) 56 module.IDEInfo(dpInfo) 65 module := LibraryFactory().(*Library) [all …]
|
D | genrule.go | 64 module := genrule.NewGenRule() 66 android.InitAndroidArchModule(module, android.HostAndDeviceSupported, android.MultilibCommon) 67 android.InitDefaultableModule(module) 68 android.InitBazelModule(module) 70 return module 78 module := genrule.NewGenRule() 80 android.InitAndroidArchModule(module, android.HostSupported, android.MultilibCommon) 81 android.InitDefaultableModule(module) 82 android.InitBazelModule(module) 84 return module
|
D | platform_compat_config.go | 126 module := &platformCompatConfig{} 127 module.AddProperties(&module.properties) 128 android.InitSdkAwareModule(module) 129 android.InitAndroidArchModule(module, android.DeviceSupported, android.MultilibCommon) 130 return module 141 func (b *compatConfigMemberType) IsInstance(module android.Module) bool { 142 _, ok := module.(*platformCompatConfig) 161 module := variant.(*platformCompatConfig) 162 b.Metadata = module.metadataFile 191 func (module *prebuiltCompatConfigModule) Prebuilt() *android.Prebuilt { [all …]
|
D | prebuilt_apis.go | 65 func (module *prebuiltApis) GenerateAndroidBuildActions(ctx android.ModuleContext) { 74 func parsePrebuiltPath(ctx android.LoadHookContext, p string) (module string, version string, scope… 88 module = strings.TrimSuffix(path.Base(p), path.Ext(p)) 93 func parseFinalizedPrebuiltPath(ctx android.LoadHookContext, p string) (module string, version int,… 94 module, v, scope := parsePrebuiltPath(ctx, p) 103 func prebuiltApiModuleName(mctx android.LoadHookContext, module, scope, version string) string { argument 104 return fmt.Sprintf("%s_%s_%s_%s", mctx.ModuleName(), scope, version, module) 107 func createImport(mctx android.LoadHookContext, module, scope, version, path, sdkVersion string, co… argument 115 props.Name = proptools.StringPtr(prebuiltApiModuleName(mctx, module, scope, version)) 195 module, version, scope := parsePrebuiltPath(mctx, f) [all …]
|
/build/bazel/scripts/bp2build-progress/ |
D | bp2build-module-dep-infos.py | 52 def _get_java_source_extensions(module): argument 54 if "Module" not in module: 56 if "Java" not in module["Module"]: 58 if "SourceExtensions" not in module["Module"]["Java"]: 60 if module["Module"]["Java"]["SourceExtensions"]: 61 out.update(module["Module"]["Java"]["SourceExtensions"]) 65 def _get_set_properties(module): argument 67 if "Module" not in module: 69 if "Android" not in module["Module"]: 71 if "SetProperties" not in module["Module"]["Android"]: [all …]
|
D | bp2build-progress.py | 80 def generate_dot_file(modules, converted, module): argument 89 make_node = lambda module, color: \ argument 91 "fillcolor={color}]").format(name=module.name, kind=module.kind, color=color) 92 make_edge = lambda module, dep: \ argument 93 '"%s" -> "%s"' % (module.name, dep) 100 for module, deps in modules.items(): 101 if module.name in converted: 104 elif module.name not in converted: 106 dot_entries.append(make_node(module, "yellow")) 108 dot_entries.append(make_node(module, "tomato")) [all …]
|
/build/blueprint/ |
D | module_ctx.go | 381 module *moduleInfo member 389 return d.module 393 return d.module.logicModule 397 return d.module.Name() 401 return d.module.typeName 405 _, ok := d.module.propertyPos[name] 410 return filepath.Dir(d.module.relBlueprintsFile) 414 return d.module.relBlueprintsFile 442 Pos: d.module.pos, 444 module: d.module, [all …]
|
D | context.go | 176 module *moduleInfo member 191 return fmt.Sprintf("%s: %s: %s", e.Pos, e.module, e.Err) 195 return fmt.Sprintf("%s: %s: %s: %s", e.Pos, e.module, e.property, e.Err) 210 func (m *moduleAlias) module() *moduleInfo { return nil } func 215 func (m *moduleInfo) module() *moduleInfo { return m } func 221 module() *moduleInfo methodSpec 230 if m := moduleOrAlias.module(); m != nil { 239 if m := l[len(l)-1-i].module(); m != nil { 256 for _, module := range group.modules { 257 if module.moduleOrAliasVariant().name == name { [all …]
|
/build/soong/dexpreopt/ |
D | dexpreopt.go | 55 global *GlobalConfig, module *ModuleConfig) (rule *android.RuleBuilder, err error) { 72 generateProfile := module.ProfileClassListing.Valid() && !global.DisableGenerateProfile 73 generateBootProfile := module.ProfileBootListing.Valid() && !global.DisableGenerateProfile 77 profile = profileCommand(ctx, globalSoong, global, module, rule) 80 bootProfileCommand(ctx, globalSoong, global, module, rule) 83 if !dexpreoptDisabled(ctx, global, module) { 84 if valid, err := validateClassLoaderContext(module.ClassLoaderContexts); err != nil { 87 fixClassLoaderContext(module.ClassLoaderContexts) 89 appImage := (generateProfile || module.ForceCreateAppImage || global.DefaultAppImages) && 90 !module.NoCreateAppImage [all …]
|
/build/make/tools/ |
D | soong_to_convert.py | 59 def count_deps(depsdb, module, seen): argument 65 seen.append(module) 66 if module in depsdb: 67 for dep in depsdb[module]: 81 for (module, module_type, problem, dependencies, makefiles, installed) in reader: 82 module_types[module] = module_type 83 problems[module] = problem 84 deps[module] = [d for d in dependencies.strip().split(' ') if d != ""] 85 for dep in deps[module]: 88 reverse_deps[dep].append(module) [all …]
|
/build/soong/android/ |
D | soong_config_modules.go | 157 module := &soongConfigModuleTypeImport{} 159 module.AddProperties(&module.properties) 160 AddLoadHook(module, func(ctx LoadHookContext) { 161 importModuleTypes(ctx, module.properties.From, module.properties.Module_types...) 164 initAndroidModuleBase(module) 165 return module 267 module := &soongConfigModuleTypeModule{} 269 module.AddProperties(&module.properties) 271 AddLoadHook(module, func(ctx LoadHookContext) { 273 importModuleTypes(ctx, ctx.BlueprintsFile(), module.properties.Name) [all …]
|
D | license.go | 67 for _, module := range ctx.GetDirectDepsWithTag(licenseKindTag) { 68 if lk, ok := module.(*licenseKindModule); ok { 70 mergeStringProps(&m.base().commonProperties.Effective_license_kinds, ctx.OtherModuleName(module)) 72 …ModuleErrorf("license_kinds property %q is not a license_kind module", ctx.OtherModuleName(module)) 78 module := &licenseModule{} 80 base := module.base() 81 module.AddProperties(&base.nameProperties, &module.properties) 84 setPrimaryVisibilityProperty(module, "visibility", &module.properties.Visibility) 86 InitSdkAwareModule(module) 87 initAndroidModuleBase(module) [all …]
|
D | singleton.go | 26 ModuleName(module blueprint.Module) string 27 ModuleDir(module blueprint.Module) string 28 ModuleSubDir(module blueprint.Module) string 29 ModuleType(module blueprint.Module) string 30 BlueprintFile(module blueprint.Module) string 37 ModuleProvider(module blueprint.Module, provider blueprint.ProviderKey) interface{} 40 ModuleHasProvider(module blueprint.Module, provider blueprint.ProviderKey) bool 42 ModuleErrorf(module blueprint.Module, format string, args ...interface{}) 71 VisitDirectDeps(module Module, visit func(Module)) 72 VisitDirectDepsIf(module Module, pred func(Module) bool, visit func(Module)) [all …]
|
D | package.go | 60 module := &packageModule{} 62 module.AddProperties(&module.properties) 67 AddLoadHook(module, func(ctx LoadHookContext) { 68 module.nameProperties.Name = proptools.StringPtr("//" + ctx.ModuleDir()) 73 setPrimaryVisibilityProperty(module, "default_visibility", &module.properties.Default_visibility) 77 …setPrimaryLicensesProperty(module, "default_applicable_licenses", &module.properties.Default_appli… 79 return module
|
D | license_kind.go | 51 module := &licenseKindModule{} 53 base := module.base() 54 module.AddProperties(&base.nameProperties, &module.properties) 57 setPrimaryVisibilityProperty(module, "visibility", &module.properties.Visibility) 59 initAndroidModuleBase(module) 60 InitDefaultableModule(module) 62 return module
|
D | defaults.go | 91 func InitDefaultableModule(module DefaultableModule) { 92 if module.base().module == nil { 96 module.setProperties(module.GetProperties(), module.base().variableProperties) 98 module.AddProperties(module.defaults()) 184 func InitDefaultsModule(module DefaultsModule) { 187 module.AddProperties( 194 InitBazelModule(module) 195 initAndroidModuleBase(module) 196 initProductVariableModule(module) 197 initArchModule(module) [all …]
|
D | prebuilt.go | 195 func initPrebuiltModuleCommon(module PrebuiltInterface) *Prebuilt { 196 p := module.Prebuilt() 197 module.AddProperties(&p.properties) 206 func InitPrebuiltModuleWithoutSrcs(module PrebuiltInterface) { 207 p := initPrebuiltModuleCommon(module) 223 func InitPrebuiltModuleWithSrcSupplier(module PrebuiltInterface, srcsSupplier PrebuiltSrcsSupplier,… 231 p := initPrebuiltModuleCommon(module) 236 func InitPrebuiltModule(module PrebuiltInterface, srcs *[]string) { 245 InitPrebuiltModuleWithSrcSupplier(module, srcsSupplier, "srcs") 248 func InitSingleSourcePrebuiltModule(module PrebuiltInterface, srcProps interface{}, srcField string… [all …]
|
/build/soong/etc/ |
D | prebuilt_etc.go | 238 func (p *PrebuiltEtc) SetImageVariation(ctx android.BaseModuleContext, variation string, module and… 408 module := &PrebuiltEtc{} 409 InitPrebuiltEtcModule(module, "etc") 411 android.InitAndroidArchModule(module, android.DeviceSupported, android.MultilibFirst) 412 android.InitDefaultableModule(module) 413 android.InitBazelModule(module) 414 return module 422 module := &Defaults{} 424 module.AddProperties(props...) 425 module.AddProperties( [all …]
|
/build/soong/cc/ |
D | library_headers.go | 53 module *Module member 75 h.module.outputFile = android.OptionalPathForPath(outputPath) 95 module, library := NewLibrary(android.HostAndDeviceSupported) 97 module.sdkMemberTypes = []android.SdkMemberType{headersLibrarySdkMemberType} 98 module.bazelable = true 99 module.bazelHandler = &libraryHeaderBazelHander{module: module, library: library} 100 return module.Init() 105 module, library := NewPrebuiltLibrary(android.HostAndDeviceSupported, "") 107 module.bazelable = true 108 module.bazelHandler = &ccLibraryBazelHandler{module: module} [all …]
|
D | ndk_prebuilt.go | 72 module := newBaseModule(android.DeviceSupported, android.MultilibBoth) 73 module.linker = &ndkPrebuiltObjectLinker{ 78 module.Properties.AlwaysSdk = true 79 module.Properties.Sdk_version = StringPtr("current") 80 module.Properties.HideFromMake = true 81 return module.Init() 122 module, library := NewLibrary(android.DeviceSupported) 124 module.compiler = nil 125 module.linker = &ndkPrebuiltStlLinker{ 128 module.installer = nil [all …]
|
D | prebuilt.go | 254 module, library := NewLibrary(hod) 255 module.compiler = nil 256 module.bazelable = true 261 module.linker = prebuilt 262 module.library = prebuilt 264 module.AddProperties(&prebuilt.properties) 267 android.InitPrebuiltModuleWithoutSrcs(module) 273 android.InitPrebuiltModuleWithSrcSupplier(module, srcsSupplier, srcsProperty) 277 android.InitSdkAwareModule(module) 278 return module, library [all …]
|
/build/soong/rust/ |
D | prebuilt.go | 50 module, _ := NewPrebuiltProcMacro(android.HostSupportedNoCross) 51 return module.Init() 60 module, library := NewProcMacro(hod) 64 module.compiler = prebuilt 66 addSrcSupplier(module, prebuilt) 68 return module, prebuilt 80 module, _ := NewPrebuiltLibrary(android.HostAndDeviceSupported) 81 return module.Init() 85 module, _ := NewPrebuiltDylib(android.HostAndDeviceSupported) 86 return module.Init() [all …]
|
D | toolchain_library.go | 50 module, library := NewRustLibrary(android.HostAndDeviceSupported) 53 return initToolchainLibrary(module, library) 58 module, library := NewRustLibrary(android.HostAndDeviceSupported) 61 return initToolchainLibrary(module, library) 66 module, library := NewRustLibrary(android.HostAndDeviceSupported) 69 return initToolchainLibrary(module, library) 72 func initToolchainLibrary(module *Module, library *libraryDecorator) android.Module { 76 module.compiler = toolchainLibrary 77 module.AddProperties(&toolchainLibrary.Properties) 78 android.AddLoadHook(module, rustSetToolchainSource) [all …]
|
/build/bazel/json_module_graph/ |
D | README.md | 1 # JSON module graph queries 3 This directory contains `jq` scripts that query Soong's module graph. 9 m json-module-graph 10 query.sh [-C] <command> <base-of-your-tree>/out/soong/module-graph.json [argument] 14 * `directDeps` prints the names of the direct dependencies of the given module 15 * `distanceFromLeaves` prints the longest distance each module has from a leaf 16 in the module graph within the transitive closure of given module 20 module 21 * `moduleTypeStats`: returns of a summary of the module types present on the 24 * `printModule` prints all variations of a given module [all …]
|