/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 | 64 func parse(p *parser) (file *File, errs []error) { 68 errs = p.errors 75 p.next() 76 defs := p.parseDefinitions() 77 p.accept(scanner.EOF) 78 errs = p.errors 79 comments := p.comments 82 Name: p.scanner.Filename, 90 p := newParser(r, scope) 91 p.eval = true [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/python/ |
D | test.go | 40 p := &PythonTestModule{PythonBinaryModule: *NewBinary(hod)} 41 …p.sourceProperties = android.SourceProperties{Test_only: proptools.BoolPtr(true), Top_level_test_t… 42 return p 102 func (p *PythonTestModule) init() android.Module { 103 p.AddProperties(&p.properties, &p.protoProperties) 104 p.AddProperties(&p.binaryProperties) 105 p.AddProperties(&p.testProperties) 106 android.InitAndroidArchModule(p, p.hod, p.multilib) 107 android.InitDefaultableModule(p) 108 if p.isTestHost() && p.testProperties.Test_options.Unit_test == nil { [all …]
|
D | binary.go | 93 func (p *PythonBinaryModule) init() android.Module { 94 p.AddProperties(&p.properties, &p.protoProperties) 95 p.AddProperties(&p.binaryProperties) 96 android.InitAndroidArchModule(p, p.hod, p.multilib) 97 android.InitDefaultableModule(p) 98 return p 101 func (p *PythonBinaryModule) GenerateAndroidBuildActions(ctx android.ModuleContext) { 102 p.PythonLibraryModule.GenerateAndroidBuildActions(ctx) 103 p.buildBinary(ctx) 104 p.installedDest = ctx.InstallFile(installDir(ctx, "bin", "", ""), [all …]
|
D | python.go | 177 func (p *PythonLibraryModule) getSrcsPathMappings() []pathMapping { 178 return p.srcsPathMappings 182 func (p *PythonLibraryModule) getDataPathMappings() []pathMapping { 183 return p.dataPathMappings 187 func (p *PythonLibraryModule) getSrcsZip() android.Path { 188 return p.srcsZip 192 func (p *PythonLibraryModule) getPrecompiledSrcsZip() android.Path { 193 return p.precompiledSrcsZip 197 func (p *PythonLibraryModule) getPkgPath() string { 198 return String(p.properties.Pkg_path) [all …]
|
/build/soong/etc/ |
D | prebuilt_etc.go | 167 func (p *PrebuiltEtc) inRamdisk() bool { 168 return p.ModuleBase.InRamdisk() || p.ModuleBase.InstallInRamdisk() 171 func (p *PrebuiltEtc) onlyInRamdisk() bool { 172 return p.ModuleBase.InstallInRamdisk() 175 func (p *PrebuiltEtc) InstallInRamdisk() bool { 176 return p.inRamdisk() 179 func (p *PrebuiltEtc) inVendorRamdisk() bool { 180 return p.ModuleBase.InVendorRamdisk() || p.ModuleBase.InstallInVendorRamdisk() 183 func (p *PrebuiltEtc) onlyInVendorRamdisk() bool { 184 return p.ModuleBase.InstallInVendorRamdisk() [all …]
|
D | prebuilt_etc_test.go | 84 p := result.Module("foo.conf", "android_arm64_armv8-a").(*PrebuiltEtc) 85 …android.AssertStringEquals(t, "output file path", "foo.installed.conf", p.outputFilePaths[0].Base(… 101 p := result.Module("my_foo", "android_arm64_armv8-a").(*PrebuiltEtc) 102 android.AssertStringEquals(t, "my_foo output file path", "my_foo", p.outputFilePaths[0].Base()) 104 p = result.Module("my_bar", "android_arm64_armv8-a").(*PrebuiltEtc) 105 android.AssertStringEquals(t, "my_bar output file path", "bar.conf", p.outputFilePaths[0].Base()) 116 p := result.Module("foo", "android_arm64_armv8-a").(*PrebuiltEtc) 117 android.AssertStringEquals(t, "output file path", "bar.conf", p.outputFilePaths[0].Base()) 118 android.AssertStringEquals(t, "output file path", "baz.conf", p.outputFilePaths[1].Base()) 119 android.AssertStringEquals(t, "output file path", "foo.conf", p.outputFilePaths[2].Base()) [all …]
|
/build/soong/cc/ |
D | vndk_prebuilt.go | 81 func (p *vndkPrebuiltLibraryDecorator) Name(name string) string { 82 return name + p.NameSuffix() 85 func (p *vndkPrebuiltLibraryDecorator) NameSuffix() string { 86 suffix := p.Version() 87 if p.arch() != "" { 88 suffix += "." + p.arch() 90 if Bool(p.properties.Binder32bit) { 96 func (p *vndkPrebuiltLibraryDecorator) Version() string { 97 return String(p.properties.Version) 100 func (p *vndkPrebuiltLibraryDecorator) arch() string { [all …]
|
D | prebuilt.go | 74 func (p *prebuiltLinker) prebuilt() *android.Prebuilt { 75 return &p.Prebuilt 78 func (p *prebuiltLinker) PrebuiltSrcs() []string { 79 return p.properties.Srcs 96 func (p *prebuiltLibraryLinker) linkerInit(ctx BaseModuleContext) {} 98 func (p *prebuiltLibraryLinker) linkerDeps(ctx DepsContext, deps Deps) Deps { 99 return p.libraryDecorator.linkerDeps(ctx, deps) 102 func (p *prebuiltLibraryLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags { 106 func (p *prebuiltLibraryLinker) linkerProps() []interface{} { 107 return p.libraryDecorator.linkerProps() [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/apex/ |
D | prebuilt.go | 133 func (p *prebuiltCommon) initPrebuiltCommon(module android.Module, properties *PrebuiltCommonProper… 134 p.prebuiltCommonProperties = properties 139 func (p *prebuiltCommon) ApexVariationName() string { 140 return proptools.StringDefault(p.prebuiltCommonProperties.Apex_name, p.BaseModuleName()) 143 func (p *prebuiltCommon) BaseModuleName() string { 144 …return proptools.StringDefault(p.prebuiltCommonProperties.Source_apex_name, p.ModuleBase.BaseModul… 147 func (p *prebuiltCommon) Prebuilt() *android.Prebuilt { 148 return &p.prebuilt 151 func (p *prebuiltCommon) isForceDisabled() bool { 152 return p.prebuiltCommonProperties.ForceDisable [all …]
|
/build/soong/android/ |
D | paths.go | 292 func GenPathWithExt(ctx ModuleOutPathContext, subdir string, p Path, ext string) ModuleGenPath { 293 if path, ok := p.(genPathProvider); ok { 296 …f(ctx, "Tried to create generated file from unsupported path: %s(%s)", reflect.TypeOf(p).Name(), p) 302 func GenPathWithExtAndTrimExt(ctx ModuleOutPathContext, subdir string, p Path, ext string, trimExt … 303 if path, ok := p.(genPathProvider); ok { 306 …f(ctx, "Tried to create generated file from unsupported path: %s(%s)", reflect.TypeOf(p).Name(), p) 312 func ObjPathWithExt(ctx ModuleOutPathContext, subdir string, p Path, ext string) ModuleObjPath { 313 if path, ok := p.(objPathProvider); ok { 316 …orf(ctx, "Tried to create object file from unsupported path: %s (%s)", reflect.TypeOf(p).Name(), p) 323 func ResPathWithName(ctx ModuleOutPathContext, p Path, name string) ModuleResPath { [all …]
|
D | package_ctx.go | 84 func (p PackageContext) VariableFunc(name string, 87 …return p.PackageContext.VariableFunc(name, func(bpctx blueprint.VariableFuncContext, config interf… 89 configErrorWrapper: configErrorWrapper{p, config.(Config), nil}, 102 func (p PackageContext) PoolFunc(name string, 105 return p.PackageContext.PoolFunc(name, func(config interface{}) (blueprint.PoolParams, error) { 106 ctx := &configErrorWrapper{p, config.(Config), nil} 118 func (p PackageContext) RuleFunc(name string, 121 return p.PackageContext.RuleFunc(name, func(config interface{}) (blueprint.RuleParams, error) { 122 ctx := &configErrorWrapper{p, config.(Config), nil} 140 func (p PackageContext) SourcePathVariable(name, path string) blueprint.Variable { [all …]
|
D | packaging.go | 60 func (p *PackagingSpec) Equals(other *PackagingSpec) bool { 64 if p.relPathInPackage != other.relPathInPackage { 67 if p.srcPath != other.srcPath || p.symlinkTarget != other.symlinkTarget { 70 if p.executable != other.executable { 73 if p.partition != other.partition { 80 func (p *PackagingSpec) FileName() string { 81 if p.relPathInPackage != "" { 82 return filepath.Base(p.relPathInPackage) 89 func (p *PackagingSpec) RelPathInPackage() string { 90 return p.relPathInPackage [all …]
|
D | prebuilt.go | 82 func (u *UserSuppliedPrebuiltProperties) CopyUserSuppliedPropertiesFromPrebuilt(p *Prebuilt) { 83 *u = p.properties.UserSuppliedPrebuiltProperties 140 func (p *Prebuilt) Name(name string) string { 150 func (p *Prebuilt) ForcePrefer() { 151 p.properties.Prefer = proptools.BoolPtr(true) 154 func (p *Prebuilt) Prefer() bool { 155 return proptools.Bool(p.properties.Prefer) 194 func (p *Prebuilt) SingleSourcePath(ctx ModuleContext) Path { 195 return SingleSourcePathFromSupplier(ctx, p.srcsSupplier, p.srcsPropertyName) 198 func (p *Prebuilt) UsePrebuilt() bool { [all …]
|
D | phony.go | 49 func (p *phonySingleton) GenerateBuildActions(ctx SingletonContext) { 50 p.phonyMap = getPhonyMap(ctx.Config()) 51 p.phonyList = SortedKeys(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]...)
|
D | buildinfo_prop.go | 45 func (p *buildinfoPropModule) installable() bool { 46 return proptools.BoolDefault(p.properties.Installable, true) 50 func (p *buildinfoPropModule) OutputFiles(tag string) (Paths, error) { 54 return Paths{p.outputFilePath}, nil 90 func (p *buildinfoPropModule) GenerateAndroidBuildActions(ctx ModuleContext) { 95 p.outputFilePath = PathForModuleOut(ctx, p.Name()).OutputPath 97 WriteFileRule(ctx, p.outputFilePath, "# no buildinfo.prop if kati is disabled") 161 cmd.FlagWithOutput("--out=", p.outputFilePath) 165 if !p.installable() { 166 p.SkipInstall() [all …]
|
D | license_sdk_member.go | 89 func (p *licenseSdkMemberProperties) PopulateFromVariant(_ SdkMemberContext, variant Module) { 92 p.License_kinds = l.properties.License_kinds 93 p.License_text = make(Paths, 0, len(l.base().commonProperties.Effective_license_text)) 95 p.License_text = append(p.License_text, np.Path) 99 func (p *licenseSdkMemberProperties) AddToPropertySet(ctx SdkMemberContext, propertySet BpPropertyS… 101 if len(p.License_kinds) > 0 { 102 propertySet.AddProperty("license_kinds", p.License_kinds) 106 if len(p.License_text) > 0 { 108 for _, path := range p.License_text {
|
/build/make/tools/ |
D | post_process_props.py | 83 for p in prop_list.get_all_props(): 84 if len(p.value) > PROP_VALUE_MAX and not p.name.startswith("ro."): 87 (p.name, PROP_VALUE_MAX)) 88 sys.stderr.write("%s (%d)\n" % (p.value, len(p.value))) 90 if p.is_optional(): 93 sys.stderr.write(str(p) + "\n") 110 optional_props = [p for p in props if p.is_optional()] 111 overriding_props = [p for p in props if not p.is_optional()] 114 if all(overriding_props[0].value == p.value for p in overriding_props): 115 for p in optional_props: [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) 267 func (p *packageContext) StaticVariable(name, value string) Variable { [all …]
|
/build/soong/phony/ |
D | phony.go | 51 func (p *phony) GenerateAndroidBuildActions(ctx android.ModuleContext) { 52 p.requiredModuleNames = ctx.RequiredModuleNames() 53 p.hostRequiredModuleNames = ctx.HostRequiredModuleNames() 54 p.targetRequiredModuleNames = ctx.TargetRequiredModuleNames() 57 func (p *phony) AndroidMk() android.AndroidMkData { 63 if p.Host() { 66 if len(p.requiredModuleNames) > 0 { 68 strings.Join(p.requiredModuleNames, " ")) 70 if len(p.hostRequiredModuleNames) > 0 { 72 strings.Join(p.hostRequiredModuleNames, " ")) [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 | 208 func (p *GoPackage) FindDeps(config *Config, path string) error { 212 err := p.findDeps(config, path, depSet) 216 p.allDeps = depSet.packageList 279 func (p *GoPackage) findDeps(config *Config, path string, allPackages *linkedDepSet) error { 325 p.files = append(p.files, filename) 368 sort.Strings(p.files) 371 fmt.Fprintf(os.Stderr, "Package %q depends on %v\n", p.Name, deps) 376 p.directDeps = append(p.directDeps, allPackages.getByName(dep)) 382 func (p *GoPackage) Compile(config *Config, outDir string) error { 383 p.mutex.Lock() [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 …]
|