Fix the Code::Blocks project file so that it compiles properly on GNU/Linux as well
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3953 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
dc79c672e5
commit
ae88c9de7b
|
@ -18,26 +18,28 @@
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="DBGUnix">
|
<Target title="DBGUnix">
|
||||||
<Option platforms="Unix;" />
|
<Option platforms="Unix;" />
|
||||||
<Option output="bin\Debug\warzone2100" prefix_auto="1" extension_auto="1" />
|
<Option output="bin/Debug/warzone2100" prefix_auto="1" extension_auto="1" />
|
||||||
<Option object_output="obj\Debug\" />
|
<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="`pkg-config --cflags sdl openal libpng vorbisfile`" />
|
||||||
<Add option="-DDEBUG" />
|
<Add option="-DDEBUG" />
|
||||||
|
<Add option='-DPACKAGE_DISTRIBUTOR=\\"UNKNOWN\\"' />
|
||||||
<Add option='-DPACKAGE_VERSION=\\"TRUNK\\"' />
|
<Add option='-DPACKAGE_VERSION=\\"TRUNK\\"' />
|
||||||
<Add option='-DLOCALEDIR=\\"\\"' />
|
<Add option='-DLOCALEDIR=\\"\\"' />
|
||||||
<Add option='-DPACKAGE=\\"warzone2100\\"' />
|
<Add option='-DPACKAGE=\\"warzone2100\\"' />
|
||||||
<Add option="-D_GNU_SOURCE=1" />
|
<Add option="-D_GNU_SOURCE=1" />
|
||||||
</Compiler>
|
</Compiler>
|
||||||
<Linker>
|
<Linker>
|
||||||
|
<Add option="`pkg-config --libs sdl openal libpng vorbisfile`" />
|
||||||
<Add library="m" />
|
<Add library="m" />
|
||||||
<Add library="pthread" />
|
<Add library="pthread" />
|
||||||
<Add library="GL" />
|
<Add library="GL" />
|
||||||
<Add library="GLU" />
|
<Add library="GLU" />
|
||||||
<Add library="GLC" />
|
<Add library="GLC" />
|
||||||
<Add library="openal" />
|
|
||||||
</Linker>
|
</Linker>
|
||||||
<ExtraCommands>
|
<ExtraCommands>
|
||||||
<Add before="build_tools/autorevision/autorevision +cstr . src/autorevision.h" />
|
<Add before="build_tools/autorevision/autorevision +cstr . src/autorevision.h" />
|
||||||
|
@ -45,14 +47,16 @@
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="NDBGUnix">
|
<Target title="NDBGUnix">
|
||||||
<Option platforms="Unix;" />
|
<Option platforms="Unix;" />
|
||||||
<Option output="bin\Release\warzone2100" prefix_auto="1" extension_auto="1" />
|
<Option output="bin/Release/warzone2100" prefix_auto="1" extension_auto="1" />
|
||||||
<Option object_output="obj\Release\" />
|
<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="`pkg-config --cflags sdl openal libpng vorbisfile`" />
|
||||||
<Add option="-DNDEBUG" />
|
<Add option="-DNDEBUG" />
|
||||||
|
<Add option='-DPACKAGE_DISTRIBUTOR=\\"UNKNOWN\\"' />
|
||||||
<Add option='-DPACKAGE_VERSION=\\"TRUNK\\"' />
|
<Add option='-DPACKAGE_VERSION=\\"TRUNK\\"' />
|
||||||
<Add option='-DLOCALEDIR=\\"\\"' />
|
<Add option='-DLOCALEDIR=\\"\\"' />
|
||||||
<Add option='-DPACKAGE=\\"warzone2100\\"' />
|
<Add option='-DPACKAGE=\\"warzone2100\\"' />
|
||||||
|
@ -60,12 +64,12 @@
|
||||||
</Compiler>
|
</Compiler>
|
||||||
<Linker>
|
<Linker>
|
||||||
<Add option="-s" />
|
<Add option="-s" />
|
||||||
|
<Add option="`pkg-config --libs sdl openal libpng vorbisfile`" />
|
||||||
<Add library="m" />
|
<Add library="m" />
|
||||||
<Add library="pthread" />
|
<Add library="pthread" />
|
||||||
<Add library="GL" />
|
<Add library="GL" />
|
||||||
<Add library="GLU" />
|
<Add library="GLU" />
|
||||||
<Add library="GLC" />
|
<Add library="GLC" />
|
||||||
<Add library="openal" />
|
|
||||||
</Linker>
|
</Linker>
|
||||||
<ExtraCommands>
|
<ExtraCommands>
|
||||||
<Add before="build_tools/autorevision/autorevision +cstr . src/autorevision.h" />
|
<Add before="build_tools/autorevision/autorevision +cstr . src/autorevision.h" />
|
||||||
|
@ -73,14 +77,15 @@
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="DBGWindows">
|
<Target title="DBGWindows">
|
||||||
<Option platforms="Windows;" />
|
<Option platforms="Windows;" />
|
||||||
<Option output="bin\Debug\warzone2100" prefix_auto="1" extension_auto="1" />
|
<Option output="bin/Debug/warzone2100" prefix_auto="1" extension_auto="1" />
|
||||||
<Option object_output="obj\Debug\" />
|
<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='-DPACKAGE_DISTRIBUTOR=\"UNKNOWN\"' />
|
||||||
<Add option='-DPACKAGE_VERSION=\"TRUNK\"' />
|
<Add option='-DPACKAGE_VERSION=\"TRUNK\"' />
|
||||||
<Add option='-DLOCALEDIR=\"\"' />
|
<Add option='-DLOCALEDIR=\"\"' />
|
||||||
<Add option='-DPACKAGE=\"warzone2100\"' />
|
<Add option='-DPACKAGE=\"warzone2100\"' />
|
||||||
|
@ -101,6 +106,7 @@
|
||||||
<Add library="dbghelp" />
|
<Add library="dbghelp" />
|
||||||
<Add library="winmm" />
|
<Add library="winmm" />
|
||||||
<Add library="wsock32" />
|
<Add library="wsock32" />
|
||||||
|
<Add library="intl" />
|
||||||
<Add directory="$(#warzone_devpkg.lib)" />
|
<Add directory="$(#warzone_devpkg.lib)" />
|
||||||
</Linker>
|
</Linker>
|
||||||
<ExtraCommands>
|
<ExtraCommands>
|
||||||
|
@ -109,14 +115,15 @@
|
||||||
</Target>
|
</Target>
|
||||||
<Target title="NDBGWindows">
|
<Target title="NDBGWindows">
|
||||||
<Option platforms="Windows;" />
|
<Option platforms="Windows;" />
|
||||||
<Option output="bin\Release\warzone2100" prefix_auto="1" extension_auto="1" />
|
<Option output="bin/Release/warzone2100" prefix_auto="1" extension_auto="1" />
|
||||||
<Option object_output="obj\Release\" />
|
<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='-DPACKAGE_DISTRIBUTOR=\"UNKNOWN\"' />
|
||||||
<Add option='-DPACKAGE_VERSION=\"TRUNK\"' />
|
<Add option='-DPACKAGE_VERSION=\"TRUNK\"' />
|
||||||
<Add option='-DLOCALEDIR=\"\"' />
|
<Add option='-DLOCALEDIR=\"\"' />
|
||||||
<Add option='-DPACKAGE=\"warzone2100\"' />
|
<Add option='-DPACKAGE=\"warzone2100\"' />
|
||||||
|
@ -138,6 +145,7 @@
|
||||||
<Add library="dbghelp" />
|
<Add library="dbghelp" />
|
||||||
<Add library="winmm" />
|
<Add library="winmm" />
|
||||||
<Add library="wsock32" />
|
<Add library="wsock32" />
|
||||||
|
<Add library="intl" />
|
||||||
<Add directory="$(#warzone_devpkg.lib)" />
|
<Add directory="$(#warzone_devpkg.lib)" />
|
||||||
</Linker>
|
</Linker>
|
||||||
<ExtraCommands>
|
<ExtraCommands>
|
||||||
|
@ -162,7 +170,6 @@
|
||||||
</Compiler>
|
</Compiler>
|
||||||
<Linker>
|
<Linker>
|
||||||
<Add library="popt" />
|
<Add library="popt" />
|
||||||
<Add library="intl" />
|
|
||||||
<Add library="physfs" />
|
<Add library="physfs" />
|
||||||
<Add library="png" />
|
<Add library="png" />
|
||||||
<Add library="SDL" />
|
<Add library="SDL" />
|
||||||
|
@ -171,7 +178,7 @@
|
||||||
<Add library="vorbis" />
|
<Add library="vorbis" />
|
||||||
<Add library="ogg" />
|
<Add library="ogg" />
|
||||||
</Linker>
|
</Linker>
|
||||||
<Unit filename="build_tools\autorevision\autorevision.cpp">
|
<Unit filename="build_tools/autorevision/autorevision.cpp">
|
||||||
<Option target="AutoRevision" />
|
<Option target="AutoRevision" />
|
||||||
</Unit>
|
</Unit>
|
||||||
<Unit filename="lib/framework/SDL_framerate.c">
|
<Unit filename="lib/framework/SDL_framerate.c">
|
||||||
|
@ -2757,13 +2764,15 @@
|
||||||
<Option target="DBGWindows" />
|
<Option target="DBGWindows" />
|
||||||
<Option target="NDBGWindows" />
|
<Option target="NDBGWindows" />
|
||||||
</Unit>
|
</Unit>
|
||||||
<Unit filename="win32\warzone2100.rc">
|
<Unit filename="win32/warzone2100.rc">
|
||||||
<Option compilerVar="WINDRES" />
|
<Option compilerVar="WINDRES" />
|
||||||
<Option target="DBGWindows" />
|
<Option target="DBGWindows" />
|
||||||
<Option target="NDBGWindows" />
|
<Option target="NDBGWindows" />
|
||||||
</Unit>
|
</Unit>
|
||||||
<Extensions>
|
<Extensions>
|
||||||
<code_completion />
|
<code_completion />
|
||||||
|
<envvars />
|
||||||
|
<debugger />
|
||||||
</Extensions>
|
</Extensions>
|
||||||
</Project>
|
</Project>
|
||||||
</CodeBlocks_project_file>
|
</CodeBlocks_project_file>
|
||||||
|
|
Loading…
Reference in New Issue