-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wipe out LWJGL natives and organize libs.versions.toml
Update to polymixin
- Loading branch information
Showing
4 changed files
with
16 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,16 @@ | ||
import org.jetbrains.gradle.ext.settings | ||
import org.jetbrains.gradle.ext.taskTriggers | ||
|
||
plugins { | ||
alias(libs.plugins.jetbrains.idea.ext) | ||
} | ||
|
||
val lwjglVersion = libs.versions.lwjgl.get() | ||
|
||
description = "Dependencies for legacy platforms (<1.12)" | ||
|
||
val natives = listOf("windows", "windows-arm64", "linux", "macos", "macos-arm64") | ||
|
||
dependencies { | ||
// for (dep in listOf("-nanovg", "-tinyfd", "-stb", "")) { | ||
// val lwjglDep = "org.lwjgl:lwjgl$dep:$lwjglVersion" | ||
// api(lwjglDep) { | ||
// isTransitive = false | ||
// } | ||
// for (native in natives) { | ||
// implementation("$lwjglDep:natives-$native") { | ||
// isTransitive = false | ||
// } | ||
// } | ||
// } | ||
} | ||
|
||
val build = project.tasks.getByName("build") | ||
project.tasks.withType(Jar::class.java).configureEach { | ||
archiveVersion.set(lwjglVersion) | ||
} | ||
val jar = project.tasks.withType(Jar::class.java).getByName("jar") | ||
|
||
rootProject.idea.project.settings { | ||
taskTriggers { | ||
if (!jar.archiveFile.get().asFile.exists()) { | ||
afterSync(build) | ||
beforeBuild(build) | ||
logger.warn("Building legacy LWJGL jar after sync for you...") | ||
for (dep in listOf("-nanovg", "-tinyfd", "-stb", "")) { | ||
val lwjglDep = "org.lwjgl:lwjgl$dep:${libs.versions.lwjgl.get()}" | ||
api(lwjglDep) { | ||
isTransitive = false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters