Gradle configuration that publishes linuxArm64 publication from terminal
Some checks are pending
Build project and push to maven snapshot / Build-And-Push-Linux (push) Waiting to run
Build project and push to maven snapshot / Build-And-Push-Mac (push) Waiting to run
Build project and push to maven snapshot / Build-And-Push-Windows (push) Waiting to run

This commit is contained in:
kildishevps 2025-02-22 22:11:40 +03:00
parent c39c9ec71e
commit 09622f8226

View File

@ -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(