X4 Module Parser
This command line program is used to compile module tags ([[moduleName]].tags.h
files) into module information files ([[moduleName]].tags.info).
It is called during the build process to create this module reflection
information. The *.tags.info-files are used for
- Inspecting modules before loading. (In particular: trouble shooting if an
attempt to lead a module fails).
- Building projects according to declared dependencies.
Usage
The tool is called from the command line like this:
x4ModuleParser -command <parameters>
Currently the following commands are supported:
- x4ModuleParser -createTagsInfo <InputFile> <OutputFile>
This command creates a tag info file from a .tags.h file. OutputFile is
overwritten without warning.
- x4ModuleParser -createClassReg <InputFile> <OutputFile> <OutputFile>
This command creates a
cpp file containing code to register the classes contained in this module. OutputFile is
overwritten without warning.
- x4ModuleParser -rebuild <InputDirectory> <OutputDirectory>
This command parses all source files in the specified input directory and all of
its subdirectories that match the extension *.tags.h. For each such file, the
corresponding output file is put in the output directory (overwriting existing
files). Filenames <name>.tags.h are create outputs <name>.tags.info
Error Codes
If anything goes wrong during execution, the program returns with exit code 1,
otherwise it returns 0.
Error messages are output through cerr.