Home
last modified time | relevance | path

Searched refs:pkg (Results 1 – 23 of 23) sorted by relevance

/build/blueprint/microfactory/
Dmicrofactory_test.go104 pkg := loadPkg()
106 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
110 if err := pkg.Link(config, out); err != nil {
126 after func(pkg *GoPackage)) {
134 pkg := loadPkg()
136 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
140 if err := pkg.Link(config, out); err != nil {
160 pkg = loadPkg()
162 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
166 if !pkg.rebuilt {
[all …]
Dmicrofactory.go115 func (c *Config) Path(pkg string) (string, bool, error) {
121 if pkg == pkgPrefix {
123 } else if strings.HasPrefix(pkg, pkgPrefix+"/") {
124 return filepath.Join(c.paths[pkgPrefix], strings.TrimPrefix(pkg, pkgPrefix+"/")), true, nil
173 pkg, contained := s.packageSet[name]
174 return pkg, contained
177 pkg, _ := s.tryGetByName(name)
178 return pkg
288 for _, pkg := range foundPkgs {
289 foundPkg = pkg
[all …]
Dmicrofactory.bash63 -pkg-path "github.com/google/blueprint=${BLUEPRINTDIR}" \
/build/blueprint/bootstrap/bpdoc/
Dreader.go90 pkg, err := r.goPkg(pkgPath)
95 for _, t := range pkg.Types {
165 pkg := r.getGoPkg(pkgPath)
166 if pkg == nil {
173 pkg = doc.New(pkgAST, pkgPath, doc.AllDecls)
174 pkg = r.putGoPkg(pkgPath, pkg)
179 return pkg, nil
189 func (r *Reader) putGoPkg(pkgPath string, pkg *doc.Package) *doc.Package {
196 r.goPkgs[pkgPath] = pkg
197 return pkg
[all …]
Dbpdoc.go87 pkg := pkgMap[mtInfo.PkgPath]
88 if pkg == nil {
90 pkg, err = r.Package(mtInfo.PkgPath)
94 pkgMap[mtInfo.PkgPath] = pkg
95 pkgs = append(pkgs, pkg)
97 pkg.ModuleTypes = append(pkg.ModuleTypes, mtInfo)
101 for _, pkg := range pkgs {
102 …sort.Slice(pkg.ModuleTypes, func(i, j int) bool { return pkg.ModuleTypes[i].Name < pkg.ModuleTypes…
Dreader_test.go176 pkg, err := r.Package(pkgPath)
181 if pkg.Text != "bpdoc docs.\n" {
182 t.Errorf("unexpected docs %q", pkg.Text)
Dbpdoc_test.go67 pkg := packages[0]
136 for _, m := range pkg.ModuleTypes {
/build/soong/android/
Dvisibility.go136 pkg string member
140 return m.pkg == r.pkg
144 return fmt.Sprintf("//%s", r.pkg) // :__pkg__ is the default, so skip it.
154 return isAncestor(r.pkgPrefix, m.pkg)
242 checkRules(ctx, qualified.pkg, p.getName(), visibility)
259 ok, pkg, name := splitRule(ctx, v, currentPkg, property)
264 if pkg == "visibility" {
290 if !isAllowedFromOutsideVendor(pkg, name) {
311 currentPkg := qualifiedModuleId.pkg
332 ok, pkg, name := splitRule(ctx, v, currentPkg, property)
[all …]
Dmodule.go564 pkg string member
572 return "//" + q.pkg
574 return "//" + q.pkg + ":" + q.name
578 return q.pkg == "" && q.name == ""
583 pkg := q.pkg
585 if pkg == "" {
589 index := strings.LastIndex(pkg, "/")
591 pkg = ""
593 pkg = pkg[:index]
596 return newPackageId(pkg)
[all …]
Dvisibility_test.go499 qualifiedModuleName{pkg: "top", name: "libexample"}: {"//visibility:public"},
/build/blueprint/gotestmain/
Dgotestmain.go36 pkg = flag.String("pkg", "", "test package") var
91 Package: *pkg,
120 pkg "{{.Package}}"
125 {"{{.}}", pkg.{{.}}},
132 {"{{.Name}}", pkg.Example{{.Name}}, {{.Output | printf "%q" }}, {{.Unordered}}},
191 pkg.TestMain(m)
/build/make/tools/
Djava-layers.py97 def lookup(self, pkg): argument
99 def compare_parts(parts, pkg): argument
100 if len(parts) > len(pkg):
104 if parts[i] != pkg[i]:
108 pkg = pkg.split(".")
112 x = compare_parts(parts, pkg)
212 pkg = m.group(1)
222 print "'%s' --> %s" % (pkg, imports)
223 dep = deps.lookup(pkg)
226 + "%s\n") % (filename, pkg))
[all …]
/build/soong/jar/
Djar.go202 var pkg string
209 return "", fmt.Errorf(`expected "package <package>;", got "package %s%s"`, pkg, s.TokenText())
211 pkg += s.TokenText()
218 return pkg, nil
220 pkg += "."
222 return "", fmt.Errorf(`expected "package <package>;", got "package %s%s"`, pkg, s.TokenText())
/build/soong/bp2build/
Dbzl_conversion.go61 for pkg, rules := range generateRules(moduleTypeFactories) {
67 bzlFileName := strings.ReplaceAll(pkg, "android/soong/", "")
110 pkg := strings.Split(factoryName, ".")[0]
124 rules[pkg] = append(rules[pkg], r)
/build/blueprint/loadplugins/
Dloadplugins.go29 pkg = flag.String("p", "main", "package name") var
46 filepath.Base(*pkg),
/build/soong/cmd/extract_jar_packages/
Dextract_jar_packages.go81 for _, pkg := range pkgs {
83 data = append(data, pkg...)
/build/soong/cmd/soong_build/
Dwritedocs.go121 for _, pkg := range packages {
136 modules := moduleTypeDocsToTemplates(pkg.ModuleTypes)
137 data := perPackageTemplateData{Name: pkg.Name, Modules: modules}
142 pkgFileName := filepath.Join(filepath.Dir(filename), pkg.Name+".html")
290 {{range $pkg := .}}
/build/blueprint/bootstrap/
Dbootstrap.go193 if pkg, ok := ctx.Module().(*goPackage); ok {
195 for _, plugin := range pkg.properties.PluginFor {
/build/soong/sdk/
Dupdate.go341 pkg := bpFile.newModule("package")
343 pkg.AddCommentForProperty(property, `
347 pkg.AddProperty(property, []string{"Android-Apache-2.0"})
348 bpFile.AddModule(pkg)
/build/soong/zip/
Dzip.go637 pkg, err := jar.JavaPackage(r, src)
641 dest = filepath.Join(filepath.Join(strings.Split(pkg, ".")...), filepath.Base(src))
/build/make/core/
Ddefinitions.mk2154 $(foreach pkg, $(PRIVATE_JAR_PACKAGES), \
2155 -not -path $(PRIVATE_CLASS_INTERMEDIATES_DIR)/$(subst .,/,$(pkg))/\*) -delete ; \
2158 $(foreach pkg, $(PRIVATE_JAR_EXCLUDE_PACKAGES), \
2159 $(PRIVATE_CLASS_INTERMEDIATES_DIR)/$(subst .,/,$(pkg))))
/build/blueprint/
Dcontext.go3247 for _, pkg := range pkgs {
3248 deps = append(deps, pkg.ninjaFileDeps...)
3683 for pkg, name := range c.pkgNames {
3686 PkgPath: pkg.pkgPath,
/build/make/tools/releasetools/
Dpylintrc34 extension-pkg-whitelist=