Mario Zechner 6fa31a2903 [libgdx] Remove dependency on gdx-lwjgl3-glfw-awt-macos in SkeletonViewer, use LWJGL glfw_async instead
Same deficiency: when resizing, it will eventually crash with

```
UNSUPPORTED (log once): setPrimitiveRestartEnabled:index: unsupported!
-[AGXG13XFamilyCommandBuffer renderCommandEncoderWithDescriptor:]:888: failed assertion `A command encoder is already encoding to this command buffer'
```

Not sure how to work around this. JGLFW does not have this issue.
2024-08-20 16:15:04 +02:00

76 lines
2.1 KiB
Groovy

ext {
libgdxVersion = "1.12.2-SNAPSHOT"
}
allprojects {
apply plugin: "java"
sourceSets.main.java.srcDirs = ["src"]
repositories {
mavenLocal()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
mavenCentral()
}
tasks.withType(JavaCompile).configureEach {
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
options.release.set(7) // Ensures Java 8 bytecode is produced
}
}
project("spine-libgdx") {
apply plugin: "java-library"
apply plugin: "maven-publish"
apply plugin: "signing"
dependencies {
implementation "com.badlogicgames.gdx:gdx:$libgdxVersion"
}
}
apply from: 'publishing.gradle'
project("spine-skeletonviewer") {
jar {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
manifest {
attributes "Main-Class": "com.esotericsoftware.spine.SkeletonViewer"
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
dependsOn(project(":spine-libgdx").tasks.named('jar'))
}
tasks.named('build').configure {
dependsOn(tasks.named('jar'))
}
tasks.withType(JavaCompile).configureEach {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
options.release.set(8) // Ensures Java 8 bytecode is produced
}
}
configure(subprojects - project("spine-libgdx")) {
sourceSets.main.resources.srcDirs = ["assets"]
dependencies {
implementation project(":spine-libgdx")
implementation "com.badlogicgames.gdx:gdx:$libgdxVersion"
implementation "com.badlogicgames.gdx:gdx-platform:$libgdxVersion:natives-desktop"
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$libgdxVersion"
implementation "com.badlogicgames.gdx:gdx-box2d:$libgdxVersion"
implementation "com.badlogicgames.gdx:gdx-box2d-platform:$libgdxVersion:natives-desktop"
}
}
tasks.withType(JavaCompile).configureEach {
println "Building with sourceCompatibility = ${sourceCompatibility}, targetCompatibility = ${targetCompatibility}"
}