remove cinterop when name contains ios

This commit is contained in:
Ugljesa Jovanovic 2020-05-28 23:53:37 +02:00 committed by Ugljesa Jovanovic
parent 4555b4dd0c
commit 11c872fe28
No known key found for this signature in database
GPG Key ID: 178E6DFCECCB0E0F

View File

@ -193,9 +193,11 @@ kotlin {
compilations.getByName("main") { compilations.getByName("main") {
println("Setting cinterop for $name") println("Setting cinterop for $name")
defaultSourceSet.dependsOn(nativeMain) defaultSourceSet.dependsOn(nativeMain)
val libsodiumCinterop by cinterops.creating { if (this@withType.name.contains("ios").not()) {
defFile(project.file("src/nativeInterop/cinterop/libsodium.def")) val libsodiumCinterop by cinterops.creating {
compilerOpts.add("-I${project.rootDir}/sodiumWrapper/include/") defFile(project.file("src/nativeInterop/cinterop/libsodium.def"))
compilerOpts.add("-I${project.rootDir}/sodiumWrapper/include/")
}
} }
} }