Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/build/blueprint/parser/
Dprinter.go62 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 …]
Dparser.go62 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/
Dparser.go42 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/cc/
Dvndk_prebuilt.go80 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 …]
Dsnapshot_prebuilt.go279 func (p *BaseSnapshotDecorator) Name(name string) string {
280 return name + p.NameSuffix()
283 func (p *BaseSnapshotDecorator) NameSuffix() string {
284 return getSnapshotNameSuffix(p.moduleSuffix(), p.Version(), p.Arch())
287 func (p *BaseSnapshotDecorator) Version() string {
288 return p.baseProperties.Version
291 func (p *BaseSnapshotDecorator) Arch() string {
292 return p.baseProperties.Target_arch
295 func (p *BaseSnapshotDecorator) moduleSuffix() string {
296 return p.baseProperties.ModuleSuffix
[all …]
Dbinary_sdk_member.go123 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 …]
Dprebuilt.go65 func (p *prebuiltLinker) prebuilt() *android.Prebuilt {
66 return &p.Prebuilt
69 func (p *prebuiltLinker) PrebuiltSrcs() []string {
70 return p.properties.Srcs
87 func (p *prebuiltLibraryLinker) linkerInit(ctx BaseModuleContext) {}
89 func (p *prebuiltLibraryLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
90 return p.libraryDecorator.linkerDeps(ctx, deps)
93 func (p *prebuiltLibraryLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags {
97 func (p *prebuiltLibraryLinker) linkerProps() []interface{} {
98 return p.libraryDecorator.linkerProps()
[all …]
/build/soong/etc/
Dprebuilt_etc.go161 func (p *PrebuiltEtc) inRamdisk() bool {
162 return p.ModuleBase.InRamdisk() || p.ModuleBase.InstallInRamdisk()
165 func (p *PrebuiltEtc) onlyInRamdisk() bool {
166 return p.ModuleBase.InstallInRamdisk()
169 func (p *PrebuiltEtc) InstallInRamdisk() bool {
170 return p.inRamdisk()
173 func (p *PrebuiltEtc) inVendorRamdisk() bool {
174 return p.ModuleBase.InVendorRamdisk() || p.ModuleBase.InstallInVendorRamdisk()
177 func (p *PrebuiltEtc) onlyInVendorRamdisk() bool {
178 return p.ModuleBase.InstallInVendorRamdisk()
[all …]
/build/soong/android/
Dprebuilt.go79 func (u *UserSuppliedPrebuiltProperties) CopyUserSuppliedPropertiesFromPrebuilt(p *Prebuilt) {
80 *u = p.properties.UserSuppliedPrebuiltProperties
125 func (p *Prebuilt) Name(name string) string {
135 func (p *Prebuilt) ForcePrefer() {
136 p.properties.Prefer = proptools.BoolPtr(true)
139 func (p *Prebuilt) Prefer() bool {
140 return proptools.Bool(p.properties.Prefer)
179 func (p *Prebuilt) SingleSourcePath(ctx ModuleContext) Path {
180 return SingleSourcePathFromSupplier(ctx, p.srcsSupplier, p.srcsPropertyName)
183 func (p *Prebuilt) UsePrebuilt() bool {
[all …]
Dpaths.go234 func GenPathWithExt(ctx ModuleOutPathContext, subdir string, p Path, ext string) ModuleGenPath {
235 if path, ok := p.(genPathProvider); ok {
238 …f(ctx, "Tried to create generated file from unsupported path: %s(%s)", reflect.TypeOf(p).Name(), p)
244 func ObjPathWithExt(ctx ModuleOutPathContext, subdir string, p Path, ext string) ModuleObjPath {
245 if path, ok := p.(objPathProvider); ok {
248 …orf(ctx, "Tried to create object file from unsupported path: %s (%s)", reflect.TypeOf(p).Name(), p)
255 func ResPathWithName(ctx ModuleOutPathContext, p Path, name string) ModuleResPath {
256 if path, ok := p.(resPathProvider); ok {
259 …Errorf(ctx, "Tried to create res file from unsupported path: %s (%s)", reflect.TypeOf(p).Name(), p)
281 func (p OptionalPath) Valid() bool {
[all …]
Dpackage_ctx.go75 func (p PackageContext) VariableFunc(name string,
78 return p.PackageContext.VariableFunc(name, func(config interface{}) (string, error) {
79 ctx := &configErrorWrapper{p, config.(Config), nil}
90 func (p PackageContext) PoolFunc(name string,
93 return p.PackageContext.PoolFunc(name, func(config interface{}) (blueprint.PoolParams, error) {
94 ctx := &configErrorWrapper{p, config.(Config), nil}
106 func (p PackageContext) RuleFunc(name string,
109 return p.PackageContext.RuleFunc(name, func(config interface{}) (blueprint.RuleParams, error) {
110 ctx := &configErrorWrapper{p, config.(Config), nil}
128 func (p PackageContext) SourcePathVariable(name, path string) blueprint.Variable {
[all …]
Dbuildinfo_prop.go45 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
57 func (p *buildinfoPropModule) GenerateAndroidBuildActions(ctx ModuleContext) {
58 p.outputFilePath = PathForModuleOut(ctx, p.Name()).OutputPath
60 WriteFileRule(ctx, p.outputFilePath, "# no buildinfo.prop if kati is disabled")
145 cmd.Text("true) > ").Output(p.outputFilePath)
148 if !p.installable() {
149 p.SkipInstall()
[all …]
Dmakefile_goal.go49 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 …]
Dpackaging.go48 func (p *PackagingSpec) FileName() string {
49 if p.relPathInPackage != "" {
50 return filepath.Base(p.relPathInPackage)
57 func (p *PackagingSpec) RelPathInPackage() string {
58 return p.relPathInPackage
61 func (p *PackagingSpec) SetRelPathInPackage(relPathInPackage string) {
62 p.relPathInPackage = relPathInPackage
65 func (p *PackagingSpec) EffectiveLicenseFiles() Paths {
66 if p.effectiveLicenseFiles == nil {
69 return *p.effectiveLicenseFiles
[all …]
Dphony.go49 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/
Dpython.go238 func (p *Module) getSrcsPathMappings() []pathMapping {
239 return p.srcsPathMappings
243 func (p *Module) getDataPathMappings() []pathMapping {
244 return p.dataPathMappings
248 func (p *Module) getSrcsZip() android.Path {
249 return p.srcsZip
256 func (p *Module) init(additionalProps ...interface{}) android.Module {
257 p.AddProperties(&p.properties, &p.protoProperties)
262 if p.bootstrapper != nil {
263 p.AddProperties(p.bootstrapper.bootstrapperProps()...)
[all …]
Dandroidmk.go28 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/soong/apex/
Dprebuilt.go116 func (p *prebuiltCommon) initPrebuiltCommon(module android.Module, properties *PrebuiltCommonProper…
117 p.prebuiltCommonProperties = properties
122 func (p *prebuiltCommon) ApexVariationName() string {
123 return proptools.StringDefault(p.prebuiltCommonProperties.Apex_name, p.ModuleBase.BaseModuleName())
126 func (p *prebuiltCommon) Prebuilt() *android.Prebuilt {
127 return &p.prebuilt
130 func (p *prebuiltCommon) isForceDisabled() bool {
131 return p.prebuiltCommonProperties.ForceDisable
134 func (p *prebuiltCommon) checkForceDisable(ctx android.ModuleContext) bool {
148 if forceDisable && p.prebuilt.SourceExists() {
[all …]
/build/make/tools/
Dpost_process_props.py93 for p in prop_list.get_all_props():
94 if len(p.value) > PROP_VALUE_MAX and not p.name.startswith("ro."):
97 (p.name, PROP_VALUE_MAX))
98 sys.stderr.write("%s (%d)\n" % (p.value, len(p.value)))
100 if p.is_optional():
103 sys.stderr.write(str(p) + "\n")
120 optional_props = [p for p in props if p.is_optional()]
121 overriding_props = [p for p in props if not p.is_optional()]
124 if all(overriding_props[0].value == p.value for p in overriding_props):
125 for p in optional_props:
[all …]
Dtest_post_process_props.py26 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/
Dpackage_ctx.go86 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/make/tools/atree/
Dfiles.cpp14 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/
Dmicrofactory.go191 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/
Dphony.go43 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/make/tools/releasetools/
Dfsverity_manifest_generator.py40 p = argparse.ArgumentParser() variable
41 p.add_argument(
45 p.add_argument(
49 p.add_argument(
53 p.add_argument(
57 p.add_argument(
61 p.add_argument(
65 p.add_argument(
69 p.add_argument(
73 p.add_argument(
[all …]

12345678910>>...12