diff options
Diffstat (limited to 'android/config.go')
| -rw-r--r-- | android/config.go | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/android/config.go b/android/config.go index 5d90fd21d..5c0e5aea5 100644 --- a/android/config.go +++ b/android/config.go @@ -569,9 +569,6 @@ func (c *config) HostToolDir() string { func (c *config) HostToolPath(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 } @@ -581,17 +578,11 @@ func (c *config) HostJNIToolPath(ctx PathContext, lib string) Path { ext = ".dylib" } path := pathForInstall(ctx, ctx.Config().BuildOS, ctx.Config().BuildArch, "lib64", false, lib+ext) - if ctx.Config().KatiEnabled() { - path = path.ToMakePath() - } return path } func (c *config) HostJavaToolPath(ctx PathContext, tool string) Path { path := pathForInstall(ctx, ctx.Config().BuildOS, ctx.Config().BuildArch, "framework", false, tool) - if ctx.Config().KatiEnabled() { - path = path.ToMakePath() - } return path } @@ -667,6 +658,10 @@ func (c *config) IsEnvFalse(key string) bool { return value == "0" || value == "n" || value == "no" || value == "off" || value == "false" } +func (c *config) TargetsJava11() bool { + return c.IsEnvTrue("EXPERIMENTAL_TARGET_JAVA_VERSION_11") +} + // EnvDeps returns the environment variables this build depends on. The first // call to this function blocks future reads from the environment. func (c *config) EnvDeps() map[string]string { @@ -1485,6 +1480,22 @@ func (c *deviceConfig) BoardReqdMaskPolicy() []string { return c.config.productVariables.BoardReqdMaskPolicy } +func (c *deviceConfig) BoardSystemExtPublicPrebuiltDirs() []string { + return c.config.productVariables.BoardSystemExtPublicPrebuiltDirs +} + +func (c *deviceConfig) BoardSystemExtPrivatePrebuiltDirs() []string { + return c.config.productVariables.BoardSystemExtPrivatePrebuiltDirs +} + +func (c *deviceConfig) BoardProductPublicPrebuiltDirs() []string { + return c.config.productVariables.BoardProductPublicPrebuiltDirs +} + +func (c *deviceConfig) BoardProductPrivatePrebuiltDirs() []string { + return c.config.productVariables.BoardProductPrivatePrebuiltDirs +} + func (c *deviceConfig) DirectedVendorSnapshot() bool { return c.config.productVariables.DirectedVendorSnapshot } @@ -1698,7 +1709,7 @@ func (l *ConfiguredJarList) Append(apex string, jar string) ConfiguredJarList { } // Append a list of (apex, jar) pairs to the list. -func (l *ConfiguredJarList) AppendList(other ConfiguredJarList) ConfiguredJarList { +func (l *ConfiguredJarList) AppendList(other *ConfiguredJarList) ConfiguredJarList { apexes := make([]string, 0, l.Len()+other.Len()) jars := make([]string, 0, l.Len()+other.Len()) |