Skip to content

Commit

Permalink
add git submodule initialization to setup.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Barth committed Jan 23, 2021
1 parent 93663d1 commit 9e30f28
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Modules/@babylonjs/react-native/windows/scripts/Setup.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
Import-Module $PSScriptRoot\Utils.psm1

# windows build agents don't support the path lengths required for initializing arcore dependencies,
# so we manually initialize the submodules we need here.
git submodule update --init "$PSScriptRoot\..\..\submodules\BabylonNative"
Push-Location "$PSScriptRoot\..\..\submodules\BabylonNative"
git submodule update --init --recursive "Dependencies\SPIRV-Cross"
git submodule update --init --recursive "Dependencies\arcana.cpp"
git submodule update --init --recursive "Dependencies\base-n"
git submodule update --init --recursive "Dependencies\bgfx.cmake"
git submodule update --init --recursive "Dependencies\glslang"
git submodule update --init --recursive "Dependencies\xr\Dependencies\OpenXR-SDK"
git submodule update --init --recursive "Dependencies\xr\Dependencies\OpenXR-MixedReality"
Pop-Location

Restore-CMakeProject -Platform "x86"
Restore-CMakeProject -Platform "x64"
Restore-CMakeProject -Platform "arm"
Expand Down

0 comments on commit 9e30f28

Please sign in to comment.