A helper script for generating part of the language bindings (enums, config structs) for Roc Toolkit.
Dependencies:
Prepare venv (script will automatically use it):
python3 -m venv env
env/bin/pip install -r requirements.txt
Run with --help
for usage details:
$ ./bindgen.py --help
usage: bindgen.py [-h] -t {all,java,go} [--toolkit_dir TOOLKIT_DIR]
[--doxygen_dir DOXYGEN_DIR] [--go_output_dir GO_OUTPUT_DIR]
[--java_output_dir JAVA_OUTPUT_DIR]
Generate bindings
options:
-h, --help show this help message and exit
-t {all,java,go}, --type {all,java,go}
Type of enum generation
--toolkit_dir TOOLKIT_DIR
Roc Toolkit directory (default: ../roc-toolkit)
--doxygen_dir DOXYGEN_DIR
Doxygen XML directory (default:
<toolkit_dir>/build/docs/public_api/xml)
--go_output_dir GO_OUTPUT_DIR
Go output directory (default: ../roc-go)
--java_output_dir JAVA_OUTPUT_DIR
Java output directory (default: ../roc-java)