fix mac paths

This commit is contained in:
Ugljesa Jovanovic 2020-06-01 21:26:08 +02:00 committed by Ugljesa Jovanovic
parent 4dab764914
commit c6df6ba694
No known key found for this signature in database
GPG Key ID: 178E6DFCECCB0E0F

View File

@ -174,7 +174,7 @@ kotlin {
compilations.getByName("main") { compilations.getByName("main") {
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/static-macos-x86-64/include/") compilerOpts.add("-I${project.rootDir}/sodiumWrapper/static-macos-x86-64/include")
} }
kotlinOptions.freeCompilerArgs = listOf( kotlinOptions.freeCompilerArgs = listOf(
"-include-binary", "${project.rootDir}/sodiumWrapper/static-macos-x86-64/lib/libsodium.a" "-include-binary", "${project.rootDir}/sodiumWrapper/static-macos-x86-64/lib/libsodium.a"
@ -232,7 +232,7 @@ kotlin {
compilations.getByName("main") { compilations.getByName("main") {
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/static-mingw-x86-64/include/") compilerOpts.add("-I${project.rootDir}/sodiumWrapper/static-mingw-x86-64/include")
} }
kotlinOptions.freeCompilerArgs = listOf( kotlinOptions.freeCompilerArgs = listOf(
"-include-binary", "${project.rootDir}/sodiumWrapper/static-mingw-x86-64/lib/libsodium.a" "-include-binary", "${project.rootDir}/sodiumWrapper/static-mingw-x86-64/lib/libsodium.a"
@ -333,10 +333,10 @@ kotlin {
println("Setting ios cinterop for $this") println("Setting ios cinterop for $this")
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/static-ios/") compilerOpts.add("-I${project.rootDir}/sodiumWrapper/static-ios/include")
} }
kotlinOptions.freeCompilerArgs = listOf( kotlinOptions.freeCompilerArgs = listOf(
"-include-binary", "${project.rootDir}/sodiumWrapper/static-ios/libsodium.a" "-include-binary", "${project.rootDir}/sodiumWrapper/static-ios/lib/libsodium.a"
) )
} }
@ -345,10 +345,10 @@ kotlin {
println("Setting ios cinterop for $this") println("Setting ios cinterop for $this")
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/static-ios/") compilerOpts.add("-I${project.rootDir}/sodiumWrapper/static-ios/include")
} }
kotlinOptions.freeCompilerArgs = listOf( kotlinOptions.freeCompilerArgs = listOf(
"-include-binary", "${project.rootDir}/sodiumWrapper/static-ios/libsodium.a" "-include-binary", "${project.rootDir}/sodiumWrapper/static-ios/lib/libsodium.a"
) )
} }