Home
last modified time | relevance | path

Searched +full:- +full:p (Results 1 – 25 of 325) sorted by relevance

12345678910>>...13

/build/blueprint/parser/
Dprinter.go7 // http://www.apache.org/licenses/LICENSE-2.0
52 // pendingNewLine is initialized to -1 to eat initial spaces if the first token is a comment
53 pendingNewline: -1,
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)
[all …]
Dparser.go7 // http://www.apache.org/licenses/LICENSE-2.0
57 return f.Defs[len(f.Defs)-1].End()
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)
[all …]
/build/soong/androidmk/parser/
Dparser.go7 // http://www.apache.org/licenses/LICENSE-2.0
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)
[all …]
/build/make/core/
Dbuild-system.html1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6 <!--
9 - keep the document xhtml-compliant, as many people use validating editors
10 - check your edits for typos, spelling errors, and questionable grammar
11 - prefer css styles to formatting tags like <font>, <tt>, etc.
12 - keep it human-readable and human-editable in a plain text editor:
13 - strive to keep lines wrapped at 80 columns, unless a link prevents it
14 - use plenty of whitespace
15 - try to pretty-format (wrt nesting and indenting) any hairy html
[all …]
/build/soong/etc/
Dprebuilt_etc.go7 // http://www.apache.org/licenses/LICENSE-2.0
26 // `prebuilt_etc` exist only as prebuilts and cannot have a same-named source module counterpart.
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()
[all …]
/build/make/tools/
Dpost_process_props.py9 # http://www.apache.org/licenses/LICENSE-2.0
62 sys.stderr.write("error: non-GRF device must not define "
65 # non-GRF device skips the GRF validation test
90 the sysprop is a read-only one.
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")
[all …]
Dtest_post_process_props.py9 # http://www.apache.org/licenses/LICENSE-2.0
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)
[all …]
/build/soong/python/
Dpython.go7 // http://www.apache.org/licenses/LICENSE-2.0
44 // the version-specific properties that apply to python modules.
82 // Srcs has to be non-empty.
86 // This is most useful in the arch/multilib variants to remove non-common files
100 // Python2-specific properties, including whether Python2 is supported for this module
101 // and version-specific sources, exclusions and dependencies.
104 // Python3-specific properties, including whether Python3 is supported for this module
105 // and version-specific sources, exclusions and dependencies.
115 // this is set by the python version mutator based on version-specific properties
119 // this is set by the python version mutator based on version-specific properties
[all …]
Dandroidmk.go7 // http://www.apache.org/licenses/LICENSE-2.0
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)
[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/soong/cc/
Dprebuilt.go7 // http://www.apache.org/licenses/LICENSE-2.0
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{} {
[all …]
Dsnapshot_prebuilt.go7 // http://www.apache.org/licenses/LICENSE-2.0
41 // snapshot. For example VNDK-private modules must return true for the
45 // Returns true if a dir under source tree is an SoC-owned proprietary
112 ctx.RegisterSingletonType("vendor-snapshot", VendorSnapshotSingleton)
120 ctx.RegisterSingletonType("vendor-fake-snapshot", VendorFakeSnapshotSingleton)
194 ctx.RegisterSingletonType("recovery-snapshot", RecoverySnapshotSingleton)
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())
[all …]
Dvndk_prebuilt.go7 // http://www.apache.org/licenses/LICENSE-2.0
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)
[all …]
Dbinary_sdk_member.go7 // http://www.apache.org/licenses/LICENSE-2.0
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 {
[all …]
/build/soong/android/
Dpaths.go7 // http://www.apache.org/licenses/LICENSE-2.0
186 // out/ - make install files go here.
187 // out/soong - this is the buildDir passed to NewTestConfig()
188 // ... - the source files
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)
[all …]
Dmakefile_goal.go7 // http://www.apache.org/licenses/LICENSE-2.0
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()))
[all …]
Dpackaging.go7 // http://www.apache.org/licenses/LICENSE-2.0
26 // be a new filesystem image that is a subset of system.img (e.g. for an Android-like mini OS
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)
[all …]
Dprebuilt.go7 // http://www.apache.org/licenses/LICENSE-2.0
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)
133 // The below source-related functions and the srcs, src fields are based on an assumption that
138 func (p *Prebuilt) SingleSourcePath(ctx ModuleContext) Path {
139 return SingleSourcePathFromSupplier(ctx, p.srcsSupplier, p.srcsPropertyName)
142 func (p *Prebuilt) UsePrebuilt() bool {
[all …]
/build/blueprint/microfactory/
Dmicrofactory.go7 // http://www.apache.org/licenses/LICENSE-2.0
16 // to `go install`, but doesn't require a GOPATH. A package->path mapping can
19 // -pkg-path android/soong=build/soong
20 // -pkg-path github.com/google/blueprint=build/blueprint
24 // android/soong-test package wouldn't be mapped in the above case.
33 // It also exposes the -trimpath option from go's compiler so that embedded
38 // -b <microfactory_bin_file>, Microfactory can rebuild itself as necessary.
191 func (p *GoPackage) FindDeps(config *Config, path string) error {
195 err := p.findDeps(config, path, depSet)
199 p.allDeps = depSet.packageList
[all …]
/build/blueprint/
Dpackage_ctx.go7 // http://www.apache.org/licenses/LICENSE-2.0
27 // A PackageContext provides a way to create package-scoped Ninja pools,
29 // package-scoped PackageContext variable that it uses to create all package-
31 // passed to all calls to define module- or singleton-specific Ninja
86 func (p *packageContext) getScope() *basicScope {
87 return p.scope
95 // function or as part of a package-scoped variable initialization.
112 p := &packageContext{
119 packageContexts[pkgPath] = p
121 return p
[all …]
/build/soong/xml/
Dxml.go7 // http://www.apache.org/licenses/LICENSE-2.0
31 xmllintDtd = pctx.AndroidStaticRule("xmllint-dtd",
33 Command: `$XmlLintCmd --dtdvalid $dtd $in > /dev/null && touch -a $out`,
39 xmllintXsd = pctx.AndroidStaticRule("xmllint-xsd",
41 Command: `$XmlLintCmd --schema $xsd $in > /dev/null && touch -a $out`,
47 xmllintMinimal = pctx.AndroidStaticRule("xmllint-minimal",
49 Command: `$XmlLintCmd $in > /dev/null && touch -a $out`,
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) {
[all …]
/build/soong/cmd/pom2bp/
Dpom2bp.go7 // http://www.apache.org/licenses/LICENSE-2.0
165 BpTarget string `xml:"-"`
184 PomFile string `xml:"-"`
185 ArtifactFile string `xml:"-"`
186 BpTarget string `xml:"-"`
187 MinSdkVersion string `xml:"-"`
197 func (p Pom) IsAar() bool {
198 return p.Packaging == "aar"
201 func (p Pom) IsJar() bool {
202 return p.Packaging == "jar"
[all …]
/build/soong/java/
Dplatform_compat_config.go7 // http://www.apache.org/licenses/LICENSE-2.0
64 func (p *platformCompatConfig) compatConfigMetadata() android.Path {
65 return p.metadataFile
68 func (p *platformCompatConfig) CompatConfig() android.OutputPath {
69 return p.configFile
72 func (p *platformCompatConfig) SubDir() string {
91 func (p *platformCompatConfig) GenerateAndroidBuildActions(ctx android.ModuleContext) {
94 configFileName := p.Name() + ".xml"
95 metadataFileName := p.Name() + "_meta.xml"
96 p.configFile = android.PathForModuleOut(ctx, configFileName).OutputPath
[all …]
/build/blueprint/bootstrap/
Dwritedocs.go20 // creating the binary that we'll use to generate the non-bootstrap
121 <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
123 <p>{{.Text}}</p>
126 <div class="panel panel-default">
127 <div class="panel-heading" role="tab" id="heading{{$collapseIndex}}">
128 <h2 class="panel-title">
129 …sed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse{{$collapseIndex…
135 …<div id="collapse{{$collapseIndex}}" class="panel-collapse collapse" role="tabpanel" aria-labelled…
136 <div class="panel-body">
137 <p>{{.Text}}</p>
[all …]
/build/soong/phony/
Dphony.go7 // http://www.apache.org/licenses/LICENSE-2.0
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 {
[all …]

12345678910>>...13