[build][dist] global dist fixed
This commit is contained in:
@@ -74,6 +74,12 @@ if (libclangextIsEnabled) {
|
||||
|
||||
|
||||
model {
|
||||
tasks.compileClangstubsSharedLibraryClangstubsC{
|
||||
dependsOn ":kotlin-native:dependencies:update"
|
||||
}
|
||||
tasks.compileClangstubsSharedLibraryClangstubsCpp {
|
||||
dependsOn ":kotlin-native:dependencies:update"
|
||||
}
|
||||
components {
|
||||
clangstubs(NativeLibrarySpec) {
|
||||
sources {
|
||||
@@ -84,6 +90,7 @@ model {
|
||||
binaries.all {
|
||||
cCompiler.args hostPlatform.clang.hostCompilerArgsForJni
|
||||
cCompiler.args.addAll(cflags)
|
||||
cppCompiler.args.add("-std=c++11")
|
||||
}
|
||||
|
||||
binaries.withType(SharedLibraryBinarySpec) {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include <jni.h>
|
||||
#include <clang-c/Index.h>
|
||||
#include <clang-c/ext.h>
|
||||
#include <clang-c/ExtVector.h>
|
||||
|
||||
// NOTE THIS FILE IS AUTO-GENERATED
|
||||
|
||||
|
||||
@@ -30,6 +30,9 @@ import org.jetbrains.kotlin.konan.target.ClangArgs
|
||||
|
||||
|
||||
model {
|
||||
tasks.compileCallbacksSharedLibraryCallbacksC {
|
||||
dependsOn ":kotlin-native:dependencies:update"
|
||||
}
|
||||
components {
|
||||
callbacks(NativeLibrarySpec) {
|
||||
sources.c.source {
|
||||
|
||||
Reference in New Issue
Block a user