Fixed LWJGL natives switch
This commit is contained in:
parent
6cd38377b2
commit
8a52e991fd
1 changed files with 4 additions and 5 deletions
|
@ -127,7 +127,7 @@ publishing {
|
|||
|
||||
// Determine operating system and architecture
|
||||
switch (OperatingSystem.current()) {
|
||||
case OperatingSystem.LINUX -> {
|
||||
case OperatingSystem.LINUX:
|
||||
project.dependencyLwjglNatives = "natives-linux"
|
||||
def osArch = System.getProperty("os.arch")
|
||||
if (osArch.startsWith("arm") || osArch.startsWith("aarch64"))
|
||||
|
@ -136,15 +136,14 @@ switch (OperatingSystem.current()) {
|
|||
project.dependencyLwjglNatives += "-ppc64le"
|
||||
else if (osArch.startsWith("riscv"))
|
||||
project.dependencyLwjglNatives += "-riscv64"
|
||||
}
|
||||
case OperatingSystem.MAC_OS -> project.dependencyLwjglNatives = System.getProperty("os.arch").startsWith("aarch64") ? "natives-macos-arm64" : "natives-macos"
|
||||
case OperatingSystem.WINDOWS -> {
|
||||
case OperatingSystem.MAC_OS:
|
||||
project.dependencyLwjglNatives = System.getProperty("os.arch").startsWith("aarch64") ? "natives-macos-arm64" : "natives-macos"
|
||||
case OperatingSystem.WINDOWS:
|
||||
def osArch = System.getProperty("os.arch")
|
||||
project.dependencyLwjglNatives = osArch.contains("64")
|
||||
? "natives-windows${osArch.startsWith("aarch64") ? "-arm64" : ""}"
|
||||
: "natives-windows-x86"
|
||||
}
|
||||
}
|
||||
|
||||
// Fix delombok task
|
||||
delombok.doFirst {
|
||||
|
|
Loading…
Reference in a new issue