Added documentation and todo's

This commit is contained in:
Stef Tervelde
2025-07-01 14:40:30 +02:00
parent 0299209245
commit 0d1fcc45a9
6 changed files with 13 additions and 3 deletions
-1
View File
@@ -29,7 +29,6 @@
</compositeBuild>
</compositeConfiguration>
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="#JAVA_HOME" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$/../../.." />
+1
View File
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_24" project-jdk-name="temurin-17" project-jdk-type="JavaSDK" />
</project>
@@ -7,6 +7,9 @@ import org.gradle.api.tasks.TaskAction
import java.io.File
import java.io.ObjectInputStream
/*
* The DependenciesTask resolves the dependencies for the sketch based on the libraries used
*/
abstract class DependenciesTask: DefaultTask() {
@InputFile
val librariesMetaData: RegularFileProperty = project.objects.fileProperty()
@@ -59,6 +62,7 @@ abstract class DependenciesTask: DefaultTask() {
project.dependencies.add("runtimeOnly", "org.jogamp.jogl:jogl-all:2.5.0:natives-macosx-universal")
project.dependencies.add("runtimeOnly", "org.jogamp.gluegen:gluegen-rt:2.5.0:natives-macosx-universal")
// TODO: Solve windows specific issue
// Windows specific native dependencies
project.dependencies.add("runtimeOnly", "org.jogamp.jogl:jogl-all:2.5.0:natives-windows-amd64")
project.dependencies.add("runtimeOnly", "org.jogamp.gluegen:gluegen-rt:2.5.0:natives-windows-amd64")
@@ -10,6 +10,10 @@ import java.io.File
import java.io.ObjectOutputStream
import java.util.jar.JarFile
/*
The libraries task scans the sketchbook libraries folder for all the libraries
This task stores the resulting information in a file that can be used later to resolve dependencies
*/
abstract class LibrariesTask : DefaultTask() {
// TODO: Allow this directory to not exist
+3 -2
View File
@@ -13,9 +13,10 @@ import javax.inject.Inject
// TODO: Generate sourcemaps
/*
* The PDETask is the main task that processes the .pde files and generates the Java source code
*/
abstract class PDETask : SourceTask() {
@get:InputFiles
@get:PathSensitive(PathSensitivity.RELATIVE)
@get:IgnoreEmptyDirectories
@@ -27,6 +27,7 @@ class ProcessingPlugin @Inject constructor(private val objectFactory: ObjectFact
val workingDir = project.findProperty("processing.workingDir") as String?
val debugPort = project.findProperty("processing.debugPort") as String?
// TODO: Setup sketchbook when using as a standalone plugin
val sketchbook = project.findProperty("processing.sketchbook") as String?
// Apply the Java plugin to the Project