summaryrefslogtreecommitdiff
path: root/scripts/project_init.bat
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/project_init.bat')
-rw-r--r--scripts/project_init.bat17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/project_init.bat b/scripts/project_init.bat
index 01d9ba2..b2e8320 100644
--- a/scripts/project_init.bat
+++ b/scripts/project_init.bat
@@ -12,4 +12,21 @@ if not exist third_party\miniaudio.h (
echo miniaudio.h already present.
)
+:: wgpu-native submodule
+if not exist third_party\wgpu-native\.git (
+ echo Fetching wgpu-native submodule...
+ git submodule update --init --recursive
+) else (
+ echo wgpu-native submodule already present.
+)
+
+if not exist third_party\wgpu-native\target\release\wgpu_native.lib (
+ echo Building wgpu-native static library...
+ pushd third_party\wgpu-native
+ cargo build --release :: Requires Rust toolchain and LLVM/Clang to be installed.
+ popd
+) else (
+ echo wgpu-native static library already built.
+)
+
echo Done.