diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2018-07-21 19:07:16 +0100 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2018-07-21 19:07:16 +0100 |
| commit | 2861f2db6f918c48019c1ac3f91bf6a407452493 (patch) | |
| tree | db451bde7a552ac6bd8369e6ff0279a96b125600 /build.gradle | |
| parent | 7fd114712c1921cb03748d42deeb655f6b225cce (diff) | |
| download | KGB-2861f2db6f918c48019c1ac3f91bf6a407452493.tar.xz KGB-2861f2db6f918c48019c1ac3f91bf6a407452493.zip | |
Add imgui based debug window container
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 71b1199..5f657cb 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,5 @@ +import org.gradle.internal.os.OperatingSystem + buildscript { ext.kotlin_version = '1.2.31' @@ -16,6 +18,9 @@ apply plugin: 'kotlin' repositories { mavenCentral() + maven { url "https://dl.bintray.com/kotlin/kotlin-dev" } + maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } + maven { url 'https://jitpack.io' } } test { @@ -25,6 +30,27 @@ test { dependencies { compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" + compile 'com.github.kotlin-graphics:imgui:v1.62-beta-02' + + switch (OperatingSystem.current()) { + case OperatingSystem.WINDOWS: + ext.lwjglNatives = "natives-windows" + break + case OperatingSystem.LINUX: + ext.lwjglNatives = "natives-linux" + break + case OperatingSystem.MAC_OS: + ext.lwjglNatives = "natives-macos" + break + } + + // Look up which modules and versions of LWJGL are required and add setup the appropriate natives. + configurations.compile.resolvedConfiguration.getResolvedArtifacts().forEach { + if (it.moduleVersion.id.group == "org.lwjgl") { + runtime "org.lwjgl:${it.moduleVersion.id.name}:${it.moduleVersion.id.version}:${lwjglNatives}" + } + } + testCompile 'io.kotlintest:kotlintest-runner-junit5:3.1.7' } |