Pixel moved to a separate module

This commit is contained in:
Robert Vokac 2024-09-03 19:40:35 +02:00
parent 5f16f8b6f7
commit 86037833c8
No known key found for this signature in database
GPG Key ID: C459E1E4B4A986BB
56 changed files with 42 additions and 1 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@ gradle-app.setting
/build/
/android/build/
/core/build/
/pixel/build/
/lwjgl2/build/
/lwjgl3/build/
/html/build/

View File

@ -57,6 +57,7 @@ dependencies {
implementation "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
implementation "com.github.MrStahlfelge.gdx-websockets:common:$websocketVersion"
implementation project(':core')
implementation project(':pixel')
//implementation "com.openeggbert.gdx:gdx-storage:0.0.0-SNAPSHOT"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-arm64-v8a"

View File

@ -58,6 +58,9 @@ configure(subprojects - project(':android')) {
subprojects {
version = '0.0.0-SNAPSHOT'
ext.appName = 'open-eggbert'
if (project.name == 'pixel') {
ext.appName = 'pixel'
}
repositories {
mavenCentral()
maven { url 'https://s01.oss.sonatype.org' }

View File

@ -22,6 +22,7 @@ dependencies {
compileOnly "org.projectlombok:lombok:$lombokVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.10.3"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.10.3"
implementation project(':pixel')
}
test {

View File

@ -48,6 +48,7 @@ dependencies {
implementation "com.google.jsinterop:jsinterop-annotations:2.0.2:sources"
implementation "de.golfgl.gdxcontrollerutils:gdx-controllerutils-mapping:$controllerMappingVersion:sources"
implementation project(':core')
implementation project(':pixel')
implementation("com.badlogicgames.gdx-controllers:gdx-controllers-gwt:$gdxControllersVersion:sources"){exclude group: "com.badlogicgames.gdx", module: "gdx-backend-gwt"}
implementation("com.badlogicgames.gdx:gdx-box2d-gwt:$gdxVersion:sources") {exclude group: "com.google.gwt", module: "gwt-user"}
implementation("com.github.crykn.guacamole:gdx-gwt:$guacamoleVersion:sources"){exclude group: "com.badlogicgames.gdx", module: "gdx-backend-gwt"}
@ -147,6 +148,7 @@ task dist(dependsOn: [clean, compileGwt]) {
task addSource {
doLast {
sourceSets.main.compileClasspath += files(project(':core').sourceSets.main.allJava.srcDirs)
sourceSets.main.compileClasspath += files(project(':pixel').sourceSets.main.allJava.srcDirs)
sourceSets.main.compileClasspath += files("../core/build/generated/sources/annotationProcessor/java/main")
}

View File

@ -33,6 +33,7 @@ dependencies {
implementation "games.rednblack.miniaudio:miniaudio:$miniaudioVersion:natives-desktop"
//implementation "com.openeggbert.gdx:gdx-storage:0.0.0-SNAPSHOT"
implementation project(':core')
implementation project(':pixel')
}
def jarName = "${appName}-${version}.jar"

31
pixel/build.gradle Normal file
View File

@ -0,0 +1,31 @@
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
//eclipse.project.name = appName + '-core'
eclipse.project.name = 'pixel'
sourceSets.test.java.srcDirs = [ "src/test/java/" ]
dependencies {
api "com.badlogicgames.gdx-controllers:gdx-controllers-core:$gdxControllersVersion"
api "com.badlogicgames.gdx:gdx-ai:$aiVersion"
api "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
api "com.badlogicgames.gdx:gdx:$gdxVersion"
api "com.github.MrStahlfelge.gdx-websockets:core:$websocketVersion"
api "com.github.MrStahlfelge.gdx-websockets:serialization:$websocketSerializationVersion"
api "com.github.crykn.guacamole:core:$guacamoleVersion"
api "com.github.crykn.guacamole:gdx:$guacamoleVersion"
api "com.github.tommyettinger:formic:$formicVersion"
api "com.github.tommyettinger:libgdx-utils-box2d:$utilsBox2dVersion"
api "com.github.tommyettinger:libgdx-utils:$utilsVersion"
api "de.golfgl.gdxcontrollerutils:gdx-controllerutils-mapping:$controllerMappingVersion"
api "games.rednblack.miniaudio:miniaudio:$miniaudioVersion"
//api "com.openeggbert.gdx:gdx-storage:0.0.0-SNAPSHOT"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
compileOnly "org.projectlombok:lombok:$lombokVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.10.3"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.10.3"
}
test {
useJUnitPlatform {
}
}

View File

@ -0,0 +1 @@

View File

@ -1,4 +1,4 @@
// A list of which subprojects to load as part of the same larger project.
// You can remove Strings from the list and reload the Gradle project
// if you want to temporarily disable a subproject.
include 'lwjgl3', 'android', 'html', 'core'
include 'lwjgl3', 'android', 'html', 'core', 'pixel'