-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (44 loc) · 2.12 KB
/
build.gradle
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
40
41
42
43
44
45
46
47
48
49
50
apply plugin: 'java-library'
sourceCompatibility = JavaVersion.VERSION_11
if (org.gradle.internal.os.OperatingSystem.current() == org.gradle.internal.os.OperatingSystem.MAC_OS) {
applicationDefaultJvmArgs = ["-XstartOnFirstThread"]
}
group 'valoeghese'
version '1.3.2'
switch (org.gradle.internal.os.OperatingSystem.current()) {
case org.gradle.internal.os.OperatingSystem.LINUX:
def osArch = System.getProperty("os.arch")
project.ext.natives = osArch.startsWith("arm") || osArch.startsWith("aarch64")
? "natives-linux-${osArch.contains("64") || osArch.startsWith("armv8") ? "arm64" : "arm32"}"
: "natives-linux"
break
case org.gradle.internal.os.OperatingSystem.MAC_OS:
project.ext.natives = "natives-macos"
break
case org.gradle.internal.os.OperatingSystem.WINDOWS:
project.ext.natives = System.getProperty("os.arch").contains("64") ? "natives-windows" : "natives-windows-x86"
break
}
repositories {
mavenCentral()
}
dependencies {
// lwjgl
implementation "org.lwjgl:lwjgl:${project.ext.lwjgl_version}"
implementation "org.lwjgl:lwjgl-opengl:${project.ext.lwjgl_version}"
implementation "org.lwjgl:lwjgl-glfw:${project.ext.lwjgl_version}"
implementation "org.lwjgl:lwjgl-openal:${project.ext.lwjgl_version}"
implementation "org.lwjgl:lwjgl-stb:${project.ext.lwjgl_version}"
// joml
implementation "org.joml:joml:${project.joml_version}"
// fastutil
implementation "it.unimi.dsi:fastutil:${project.fastutil_version}"
// lwjgl natives
runtimeOnly "org.lwjgl:lwjgl:${project.lwjgl_version}:${project.ext.natives}"
runtimeOnly "org.lwjgl:lwjgl-assimp:${project.lwjgl_version}:${project.ext.natives}"
runtimeOnly "org.lwjgl:lwjgl-opengl:${project.lwjgl_version}:${project.ext.natives}"
runtimeOnly "org.lwjgl:lwjgl-glfw:${project.lwjgl_version}:${project.ext.natives}"
runtimeOnly "org.lwjgl:lwjgl-openal:${project.lwjgl_version}:${project.ext.natives}"
runtimeOnly "org.lwjgl:lwjgl-stb:${project.lwjgl_version}:${project.ext.natives}"
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
}