-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): [NFD] Update generator: use entrypoint name for static inv…
…okers
- Loading branch information
Showing
10 changed files
with
652 additions
and
604 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import org.gradle.api.Project | ||
import org.gradle.kotlin.dsl.register | ||
|
||
fun Project.registerGenerateTask(main: String, targetProject: String) { | ||
tasks.register<GenerateTask>("generate") { | ||
mainClass.set(main) | ||
workingDir = project(targetProject).projectDir.resolve("src/main/java/") | ||
} | ||
} |
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
248 changes: 126 additions & 122 deletions
248
generators/nfd/src/main/kotlin/overrungl/nfd/NFDGenerator.kt
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
plugins { | ||
id("generator.conventions") | ||
} | ||
|
||
dependencies { | ||
implementation(project(":generators")) | ||
} | ||
|
||
registerGenerateTask("overrungl.stb.STBGeneratorKt", ":stb") |
20 changes: 20 additions & 0 deletions
20
generators/stb/src/main/kotlin/overrungl/stb/STBGenerator.kt
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* MIT License | ||
* | ||
* Copyright (c) 2024 Overrun Organization | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
*/ | ||
|
||
package overrungl.stb | ||
|
||
fun main() { | ||
} |
266 changes: 133 additions & 133 deletions
266
modules/overrungl.nfd/src/main/java/overrungl/nfd/CNFD.java
Large diffs are not rendered by default.
Oops, something went wrong.
599 changes: 302 additions & 297 deletions
599
modules/overrungl.nfd/src/main/java/overrungl/nfd/NFD.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
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