Added build script allowing use of different toolchains
holdingarea/build.bat provides command-line switches allowing:
* Selection between Visual Studio versions (2005 / 2008)
* Selection of debug / release builds
* Selection of CMake generator (Visual Studio solution / NMake makefiles)
* Enabling of miniEGL in the build
* Enabling of PlatSim extensions in the build
Calling the script with no parameters will start a build using
Visual Studio 2005 and nmake.
#! /bin/bash
set -e
EGL_CONFIG=-DUSE_MINI_EGL:Bool=ON
mkdir -p x86Debug; cd x86Debug; cmake .. $EGL_CONFIG -DCMAKE_BUILD_TYPE=Debug && make; cd ..
#mkdir -p x86Release && cd x86Release && cmake .. $EGL_CONFIG -DCMAKE_BUILD_TYPE=Release && make && cd ..
# Profiling build is the same as release (optimizations, etc.), but with debug symbols
#mkdir -p x86Profile && cd x86Profile && cmake .. $EGL_CONFIG -DCMAKE_BUILD_TYPE=RelWithDebInfo && make && cd ..