Make RuleBuilder methods take Paths
There are no more Make paths being used in Soong now that dexpreopting and hiddenapi are in Soong. Use the Path types in the inputs to RuleBuilder, and fix all users of RuleBuilder. Test: all soong tests Test: m checkbuild Change-Id: I886f803d9a3419a43b2cae412537645f94c5dfbf
This commit is contained in:
@@ -15,8 +15,6 @@
|
||||
package java
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
|
||||
"github.com/google/blueprint"
|
||||
|
||||
"android/soong/android"
|
||||
@@ -175,14 +173,3 @@ 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