-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle
More file actions
40 lines (36 loc) · 1.61 KB
/
settings.gradle
File metadata and controls
40 lines (36 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import org.gradle.internal.os.OperatingSystem
rootProject.name = 'jMe3GL2-examples'
dependencyResolutionManagement {
versionCatalogs {
libs {
def lwjglNatives = null;
switch (OperatingSystem.current()) {
case OperatingSystem.FREE_BSD:
lwjglNatives = "natives-freebsd"
break
case OperatingSystem.LINUX:
lwjglNatives = "natives-linux"
def osArch = System.getProperty("os.arch")
if (osArch.startsWith("arm") || osArch.startsWith("aarch64")) {
lwjglNatives += osArch.contains("64") || osArch.startsWith("armv8") ? "-arm64" : "-arm32"
} else if (osArch.startsWith("ppc")) {
lwjglNatives += "-ppc64le"
} else if (osArch.startsWith("riscv")) {
lwjglNatives += "-riscv64"
}
break
case OperatingSystem.MAC_OS:
lwjglNatives = System.getProperty("os.arch").startsWith("aarch64") ? "natives-macos-arm64" : "natives-macos"
break
case OperatingSystem.WINDOWS:
def osArch = System.getProperty("os.arch")
lwjglNatives = osArch.contains("64")
? "natives-windows${osArch.startsWith("aarch64") ? "-arm64" : ""}"
: "natives-windows-x86"
break
}
version('lwjglNatives', lwjglNatives)
}
}
}
include ('dodge_the_creeps')