summaryrefslogtreecommitdiff
path: root/java/kotlin.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2022-04-05 23:59:34 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2022-04-05 23:59:34 +0000
commit40f8c75752ca107c9c8b12be9fe162de6b393f62 (patch)
tree187072a3fc59eaa95ed1bc9deb35e4f367660129 /java/kotlin.go
parentbbf5f8c1580519e097d29fbe4d69d78a828f086c (diff)
parentc6ef4853704080b1340170c5c30046cc4dacd418 (diff)
Merge "Use kapt stubs for kotlin header jar for javac"
Diffstat (limited to 'java/kotlin.go')
-rw-r--r--java/kotlin.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/kotlin.go b/java/kotlin.go
index eff5bb53f..818bbd5aa 100644
--- a/java/kotlin.go
+++ b/java/kotlin.go
@@ -163,11 +163,11 @@ var kaptStubs = pctx.AndroidRemoteStaticRule("kaptStubs", android.RemoteRuleSupp
"classpath", "srcJars", "commonSrcFilesArg", "srcJarDir", "kaptDir", "kotlinJvmTarget",
"kotlinBuildFile", "name", "classesJarOut")
-// kotlinKapt performs Kotlin-compatible annotation processing. It takes .kt and .java sources and srcjars, and runs
+// kotlinTurbineApt performs Kotlin-compatible annotation processing. It takes .kt and .java sources and srcjars, and runs
// annotation processors over all of them, producing a srcjar of generated code in outputFile. The srcjar should be
// added as an additional input to kotlinc and javac rules, and the javac rule should have annotation processing
// disabled.
-func kotlinKapt(ctx android.ModuleContext, srcJarOutputFile, resJarOutputFile android.WritablePath,
+func kotlinTurbineApt(ctx android.ModuleContext, headerJarOutputFile, srcJarOutputFile, resJarOutputFile android.WritablePath,
srcFiles, commonSrcFiles, srcJars android.Paths,
flags javaBuilderFlags) {
@@ -231,7 +231,7 @@ func kotlinKapt(ctx android.ModuleContext, srcJarOutputFile, resJarOutputFile an
// Then run turbine to perform annotation processing on the stubs and any .java srcFiles.
javaSrcFiles := srcFiles.FilterByExt(".java")
turbineSrcJars := append(android.Paths{kaptStubsJar}, srcJars...)
- TurbineApt(ctx, srcJarOutputFile, resJarOutputFile, javaSrcFiles, turbineSrcJars, flags)
+ TurbineApt(ctx, headerJarOutputFile, srcJarOutputFile, resJarOutputFile, javaSrcFiles, turbineSrcJars, flags)
}
// kapt converts a list of key, value pairs into a base64 encoded Java serialization, which is what kapt expects.