Revert "Make RuleBuilder methods take Paths"

This reverts commit acdd694071.

Reason for revert: broke ndk build

Change-Id: I5655e48c15eb8f5f0267afdd853fbc25765b8623
This commit is contained in:
Colin Cross
2019-02-21 05:03:00 +00:00
parent acdd694071
commit ab898dc4a4
11 changed files with 456 additions and 632 deletions

View File

@@ -15,6 +15,8 @@
package java
import (
"path/filepath"
"github.com/google/blueprint"
"android/soong/android"
@@ -173,3 +175,14 @@ func hiddenAPIEncodeDex(ctx android.ModuleContext, output android.WritablePath,
TransformZipAlign(ctx, output, tmpOutput)
}
}
type hiddenAPIPath struct {
path string
}
var _ android.Path = (*hiddenAPIPath)(nil)
func (p *hiddenAPIPath) String() string { return p.path }
func (p *hiddenAPIPath) Ext() string { return filepath.Ext(p.path) }
func (p *hiddenAPIPath) Base() string { return filepath.Base(p.path) }
func (p *hiddenAPIPath) Rel() string { return p.path }