Merge changes from topic "soong-java-install" am: 8a709b149b
am: 03a3ea3885
am: 932eda33a7
am: 3a075ff1a4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1881031 Change-Id: I472dde6b1ceb3531fad971371ba9570d254fe946
This commit is contained in:
@@ -600,14 +600,6 @@ func (c *config) HostJavaToolPath(ctx PathContext, tool string) Path {
|
|||||||
return path
|
return path
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *config) HostJavaBinToolPath(ctx PathContext, tool string) Path {
|
|
||||||
path := pathForInstall(ctx, ctx.Config().BuildOS, ctx.Config().BuildArch, "bin", false, tool)
|
|
||||||
if ctx.Config().KatiEnabled() {
|
|
||||||
path = path.ToMakePath()
|
|
||||||
}
|
|
||||||
return path
|
|
||||||
}
|
|
||||||
|
|
||||||
// PrebuiltOS returns the name of the host OS used in prebuilts directories.
|
// PrebuiltOS returns the name of the host OS used in prebuilts directories.
|
||||||
func (c *config) PrebuiltOS() string {
|
func (c *config) PrebuiltOS() string {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
|
@@ -177,16 +177,6 @@ func (p PackageContext) HostBinToolVariable(name, path string) blueprint.Variabl
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// HostJavaBinToolVariable returns a Variable whose value is the path to a host java tool
|
|
||||||
// in the bin directory for host java targets. It may only be called during a Go
|
|
||||||
// package's initialization - either from the init() function or as part of a
|
|
||||||
// package-scoped variable's initialization.
|
|
||||||
func (p PackageContext) HostJavaBinToolVariable(name, path string) blueprint.Variable {
|
|
||||||
return p.VariableFunc(name, func(ctx PackageVarContext) string {
|
|
||||||
return ctx.Config().HostJavaBinToolPath(ctx, path).String()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// HostJNIToolVariable returns a Variable whose value is the path to a host tool
|
// HostJNIToolVariable returns a Variable whose value is the path to a host tool
|
||||||
// in the lib directory for host targets. It may only be called during a Go
|
// in the lib directory for host targets. It may only be called during a Go
|
||||||
// package's initialization - either from the init() function or as part of a
|
// package's initialization - either from the init() function or as part of a
|
||||||
|
@@ -124,8 +124,8 @@ func init() {
|
|||||||
pctx.HostBinToolVariable("Zip2ZipCmd", "zip2zip")
|
pctx.HostBinToolVariable("Zip2ZipCmd", "zip2zip")
|
||||||
pctx.HostBinToolVariable("ZipSyncCmd", "zipsync")
|
pctx.HostBinToolVariable("ZipSyncCmd", "zipsync")
|
||||||
pctx.HostBinToolVariable("ApiCheckCmd", "apicheck")
|
pctx.HostBinToolVariable("ApiCheckCmd", "apicheck")
|
||||||
pctx.HostJavaBinToolVariable("D8Cmd", "d8")
|
pctx.HostBinToolVariable("D8Cmd", "d8")
|
||||||
pctx.HostJavaBinToolVariable("R8Cmd", "r8-compat-proguard")
|
pctx.HostBinToolVariable("R8Cmd", "r8-compat-proguard")
|
||||||
pctx.HostBinToolVariable("HiddenAPICmd", "hiddenapi")
|
pctx.HostBinToolVariable("HiddenAPICmd", "hiddenapi")
|
||||||
pctx.HostBinToolVariable("ExtractApksCmd", "extract_apks")
|
pctx.HostBinToolVariable("ExtractApksCmd", "extract_apks")
|
||||||
pctx.VariableFunc("TurbineJar", func(ctx android.PackageVarContext) string {
|
pctx.VariableFunc("TurbineJar", func(ctx android.PackageVarContext) string {
|
||||||
|
Reference in New Issue
Block a user