Remove ios if

This commit is contained in:
Ugljesa Jovanovic 2020-05-28 23:47:15 +02:00 committed by Ugljesa Jovanovic
parent c3ffc75474
commit edde093e30
No known key found for this signature in database
GPG Key ID: 178E6DFCECCB0E0F

View File

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