Skip to content

Commit

Permalink
changed: try to init submodules when not found while creating an inst…
Browse files Browse the repository at this point in the history
…aller. abort if platform failed to compile
  • Loading branch information
opdenkamp committed Jun 26, 2020
1 parent 4ef0486 commit 9237487
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions windows/build-lib.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@ SET TARGET=%INSTALLPATH%\%BUILDARCH%

rem Check support submodule
IF NOT EXIST "%MYDIR%..\support\windows\cmake\build.cmd" (
ECHO.*** support git submodule has not been checked out ***
ECHO.
ECHO.See docs\README.windows.md
EXIT /b 2
rem Try to init the git submodules
cd "%MYDIR%.."
git submodule update --init -r >nul 2>&1

IF NOT EXIST "%MYDIR%..\support\windows\cmake\build.cmd" (
ECHO.*** support git submodule has not been checked out ***
ECHO.
ECHO.See docs\README.windows.md
EXIT /b 2
)
)

rem Check platform submodule
Expand All @@ -36,6 +42,7 @@ IF NOT EXIST "%MYDIR%..\src\platform\windows\build.cmd" (
rem Compile platform library
ECHO. * compiling platform library for %BUILDARCH%
CALL "%MYDIR%..\src\platform\windows\build-lib.cmd" %BUILDARCH% %BUILDTYPE% %VSVERSION% "%INSTALLPATH%"
IF %errorlevel% neq 0 EXIT /b %errorlevel%
RMDIR /s /q "%BUILDTARGET%" >nul 2>&1

rem Compile libCEC
Expand Down

0 comments on commit 9237487

Please sign in to comment.