Gradle configuration that publishes linuxArm64 publication from terminal
Some checks are pending
Some checks are pending
This commit is contained in:
parent
c39c9ec71e
commit
09622f8226
@ -371,14 +371,8 @@ kotlin {
|
|||||||
defaultSourceSet.dependsOn(nativeMain)
|
defaultSourceSet.dependsOn(nativeMain)
|
||||||
}
|
}
|
||||||
if (linuxArm64Bit.contains(this@withType.name)) {
|
if (linuxArm64Bit.contains(this@withType.name)) {
|
||||||
defaultSourceSet.dependsOn(
|
defaultSourceSet.dependsOn(nativeMain)
|
||||||
createWorkaroundNativeMainSourceSet(
|
|
||||||
this@withType.name,
|
|
||||||
nativeDependencies
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
this@withType.compilations.getByName("main") {
|
|
||||||
val libsodiumCinterop by cinterops.creating {
|
val libsodiumCinterop by cinterops.creating {
|
||||||
defFile(projectRef.file("src/nativeInterop/cinterop/libsodium.def"))
|
defFile(projectRef.file("src/nativeInterop/cinterop/libsodium.def"))
|
||||||
compilerOpts.add("-I${projectRef.rootDir}/sodiumWrapper/static-arm64/include/")
|
compilerOpts.add("-I${projectRef.rootDir}/sodiumWrapper/static-arm64/include/")
|
||||||
@ -387,7 +381,6 @@ kotlin {
|
|||||||
"-include-binary", "${projectRef.rootDir}/sodiumWrapper/static-arm64/lib/libsodium.a"
|
"-include-binary", "${projectRef.rootDir}/sodiumWrapper/static-arm64/lib/libsodium.a"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (macos64Bit.contains(this@withType.name)) {
|
if (macos64Bit.contains(this@withType.name)) {
|
||||||
defaultSourceSet.dependsOn(
|
defaultSourceSet.dependsOn(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user