From ea5d955a4de19ea08252e7b57e87f775c4eab01c Mon Sep 17 00:00:00 2001 From: Willem Date: Mon, 7 Feb 2022 14:29:23 +0100 Subject: [PATCH] Added imxmi infra --- build.gradle | 13 ++++++++++++- lib-imxmi/build.gradle | 7 +++++++ .../love/distributedrebirth/imxmi/ImXmiSetup.java | 5 +++++ .../distributedrebirth/imxmi/lang/ImButtonˣᴹᴵ.java | 5 +++++ .../distributedrebirth/imxmi/lang/ImFrameˣᴹᴵ.java | 5 +++++ settings.gradle | 2 +- 6 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 lib-imxmi/build.gradle create mode 100644 lib-imxmi/src/main/love/distributedrebirth/imxmi/ImXmiSetup.java create mode 100644 lib-imxmi/src/main/love/distributedrebirth/imxmi/lang/ImButtonˣᴹᴵ.java create mode 100644 lib-imxmi/src/main/love/distributedrebirth/imxmi/lang/ImFrameˣᴹᴵ.java diff --git a/build.gradle b/build.gradle index 84c96c18..500ac8f8 100644 --- a/build.gradle +++ b/build.gradle @@ -79,10 +79,21 @@ project(":lib-basicwd") { } } -project(":main-gdxapp") { +project(":lib-imxmi") { apply plugin: "java-library" dependencies { api project(":lib-basicwd") + testImplementation "org.junit.jupiter:junit-jupiter:$junitVersion" + } + tasks.named('test') { + useJUnitPlatform() + } +} + +project(":main-gdxapp") { + apply plugin: "java-library" + dependencies { + api project(":lib-imxmi") api "com.badlogicgames.gdx:gdx:$gdxVersion" api "io.github.spair:imgui-java-binding:$spairVersion" api "io.github.spair:imgui-java-lwjgl3:$spairVersion" diff --git a/lib-imxmi/build.gradle b/lib-imxmi/build.gradle new file mode 100644 index 00000000..84a26470 --- /dev/null +++ b/lib-imxmi/build.gradle @@ -0,0 +1,7 @@ +sourceCompatibility = appJvmCode +[compileJava, compileTestJava]*.options*.encoding = appEncoding + +sourceSets.main.java.srcDirs = [ "src/main/"] +sourceSets.main.resources.srcDirs = [ "src/resources/" ] +sourceSets.test.java.srcDirs = [ "src/test/"] +sourceSets.test.resources.srcDirs = [ "src/test-resources/" ] diff --git a/lib-imxmi/src/main/love/distributedrebirth/imxmi/ImXmiSetup.java b/lib-imxmi/src/main/love/distributedrebirth/imxmi/ImXmiSetup.java new file mode 100644 index 00000000..b099c550 --- /dev/null +++ b/lib-imxmi/src/main/love/distributedrebirth/imxmi/ImXmiSetup.java @@ -0,0 +1,5 @@ +package love.distributedrebirth.imxmi; + +public class ImXmiSetup { + +} diff --git a/lib-imxmi/src/main/love/distributedrebirth/imxmi/lang/ImButtonˣᴹᴵ.java b/lib-imxmi/src/main/love/distributedrebirth/imxmi/lang/ImButtonˣᴹᴵ.java new file mode 100644 index 00000000..7142ab64 --- /dev/null +++ b/lib-imxmi/src/main/love/distributedrebirth/imxmi/lang/ImButtonˣᴹᴵ.java @@ -0,0 +1,5 @@ +package love.distributedrebirth.imxmi.lang; + +public class ImButtonˣᴹᴵ { + +} diff --git a/lib-imxmi/src/main/love/distributedrebirth/imxmi/lang/ImFrameˣᴹᴵ.java b/lib-imxmi/src/main/love/distributedrebirth/imxmi/lang/ImFrameˣᴹᴵ.java new file mode 100644 index 00000000..8c37933f --- /dev/null +++ b/lib-imxmi/src/main/love/distributedrebirth/imxmi/lang/ImFrameˣᴹᴵ.java @@ -0,0 +1,5 @@ +package love.distributedrebirth.imxmi.lang; + +public class ImFrameˣᴹᴵ { + +} diff --git a/settings.gradle b/settings.gradle index 491cd5b1..23a58b1b 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -include 'main-gdxapp-desktop', 'main-gdxapp', 'lib-bassboonyd', 'lib-numberxd', 'lib-unicodezd', 'lib-basicwd' \ No newline at end of file +include 'main-gdxapp-desktop', 'main-gdxapp', 'lib-bassboonyd', 'lib-numberxd', 'lib-unicodezd', 'lib-basicwd', 'lib-imxmi' \ No newline at end of file