diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2006-01-09 11:22:36 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2006-01-09 11:22:36 +0000 |
| commit | 0e419987e48b006104748118fa28161484b7dfa1 (patch) | |
| tree | 45c1c1fe81309615e1e6d239183b677be90feb41 /tools | |
| parent | d2a10f5676a4ab53aec437bd5976e2aef6bde0a4 (diff) | |
| download | rockbox-0e419987e48b006104748118fa28161484b7dfa1.zip rockbox-0e419987e48b006104748118fa28161484b7dfa1.tar.gz rockbox-0e419987e48b006104748118fa28161484b7dfa1.tar.bz2 rockbox-0e419987e48b006104748118fa28161484b7dfa1.tar.xz | |
SDL simulator brought by Nathan Hand and Nick Lanham. This is added as a third
simulator with the hope that once it works fine, we can remove the other two
and only have one unified simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8312 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/configure | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/tools/configure b/tools/configure index 042080f..0e960f9 100755 --- a/tools/configure +++ b/tools/configure @@ -80,6 +80,11 @@ simcc () { # win32 version GCCOPTS="$GCCOPTS -mno-cygwin -DNOCYGWIN" LDOPTS="-lgdi32 -luser32 -mno-cygwin" + elif [ "$simver" = "sdl" ]; then + # sdl version + GCCOPTS="$GCCOPTS `sdl-config --cflags`" + LDOPTS="`sdl-config --libs`" + checksoundcard else # x11 version GCCOPTS="$GCCOPTS" @@ -92,10 +97,15 @@ simcc () { Linux) echo "Linux host detected" GCCOPTS="$GCCOPTS" - LDOPTS='-L/usr/X11R6/lib -lX11 -lm -lXt -lXmu -lnsl -ldl -lpthread' if [ "$simver" = "win32" ]; then + LDOPTS='-L/usr/X11R6/lib -lX11 -lm -lXt -lXmu -lnsl -ldl -lpthread' crosswincc # setup cross-compiler + elif [ "$simver" = "sdl" ]; then + GCCOPTS="$GCCOPTS `sdl-config --cflags`" + LDOPTS="`sdl-config --libs`" + checksoundcard else + LDOPTS='-L/usr/X11R6/lib -lX11 -lm -lXt -lXmu -lnsl -ldl -lpthread' checksoundcard fi # not a cross-compiler ;; @@ -247,7 +257,7 @@ if [ -z "$simver" ]; then # Figure out win32/x11 GUI # echo "" - echo "Build (W)in32 or (X)11 GUI version? (X)" + echo "Build (W)in32 or (X)11 or (S)DL GUI version? (S)" option=`input`; @@ -262,8 +272,13 @@ if [ -z "$simver" ]; then # make sure the code knows this is for win32 extradefines="$extradefines -DWIN32" ;; - *) + [Xx]) simver="x11" + extradefines="$extradefines -DX11" + ;; + [Ss]|*) + simver="sdl" + extradefines="$extradefines -DSDL" ;; esac echo "Selected $simver simulator" |