tirbofish/dropbear · commit
87b14a36c0cde3e5c18c666a59523be84fcb2bfb
added more functions for mouse input detection :) i believe input state is dealt with, but controller support doesn't exist yet. ill do that later (not my biggest priority rn).
Signature present but could not be verified.
Unverified
@@ -33,6 +33,7 @@ val libPathProvider = provider { ) candidates.firstOrNull { it.exists() }?.absolutePath + ?: println("No Rust library exists") } kotlin { @@ -50,33 +51,13 @@ kotlin { } val nativeLibPath = libPathProvider.get() - if (nativeLibPath != null) { - val nativeLibDir = file(nativeLibPath).parentFile.absolutePath - val nativeLibFileName = file(nativeLibPath).name - val nativeLibNameForLinking = when { - isMacOs -> nativeLibFileName.removePrefix("lib").removeSuffix(".dylib") - isLinux -> nativeLibFileName.removePrefix("lib").removeSuffix(".so") - isMingwX64 -> nativeLibFileName.removeSuffix(".dll") - else -> throw GradleException("Unsupported OS for library name derivation.") - } - - nativeTarget.apply { - binaries { - sharedLib { - baseName = "dropbear" - - if (isLinux || isMacOs) { - linkerOpts("-L$nativeLibDir", "-l$nativeLibNameForLinking", "-Wl,-rpath,\\\$ORIGIN") - } else if (isMingwX64) { - val importLibName = "$nativeLibNameForLinking.lib" - val importLibPath = file("$nativeLibDir/$importLibName").absolutePath - linkerOpts( - importLibPath - ) - } - } - } - } + val nativeLibDir = file(nativeLibPath).parentFile.absolutePath + val nativeLibFileName = file(nativeLibPath).name + val nativeLibNameForLinking = when { + isMacOs -> nativeLibFileName.removePrefix("lib").removeSuffix(".dylib") + isLinux -> nativeLibFileName.removePrefix("lib").removeSuffix(".so") + isMingwX64 -> nativeLibFileName.removeSuffix(".dll") + else -> throw GradleException("Unsupported OS for library name derivation.")
Large diffs are not rendered by default. Showing the first 50 of 893 lines. Show full diff