bootstrap.cmd 771 Bytes
Newer Older
Mārtiņš Možeiko's avatar
Mārtiņš Možeiko committed
1 2 3
@echo off

if "%QTDIR%" EQU "" (
Mārtiņš Možeiko's avatar
Mārtiņš Možeiko committed
4
  set QT=C:\Qt\5.7.0-desktop-vs2013-x64
Mārtiņš Možeiko's avatar
Mārtiņš Možeiko committed
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
) else (
  set QT=%QTDIR%
)
set PATH=%QT%\bin;%PATH%

set _IsNativeEnvironment=true
call "%VS120COMNTOOLS%..\..\VC\vcvarsall.bat" x64

set BUILD="%~dp0Build"

mkdir "%BUILD%" 2>nul
pushd "%BUILD%"

cmake -G "Visual Studio 12 Win64" -DCMAKE_CONFIGURATION_TYPES="Debug;Release" ..
if %ERRORLEVEL% neq 0 (
  popd
  exit /b 1
)
devenv /useenv CxxProfiler.sln

mkdir Build 2>nul
mkdir Build\Debug 2>nul
mkdir Build\Release 2>nul
copy "%WindowsSdkDir%Debuggers\x64\dbghelp.dll" Build\Debug 1>nul
copy "%WindowsSdkDir%Debuggers\x64\symsrv.dll" Build\Debug 1>nul
copy "%WindowsSdkDir%Debuggers\x64\dbghelp.dll" Build\Release  1>nul
copy "%WindowsSdkDir%Debuggers\x64\symsrv.dll" Build\Release  1>nul

popd