a5baf42422
There are two different objectives associated with this newly introduced extras: - originClassId: Used to track where a type came from; Will ensure that the translation queue will be populated to also translate potential dependency classes - requiresForwardDeclaration: Used to track if a certain type requires rendering as forward declaration KT-65891
63 lines
1.6 KiB
Kotlin
63 lines
1.6 KiB
Kotlin
@file:Suppress("HasPlatformType")
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
dependencies {
|
|
api(intellijCore())
|
|
api(project(":core:compiler.common"))
|
|
api(project(":kotlin-tooling-core"))
|
|
api(project(":native:base"))
|
|
|
|
testApi(libs.junit.jupiter.api)
|
|
testApi(libs.junit.jupiter.engine)
|
|
testApi(libs.junit.jupiter.params)
|
|
testApi(project(":compiler:tests-common", "tests-jar"))
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
optIn.add("org.jetbrains.kotlin.backend.konan.InternalKotlinNativeApi")
|
|
}
|
|
}
|
|
|
|
/* Configure tests */
|
|
|
|
testsJar()
|
|
|
|
val k1TestRuntimeClasspath by configurations.creating
|
|
val analysisApiRuntimeClasspath by configurations.creating
|
|
|
|
dependencies {
|
|
k1TestRuntimeClasspath(project(":native:objcexport-header-generator-k1"))
|
|
k1TestRuntimeClasspath(projectTests(":native:objcexport-header-generator-k1"))
|
|
|
|
analysisApiRuntimeClasspath(project(":native:objcexport-header-generator-analysis-api"))
|
|
analysisApiRuntimeClasspath(projectTests(":native:objcexport-header-generator-analysis-api"))
|
|
}
|
|
|
|
tasks.test.configure {
|
|
enabled = false
|
|
}
|
|
|
|
objCExportHeaderGeneratorTest("testK1", testDisplayNameTag = "K1") {
|
|
classpath += k1TestRuntimeClasspath
|
|
}
|
|
|
|
objCExportHeaderGeneratorTest("testAnalysisApi", testDisplayNameTag = "AA") {
|
|
classpath += analysisApiRuntimeClasspath
|
|
}
|
|
|
|
tasks.check.configure {
|
|
dependsOn("testK1")
|
|
dependsOn("testAnalysisApi")
|
|
dependsOn(":native:objcexport-header-generator-k1:check")
|
|
dependsOn(":native:objcexport-header-generator-analysis-api:check")
|
|
}
|