Basic command shape:
gdcc [options] <files...>Minimal example:
gdcc -o build/demo src/player.gdTo compile multiple scripts into one module:
gdcc -o build/demo src/player.gd src/enemy.gdWhen compiling scripts that belong to a Godot project, pass the project file to let GDCC emit .gdextension metadata:
gdcc --project game/project.godot -o build/demo game/src/player.gdUseful options:
-o/--output <output>: output target path. If omitted, GDCC derives a name from the input files.--gde <version>: Godot GDExtension API version. Currently only4.5.1is supported.--opt/--optimize <level>:debugorrelease.--target <platform>: target platform, such aslinux-x86-64,windows-x86-64,linux-aarch64, ormacos-aarch64.--prefix <prefix>and--class-map Source=Canonical: control generated top-level canonical class names.