Skip to content

Commit

Permalink
build script now restores working dir if changed by VS setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
csoltenborn committed Dec 8, 2017
1 parent a50b98e commit 2036436
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions build_preparation.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if defined APPVEYOR goto Build
setlocal

echo:
echo ======================================================================
echo ===========================================================================
echo You have to accept the following licenses before executing this batch file:
echo:
echo Microsoft DIA SDK: Visual Studio End-User License Agreement (https://www.visualstudio.com/license-terms/mlt687465)
Expand All @@ -36,32 +36,34 @@ echo Removing TAfGT projects (for now)
powershell -ExecutionPolicy Bypass .\Tools\RemoveProjects.ps1 -flavor GTA

echo Restoring NuGet packages
cd GoogleTestAdapter
pushd GoogleTestAdapter
nuget restore

echo Setting up VS Developer Prompt environment
pushd .
call %VC_VARS_BAT%
popd

echo Copying DIA dlls
cd DiaResolver
pushd DiaResolver
copy %DIA_SDK%\msdia140.dll x86
copy %DIA_SDK%\amd64\msdia140.dll x64

echo Generating dia2.dll
cd dia2
pushd dia2
powershell -ExecutionPolicy Bypass .\compile_typelib.ps1

popd
popd
popd

echo NOT building Google Test NuGet packages
cd ..\..\..
rem echo Building Google Test NuGet packages
rem cd ..\..
rem nuget.exe restore GoogleTestAdapter.sln
rem cd ..
rem git submodule init
rem git submodule update
rem cd GoogleTestNuGet
rem pushd GoogleTestNuGet
rem powershell .\Build.ps1 -Verbose
rem cd ..
rem popd


:End

0 comments on commit 2036436

Please sign in to comment.