Loading android/paths.go +6 −2 Original line number Diff line number Diff line Loading @@ -843,10 +843,12 @@ func (p SourcePath) OverlayPath(ctx ModuleContext, path Path) OptionalPath { // OutputPath is a Path representing an intermediates file path rooted from the build directory type OutputPath struct { basePath fullPath string } func (p OutputPath) withRel(rel string) OutputPath { p.basePath = p.basePath.withRel(rel) p.fullPath = filepath.Join(p.fullPath, rel) return p } Loading @@ -870,7 +872,9 @@ func PathForOutput(ctx PathContext, pathComponents ...string) OutputPath { if err != nil { reportPathError(ctx, err) } return OutputPath{basePath{path, ctx.Config(), ""}} fullPath := filepath.Join(ctx.Config().buildDir, path) path = fullPath[len(fullPath)-len(path):] return OutputPath{basePath{path, ctx.Config(), ""}, fullPath} } // PathsForOutput returns Paths rooted from buildDir Loading @@ -885,7 +889,7 @@ func PathsForOutput(ctx PathContext, paths []string) WritablePaths { func (p OutputPath) writablePath() {} func (p OutputPath) String() string { return filepath.Join(p.config.buildDir, p.path) return p.fullPath } // Join creates a new OutputPath with paths... joined with the current path. The Loading Loading
android/paths.go +6 −2 Original line number Diff line number Diff line Loading @@ -843,10 +843,12 @@ func (p SourcePath) OverlayPath(ctx ModuleContext, path Path) OptionalPath { // OutputPath is a Path representing an intermediates file path rooted from the build directory type OutputPath struct { basePath fullPath string } func (p OutputPath) withRel(rel string) OutputPath { p.basePath = p.basePath.withRel(rel) p.fullPath = filepath.Join(p.fullPath, rel) return p } Loading @@ -870,7 +872,9 @@ func PathForOutput(ctx PathContext, pathComponents ...string) OutputPath { if err != nil { reportPathError(ctx, err) } return OutputPath{basePath{path, ctx.Config(), ""}} fullPath := filepath.Join(ctx.Config().buildDir, path) path = fullPath[len(fullPath)-len(path):] return OutputPath{basePath{path, ctx.Config(), ""}, fullPath} } // PathsForOutput returns Paths rooted from buildDir Loading @@ -885,7 +889,7 @@ func PathsForOutput(ctx PathContext, paths []string) WritablePaths { func (p OutputPath) writablePath() {} func (p OutputPath) String() string { return filepath.Join(p.config.buildDir, p.path) return p.fullPath } // Join creates a new OutputPath with paths... joined with the current path. The Loading