forked from skypjack/uvw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeps.bat
37 lines (28 loc) · 1.17 KB
/
deps.bat
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
26
27
28
29
30
31
32
33
34
35
36
37
@echo off
set SRC_DIR=%~dp0
if not defined ARCH set ARCH=x86
if defined platform if "%platform%"=="x64" set ARCH=x64
@rem init/update submodules
cd %SRC_DIR%
git submodule update --init
@rem compile dependencies
@rem uv first because vcbuild.bat gives us good things like:
@rem - msbuild in PATH
@rem - variables like config, msbuild_platform
cd %SRC_DIR%deps\libuv
@rem the arguments to vcbuild make all the difference to further builds
call vcbuild.bat release %ARCH% shared
if "%msbuild_platform%"=="x64" (
set CMAKE_GENERATOR_NAME=Visual Studio 14 2015 Win64
) else (
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%