Generates a ROM built with CMake This uses the https://github.com/DragonMinded/libdragon/tree/trunk/examples/vtest (as of 2023-01-01) rom as a sample.
Although there have been improvements, the latest libdragon does not (yet) support CMake out the box. All current steps below require at least one custom upstream component that may not always be inline with the latest available "official" improvements.
Requirements:
-
Turning on Windows 10 or 11 developer mode Or Windows 7 with latest PowerShell version installed
-
Enabling Remote Powershell execution policy (
Set-ExecutionPolicy Unrestricted) -
a current version of CMake (tested working with 3.18.4) to be installed (make sure the PATH variable is set).
-
Run
UpdateToolchain.ps1to download the required toolchain and libdragon files -
Adjust CMakePresets.json for your paths if necessary (although should work automatically out the box)
-
Adjust .vscode/settings.json for your paths (although should work automatically out the box)
Building the ROM: In VS-Code
See the current docker workflow file for how you can do it.
By default, this build references the trunk branch. To change it, adjust the ref: trunk for the checkout.
Uses launch.json via tasks.json contained in the .vscode folder.
NOTE: By default the applications are not installed and the paths will require updating.
Hit F5 to load the ROM (once built).

