-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
setupCommandLine 110 build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
@echo off | ||
|
||
rem setupCommandLine.cmd | ||
rem | ||
rem openFrameworks C++ Libraries command-line build script | ||
rem for MS Visual Studio 2010 to 2012 | ||
rem | ||
rem Usage | ||
rem ----- | ||
rem setupCommandLine VS_VERSION [ACTION] | ||
rem VS_VERSION: 100|110 | ||
rem ACTION: build | ||
|
||
|
||
rem /////////////////////////////// | ||
rem / Load Visual C++ Environment / | ||
rem /////////////////////////////// | ||
:loader | ||
|
||
echo /////////////////////////////// | ||
echo / openFrameworks build script / | ||
echo /////////////////////////////// | ||
echo. | ||
echo ++++ Loading variables | ||
if "%1"=="" (set VS_VERSION=110) else (set VS_VERSION=%1) | ||
if not defined VCINSTALLDIR ( | ||
if %VS_VERSION%==100 (call "%VS100COMNTOOLS%vsvars32.bat") else ( | ||
if %VS_VERSION%==110 (call "%VS110COMNTOOLS%vsvars32.bat") | ||
)) | ||
|
||
if not defined VSINSTALLDIR ( | ||
echo Error: No Visual C++ environment found. | ||
echo Please run this script from a Visual Studio Command Prompt | ||
echo or run "%%VSnnCOMNTOOLS%%\vsvars32.bat" first. | ||
) else (echo ++++ Variables loaded) | ||
) | ||
|
||
|
||
rem /////////////// | ||
rem / Builder C++ / | ||
rem /////////////// | ||
:builder | ||
|
||
set OLDDIR=%CD% | ||
if "%2"=="build" ( | ||
for /d %%X in (..\..\examples\*) do ( | ||
cd %%X | ||
for /d %%Y in (*) do ( | ||
cd %%Y | ||
for %%Z in (*.sln) do ( | ||
echo. | ||
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
echo ++++ Building [%%Z] | ||
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
echo. | ||
|
||
msbuild /nologo /noautoresponse %%Z /p:Configuration=Debug | ||
msbuild /nologo /noautoresponse %%Z /p:Configuration=Release | ||
) | ||
cd ../ | ||
) | ||
) | ||
cd /d %OLDDIR% | ||
) |