Skip to content

Commit

Permalink
Update marshal; [OpenGL] Update generator
Browse files Browse the repository at this point in the history
  • Loading branch information
squid233 committed Feb 25, 2024
1 parent 25e63c5 commit fe1a7fd
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,29 @@ plugins {
embeddedKotlin("jvm")
}

repositories { mavenCentral() }

val jdkVersion: String by rootProject
val jdkEnablePreview: String by rootProject
val kotlinTargetJdkVersion: String by rootProject

sourceSets {
create("generator")
}

tasks.withType<KotlinCompile> {
kotlinOptions { jvmTarget = kotlinTargetJdkVersion }
}

tasks.named<JavaCompile>("compileGeneratorJava") {
tasks.withType<JavaCompile> {
javaCompiler.set(javaToolchains.compilerFor {
targetCompatibility = kotlinTargetJdkVersion
languageVersion.set(JavaLanguageVersion.of(jdkVersion))
})
}

tasks.register<JavaExec>("generate") {
classpath(sourceSets["generator"].runtimeClasspath)
classpath(sourceSets["main"].runtimeClasspath)
javaLauncher.set(javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(jdkVersion))
})
if (jdkEnablePreview.toBoolean()) jvmArgs("--enable-preview")
mainClass.set("overrungl.opengl.OpenGLGeneratorKt")
workingDir = File("src/main/java/overrungl/opengl")
workingDir = project(":opengl").projectDir.resolve("src/main/java/overrungl/opengl")
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jdkEnablePreview=true
jdkEarlyAccessDoc=jdk22
kotlinTargetJdkVersion=21

overrunMarshalVersion=0.1.0-alpha.20-jdk22
overrunMarshalVersion=0.1.0-alpha.21-jdk22
overrunPlatformVersion=1.0.0
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ file("modules").listFiles().forEach {
include(s)
project(":$s").projectDir = it
}

include("generators:opengl")

0 comments on commit fe1a7fd

Please sign in to comment.