Skip to content

Commit

Permalink
Update build_static.bat to build 32-bit and 64-bit versions.
Browse files Browse the repository at this point in the history
The new build_static.bat also copies the results to UIforETW.exe
and UIforETW32.exe.
  • Loading branch information
randomascii committed Jun 6, 2015
1 parent 556a82e commit 137a84e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion UIforETW/build_static.bat
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,20 @@ call "%VS120COMNTOOLS%..\..\VC\vcvarsall.bat"
sed "s/UseOfMfc>Dynamic/UseOfMfc>Static/" <UIforETW.vcxproj >UIforETWStatic.vcxproj
sed "s/UIforETW.vcxproj/UIforETWStatic.vcxproj/" <UIforETW.sln >UIforETWStatic.sln
rmdir Release /s/q
rmdir x64\Release /s/q
devenv /rebuild "release|Win32" UIforETWStatic.sln
devenv /rebuild "release|x64" UIforETWStatic.sln
del UIforETWStatic.vcxproj
del UIforETWStatic.sln

@rem Clean up the build directory at the end to avoid subsequent build warnings.
@rem Clean up the build directories at the end to avoid subsequent build warnings.
rmdir Release /s/q
rmdir x64\Release /s/q

@rem Copy the results to the release executables
pushd %~dp0..\bin
echo >UIforETW32.exe
xcopy /y UIforETWStatic_devrel32.exe UIforETW32.exe
echo >UIforETW.exe
xcopy /y UIforETWStatic_devrel.exe UIforETW.exe
popd

0 comments on commit 137a84e

Please sign in to comment.