CCEngine/workspace.bat

37 lines
1.4 KiB
Batchfile

setlocal
rem === To be executed from VS Native Tools command prompt ===
rem === Conan package manager needs to be installed and in PATH ===
set GENERATOR=visual_studio_multi
set CONAN=conan
set ARCH=x86
SET SCRIPTDIR=%~dp0
rem === Make sure that the bincrafters remote exists ===
%CONAN% remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
rem === Install all dependencies for all projects ===
mkdir %SCRIPTDIR%\CCEngine\build
cd %SCRIPTDIR%\CCEngine\build
%CONAN% install .. -g %GENERATOR% -s arch=%ARCH% -s build_type=Debug --build=outdated
%CONAN% install .. -g %GENERATOR% -s arch=%ARCH% -s build_type=Release --build=outdated
mkdir %SCRIPTDIR%\CCEngineLoader\build
cd %SCRIPTDIR%\CCEngineLoader\build
%CONAN% install .. -g %GENERATOR% -s arch=%ARCH% -s build_type=Debug --build=outdated
%CONAN% install .. -g %GENERATOR% -s arch=%ARCH% -s build_type=Release --build=outdated
mkdir %SCRIPTDIR%\..\libLicenseClient\build
cd %SCRIPTDIR%\..\libLicenseClient\build
%CONAN% install .. -g %GENERATOR% -s arch=%ARCH% -s build_type=Debug --build=outdated
%CONAN% install .. -g %GENERATOR% -s arch=%ARCH% -s build_type=Release --build=outdated
mkdir %SCRIPTDIR%\..\libLicenseClient\test\build
cd %SCRIPTDIR%\..\libLicenseClient\test\build
%CONAN% install .. -g %GENERATOR% -s arch=%ARCH% -s build_type=Debug --build=outdated
%CONAN% install .. -g %GENERATOR% -s arch=%ARCH% -s build_type=Release --build=outdated
endlocal