Generate Swift bridging code from Web IDL files.
This tool currently only runs on macOS and requires Xcode.app.
The tool can be build using swift build
.
USAGE: generate-code --input-directory <input-directory> --ouput-directory <ouput-directory> [--create-separate-files] [--no-create-separate-files] [--verbose] [--pretty-print] [--no-pretty-print]
OPTIONS:
-i, --input-directory <input-directory>
The path to the directory containing Web IDL files.
-o, --ouput-directory <ouput-directory>
The path to the output directory.
--create-separate-files/--no-create-separate-files
Create a file for each definition. (default: true)
--verbose Print verbose output.
--pretty-print/--no-pretty-print
Run swift-format over output. (default: true)
-h, --help Show help information.
For an example setup, see Example
Contributions to this projects are welcome. Please make sure to read the contribution guidelines first.
This project is licensed under the MIT License. See License for more information.