gl debug utils

This commit is contained in:
mcrcortex
2024-12-15 12:59:34 +10:00
parent 6ed4c92c94
commit c3701ad903
15 changed files with 124 additions and 28 deletions

View File

@@ -25,15 +25,20 @@ repositories {
def gitCommitHash = { ->
def stdout = new ByteArrayOutputStream()
exec {
ExecResult result = exec ()->{
commandLine 'git', 'rev-parse', '--short', 'HEAD'
standardOutput = stdout
ignoreExitValue = true
}
return stdout.toString().trim()
}
def buildtime = System.currentTimeSeconds()
if (result.getExitValue() != 0) {
return "<UnknownCommit>";
} else {
return stdout.toString().trim();
}
}
def buildtime = {System.currentTimeSeconds()}
processResources {
inputs.properties("version": project.version, "commit": gitCommitHash, "buildtime": buildtime)
@@ -128,6 +133,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation platform("org.lwjgl:lwjgl-bom:$lwjglVersion")
@@ -141,8 +147,8 @@ dependencies {
include(runtimeOnly "org.lwjgl:lwjgl-lmdb:$lwjglVersion:natives-linux")
include(runtimeOnly "org.lwjgl:lwjgl-zstd:$lwjglVersion:natives-linux")
include(implementation 'org.rocksdb:rocksdbjni:8.10.0')
include(implementation 'redis.clients:jedis:5.1.0')
include(implementation('org.rocksdb:rocksdbjni:8.10.0'))
include(implementation 'org.apache.commons:commons-pool2:2.12.0')
//implementation 'org.rocksdb:rocksdbjni:8.10.0'
//implementation 'redis.clients:jedis:5.1.0'