* Add dual platform support to Code::Blocks project file (now supports both Linux and Windows, requires a rather recent version of Code::Blocks though)

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2470 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-09-24 19:16:58 +00:00
parent 33b5764611
commit 244842406c
1 changed files with 94 additions and 15 deletions

View File

@ -6,54 +6,128 @@
<Option pch_mode="2" /> <Option pch_mode="2" />
<Option compiler="gcc" /> <Option compiler="gcc" />
<Build> <Build>
<Target title="Debug"> <Target title="Debug-Linux">
<Option output="bin/Debug/warzone2100" prefix_auto="1" extension_auto="1" /> <Option platforms="Unix;" />
<Option object_output="obj/Debug/" /> <Option output="bin\Debug\warzone2100" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="0" /> <Option type="0" />
<Option compiler="gcc" /> <Option compiler="gcc" />
<Option parameters="--datadir data" /> <Option parameters="--datadir data" />
<Compiler> <Compiler>
<Add option="-g" /> <Add option="-g" />
<Add option="-DDEBUG" /> <Add option="-DDEBUG" />
<Add option='-DVERSION=\\&quot;TRUNK\\&quot;' />
<Add option='-DLOCALEDIR=\\&quot;\\&quot;' />
<Add option='-DPACKAGE=\\&quot;warzone2100\\&quot;' />
</Compiler> </Compiler>
<Linker>
<Add library="m" />
<Add library="pthread" />
<Add library="GL" />
<Add library="GLU" />
<Add library="openal" />
</Linker>
</Target> </Target>
<Target title="Release"> <Target title="Release-Linux">
<Option output="bin/Release/warzone2100" prefix_auto="1" extension_auto="1" /> <Option platforms="Unix;" />
<Option object_output="obj/Release/" /> <Option output="bin\Release\warzone2100" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="0" /> <Option type="0" />
<Option compiler="gcc" /> <Option compiler="gcc" />
<Option parameters="--datadir data" /> <Option parameters="--datadir data" />
<Compiler> <Compiler>
<Add option="-O2" /> <Add option="-O2" />
<Add option="-DNDEBUG" /> <Add option="-DNDEBUG" />
<Add option='-DVERSION=\\&quot;TRUNK\\&quot;' />
<Add option='-DLOCALEDIR=\\&quot;\\&quot;' />
<Add option='-DPACKAGE=\\&quot;warzone2100\\&quot;' />
</Compiler> </Compiler>
<Linker> <Linker>
<Add library="m" />
<Add library="pthread" />
<Add library="GL" />
<Add library="GLU" />
<Add library="openal" />
<Add option="-s" />
</Linker>
</Target>
<Target title="Debug-Windows">
<Option platforms="Windows;" />
<Option output="bin\Debug\warzone2100" prefix_auto="1" extension_auto="1" />
<Option type="0" />
<Option compiler="gcc" />
<Option parameters="--datadir data" />
<Compiler>
<Add option="-g" />
<Add option="-DDEBUG" />
<Add option='-DVERSION=\&quot;TRUNK\&quot;' />
<Add option='-DLOCALEDIR=\&quot;\&quot;' />
<Add option='-DPACKAGE=\&quot;warzone2100\&quot;' />
<Add option="-DWIN32" />
<Add option="-DYY_STATIC" />
<Add directory="$(#warzone_devpkg.include)" />
</Compiler>
<Linker>
<Add library="mingw32" />
<Add library="SDLmain" />
<Add library="z" />
<Add library="gdi32" />
<Add library="opengl32" />
<Add library="glu32" />
<Add library="openal32" />
<Add library="dbghelp" />
<Add library="winmm" />
<Add library="wsock32" />
<Add directory="$(#warzone_devpkg.lib)" />
</Linker>
</Target>
<Target title="Release-Windows">
<Option platforms="Windows;" />
<Option output="bin\Release\warzone2100" prefix_auto="1" extension_auto="1" />
<Option type="0" />
<Option compiler="gcc" />
<Option parameters="--datadir data" />
<Compiler>
<Add option="-O2" />
<Add option="-DNDEBUG" />
<Add option='-DVERSION=\&quot;TRUNK\&quot;' />
<Add option='-DLOCALEDIR=\&quot;\&quot;' />
<Add option='-DPACKAGE=\&quot;warzone2100\&quot;' />
<Add option="-DWIN32" />
<Add option="-DYY_STATIC" />
<Add directory="$(#warzone_devpkg.include)" />
</Compiler>
<Linker>
<Add library="mingw32" />
<Add library="SDLmain" />
<Add library="z" />
<Add library="gdi32" />
<Add library="opengl32" />
<Add library="glu32" />
<Add library="openal32" />
<Add library="dbghelp" />
<Add library="winmm" />
<Add library="wsock32" />
<Add directory="$(#warzone_devpkg.lib)" />
<Add option="-s" /> <Add option="-s" />
</Linker> </Linker>
</Target> </Target>
</Build> </Build>
<VirtualTargets> <VirtualTargets>
<Add alias="All" targets="Debug;Release;" /> <Add alias="All-Linux" targets="Debug-Linux;Release-Linux;" />
<Add alias="All-Windows" targets="Debug-Windows;Release-Windows;" />
</VirtualTargets> </VirtualTargets>
<Compiler> <Compiler>
<Add option="-Wall" /> <Add option="-Wall" />
<Add option="-Werror-implicit-function-declaration" /> <Add option="-Werror-implicit-function-declaration" />
<Add option="-std=gnu99" /> <Add option="-std=gnu99" />
<Add option='-DVERSION=\\&quot;TRUNK\\&quot;' />
<Add option='-DLOCALEDIR=\\&quot;\\&quot;' />
<Add option='-DPACKAGE=\\&quot;warzone2100\\&quot;' />
<Add directory="." /> <Add directory="." />
</Compiler> </Compiler>
<Linker> <Linker>
<Add library="physfs" /> <Add library="physfs" />
<Add library="png" /> <Add library="png" />
<Add library="m" />
<Add library="SDL" /> <Add library="SDL" />
<Add library="pthread" />
<Add library="SDL_net" /> <Add library="SDL_net" />
<Add library="GL" />
<Add library="GLU" />
<Add library="openal" />
<Add library="vorbisfile" /> <Add library="vorbisfile" />
<Add library="vorbis" /> <Add library="vorbis" />
<Add library="ogg" /> <Add library="ogg" />
@ -873,6 +947,11 @@
<Option compilerVar="CC" /> <Option compilerVar="CC" />
</Unit> </Unit>
<Unit filename="src/wrappers.h" /> <Unit filename="src/wrappers.h" />
<Unit filename="win32/warzone2100.rc">
<Option compilerVar="WINDRES" />
<Option target="Debug-Windows" />
<Option target="Release-Windows" />
</Unit>
<Extensions> <Extensions>
<code_completion /> <code_completion />
</Extensions> </Extensions>