Compare commits

..

2 commits

Author SHA1 Message Date
432dca80d0 Setup addon installation from submodules 2025-01-31 14:53:09 +01:00
attila-vr
379adbb397 Add godot-xr-tools submodule 2025-01-31 14:37:59 +01:00
7 changed files with 22 additions and 0 deletions

4
.gitignore vendored
View file

@ -11,6 +11,10 @@ compile_commands.json
# Generated MAVLink headers
/include/mavlink
# Ignore addons files (copied from submodules), except uid created on import
/project/addons/godot-xr-tools/**
!/project/addons/godot-xr-tools/**/*.uid
# Created by https://www.toptal.com/developers/gitignore/api/c++,godot,scons,python
# Edit at https://www.toptal.com/developers/gitignore?templates=c++,godot,scons,python

3
.gitmodules vendored
View file

@ -4,3 +4,6 @@
[submodule "modules/mavlink"]
path = modules/mavlink
url = https://github.com/marsh-sim/mavlink.git
[submodule "modules/godot-xr-tools"]
path = modules/godot-xr-tools
url = https://github.com/GodotVR/godot-xr-tools.git

View file

@ -31,6 +31,7 @@ Some files are generated, run the following commands on first setup and when dep
godot --dump-extension-api # after updating Godot
scons compile_commands # after modifying SConstruct
python update_mavlink.py # after updating MAVLink dialect
python update_addons.py # after changing any addon submodules
```
### Windows setup

@ -0,0 +1 @@
Subproject commit d36af3730e1a7671cfe379b5531b6e68abeb3504

View file

@ -0,0 +1 @@
uid://46i64f2dmonl

View file

@ -0,0 +1 @@
uid://c086s0jrgaiwi

11
update_addons.py Normal file
View file

@ -0,0 +1,11 @@
from os import path
from shutil import copytree
# add repository root path
root_path = path.abspath(path.dirname(__file__))
copytree(
path.join(root_path, 'modules', 'godot-xr-tools', 'addons'),
path.join(root_path, 'project', 'addons'),
dirs_exist_ok=True,
)