Home
last modified time | relevance | path

Searched refs:pkgPrefix (Results 1 – 2 of 2) sorted by relevance

/build/blueprint/microfactory/
Dmicrofactory.go98 func (c *Config) Map(pkgPrefix, pathPrefix string) error {
102 if _, ok := c.paths[pkgPrefix]; ok {
103 return fmt.Errorf("Duplicate package prefix: %q", pkgPrefix)
106 c.pkgs = append(c.pkgs, pkgPrefix)
107 c.paths[pkgPrefix] = pathPrefix
120 for _, pkgPrefix := range c.pkgs {
121 if pkg == pkgPrefix {
122 return c.paths[pkgPrefix], true, nil
123 } else if strings.HasPrefix(pkg, pkgPrefix+"/") {
124 return filepath.Join(c.paths[pkgPrefix], strings.TrimPrefix(pkg, pkgPrefix+"/")), true, nil
[all …]
/build/soong/android/
Dvisibility.go150 pkgPrefix string member
154 return isAncestor(r.pkgPrefix, m.pkg)
162 return fmt.Sprintf("//%s:__subpackages__", r.pkgPrefix)