blob: 9d8ef338f099ce60bd769da1a12a2217408497ac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
:: Reset errorlevel status so we are not inheriting this state from the calling process:
@call :CLEAN_EXIT
@IF %1.==. GOTO ADDITIONAL_PARAMS_MISSING
@SET PXSHARED_ROOT_DIR=%~dp0
@SET PXSHARED_ROOT_DIR=%PXSHARED_ROOT_DIR:\=/%
:: Run packman to ensure dependencies are present and run cmake generation script afterwards
@echo Running packman in preparation for cmake ...
@echo/
call "%~dp0buildtools\packman\packman.cmd" pull "%~dp0dependencies.xml" --platform %1win --postscript "%~dp0buildtools\cmake_projects_%1win.bat"
@if %ERRORLEVEL% neq 0 (
@exit /b %errorlevel%
) else (
@echo Success!
@goto CLEAN_EXIT
)
:ADDITIONAL_PARAMS_MISSING
@echo Compiler needs to be specified (vc11, vc12, vc14, vc17 supported). Example: vc14
:CLEAN_EXIT
@exit /b 0
|