REM sfml-nmake-build.bat
REM Automates the building of the SFML 2.0 binaries with NMake for development
REM with Visual C++.
REM
REM DO NOT REMOVE THE FOLLOWING NOTICE
REM Copyright (C) Alex Thorne 2011
REM Created by SFMLCoder/Xander314/Xephyr
REM http://s...content-available-to-author-only...s.com/
REM http://w...content-available-to-author-only...e.com/SFMLCoder/
REM
REM This file is licensed to you in the public domain.
REM Please note that this file is AS-IS. I am in no way responsible for this
REM file's suitability for purpose, nor am I responsible for any damage it causes
REM to you, your computer and setup or any third party, even if I was advised of
REM the possibility of this damage.
REM
REM By default, this script requires the SFML 2.0 source to have been extracted
REM to c:/sfml/sfml2/
REM To use another directory, change the SFML_DIR variable below
set SFML_DIR c:/sfml/sfml2/
REM It also assumes that is is run from an environment in which nmake and cmake are
REM locatable without full path qualification
@echo off
echo building sfml2...
echo this may take some time
echo script created by SFML Coder
echo http://s...content-available-to-author-only...s.com/
echo
cd c:/sfml/sfml2/
echo makefile: release dll
cmake -G "NMake Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=TRUE -D STATIC_STD_LIBS=FALSE SFML_DIR
echo build release dlls
nmake
echo makefile
cmake -G "NMake Makefiles" -D CMAKE_BUILD_TYPE=Debug -D BUILD_SHARED_LIBS=TRUE -D STATIC_STD_LIBS=FALSE SFML_DIR
echo build release dlls
nmake
echo makefile: release static
cmake -G "NMake Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=FALSE -D STATIC_STD_LIBS=FALSE SFML_DIR
echo build release libraries
nmake
echo makefile: debug static
cmake -G "NMake Makefiles" -D CMAKE_BUILD_TYPE=Debug -D BUILD_SHARED_LIBS=FALSE -D STATIC_STD_LIBS=FALSE SFML_DIR
echo build debug libraries
nmake