generate
The generate command is main program provided by godot-object-compiler, combining the TypeDB cache and source file generation. When run successful, the provided generated folder will include all the necessary generated code for the source files provided.
On the build system side, the generated folder must be added as an include, and the .cpp files within must be added to the project sources.
godot-object-compiler adds generated .cpp and .h files for source files even if they do not include any attributed code. This allows you to specify the byproducts of the generate command at build system configure time from the list of the original sources.
Hint
This program requires a project to work with. Please provide the project information by supplying the following arguments:
- –root_path=, -R=
The projects root path, including the generator target files
- –goc_path=, -P=
The folder the godot-object-compiler can place files in
- –generated_path=, -G=
The folder the godot-object-compiler should place generated files in
- –cache_path=, -C=
The godot-object-compiler cache folder, including the type database
- –include_paths=, -I=
The generators include paths, comma seperated. Must include the godot-cpp include and gen/include paths.
- –sources=, -S=
The generators target source file paths, comma seperated.
- –godot_cpp=, -GPP=
The path to the godot-cpp repositories root used with your extension.
- –extension_api=, -E=
The path to the extension api json file to be used with your extension.
- –source_parser=, -SP=
The name of the source parser to be used by godot-object-compiler.
You can also use a godot-object-compiler project file alternatively.
Help Text:
Generate the type database and bindings.