26 lines
518 B
Groovy
26 lines
518 B
Groovy
plugins {
|
|
id 'application'
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
application {
|
|
mainClass = 'Main'
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':imgui-app')
|
|
}
|
|
|
|
task start(type: JavaExec, dependsOn: build) {
|
|
main = 'Main'
|
|
classpath = sourceSets.test.runtimeClasspath
|
|
jvmArgs = ["-Dimgui.library.path=${System.getProperty('libPath', '../bin')}"]
|
|
|
|
if (org.gradle.internal.os.OperatingSystem.current().isMacOsX()) {
|
|
jvmArgs += ['-XstartOnFirstThread', '-Djava.awt.headless=true']
|
|
}
|
|
}
|