Native: add source code generator for kotlin-native/Interop/Runtime

Task ``:generators:generateNativeInteropRuntime` runs the generator.
This commit is contained in:
Svyatoslav Scherbina
2022-03-09 17:46:20 +03:00
parent 19d13bb8bf
commit 11fdd2e4fa
2 changed files with 16 additions and 0 deletions
+7
View File
@@ -31,6 +31,7 @@ val (interpreterSourceSet, interpreterApi) = extraSourceSet("interpreter")
val (protobufSourceSet, protobufApi) = extraSourceSet("protobuf")
val (protobufCompareSourceSet, protobufCompareApi) = extraSourceSet("protobufCompare", jpsKind = SourceSet.TEST_SOURCE_SET_NAME)
val (wasmSourceSet, wasmApi) = extraSourceSet("wasm")
val (nativeInteropRuntimeSourceSet, nativeInteropRuntimeApi) = extraSourceSet("nativeInteropRuntime")
dependencies {
api(kotlinStdlib("jdk8"))
@@ -47,6 +48,7 @@ dependencies {
interpreterApi(project(":compiler:ir.psi2ir"))
protobufApi(kotlinStdlib())
protobufCompareApi(projectTests(":kotlin-build-common"))
nativeInteropRuntimeApi(kotlinStdlib())
testApi(builtinsSourceSet.output)
testApi(evaluateSourceSet.output)
@@ -104,4 +106,9 @@ val generateOperationsMap by generator("org.jetbrains.kotlin.generators.evaluate
val generateInterpreterMap by generator("org.jetbrains.kotlin.generators.interpreter.GenerateInterpreterMapKt", interpreterSourceSet)
val generateWasmIntrinsics by generator("org.jetbrains.kotlin.generators.wasm.WasmIntrinsicGeneratorKt", wasmSourceSet)
val generateNativeInteropRuntime by generator(
"org.jetbrains.kotlin.generators.native.interopRuntime.NativeInteropRuntimeGeneratorKt",
nativeInteropRuntimeSourceSet
)
testsJar()
@@ -0,0 +1,9 @@
/*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.generators.native.interopRuntime
fun main() {
}