29 lines
492 B
Groovy
29 lines
492 B
Groovy
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']
|
|
}
|
|
}
|