/ src / tools / windows / refresh_binaries.bat
refresh_binaries.bat
 1  REM This batch file is meant to facilitate regenerating prebuilt binaries for 
 2  REM the Windows tools.
 3  REM You MUST run it from a Visual Studio xxxx Command Prompt.  To do this,
 4  REM navigate to:
 5  REM 
 6  REM    Start->Programs->Microsoft Visual Studio XXXX->Tools->
 7  REM                        Visual Studio Command Prompt
 8  REM
 9  REM Then run this batch file.  It performs an SVN update, edits the
10  REM README.binaries file to contain
11  REM the revision number, and builds the tools.  You must run 'svn commit' to
12  REM commit the pending edits to the repository.
13  
14  pushd %~dp0
15  if %VisualStudioVersion% == 14.0 set GYP_MSVS_VERSION=2015
16  gyp tools_windows.gyp
17  msbuild tools_windows.sln /p:Configuration=Release /t:Clean,Build
18  copy Release\symupload.exe binaries\
19  copy Release\dump_syms.exe binaries\
20  git add binaries
21  git commit -m "Built Windows binaries"
22  echo Done!
23  popd