diff options
Diffstat (limited to 'scripts/project_init.sh')
| -rwxr-xr-x | scripts/project_init.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/project_init.sh b/scripts/project_init.sh index 40f9457..db24c8f 100755 --- a/scripts/project_init.sh +++ b/scripts/project_init.sh @@ -14,4 +14,19 @@ else echo "miniaudio.h already present." fi +# wgpu-native submodule +if [ ! -d third_party/wgpu-native ]; then + echo "Fetching wgpu-native submodule..." + git submodule update --init --recursive +else + echo "wgpu-native submodule already present." +fi + +if [ ! -f third_party/wgpu-native/target/release/libwgpu_native.a ]; then + echo "Building wgpu-native static library..." + (cd third_party/wgpu-native && make lib-native) +else + echo "wgpu-native static library already built." +fi + echo "Done." |
