-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
128 lines (114 loc) · 4.52 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
import org.gradle.internal.os.OperatingSystem
plugins {
id "eclipse"
id "idea"
id "java"
id "java-library"
id "application"
}
sourceCompatibility = "8"
mainClassName = "ide.IDE"
project.ext.lwjglVersion = "3.2.3"
project.ext.jomlVersion = "1.9.24"
project.ext.gdxVersion = "1.9.10"
switch (OperatingSystem.current()) {
case OperatingSystem.LINUX:
def osArch = System.getProperty("os.arch")
project.ext.lwjglNatives = osArch.startsWith("arm") || osArch.startsWith("aarch64")
? "natives-linux-${osArch.contains("64") || osArch.startsWith("armv8") ? "arm64" : "arm32"}"
: "natives-linux"
break
case OperatingSystem.MAC_OS:
project.ext.lwjglNatives = "natives-macos"
break
case OperatingSystem.WINDOWS:
project.ext.lwjglNatives = System.getProperty("os.arch").contains("64") ? "natives-windows" : "natives-windows-x86"
break
}
sourceSets {
main {
java.srcDir("${projectDir}/src/main/java/")
resources.srcDir("${projectDir}/src/main/resources/")
}
test {
java.srcDir("${projectDir}/src/test/java/")
resources.srcDir("${projectDir}/src/test/resources/")
}
}
repositories {
mavenCentral()
}
dependencies {
api "com.badlogicgames.gdx:gdx-bullet:$gdxVersion"
runtimeOnly "com.badlogicgames.gdx:gdx-bullet-platform:$gdxVersion:natives-desktop"
api "com.esotericsoftware:kryonet:2.22.0-RC1"
api "com.googlecode.json-simple:json-simple:1.1.1"
api "org.luaj:luaj-jse:3.0.1"
api project(":lwjgui")
// LWJGL dependencies
implementation platform("org.lwjgl:lwjgl-bom:$lwjglVersion")
api "org.lwjgl:lwjgl"
api "org.lwjgl:lwjgl-assimp"
api "org.lwjgl:lwjgl-glfw"
api "org.lwjgl:lwjgl-jemalloc"
api "org.lwjgl:lwjgl-nanovg"
api "org.lwjgl:lwjgl-nfd"
api "org.lwjgl:lwjgl-openal"
api "org.lwjgl:lwjgl-opengl"
api "org.lwjgl:lwjgl-stb"
api "org.lwjgl:lwjgl-tinyfd"
if (project.hasProperty("AllNatives")) {
runtimeOnly "org.lwjgl:lwjgl::natives-linux"
runtimeOnly "org.lwjgl:lwjgl-assimp::natives-linux"
runtimeOnly "org.lwjgl:lwjgl-glfw::natives-linux"
runtimeOnly "org.lwjgl:lwjgl-jemalloc::natives-linux"
runtimeOnly "org.lwjgl:lwjgl-nanovg::natives-linux"
runtimeOnly "org.lwjgl:lwjgl-nfd::natives-linux"
runtimeOnly "org.lwjgl:lwjgl-openal::natives-linux"
runtimeOnly "org.lwjgl:lwjgl-opengl::natives-linux"
runtimeOnly "org.lwjgl:lwjgl-stb::natives-linux"
runtimeOnly "org.lwjgl:lwjgl-tinyfd::natives-linux"
runtimeOnly "org.lwjgl:lwjgl::natives-macos"
runtimeOnly "org.lwjgl:lwjgl-assimp::natives-macos"
runtimeOnly "org.lwjgl:lwjgl-glfw::natives-macos"
runtimeOnly "org.lwjgl:lwjgl-jemalloc::natives-macos"
runtimeOnly "org.lwjgl:lwjgl-nanovg::natives-macos"
runtimeOnly "org.lwjgl:lwjgl-nfd::natives-macos"
runtimeOnly "org.lwjgl:lwjgl-openal::natives-macos"
runtimeOnly "org.lwjgl:lwjgl-opengl::natives-macos"
runtimeOnly "org.lwjgl:lwjgl-stb::natives-macos"
runtimeOnly "org.lwjgl:lwjgl-tinyfd::natives-macos"
runtimeOnly "org.lwjgl:lwjgl::natives-windows"
runtimeOnly "org.lwjgl:lwjgl-assimp::natives-windows"
runtimeOnly "org.lwjgl:lwjgl-glfw::natives-windows"
runtimeOnly "org.lwjgl:lwjgl-jemalloc::natives-windows"
runtimeOnly "org.lwjgl:lwjgl-nanovg::natives-windows"
runtimeOnly "org.lwjgl:lwjgl-nfd::natives-windows"
runtimeOnly "org.lwjgl:lwjgl-openal::natives-windows"
runtimeOnly "org.lwjgl:lwjgl-opengl::natives-windows"
runtimeOnly "org.lwjgl:lwjgl-stb::natives-windows"
runtimeOnly "org.lwjgl:lwjgl-tinyfd::natives-windows"
runtimeOnly "org.lwjgl:lwjgl::natives-windows-x86"
runtimeOnly "org.lwjgl:lwjgl-assimp::natives-windows-x86"
runtimeOnly "org.lwjgl:lwjgl-glfw::natives-windows-x86"
runtimeOnly "org.lwjgl:lwjgl-jemalloc::natives-windows-x86"
runtimeOnly "org.lwjgl:lwjgl-nanovg::natives-windows-x86"
runtimeOnly "org.lwjgl:lwjgl-nfd::natives-windows-x86"
runtimeOnly "org.lwjgl:lwjgl-openal::natives-windows-x86"
runtimeOnly "org.lwjgl:lwjgl-opengl::natives-windows-x86"
runtimeOnly "org.lwjgl:lwjgl-stb::natives-windows-x86"
runtimeOnly "org.lwjgl:lwjgl-tinyfd::natives-windows-x86"
} else {
runtimeOnly "org.lwjgl:lwjgl::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-assimp::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-glfw::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-jemalloc::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-nanovg::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-nfd::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-openal::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-opengl::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-stb::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-tinyfd::$lwjglNatives"
}
api "org.joml:joml:${jomlVersion}"
}