Support global variables in interop (#903)

This commit is contained in:
SvyatoslavScherbina
2017-10-06 10:56:31 +03:00
committed by GitHub
parent 7a4aae5ff3
commit 7795a7856a
8 changed files with 220 additions and 2 deletions
+11
View File
@@ -2079,6 +2079,11 @@ kotlinNativeInterop {
flavor 'native'
}
cglobals {
defFile 'interop/basics/cglobals.def'
flavor 'native'
}
cfunptr {
defFile 'interop/basics/cfunptr.def'
flavor 'native'
@@ -2160,6 +2165,12 @@ task interop_funptr(type: RunInteropKonanTest) {
interop = 'cfunptr'
}
task interop_globals(type: RunInteropKonanTest) {
disabled = (project.testTarget == 'wasm32') // No interop for wasm yet.
source = "interop/basics/globals.kt"
interop = 'cglobals'
}
task interop_echo_server(type: RunInteropKonanTest) {
disabled = (project.testTarget == 'wasm32') // No interop for wasm yet.
if (!isMac()) {