diff options
author | Colin Cross <ccross@android.com> | 2018-06-06 15:24:46 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-06-06 15:24:46 -0700 |
commit | d4bf7d9f8942377457c1ab3ffffd592f6a141c6a (patch) | |
tree | 2b188cbe2e446ed8a79586466b3caaa3dec9e318 /java/config | |
parent | 3a11cd03b8bbf22a724f3cb3342dacbc9850bb68 (diff) | |
parent | 406aa5fa9011de8d46c364f21ecaaec70a3b83a4 (diff) | |
download | build_soong-d4bf7d9f8942377457c1ab3ffffd592f6a141c6a.tar.gz build_soong-d4bf7d9f8942377457c1ab3ffffd592f6a141c6a.tar.bz2 build_soong-d4bf7d9f8942377457c1ab3ffffd592f6a141c6a.zip |
Merge "Remove desugar support" am: 0d39cb1179
am: 406aa5fa90
Change-Id: I9555559eacb92cf0e7e89bf787b15967f748e327
Diffstat (limited to 'java/config')
-rw-r--r-- | java/config/config.go | 13 | ||||
-rw-r--r-- | java/config/makevars.go | 11 |
2 files changed, 2 insertions, 22 deletions
diff --git a/java/config/config.go b/java/config/config.go index ec1effa5..7842da6e 100644 --- a/java/config/config.go +++ b/java/config/config.go @@ -95,18 +95,6 @@ func init() { pctx.HostBinToolVariable("Zip2ZipCmd", "zip2zip") pctx.HostBinToolVariable("ZipSyncCmd", "zipsync") pctx.HostBinToolVariable("ApiCheckCmd", "apicheck") - pctx.VariableFunc("DxCmd", func(ctx android.PackageVarContext) string { - config := ctx.Config() - if config.IsEnvFalse("USE_D8") { - if config.UnbundledBuild() || config.IsPdkBuild() { - return "prebuilts/build-tools/common/bin/dx" - } else { - return pctx.HostBinToolPath(ctx, "dx").String() - } - } else { - return pctx.HostBinToolPath(ctx, "d8-compat-dx").String() - } - }) pctx.HostBinToolVariable("D8Cmd", "d8") pctx.HostBinToolVariable("R8Cmd", "r8-compat-proguard") @@ -120,7 +108,6 @@ func init() { }) pctx.HostJavaToolVariable("JarjarCmd", "jarjar.jar") - pctx.HostJavaToolVariable("DesugarJar", "desugar.jar") pctx.HostJavaToolVariable("JsilverJar", "jsilver.jar") pctx.HostJavaToolVariable("DoclavaJar", "doclava.jar") pctx.HostJavaToolVariable("MetalavaJar", "metalava.jar") diff --git a/java/config/makevars.go b/java/config/makevars.go index 27c7daaa..4dffa024 100644 --- a/java/config/makevars.go +++ b/java/config/makevars.go @@ -46,15 +46,8 @@ func makeVarsProvider(ctx android.MakeVarsContext) { ctx.Strict("JAVADOC", "${JavadocCmd}") ctx.Strict("COMMON_JDK_FLAGS", "${CommonJdkFlags}") - if ctx.Config().UseD8Desugar() { - ctx.Strict("DX", "${D8Cmd}") - ctx.Strict("DX_COMMAND", "${D8Cmd} -JXms16M -JXmx2048M") - ctx.Strict("USE_D8_DESUGAR", "true") - } else { - ctx.Strict("DX", "${DxCmd}") - ctx.Strict("DX_COMMAND", "${DxCmd} -JXms16M -JXmx2048M") - ctx.Strict("USE_D8_DESUGAR", "false") - } + ctx.Strict("DX", "${D8Cmd}") + ctx.Strict("DX_COMMAND", "${D8Cmd} -JXms16M -JXmx2048M") ctx.Strict("R8_COMPAT_PROGUARD", "${R8Cmd}") ctx.Strict("TURBINE", "${TurbineJar}") |