[K/N][runtime][interop] Refactoring to run cinterop in daemon

This commit is contained in:
Igor Chevdar
2021-10-04 11:10:00 +05:00
parent 8907c3506d
commit 47858126da
14 changed files with 302 additions and 87 deletions
+15
View File
@@ -64,6 +64,19 @@ kotlinNativeInterop {
pkg 'org.jetbrains.kotlin.backend.konan.files'
}
env {
linker 'clang++'
linkOutputs ":kotlin-native:common:${hostName}Env"
headers fileTree('../common/src/env/headers') {
include '**/*.h'
include '**/*.hpp'
}
pkg 'org.jetbrains.kotlin.backend.konan.env'
}
}
@@ -128,6 +141,7 @@ dependencies {
compilerApi kotlinNativeInterop['llvm'].configuration
compilerApi kotlinNativeInterop['files'].configuration
compilerApi kotlinNativeInterop['env'].configuration
cli_bcApi sourceSets.compiler.output
@@ -142,6 +156,7 @@ jar {
from sourceSets.cli_bc.output,
sourceSets.compiler.output,
sourceSets.filesInteropStubs.output,
sourceSets.envInteropStubs.output,
sourceSets.llvmInteropStubs.output
dependsOn ':kotlin-native:runtime:hostRuntime', 'external_jars'