Skip to content

Commit

Permalink
git submodule updateを戻す
Browse files Browse the repository at this point in the history
  • Loading branch information
berryzplus committed Jun 22, 2024
1 parent c6065de commit 4cc2e1f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
16 changes: 15 additions & 1 deletion build-gnu.bat
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,25 @@ if "%configuration%" == "Release" (
@rem path=C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;%path%
path=C:\msys64\usr\bin;%path:C:\msys64\usr\bin;=%
path=C:\msys64\mingw64\bin;%path:C:\msys64\mingw64\bin;=%
path=%~dp0tools\vcpkg;%path%

:: find generic tools
if not defined CMD_NINJA call %~dp0tools\find-tools.bat

if not exist %~dp0tools\vcpkg\bootstrap-vcpkg.bat (
"%CMD_GIT%" submodule update --init
)

if errorlevel 1 (
echo ERROR submodule update %errorlevel%
exit /b 1
)

if not exist %~dp0tools\vcpkg\vcpkg.exe (
call %~dp0tools\vcpkg\bootstrap-vcpkg.bat
)

path=%~dp0tools\vcpkg;%path%

@rem create output directory, all executables will be placed here.
set OUTDIR=%~dp0%platform%\%configuration%
mkdir %OUTDIR% > NUL 2>&1
Expand Down
15 changes: 14 additions & 1 deletion build-sln.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@echo off
@echo on
set platform=%1
set configuration=%2

Expand All @@ -25,6 +25,19 @@ if not defined CMD_MSBUILD (
exit /b 1
)

if not exist %~dp0tools\vcpkg\bootstrap-vcpkg.bat (
"%CMD_GIT%" submodule update --init
)

if errorlevel 1 (
echo ERROR submodule update %errorlevel%
exit /b 1
)

if not exist %~dp0tools\vcpkg\vcpkg.exe (
call %~dp0tools\vcpkg\bootstrap-vcpkg.bat
)

set SLN_FILE=sakura.sln

@rem https://www.appveyor.com/docs/environment-variables/
Expand Down

0 comments on commit 4cc2e1f

Please sign in to comment.