Refactor dexing

Move dexing support into java/dex.go, including the rules and logic
from builder.go and the function from java.go.

Test: no change to build.ninja
Change-Id: I098d2a9774e28079ba44791679a0db6f876fe3e6
This commit is contained in:
Colin Cross
2017-12-22 15:56:08 -08:00
parent e6ddff68be
commit f0056cb2ed
5 changed files with 186 additions and 200 deletions

View File

@@ -106,13 +106,9 @@ func init() {
return path.String(), nil
}
})
pctx.VariableFunc("D8Cmd", func(config android.Config) (string, error) {
path, err := pctx.HostBinToolPath(config, "d8")
if err != nil {
return "", err
}
return path.String(), nil
})
pctx.HostBinToolVariable("D8Cmd", "d8")
pctx.VariableFunc("TurbineJar", func(config android.Config) (string, error) {
turbine := "turbine.jar"
if config.UnbundledBuild() {