Revert "Make RuleBuilder methods take Paths"
This reverts commit acdd694071
.
Reason for revert: broke ndk build
Change-Id: I5655e48c15eb8f5f0267afdd853fbc25765b8623
This commit is contained in:
@@ -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 }
|
||||
|
Reference in New Issue
Block a user