Update-Installer/external/win32cpp/tools/Compile VS2010 Express.bat
Robert Knight d16da069e9 Add Win++ library to external
This is a thin wrapper around the Win32 API used in the Win32
Updater Dialog implementation.
2011-08-23 19:54:52 +01:00

224 lines
20 KiB
Batchfile

REM: A batch program to rebuild the Win32++ samples using VS2010 Express.
REM: The contents of the log file is erased
REM: Set the paths and environment variables
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
::Cleanup
call CleanSamples
call CleanTutorials
REM: Change the directory to the Samples parent
pushd ..\Samples
if exist "..\output\VS2010\Debug" rmdir /s /q "..\output\VS2010\Debug"
if exist "..\output\VS2010\Release" rmdir /s /q "..\output\VS2010\Release"
if exist "..\output\VS2010\Tutorials" rmdir /s /q "..\output\VS2010\Tutorials"
@echo on
::Compile code
MSBuild Browser\ProjectFiles\Browser_2010.sln /p:Configuration=Debug > "..\output\VS2010.log"
MSBuild Browser\ProjectFiles\Browser_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild CustomControl\ProjectFiles\CustomControl_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild CustomControl\ProjectFiles\CustomControl_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Dialog\ProjectFiles\Dialog_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Dialog\ProjectFiles\Dialog_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild DialogBars\ProjectFiles\DialogBars_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild DialogBars\ProjectFiles\DialogBars_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild DialogDemo\ProjectFiles\DialogDemo_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild DialogDemo\ProjectFiles\DialogDemo_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild DialogTab\ProjectFiles\DialogTab_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild DialogTab\ProjectFiles\DialogTab_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
REM MSBuild DirectX\ProjectFiles\DirectX_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
REM MSBuild DirectX\ProjectFiles\DirectX_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Dock\ProjectFiles\Dock_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Dock\ProjectFiles\Dock_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild DockContainer\ProjectFiles\DockContainer_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild DockContainer\ProjectFiles\DockContainer_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild DockTabbedMDI\ProjectFiles\DockTabbedMDI_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild DockTabbedMDI\ProjectFiles\DockTabbedMDI_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Explorer\ProjectFiles\Explorer_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Explorer\ProjectFiles\Explorer_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild FastGDI\ProjectFiles\FastGDI_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild FastGDI\ProjectFiles\FastGDI_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild FormDemo\ProjectFiles\FormDemo_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild FormDemo\ProjectFiles\FormDemo_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Frame\ProjectFiles\Frame_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Frame\ProjectFiles\Frame_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild GDIPlus\ProjectFiles\GDIPlus_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild GDIPlus\ProjectFiles\GDIPlus_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild MDIFrame\ProjectFiles\MDIFrame_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild MDIFrame\ProjectFiles\MDIFrame_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild MDIFrameDemo\ProjectFiles\MDIDemo_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild MDIFrameDemo\ProjectFiles\MDIDemo_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild MDIFrameSplitter\ProjectFiles\MDIFrameSplitter_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild MDIFrameSplitter\ProjectFiles\MDIFrameSplitter_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Networking\ClientDlg\Client_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Networking\ClientDlg\Client_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Networking\ServerDlg\Server_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Networking\ServerDlg\Server_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild NotePad\ProjectFiles\Notepad_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild NotePad\ProjectFiles\Notepad_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Performance\ProjectFiles\Performance_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Performance\ProjectFiles\Performance_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Picture\ProjectFiles\Picture_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Picture\ProjectFiles\Picture_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild PropertySheet\ProjectFiles\PropertySheet_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild PropertySheet\ProjectFiles\PropertySheet_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Scribble\ProjectFiles\Scribble_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Scribble\ProjectFiles\Scribble_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Simple\ProjectFiles\Simple_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Simple\ProjectFiles\Simple_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Splitter\ProjectFiles\Splitter_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Splitter\ProjectFiles\Splitter_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild RibbonFrame\ProjectFiles\RibbonFrame_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild RibbonFrame\ProjectFiles\RibbonFrame_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild RibbonSimple\ProjectFiles\SimpleRibbon_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild RibbonSimple\ProjectFiles\SimpleRibbon_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild TabDemo\ProjectFiles\TabDemo_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild TabDemo\ProjectFiles\TabDemo_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild TaskDialog\ProjectFiles\TaskDialog_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild TaskDialog\ProjectFiles\TaskDialog_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Themes\ProjectFiles\Themes_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Themes\ProjectFiles\Themes_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Threads\ProjectFiles\Threads_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Threads\ProjectFiles\Threads_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Tray\ProjectFiles\Tray_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Tray\ProjectFiles\Tray_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
mkdir "..\output\VS2010"
mkdir "..\output\VS2010\Debug"
ECHO "Copying Debug Samples" >>"..\output\VS2010.log"
copy Browser\ProjectFiles\Debug\Browser.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy Dialog\ProjectFiles\Debug\Dialog.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy CustomControl\ProjectFiles\Debug\CustomControl.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy DialogBars\ProjectFiles\Debug\DialogBars.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy DialogDemo\ProjectFiles\Debug\DialogDemo.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy DialogTab\ProjectFiles\Debug\DialogTab.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
REM copy DirectX\ProjectFiles\Debug\DirectX.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy Dock\ProjectFiles\Debug\Dock.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy DockContainer\ProjectFiles\Debug\DockContainer.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy DockTabbedMDI\ProjectFiles\Debug\DockTabbedMDI.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy Explorer\ProjectFiles\Debug\Explorer.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy FastGDI\ProjectFiles\Debug\FastGDI.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy FormDemo\ProjectFiles\Debug\FormDemo.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy Frame\ProjectFiles\Debug\Frame.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy GDIPlus\ProjectFiles\Debug\GDIPlus.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy MDIFrame\ProjectFiles\Debug\MDIFrame.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy MDIFrameDemo\ProjectFiles\Debug\MDIDemo.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy MDIFrameSplitter\ProjectFiles\Debug\MDIFrameSplitter.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy Networking\ClientDlg\Debug\Client.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy Networking\ServerDlg\Debug\Server.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy NotePad\ProjectFiles\Debug\Notepad.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy Performance\ProjectFiles\Debug\Performance.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy Picture\ProjectFiles\Debug\Picture.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy PropertySheet\ProjectFiles\Debug\PropertySheet.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy RibbonFrame\ProjectFiles\Debug\RibbonFrame.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy RibbonSimple\ProjectFiles\Debug\SimpleRibbon.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy Scribble\ProjectFiles\Debug\Scribble.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy Simple\ProjectFiles\Debug\Simple.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy Splitter\ProjectFiles\Debug\Splitter.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy TabDemo\ProjectFiles\Debug\TabDemo.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy TaskDialog\ProjectFiles\Debug\TaskDialog.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy Themes\ProjectFiles\Debug\Themes.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy Threads\ProjectFiles\Debug\Threads.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
copy Tray\ProjectFiles\Debug\Tray.exe "..\output\VS2010\Debug" >>"..\output\VS2010.log"
mkdir "..\output\VS2010\Release"
ECHO "Copying Release Samples" >>"..\output\VS2010.log"
copy Browser\ProjectFiles\Release\Browser.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy CustomControl\ProjectFiles\Release\CustomControl.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy Dialog\ProjectFiles\Release\Dialog.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy DialogBars\ProjectFiles\Release\DialogBars.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy DialogDemo\ProjectFiles\Release\DialogDemo.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy DialogTab\ProjectFiles\Release\DialogTab.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
REM copy DirectX\ProjectFiles\Release\DirectX.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy Dock\ProjectFiles\Release\Dock.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy DockContainer\ProjectFiles\Release\DockContainer.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy DockTabbedMDI\ProjectFiles\Release\DockTabbedMDI.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy Explorer\ProjectFiles\Release\Explorer.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy FastGDI\ProjectFiles\Release\FastGDI.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy FormDemo\ProjectFiles\Release\FormDemo.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy Frame\ProjectFiles\Release\Frame.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy GDIPlus\ProjectFiles\Release\GDIPlus.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy MDIFrame\ProjectFiles\Release\MDIFrame.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy MDIFrameDemo\ProjectFiles\Release\MDIDemo.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy MDIFrameSplitter\ProjectFiles\Release\MDIFrameSplitter.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy Networking\ClientDlg\Release\Client.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy Networking\ServerDlg\Release\Server.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy NotePad\ProjectFiles\Release\Notepad.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy Performance\ProjectFiles\Release\Performance.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy Picture\ProjectFiles\Release\Picture.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy PropertySheet\ProjectFiles\Release\PropertySheet.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy RibbonFrame\ProjectFiles\Release\RibbonFrame.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy RibbonSimple\ProjectFiles\Release\SimpleRibbon.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy Scribble\ProjectFiles\Release\Scribble.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy Simple\ProjectFiles\Release\Simple.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy Splitter\ProjectFiles\Release\Splitter.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy TabDemo\ProjectFiles\Release\TabDemo.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy TaskDialog\ProjectFiles\Release\TaskDialog.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy Themes\ProjectFiles\Release\Themes.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy Threads\ProjectFiles\Release\Threads.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
copy Tray\ProjectFiles\Release\Tray.exe "..\output\VS2010\Release" >>"..\output\VS2010.log"
REM: Change the directory to the Tutorials parent
popd
pushd ..\Tutorials
REM: Compile Tutorials
ECHO "Compliling Tutorials" >>"..\output\VS2010.log"
::Compile code
MSBuild Tutorial1\Tutorial1_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Tutorial1\Tutorial1_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Tutorial2\Tutorial2_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Tutorial2\Tutorial2_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Tutorial3\Tutorial3_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Tutorial3\Tutorial3_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Tutorial4\Tutorial4_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Tutorial4\Tutorial4_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Tutorial5\Tutorial5_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Tutorial5\Tutorial5_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Tutorial6\Tutorial6_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Tutorial6\Tutorial6_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Tutorial7\Tutorial7_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Tutorial7\Tutorial7_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Tutorial8\Tutorial8_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Tutorial8\Tutorial8_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
MSBuild Tutorial9\Tutorial9_2010.sln /p:Configuration=Debug >>"..\output\VS2010.log"
MSBuild Tutorial9\Tutorial9_2010.sln /p:Configuration=Release >>"..\output\VS2010.log"
mkdir "..\output\VS2010\Tutorials"
mkdir "..\output\VS2010\Tutorials\Debug"
ECHO "Copying Debug Tutorials" >>"..\output\VS2010.log"
copy Tutorial1\Debug\Tutorial1.exe "..\output\VS2010\Tutorials\Debug" >>"..\output\VS2010.log"
copy Tutorial2\Debug\Tutorial2.exe "..\output\VS2010\Tutorials\Debug" >>"..\output\VS2010.log"
copy Tutorial3\Debug\Tutorial3.exe "..\output\VS2010\Tutorials\Debug" >>"..\output\VS2010.log"
copy Tutorial4\Debug\Tutorial4.exe "..\output\VS2010\Tutorials\Debug" >>"..\output\VS2010.log"
copy Tutorial5\Debug\Tutorial5.exe "..\output\VS2010\Tutorials\Debug" >>"..\output\VS2010.log"
copy Tutorial6\Debug\Tutorial6.exe "..\output\VS2010\Tutorials\Debug" >>"..\output\VS2010.log"
copy Tutorial7\Debug\Tutorial7.exe "..\output\VS2010\Tutorials\Debug" >>"..\output\VS2010.log"
copy Tutorial8\Debug\Tutorial8.exe "..\output\VS2010\Tutorials\Debug" >>"..\output\VS2010.log"
copy Tutorial9\Debug\Tutorial9.exe "..\output\VS2010\Tutorials\Debug" >>"..\output\VS2010.log"
mkdir "..\output\VS2010\Tutorials\Release"
ECHO "Copying Release Tutorials" >>"..\output\VS2010.log"
copy Tutorial1\Release\Tutorial1.exe "..\output\VS2010\Tutorials\Release" >>"..\output\VS2010.log"
copy Tutorial2\Release\Tutorial2.exe "..\output\VS2010\Tutorials\Release" >>"..\output\VS2010.log"
copy Tutorial3\Release\Tutorial3.exe "..\output\VS2010\Tutorials\Release" >>"..\output\VS2010.log"
copy Tutorial4\Release\Tutorial4.exe "..\output\VS2010\Tutorials\Release" >>"..\output\VS2010.log"
copy Tutorial5\Release\Tutorial5.exe "..\output\VS2010\Tutorials\Release" >>"..\output\VS2010.log"
copy Tutorial6\Release\Tutorial6.exe "..\output\VS2010\Tutorials\Release" >>"..\output\VS2010.log"
copy Tutorial7\Release\Tutorial7.exe "..\output\VS2010\Tutorials\Release" >>"..\output\VS2010.log"
copy Tutorial8\Release\Tutorial8.exe "..\output\VS2010\Tutorials\Release" >>"..\output\VS2010.log"
copy Tutorial9\Release\Tutorial9.exe "..\output\VS2010\Tutorials\Release" >>"..\output\VS2010.log"
REM: Pop the directory change off the stack
popd