Add MAVLink headers with generator script

This commit is contained in:
Marek S. Łukasiewicz 2025-01-28 14:45:38 +01:00
parent 00623caca2
commit d2f4e02361
5 changed files with 251 additions and 11 deletions

View file

@ -4,19 +4,36 @@ Named in this order so not everything starts with the same word
## Development
Using Godot v4.4.beta1.official [d33da79d3].
Install SCons with `pipx install scons`.
To generate files for build tooling, run the following:
This repository uses [Git Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules), to get all the code you need to run either:
```sh
godot --dump-extension-api
scons compile_commands
git clone --recurse-submodules <address of this repository>
# Or at any later point
git submodule update --init --recursive
```
Using Godot v4.4.beta1.official [d33da79d3](https://github.com/godotengine/godot/commit/d33da79d3f8fe84be2521d25b9ba8e440cf25a88).
Install SCons with `pipx install scons`.
For updating MAVLink generator, you additionally `pip install future`.
It is recommended to install any packages in a [virtual environment](https://docs.python.org/3/library/venv.html), for example:
```sh
python3 -m venv venv
source venv/bin/activate
pip install future
```
Some files are generated, run the following commands on first setup and when dependencies change:
```sh
godot --dump-extension-api # after updating Godot
scons compile_commands # after modifying SConstruct
python update_mavlink.py # after updating MAVLink dialect
```
### Build
To build the extension run SCons in the repository root, the default arguments have been added to the file.
To build the GDExtension binary run SCons in the repository root, the default arguments have been added to the file.
```sh
scons