24 lines
769 B
Batchfile
24 lines
769 B
Batchfile
@echo off
|
|
set SRC_DIR=%~dp0
|
|
|
|
if not defined ARCH set ARCH=x86
|
|
|
|
@rem init/update submodules
|
|
cd %SRC_DIR%
|
|
git submodule update --init
|
|
|
|
@rem compile dependencies
|
|
|
|
set CMAKE_GENERATOR_NAME=Visual Studio 14 2015
|
|
|
|
set GTEST_BUILD_DIR=%SRC_DIR%deps\googletest\build
|
|
if exist %GTEST_BUILD_DIR%\NUL rd /s /q %GTEST_BUILD_DIR%
|
|
md %GTEST_BUILD_DIR%
|
|
cd %GTEST_BUILD_DIR%
|
|
cmake .. -Dgtest_force_shared_crt=ON -G"%CMAKE_GENERATOR_NAME%"
|
|
msbuild googlemock\gmock.sln /p:Configuration=%config% /p:Platform="%msbuild_platform%" /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo /m
|
|
msbuild googlemock\gtest\gtest.sln /p:Configuration=%config% /p:Platform="%msbuild_platform%" /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo /m
|
|
|
|
@rem go back home
|
|
cd %SRC_DIR%
|