Home | History | Annotate | Download | only in android

Lines Matching defs:String

32 	AddNinjaFileDeps(deps ...string)
36 GlobWithDeps(globPattern string, excludes []string) ([]string, error)
45 Errorf(format string, args ...interface{})
53 ModuleErrorf(format string, args ...interface{})
70 func reportPathError(ctx PathContext, format string, args ...interface{}) {
81 // Returns the path in string form
82 String() string
85 Ext() string
88 Base() string
93 Rel() string
104 genPathWithExt(ctx ModuleContext, subdir, ext string) ModuleGenPath
107 objPathWithExt(ctx ModuleContext, subdir, ext string) ModuleObjPath
110 resPathWithName(ctx ModuleContext, name string) ModuleResPath
115 func GenPathWithExt(ctx ModuleContext, subdir string, p Path, ext string) ModuleGenPath {
125 func ObjPathWithExt(ctx ModuleContext, subdir string, p Path, ext string) ModuleObjPath {
136 func ResPathWithName(ctx ModuleContext, p Path, name string) ModuleResPath {
172 // String returns the string version of the Path, or "" if it isn't valid.
173 func (p OptionalPath) String() string {
175 return p.path.String()
185 func PathsForSource(ctx PathContext, paths []string) Paths {
195 modCtx.AddMissingDependencies([]string{path})
211 func PathsForOptionalSource(ctx PathContext, intermediates string, paths []string) Paths {
224 func PathsForModuleSrc(ctx ModuleContext, paths []string) Paths {
234 // each string.
235 func pathsForModuleSrcFromFullPath(ctx ModuleContext, paths []string) Paths {
251 func PathsWithOptionalDefaultForModuleSrc(ctx ModuleContext, input []string, def string) Paths {
258 return ctx.Glob(path, []string{})
261 // Strings returns the Paths in string form
262 func (p Paths) Strings() []string {
266 ret := make([]string, len(p))
268 ret[i] = path.String()
276 // Strings returns the string forms of the writable paths.
277 func (p WritablePaths) Strings() []string {
281 ret := make([]string, len(p))
283 ret[i] = path.String()
289 path string
291 rel string
294 func (p basePath) Ext() string {
298 func (p basePath) Base() string {
302 func (p basePath) Rel() string {
318 func safePathForSource(ctx PathContext, path string) SourcePath {
322 abs, err := filepath.Abs(ret.String())
344 func PathForSource(ctx PathContext, paths ...string) SourcePath {
348 abs, err := filepath.Abs(ret.String())
363 if exists, _, err := ctx.Fs().Exists(ret.String()); err != nil {
374 func OptionalPathForSource(ctx PathContext, intermediates string, paths ...string) OptionalPath {
383 abs, err := filepath.Abs(path.String())
398 if pathtools.IsGlob(path.String()) {
399 reportPathError(ctx, "path may not contain a glob: %s", path.String())
406 files, err := gctx.GlobWithDeps(path.String(), nil)
418 files, dirs, err := pathtools.Glob(path.String(), nil)
430 ctx.AddNinjaFileDeps(path.String())
435 func (p SourcePath) String() string {
441 func (p SourcePath) Join(ctx PathContext, paths ...string) SourcePath {
449 var relDir string
463 paths, err := ctx.GlobWithDeps(dir, []string{})
490 func PathForOutput(ctx PathContext, paths ...string) OutputPath {
497 func (p OutputPath) String() string {
501 func (p OutputPath) RelPathString() string {
507 func (p OutputPath) Join(ctx PathContext, paths ...string) OutputPath {
514 func PathForIntermediates(ctx PathContext, paths ...string) OutputPath {
531 func PathForModuleSrc(ctx ModuleContext, paths ...string) ModuleSrcPath {
540 func OptionalPathForModuleSrc(ctx ModuleContext, p *string) OptionalPath {
547 func (p ModuleSrcPath) genPathWithExt(ctx ModuleContext, subdir, ext string) ModuleGenPath {
551 func (p ModuleSrcPath) objPathWithExt(ctx ModuleContext, subdir, ext string) ModuleObjPath {
555 func (p ModuleSrcPath) resPathWithName(ctx ModuleContext, name string) ModuleResPath {
560 func (p ModuleSrcPath) WithSubDir(ctx ModuleContext, subdir string) ModuleSrcPath {
561 subdir = PathForModuleSrc(ctx, subdir).String()
581 func PathForVndkRefAbiDump(ctx ModuleContext, version, fileName string, vndkOrNdk, isSourceDump bool) OptionalPath {
583 var sourceOrBinaryDir string
584 var vndkOrNdkDir string
585 var ext string
605 func PathForModuleOut(ctx ModuleContext, paths ...string) ModuleOutPath {
614 path string
623 func PathForModuleGen(ctx ModuleContext, paths ...string) ModuleGenPath {
631 func (p ModuleGenPath) genPathWithExt(ctx ModuleContext, subdir, ext string) ModuleGenPath {
636 func (p ModuleGenPath) objPathWithExt(ctx ModuleContext, subdir, ext string) ModuleObjPath {
650 func PathForModuleObj(ctx ModuleContext, paths ...string) ModuleObjPath {
665 func PathForModuleRes(ctx ModuleContext, paths ...string) ModuleResPath {
672 func PathForModuleInstall(ctx ModuleContext, paths ...string) OutputPath {
673 var outPaths []string
685 outPaths = []string{"target", "product", ctx.AConfig().DeviceName(), partition}
687 outPaths = []string{"host", ctx.Os().String() + "-x86"}
690 outPaths = append([]string{"debug"}, outPaths...)
698 func validateSafePath(ctx PathContext, paths ...string) string {
715 func validatePath(ctx PathContext, paths ...string) string {