/build/blueprint/parser/ |
D | printer.go | 62 p := newPrinter(file) 64 for _, def := range p.defs { 65 p.printDef(def) 67 p.flush() 68 return p.output, nil 73 p := newPrinter(dummyFile) 74 p.printExpression(expression) 75 p.flush() 76 return p.output, nil 79 func (p *printer) Print() ([]byte, error) { [all …]
|
D | parser.go | 62 func parse(p *parser) (file *File, errs []error) { 66 errs = p.errors 73 defs := p.parseDefinitions() 74 p.accept(scanner.EOF) 75 errs = p.errors 76 comments := p.comments 79 Name: p.scanner.Filename, 87 p := newParser(r, scope) 88 p.eval = true 89 p.scanner.Filename = filename [all …]
|
/build/soong/androidmk/parser/ |
D | parser.go | 42 func (p *parser) Parse() ([]Node, []error) { 52 p.parseLines() 53 p.accept(scanner.EOF) 54 p.nodes = append(p.nodes, p.comments...) 55 sort.Sort(byPosition(p.nodes)) 57 return p.nodes, p.errors 70 p := &parser{} 71 p.lines = []int{0} 72 p.scanner.Init(r) 73 p.scanner.Error = func(sc *scanner.Scanner, msg string) { [all …]
|
/build/soong/etc/ |
D | prebuilt_etc.go | 150 func (p *PrebuiltEtc) inRamdisk() bool { 151 return p.ModuleBase.InRamdisk() || p.ModuleBase.InstallInRamdisk() 154 func (p *PrebuiltEtc) onlyInRamdisk() bool { 155 return p.ModuleBase.InstallInRamdisk() 158 func (p *PrebuiltEtc) InstallInRamdisk() bool { 159 return p.inRamdisk() 162 func (p *PrebuiltEtc) inVendorRamdisk() bool { 163 return p.ModuleBase.InVendorRamdisk() || p.ModuleBase.InstallInVendorRamdisk() 166 func (p *PrebuiltEtc) onlyInVendorRamdisk() bool { 167 return p.ModuleBase.InstallInVendorRamdisk() [all …]
|
/build/soong/cc/ |
D | vndk_prebuilt.go | 80 func (p *vndkPrebuiltLibraryDecorator) Name(name string) string { 81 return name + p.NameSuffix() 84 func (p *vndkPrebuiltLibraryDecorator) NameSuffix() string { 85 suffix := p.version() 86 if p.arch() != "" { 87 suffix += "." + p.arch() 89 if Bool(p.properties.Binder32bit) { 95 func (p *vndkPrebuiltLibraryDecorator) version() string { 96 return String(p.properties.Version) 99 func (p *vndkPrebuiltLibraryDecorator) arch() string { [all …]
|
D | prebuilt.go | 63 func (p *prebuiltLinker) prebuilt() *android.Prebuilt { 64 return &p.Prebuilt 67 func (p *prebuiltLinker) PrebuiltSrcs() []string { 68 return p.properties.Srcs 85 func (p *prebuiltLibraryLinker) linkerInit(ctx BaseModuleContext) {} 87 func (p *prebuiltLibraryLinker) linkerDeps(ctx DepsContext, deps Deps) Deps { 88 return p.libraryDecorator.linkerDeps(ctx, deps) 91 func (p *prebuiltLibraryLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags { 95 func (p *prebuiltLibraryLinker) linkerProps() []interface{} { 96 return p.libraryDecorator.linkerProps() [all …]
|
D | snapshot_prebuilt.go | 428 func (p *baseSnapshotDecorator) Name(name string) string { 429 return name + p.NameSuffix() 432 func (p *baseSnapshotDecorator) NameSuffix() string { 433 return getSnapshotNameSuffix(p.moduleSuffix(), p.version(), p.arch()) 436 func (p *baseSnapshotDecorator) version() string { 437 return p.baseProperties.Version 440 func (p *baseSnapshotDecorator) arch() string { 441 return p.baseProperties.Target_arch 444 func (p *baseSnapshotDecorator) moduleSuffix() string { 445 return p.baseProperties.ModuleSuffix [all …]
|
D | binary_sdk_member.go | 123 func (p *nativeBinaryInfoProperties) PopulateFromVariant(ctx android.SdkMemberContext, variant andr… 126 p.archType = ccModule.Target().Arch.ArchType.String() 127 p.outputFile = getRequiredMemberOutputFile(ctx, ccModule) 130 p.StaticExecutable = binaryLinker.static() 131 p.Nocrt = Bool(binaryLinker.baseLinker.Properties.Nocrt) 137 p.SharedLibs = specifiedDeps.sharedLibs 138 p.SystemSharedLibs = specifiedDeps.systemSharedLibs 142 func (p *nativeBinaryInfoProperties) AddToPropertySet(ctx android.SdkMemberContext, propertySet and… 144 if p.outputFile != nil { 145 propertySet.AddProperty("srcs", []string{nativeBinaryPathFor(*p)}) [all …]
|
/build/soong/android/ |
D | paths.go | 233 func GenPathWithExt(ctx ModuleOutPathContext, subdir string, p Path, ext string) ModuleGenPath { 234 if path, ok := p.(genPathProvider); ok { 237 …f(ctx, "Tried to create generated file from unsupported path: %s(%s)", reflect.TypeOf(p).Name(), p) 243 func ObjPathWithExt(ctx ModuleOutPathContext, subdir string, p Path, ext string) ModuleObjPath { 244 if path, ok := p.(objPathProvider); ok { 247 …orf(ctx, "Tried to create object file from unsupported path: %s (%s)", reflect.TypeOf(p).Name(), p) 254 func ResPathWithName(ctx ModuleOutPathContext, p Path, name string) ModuleResPath { 255 if path, ok := p.(resPathProvider); ok { 258 …Errorf(ctx, "Tried to create res file from unsupported path: %s (%s)", reflect.TypeOf(p).Name(), p) 277 func (p OptionalPath) Valid() bool { [all …]
|
D | prebuilt.go | 84 func (p *Prebuilt) Name(name string) string { 94 func (p *Prebuilt) ForcePrefer() { 95 p.properties.Prefer = proptools.BoolPtr(true) 98 func (p *Prebuilt) Prefer() bool { 99 return proptools.Bool(p.properties.Prefer) 138 func (p *Prebuilt) SingleSourcePath(ctx ModuleContext) Path { 139 return SingleSourcePathFromSupplier(ctx, p.srcsSupplier, p.srcsPropertyName) 142 func (p *Prebuilt) UsePrebuilt() bool { 143 return p.properties.UsePrebuilt 167 p := module.Prebuilt() [all …]
|
D | package_ctx.go | 74 func (p PackageContext) VariableFunc(name string, 77 return p.PackageContext.VariableFunc(name, func(config interface{}) (string, error) { 78 ctx := &configErrorWrapper{p, config.(Config), nil} 89 func (p PackageContext) PoolFunc(name string, 92 return p.PackageContext.PoolFunc(name, func(config interface{}) (blueprint.PoolParams, error) { 93 ctx := &configErrorWrapper{p, config.(Config), nil} 105 func (p PackageContext) RuleFunc(name string, 108 return p.PackageContext.RuleFunc(name, func(config interface{}) (blueprint.RuleParams, error) { 109 ctx := &configErrorWrapper{p, config.(Config), nil} 127 func (p PackageContext) SourcePathVariable(name, path string) blueprint.Variable { [all …]
|
D | makefile_goal.go | 49 func (p *makefileGoal) inputPath() *string { 50 if p.properties.Product_out_path != nil { 51 …return proptools.StringPtr(filepath.Join("$(PRODUCT_OUT)", proptools.String(p.properties.Product_o… 57 func (p *makefileGoal) OutputFiles(tag string) (Paths, error) { 61 return Paths{p.outputFilePath}, nil 65 func (p *makefileGoal) DepsMutator(ctx BottomUpMutatorContext) { 66 if p.inputPath() == nil { 71 func (p *makefileGoal) GenerateAndroidBuildActions(ctx ModuleContext) { 72 filename := filepath.Base(proptools.String(p.inputPath())) 73 p.outputFilePath = PathForModuleOut(ctx, filename).OutputPath [all …]
|
D | packaging.go | 44 func (p *PackagingSpec) FileName() string { 45 if p.relPathInPackage != "" { 46 return filepath.Base(p.relPathInPackage) 53 func (p *PackagingSpec) RelPathInPackage() string { 54 return p.relPathInPackage 109 func InitPackageModule(p PackageModule) { 110 base := p.packagingBase() 111 p.AddProperties(&base.properties) 114 func (p *PackagingBase) packagingBase() *PackagingBase { 115 return p [all …]
|
D | phony.go | 49 func (p *phonySingleton) GenerateBuildActions(ctx SingletonContext) { 50 p.phonyMap = getPhonyMap(ctx.Config()) 51 p.phonyList = SortedStringKeys(p.phonyMap) 52 for _, phony := range p.phonyList { 53 p.phonyMap[phony] = SortedUniquePaths(p.phonyMap[phony]) 57 for _, phony := range p.phonyList { 61 Implicits: p.phonyMap[phony], 67 func (p phonySingleton) MakeVars(ctx MakeVarsContext) { 68 for _, phony := range p.phonyList { 69 ctx.Phony(phony, p.phonyMap[phony]...)
|
/build/soong/python/ |
D | python.go | 205 func (p *Module) getSrcsPathMappings() []pathMapping { 206 return p.srcsPathMappings 210 func (p *Module) getDataPathMappings() []pathMapping { 211 return p.dataPathMappings 215 func (p *Module) getSrcsZip() android.Path { 216 return p.srcsZip 223 func (p *Module) init(additionalProps ...interface{}) android.Module { 224 p.AddProperties(&p.properties, &p.protoProperties) 229 if p.bootstrapper != nil { 230 p.AddProperties(p.bootstrapper.bootstrapperProps()...) [all …]
|
D | androidmk.go | 28 func (p *Module) subAndroidMk(entries *android.AndroidMkEntries, obj interface{}) { 29 if p.subAndroidMkOnce == nil { 30 p.subAndroidMkOnce = make(map[subAndroidMkProvider]bool) 33 if !p.subAndroidMkOnce[androidmk] { 34 p.subAndroidMkOnce[androidmk] = true 35 androidmk.AndroidMk(p, entries) 40 func (p *Module) AndroidMkEntries() []android.AndroidMkEntries { 41 entries := android.AndroidMkEntries{OutputFile: p.installSource} 43 p.subAndroidMk(&entries, p.installer) 48 func (p *binaryDecorator) AndroidMk(base *Module, entries *android.AndroidMkEntries) { [all …]
|
/build/make/tools/ |
D | post_process_props.py | 98 for p in prop_list.get_all_props(): 99 if len(p.value) > PROP_VALUE_MAX and not p.name.startswith("ro."): 102 (p.name, PROP_VALUE_MAX)) 103 sys.stderr.write("%s (%d)\n" % (p.value, len(p.value))) 105 if p.is_optional(): 108 sys.stderr.write(str(p) + "\n") 125 optional_props = [p for p in props if p.is_optional()] 126 overriding_props = [p for p in props if not p.is_optional()] 129 if all(overriding_props[0].value == p.value for p in overriding_props): 130 for p in optional_props: [all …]
|
D | test_post_process_props.py | 26 p = Prop.from_line("# this is comment") 27 self.assertTrue(p.is_comment()) 28 self.assertEqual("", p.name) 29 self.assertEqual("", p.value) 30 self.assertFalse(p.is_optional()) 31 self.assertEqual("# this is comment", str(p)) 34 p = Prop.from_line(line) 35 self.assertFalse(p.is_comment()) 36 self.assertEqual("a", p.name) 37 self.assertEqual("b", p.value) [all …]
|
/build/blueprint/ |
D | package_ctx.go | 86 func (p *packageContext) getScope() *basicScope { 87 return p.scope 112 p := &packageContext{ 119 packageContexts[pkgPath] = p 121 return p 218 func (p *packageContext) Import(pkgPath string) { 225 err := p.scope.AddImport(importPkg.shortName, importPkg.scope) 234 func (p *packageContext) ImportAs(as, pkgPath string) { 246 err = p.scope.AddImport(as, importPkg.scope) 268 func (p *packageContext) StaticVariable(name, value string) Variable { [all …]
|
/build/soong/apex/ |
D | prebuilt.go | 109 func (p *prebuiltCommon) initPrebuiltCommon(module android.Module, properties *PrebuiltCommonProper… 110 p.prebuiltCommonProperties = properties 115 func (p *prebuiltCommon) ApexVariationName() string { 116 return proptools.StringDefault(p.prebuiltCommonProperties.Apex_name, p.ModuleBase.BaseModuleName()) 119 func (p *prebuiltCommon) Prebuilt() *android.Prebuilt { 120 return &p.prebuilt 123 func (p *prebuiltCommon) isForceDisabled() bool { 124 return p.prebuiltCommonProperties.ForceDisable 127 func (p *prebuiltCommon) checkForceDisable(ctx android.ModuleContext) bool { 141 if forceDisable && p.prebuilt.SourceExists() { [all …]
|
/build/make/tools/atree/ |
D | files.cpp | 14 is_comment_line(const char* p) in is_comment_line() argument 16 while (*p && isspace(*p)) { in is_comment_line() 17 p++; in is_comment_line() 19 return *p == '#'; in is_comment_line() 34 is_whitespace_line(const char* p) in is_whitespace_line() argument 36 while (*p) { in is_whitespace_line() 37 if (!isspace(*p)) { in is_whitespace_line() 40 p++; in is_whitespace_line() 46 is_exclude_line(const char* p) { in is_exclude_line() argument 47 while (*p) { in is_exclude_line() [all …]
|
/build/blueprint/microfactory/ |
D | microfactory.go | 191 func (p *GoPackage) FindDeps(config *Config, path string) error { 195 err := p.findDeps(config, path, depSet) 199 p.allDeps = depSet.packageList 262 func (p *GoPackage) findDeps(config *Config, path string, allPackages *linkedDepSet) error { 308 p.files = append(p.files, filename) 351 sort.Strings(p.files) 354 fmt.Fprintf(os.Stderr, "Package %q depends on %v\n", p.Name, deps) 359 p.directDeps = append(p.directDeps, allPackages.getByName(dep)) 365 func (p *GoPackage) Compile(config *Config, outDir string) error { 366 p.mutex.Lock() [all …]
|
/build/soong/phony/ |
D | phony.go | 43 func (p *phony) GenerateAndroidBuildActions(ctx android.ModuleContext) { 44 p.requiredModuleNames = ctx.RequiredModuleNames() 45 p.hostRequiredModuleNames = ctx.HostRequiredModuleNames() 46 p.targetRequiredModuleNames = ctx.TargetRequiredModuleNames() 49 func (p *phony) AndroidMk() android.AndroidMkData { 56 if p.Host() { 59 if len(p.requiredModuleNames) > 0 { 61 strings.Join(p.requiredModuleNames, " ")) 63 if len(p.hostRequiredModuleNames) > 0 { 65 strings.Join(p.hostRequiredModuleNames, " ")) [all …]
|
/build/soong/xml/ |
D | xml.go | 75 func (p *prebuiltEtcXml) timestampFilePath(ctx android.ModuleContext) android.WritablePath { 76 return android.PathForModuleOut(ctx, p.PrebuiltEtc.SourceFilePath(ctx).Base()+"-timestamp") 79 func (p *prebuiltEtcXml) GenerateAndroidBuildActions(ctx android.ModuleContext) { 80 p.PrebuiltEtc.GenerateAndroidBuildActions(ctx) 82 if p.properties.Schema != nil { 83 schema := android.PathForModuleSrc(ctx, proptools.String(p.properties.Schema)) 90 Input: p.PrebuiltEtc.SourceFilePath(ctx), 91 Output: p.timestampFilePath(ctx), 102 Input: p.PrebuiltEtc.SourceFilePath(ctx), 103 Output: p.timestampFilePath(ctx), [all …]
|
/build/blueprint/bootstrap/ |
D | writedocs.go | 123 <p>{{.Text}}</p> 137 <p>{{.Text}}</p> 139 <p>{{.Text}}</p> 166 <p>{{.Text}}</p> 167 {{range .OtherTexts}}<p>{{.}}</p>{{end}} 174 <p>{{.Text}}</p> 175 {{range .OtherTexts}}<p>{{.}}</p>{{end}} 176 <p><i>Type: {{.Type}}</i></p> 177 {{if .Default}}<p><i>Default: {{.Default}}</i></p>{{end}}
|