-
-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathbuild.gradle
More file actions
36 lines (31 loc) · 619 Bytes
/
build.gradle
File metadata and controls
36 lines (31 loc) · 619 Bytes
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
plugins {
id 'application'
}
repositories {
mavenCentral()
}
application {
mainClass = 'Main'
try {
if (libPath) {
applicationDefaultJvmArgs = ["-Dimgui.library.path=$libPath"]
}
} catch (ignored) {
// ignore
}
}
dependencies {
implementation project(':imgui-app')
}
run {
if (org.gradle.internal.os.OperatingSystem.current().isMacOsX()) {
jvmArgs += ['-XstartOnFirstThread', '-Djava.awt.headless=true']
}
try {
if (useVulkan) {
args += 'vulkan'
}
} catch (ignored) {
// ignore
}
}