-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
1 parent
d9ac6c2
commit 4c09299
Showing
2 changed files
with
33 additions
and
1 deletion.
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,33 @@ | ||
setlocal EnableDelayedExpansion | ||
|
||
:: Configure for Release (results in smaller .dll file) | ||
set TARGET=Release | ||
|
||
:: Set target back to None for 64-bits builds with VS2008 and VS2010 | ||
if %VS_MAJOR% LSS 14 ( | ||
if %ARCH% == 64 ( | ||
set TARGET=None | ||
) | ||
) | ||
|
||
:: DirectX being integrated in the windows SDK and not being installed separately | ||
:: confuses good old Visual Studio 2008, so disable DirectX detection durion compilation. | ||
if "%VS_MAJOR%"=="9" ( | ||
set ADDITIONAL_OPTIONS="-SDL_DIRECTX=OFF" | ||
) | ||
if errorlevel 1 exit 1 | ||
|
||
:: Make a build folder and change to it. | ||
mkdir build | ||
cd build | ||
|
||
:: Configure using the CMakeFiles | ||
cmake .. -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" -DCMAKE_BUILD_TYPE:STRING=!TARGET! !ADDITIONAL_OPTIONS! .. | ||
if errorlevel 1 exit 1 | ||
|
||
:: Build! | ||
nmake | ||
if errorlevel 1 exit 1 | ||
|
||
nmake install | ||
if errorlevel 1 exit 1 |
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