diff options
author | 2021-02-02 10:05:52 +0000 | |
---|---|---|
committer | 2021-02-02 13:33:51 +0000 | |
commit | 0267d49255b5a660f93d02c03c33cce23c132015 (patch) | |
tree | 6c89bcf81a5be9ff36756e4e14131a85ab7659e4 | |
parent | 4076a75fd76df88e9adc0ade0e12454e2e293e29 (diff) |
Make OutputPath implement objPathProvider
Needed to allow OutputPath to replace some usages of ModuleOutPath.
Bug: 179124768
Test: m droid
Change-Id: I0f746a11c53ed8c9c9193b57afc0b06c0249ff75
-rw-r--r-- | android/paths.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/paths.go b/android/paths.go index b5a14016f..810695830 100644 --- a/android/paths.go +++ b/android/paths.go @@ -1011,8 +1011,13 @@ func (p OutputPath) buildDir() string { return p.config.buildDir } +func (p OutputPath) objPathWithExt(ctx ModuleOutPathContext, subdir, ext string) ModuleObjPath { + return PathForModuleObj(ctx, subdir, pathtools.ReplaceExtension(p.path, ext)) +} + var _ Path = OutputPath{} var _ WritablePath = OutputPath{} +var _ objPathProvider = OutputPath{} // toolDepPath is a Path representing a dependency of the build tool. type toolDepPath struct { |