Allow specifying top level target and flavor in nativeInteropPlugin.

This commit is contained in:
Alexander Gorshenev
2017-10-24 15:01:01 +03:00
committed by alexander-gorshenev
parent 8a8d50f55c
commit 31662cc445
2 changed files with 18 additions and 10 deletions
+3 -8
View File
@@ -2099,41 +2099,37 @@ task inline_defaultArgs_linkTest(type: LinkKonanTest) {
}
kotlinNativeInterop {
target project.testTarget ?: 'host'
flavor 'native'
sysstat {
pkg 'sysstat'
headers 'sys/stat.h'
flavor 'native'
}
cstdlib {
pkg 'cstdlib'
headers 'stdlib.h'
flavor 'native'
}
cstdio {
defFile 'interop/basics/cstdio.def'
flavor 'native'
}
sockets {
defFile 'interop/basics/sockets.def'
flavor 'native'
}
bitfields {
defFile 'interop/basics/bitfields.def'
flavor 'native'
}
cglobals {
defFile 'interop/basics/cglobals.def'
flavor 'native'
}
cfunptr {
defFile 'interop/basics/cfunptr.def'
flavor 'native'
}
if (isMac()) {
@@ -2141,7 +2137,6 @@ kotlinNativeInterop {
defFile 'interop/objc/objcSmoke.def'
headers "$projectDir/interop/objc/smoke.h"
linkerOpts "-L$buildDir", "-lobjcsmoke"
flavor 'native'
}
}
}