Mercurial > fife-parpg
changeset 47:b3838661971f
* Applying code::blocks for linux support patch by amo-ej1
* Close #224
* Close #326
author | mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sun, 13 Jul 2008 11:20:39 +0000 |
parents | 90005975cdbb |
children | 097996ee0b3d |
files | build/linux/code_blocks/engine_template.xml build/linux/code_blocks/fife lib.cbp engine/SConscript |
diffstat | 3 files changed, 108 insertions(+), 323 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build/linux/code_blocks/engine_template.xml Sun Jul 13 11:20:39 2008 +0000 @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> +<CodeBlocks_project_file> + <FileVersion major="1" minor="6" /> + <Project> + <Option title="_fife.pyd" /> + <Option pch_mode="0" /> + <Option compiler="gcc" /> + <Build> + <Target title="default"> + <Option output="../../../engine/swigwrappers/python/_fife.so" prefix_auto="0" extension_auto="0" /> + <Option type="3" /> + <Option compiler="gcc" /> + <Option createDefFile="1" /> + <Compiler> + <Add option="-DHAVE_OPENGL" /> + <Add option="-DHAVE_ZIP" /> + <Add directory="../../../engine" /> + <Add directory="../../../engine/core" /> + </Compiler> + <Linker> + <Add option="-L/usr/lib" /> + <Add library="guichan_opengl" /> + <Add library="guichan_sdl" /> + <Add library="guichan" /> + <Add library="vorbis" /> + <Add library="ogg" /> + <Add library="vorbisfile" /> + <Add library="SDL_image" /> + <Add library="SDL" /> + <Add library="openal" /> + <Add library="SDL_ttf" /> + <Add library="boost_filesystem" /> + <Add library="boost_regex" /> + <Add library="png" /> + <Add library="GL" /> + <Add library="GLU" /> + <Add library="python2.5" /> + <Add directory="../../../ext/install/lib" /> + </Linker> + </Target> + </Build> + <VirtualTargets> + <Add alias="All" targets="default;" /> + </VirtualTargets> + <Compiler> + <Add option="-Wall" /> + <Add option="-O3" /> + <Add option="-fPIC" /> + <Add option="-D_GNU_SOURCE=1" /> + <Add option="-D_REENTRANT" /> + <Add option="-DHAVE_OPENGL" /> + <Add directory="/usr/include/python2.5" /> + <Add directory="/usr/include/SDL" /> + <Add directory="/usr/include/vorbis" /> + <Add directory="../../../ext/install/include" /> + </Compiler> + <Linker> + <Add option="-Wl,-rpath,../ext/install/lib,-rpath,ext/install/lib" /> + </Linker> +__FILE_INSERTION_POINT__ + <Extensions> + <code_completion /> + <envvars /> + <debugger /> + </Extensions> + </Project> +</CodeBlocks_project_file>
--- a/build/linux/code_blocks/fife lib.cbp Sun Jul 13 11:05:12 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,317 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> -<CodeBlocks_project_file> - <FileVersion major="1" minor="6" /> - <Project> - <Option title="_fife.pyd" /> - <Option pch_mode="0" /> - <Option compiler="gcc" /> - <Build> - <Target title="default"> - <Option output="../../../engine/swigwrappers/python/_fife.so" prefix_auto="0" extension_auto="0" /> - <Option type="3" /> - <Option compiler="gcc" /> - <Option createDefFile="1" /> - <Compiler> - <Add option="-DHAVE_OPENGL" /> - <Add option="-DHAVE_ZIP" /> - <Add directory="../../../engine" /> - <Add directory="../../../engine/core" /> - <Add directory="../mingw/include" /> - <Add directory="../mingw/include/python" /> - <Add directory="../mingw/include/boost" /> - <Add directory="../mingw/include/gettext" /> - <Add directory="../mingw/include/guichan" /> - <Add directory="../mingw/include/libvorbis" /> - <Add directory="../mingw/include/lua51" /> - <Add directory="../mingw/include/openal" /> - <Add directory="../mingw/include/opengl" /> - <Add directory="../mingw/include/png" /> - <Add directory="../mingw/include/sdl" /> - <Add directory="../mingw/include/sdl_image" /> - <Add directory="../mingw/include/sdl_ttf" /> - <Add directory="../mingw/include/zlib" /> - <Add directory="../mingw/include/minizip" /> - <Add directory="../applications/python25/include" /> - </Compiler> - <Linker> - <Add option="-L/usr/lib" /> - <Add library="minizip" /> - <Add library="guichan_opengl" /> - <Add library="guichan_sdl" /> - <Add library="guichan" /> - <Add library="vorbis" /> - <Add library="ogg" /> - <Add library="vorbisfile" /> - <Add library="SDL_image" /> - <Add library="SDL" /> - <Add library="openal" /> - <Add library="SDL_ttf" /> - <Add library="boost_filesystem" /> - <Add library="boost_regex" /> - <Add library="png" /> - <Add library="GL" /> - <Add library="GLU" /> - <Add library="python2.5" /> - <Add directory="../../../ext/install/lib" /> - </Linker> - </Target> - </Build> - <VirtualTargets> - <Add alias="All" targets="default;" /> - </VirtualTargets> - <Compiler> - <Add option="-Wall" /> - <Add option="-g" /> - <Add option="-fPIC" /> - <Add option="-D_GNU_SOURCE=1" /> - <Add option="-D_REENTRANT" /> - <Add option="-DLOG_ENABLED" /> - <Add option="-DHAVE_OPENGL" /> - <Add directory="/usr/include/python2.5" /> - <Add directory="/usr/include/SDL" /> - <Add directory="/usr/include/vorbis" /> - <Add directory="../../../ext/install/include" /> - </Compiler> - <Linker> - <Add option="-Wl,-rpath,../ext/install/lib,-rpath,ext/install/lib" /> - </Linker> - <Unit filename="../../../engine/core/audio/audiomanager.cpp" /> - <Unit filename="../../../engine/core/audio/audiomanager.h" /> - <Unit filename="../../../engine/core/audio/buffer.cpp" /> - <Unit filename="../../../engine/core/audio/buffer.h" /> - <Unit filename="../../../engine/core/audio/config.h" /> - <Unit filename="../../../engine/core/audio/decoder.cpp" /> - <Unit filename="../../../engine/core/audio/decoder.h" /> - <Unit filename="../../../engine/core/audio/decoder_acm.cpp" /> - <Unit filename="../../../engine/core/audio/decoder_acm.h" /> - <Unit filename="../../../engine/core/audio/decoder_oggvorbis.cpp" /> - <Unit filename="../../../engine/core/audio/decoder_oggvorbis.h" /> - <Unit filename="../../../engine/core/audio/fife_openal.h" /> - <Unit filename="../../../engine/core/audio/source.cpp" /> - <Unit filename="../../../engine/core/audio/source.h" /> - <Unit filename="../../../engine/core/controller/engine.cpp" /> - <Unit filename="../../../engine/core/controller/engine.h" /> - <Unit filename="../../../engine/core/eventchannel/base/ec_event.h" /> - <Unit filename="../../../engine/core/eventchannel/base/ec_ievent.h" /> - <Unit filename="../../../engine/core/eventchannel/base/ec_iinputevent.h" /> - <Unit filename="../../../engine/core/eventchannel/base/ec_inputevent.h" /> - <Unit filename="../../../engine/core/eventchannel/command/ec_command.h" /> - <Unit filename="../../../engine/core/eventchannel/command/ec_commandids.h" /> - <Unit filename="../../../engine/core/eventchannel/command/ec_icommand.h" /> - <Unit filename="../../../engine/core/eventchannel/command/ec_icommandcontroller.h" /> - <Unit filename="../../../engine/core/eventchannel/command/ec_icommanddispatcher.h" /> - <Unit filename="../../../engine/core/eventchannel/command/ec_icommandlistener.h" /> - <Unit filename="../../../engine/core/eventchannel/ec_ieventcontroller.h" /> - <Unit filename="../../../engine/core/eventchannel/key/ec_ikey.h" /> - <Unit filename="../../../engine/core/eventchannel/key/ec_ikeycontroller.h" /> - <Unit filename="../../../engine/core/eventchannel/key/ec_ikeyevent.h" /> - <Unit filename="../../../engine/core/eventchannel/key/ec_ikeylistener.h" /> - <Unit filename="../../../engine/core/eventchannel/key/ec_key.h" /> - <Unit filename="../../../engine/core/eventchannel/key/ec_keyevent.h" /> - <Unit filename="../../../engine/core/eventchannel/manager/eventmanager.cpp" /> - <Unit filename="../../../engine/core/eventchannel/manager/eventmanager.h" /> - <Unit filename="../../../engine/core/eventchannel/mouse/ec_imousecontroller.h" /> - <Unit filename="../../../engine/core/eventchannel/mouse/ec_imouseevent.h" /> - <Unit filename="../../../engine/core/eventchannel/mouse/ec_imouselistener.h" /> - <Unit filename="../../../engine/core/eventchannel/mouse/ec_mouseevent.h" /> - <Unit filename="../../../engine/core/eventchannel/sdl/ec_isdleventcontroller.h" /> - <Unit filename="../../../engine/core/eventchannel/sdl/ec_isdleventlistener.h" /> - <Unit filename="../../../engine/core/eventchannel/source/ec_eventsourcetypes.h" /> - <Unit filename="../../../engine/core/eventchannel/source/ec_ieventsource.h" /> - <Unit filename="../../../engine/core/eventchannel/widget/ec_iwidgetcontroller.h" /> - <Unit filename="../../../engine/core/eventchannel/widget/ec_iwidgetevent.h" /> - <Unit filename="../../../engine/core/eventchannel/widget/ec_iwidgetlistener.h" /> - <Unit filename="../../../engine/core/eventchannel/widget/ec_widgetevent.h" /> - <Unit filename="../../../engine/core/gui/base/gui_image.cpp" /> - <Unit filename="../../../engine/core/gui/base/gui_image.h" /> - <Unit filename="../../../engine/core/gui/base/gui_imageloader.cpp" /> - <Unit filename="../../../engine/core/gui/base/gui_imageloader.h" /> - <Unit filename="../../../engine/core/gui/base/opengl/opengl_gui_graphics.cpp" /> - <Unit filename="../../../engine/core/gui/base/opengl/opengl_gui_graphics.h" /> - <Unit filename="../../../engine/core/gui/base/sdl/sdl_gui_graphics.cpp" /> - <Unit filename="../../../engine/core/gui/base/sdl/sdl_gui_graphics.h" /> - <Unit filename="../../../engine/core/gui/console/commandline.cpp" /> - <Unit filename="../../../engine/core/gui/console/commandline.h" /> - <Unit filename="../../../engine/core/gui/console/console.cpp" /> - <Unit filename="../../../engine/core/gui/console/console.h" /> - <Unit filename="../../../engine/core/gui/fonts/fontbase.cpp" /> - <Unit filename="../../../engine/core/gui/fonts/fontbase.h" /> - <Unit filename="../../../engine/core/gui/fonts/imagefontbase.cpp" /> - <Unit filename="../../../engine/core/gui/fonts/imagefontbase.h" /> - <Unit filename="../../../engine/core/gui/fonts/subimagefont.cpp" /> - <Unit filename="../../../engine/core/gui/fonts/subimagefont.h" /> - <Unit filename="../../../engine/core/gui/fonts/textrenderpool.cpp" /> - <Unit filename="../../../engine/core/gui/fonts/textrenderpool.h" /> - <Unit filename="../../../engine/core/gui/fonts/truetypefont.cpp" /> - <Unit filename="../../../engine/core/gui/fonts/truetypefont.h" /> - <Unit filename="../../../engine/core/gui/guimanager.cpp" /> - <Unit filename="../../../engine/core/gui/guimanager.h" /> - <Unit filename="../../../engine/core/gui/widgets/clicklabel.cpp" /> - <Unit filename="../../../engine/core/gui/widgets/clicklabel.h" /> - <Unit filename="../../../engine/core/gui/widgets/icon2.cpp" /> - <Unit filename="../../../engine/core/gui/widgets/icon2.hpp" /> - <Unit filename="../../../engine/core/gui/widgets/twobutton.cpp" /> - <Unit filename="../../../engine/core/gui/widgets/twobutton.h" /> - <Unit filename="../../../engine/core/loaders/fallout/vfs_loaders/dat1.cpp" /> - <Unit filename="../../../engine/core/loaders/fallout/vfs_loaders/dat1.h" /> - <Unit filename="../../../engine/core/loaders/fallout/vfs_loaders/dat2.cpp" /> - <Unit filename="../../../engine/core/loaders/fallout/vfs_loaders/dat2.h" /> - <Unit filename="../../../engine/core/loaders/fallout/vfs_loaders/lzssdecoder.cpp" /> - <Unit filename="../../../engine/core/loaders/fallout/vfs_loaders/lzssdecoder.h" /> - <Unit filename="../../../engine/core/loaders/fallout/vfs_loaders/rawdatadat1.cpp" /> - <Unit filename="../../../engine/core/loaders/fallout/vfs_loaders/rawdatadat1.h" /> - <Unit filename="../../../engine/core/loaders/fallout/vfs_loaders/rawdatadat2.cpp" /> - <Unit filename="../../../engine/core/loaders/fallout/vfs_loaders/rawdatadat2.h" /> - <Unit filename="../../../engine/core/loaders/native/video_loaders/animation_provider.cpp" /> - <Unit filename="../../../engine/core/loaders/native/video_loaders/animation_provider.h" /> - <Unit filename="../../../engine/core/loaders/native/video_loaders/image_provider.cpp" /> - <Unit filename="../../../engine/core/loaders/native/video_loaders/image_provider.h" /> - <Unit filename="../../../engine/core/loaders/native/video_loaders/subimage_provider.cpp" /> - <Unit filename="../../../engine/core/loaders/native/video_loaders/subimage_provider.h" /> - <Unit filename="../../../engine/core/model/metamodel/abstractpather.h" /> - <Unit filename="../../../engine/core/model/metamodel/action.cpp" /> - <Unit filename="../../../engine/core/model/metamodel/action.h" /> - <Unit filename="../../../engine/core/model/metamodel/dataset.cpp" /> - <Unit filename="../../../engine/core/model/metamodel/dataset.h" /> - <Unit filename="../../../engine/core/model/metamodel/grids/cellgrid.cpp" /> - <Unit filename="../../../engine/core/model/metamodel/grids/cellgrid.h" /> - <Unit filename="../../../engine/core/model/metamodel/grids/hexgrid.cpp" /> - <Unit filename="../../../engine/core/model/metamodel/grids/hexgrid.h" /> - <Unit filename="../../../engine/core/model/metamodel/grids/squaregrid.cpp" /> - <Unit filename="../../../engine/core/model/metamodel/grids/squaregrid.h" /> - <Unit filename="../../../engine/core/model/metamodel/metamodel.cpp" /> - <Unit filename="../../../engine/core/model/metamodel/metamodel.h" /> - <Unit filename="../../../engine/core/model/metamodel/modelcoords.h" /> - <Unit filename="../../../engine/core/model/metamodel/object.cpp" /> - <Unit filename="../../../engine/core/model/metamodel/object.h" /> - <Unit filename="../../../engine/core/model/model.cpp" /> - <Unit filename="../../../engine/core/model/model.h" /> - <Unit filename="../../../engine/core/model/structures/elevation.cpp" /> - <Unit filename="../../../engine/core/model/structures/elevation.h" /> - <Unit filename="../../../engine/core/model/structures/instance.cpp" /> - <Unit filename="../../../engine/core/model/structures/instance.h" /> - <Unit filename="../../../engine/core/model/structures/layer.cpp" /> - <Unit filename="../../../engine/core/model/structures/layer.h" /> - <Unit filename="../../../engine/core/model/structures/location.cpp" /> - <Unit filename="../../../engine/core/model/structures/location.h" /> - <Unit filename="../../../engine/core/model/structures/map.cpp" /> - <Unit filename="../../../engine/core/model/structures/map.h" /> - <Unit filename="../../../engine/core/modules.h" /> - <Unit filename="../../../engine/core/pathfinder/linearpather/linearpather.cpp" /> - <Unit filename="../../../engine/core/pathfinder/linearpather/linearpather.h" /> - <Unit filename="../../../engine/core/pathfinder/realtimepather/realtimepather.cpp" /> - <Unit filename="../../../engine/core/pathfinder/realtimepather/realtimepather.h" /> - <Unit filename="../../../engine/core/pathfinder/realtimepather/realtimesearch.h" /> - <Unit filename="../../../engine/core/pathfinder/realtimepather/realtimsearch.cpp" /> - <Unit filename="../../../engine/core/pathfinder/search.h" /> - <Unit filename="../../../engine/core/pathfinder/searchspace.cpp" /> - <Unit filename="../../../engine/core/pathfinder/searchspace.h" /> - <Unit filename="../../../engine/core/util/angles.cpp" /> - <Unit filename="../../../engine/core/util/angles.h" /> - <Unit filename="../../../engine/core/util/attributedclass.cpp" /> - <Unit filename="../../../engine/core/util/attributedclass.h" /> - <Unit filename="../../../engine/core/util/exception.cpp" /> - <Unit filename="../../../engine/core/util/exception.h" /> - <Unit filename="../../../engine/core/util/fife_math.h" /> - <Unit filename="../../../engine/core/util/fife_stdint.h" /> - <Unit filename="../../../engine/core/util/fife_unit_test.h" /> - <Unit filename="../../../engine/core/util/logger.cpp" /> - <Unit filename="../../../engine/core/util/logger.h" /> - <Unit filename="../../../engine/core/util/matrix.h" /> - <Unit filename="../../../engine/core/util/point.h" /> - <Unit filename="../../../engine/core/util/priorityqueue.h" /> - <Unit filename="../../../engine/core/util/purge.h" /> - <Unit filename="../../../engine/core/util/quadtree.h" /> - <Unit filename="../../../engine/core/util/rect.cpp" /> - <Unit filename="../../../engine/core/util/rect.h" /> - <Unit filename="../../../engine/core/util/resource/pool.cpp" /> - <Unit filename="../../../engine/core/util/resource/pool.h" /> - <Unit filename="../../../engine/core/util/resource/pooled_resource.h" /> - <Unit filename="../../../engine/core/util/resource/resource_location.h" /> - <Unit filename="../../../engine/core/util/resource/resource_provider.h" /> - <Unit filename="../../../engine/core/util/settingsmanager.cpp" /> - <Unit filename="../../../engine/core/util/settingsmanager.h" /> - <Unit filename="../../../engine/core/util/singleton.h" /> - <Unit filename="../../../engine/core/util/time/timeevent.cpp" /> - <Unit filename="../../../engine/core/util/time/timeevent.h" /> - <Unit filename="../../../engine/core/util/time/timemanager.cpp" /> - <Unit filename="../../../engine/core/util/time/timemanager.h" /> - <Unit filename="../../../engine/core/util/time/timer.cpp" /> - <Unit filename="../../../engine/core/util/time/timer.h" /> - <Unit filename="../../../engine/core/vfs/raw/rawdata.cpp" /> - <Unit filename="../../../engine/core/vfs/raw/rawdata.h" /> - <Unit filename="../../../engine/core/vfs/raw/rawdatafile.cpp" /> - <Unit filename="../../../engine/core/vfs/raw/rawdatafile.h" /> - <Unit filename="../../../engine/core/vfs/raw/rawdatamemsource.cpp" /> - <Unit filename="../../../engine/core/vfs/raw/rawdatamemsource.h" /> - <Unit filename="../../../engine/core/vfs/raw/rawdatasource.cpp" /> - <Unit filename="../../../engine/core/vfs/raw/rawdatasource.h" /> - <Unit filename="../../../engine/core/vfs/vfs.cpp" /> - <Unit filename="../../../engine/core/vfs/vfs.h" /> - <Unit filename="../../../engine/core/vfs/vfshostsystem.cpp" /> - <Unit filename="../../../engine/core/vfs/vfshostsystem.h" /> - <Unit filename="../../../engine/core/vfs/vfssource.cpp" /> - <Unit filename="../../../engine/core/vfs/vfssource.h" /> - <Unit filename="../../../engine/core/vfs/vfssourcefactory.cpp" /> - <Unit filename="../../../engine/core/vfs/vfssourcefactory.h" /> - <Unit filename="../../../engine/core/vfs/vfssourceprovider.cpp" /> - <Unit filename="../../../engine/core/vfs/vfssourceprovider.h" /> - <Unit filename="../../../engine/core/vfs/vfsutility.cpp" /> - <Unit filename="../../../engine/core/vfs/vfsutility.h" /> - <Unit filename="../../../engine/core/vfs/zip/zipdata.cpp" /> - <Unit filename="../../../engine/core/vfs/zip/zipdata.h" /> - <Unit filename="../../../engine/core/vfs/zip/zipprovider.cpp" /> - <Unit filename="../../../engine/core/vfs/zip/zipprovider.h" /> - <Unit filename="../../../engine/core/vfs/zip/zipsource.cpp" /> - <Unit filename="../../../engine/core/vfs/zip/zipsource.h" /> - <Unit filename="../../../engine/core/video/animation.cpp" /> - <Unit filename="../../../engine/core/video/animation.h" /> - <Unit filename="../../../engine/core/video/animationpool.h" /> - <Unit filename="../../../engine/core/video/image.cpp" /> - <Unit filename="../../../engine/core/video/image.h" /> - <Unit filename="../../../engine/core/video/image_location.cpp" /> - <Unit filename="../../../engine/core/video/image_location.h" /> - <Unit filename="../../../engine/core/video/imagepool.h" /> - <Unit filename="../../../engine/core/video/opengl/fife_opengl.h" /> - <Unit filename="../../../engine/core/video/opengl/glimage.cpp" /> - <Unit filename="../../../engine/core/video/opengl/glimage.h" /> - <Unit filename="../../../engine/core/video/opengl/renderbackendopengl.cpp" /> - <Unit filename="../../../engine/core/video/opengl/renderbackendopengl.h" /> - <Unit filename="../../../engine/core/video/renderbackend.cpp" /> - <Unit filename="../../../engine/core/video/renderbackend.h" /> - <Unit filename="../../../engine/core/video/sdl/renderbackendsdl.cpp" /> - <Unit filename="../../../engine/core/video/sdl/renderbackendsdl.h" /> - <Unit filename="../../../engine/core/video/sdl/sdlblendingfunctions.cpp" /> - <Unit filename="../../../engine/core/video/sdl/sdlblendingfunctions.h" /> - <Unit filename="../../../engine/core/video/sdl/sdlimage.cpp" /> - <Unit filename="../../../engine/core/video/sdl/sdlimage.h" /> - <Unit filename="../../../engine/core/view/abstractrenderer.h" /> - <Unit filename="../../../engine/core/view/camera.cpp" /> - <Unit filename="../../../engine/core/view/camera.h" /> - <Unit filename="../../../engine/core/view/renderers/camerazonerenderer.cpp" /> - <Unit filename="../../../engine/core/view/renderers/camerazonerenderer.h" /> - <Unit filename="../../../engine/core/view/renderers/gridrenderer.cpp" /> - <Unit filename="../../../engine/core/view/renderers/gridrenderer.h" /> - <Unit filename="../../../engine/core/view/renderers/instancerenderer.cpp" /> - <Unit filename="../../../engine/core/view/renderers/instancerenderer.h" /> - <Unit filename="../../../engine/core/view/view.cpp" /> - <Unit filename="../../../engine/core/view/view.h" /> - <Unit filename="../../../engine/core/view/visualtree.cpp" /> - <Unit filename="../../../engine/core/view/visualtree.h" /> - <Unit filename="../../../engine/core/xml/tinyxml/tinystr.cpp" /> - <Unit filename="../../../engine/core/xml/tinyxml/tinystr.h" /> - <Unit filename="../../../engine/core/xml/tinyxml/tinyxml.cpp" /> - <Unit filename="../../../engine/core/xml/tinyxml/tinyxml.h" /> - <Unit filename="../../../engine/core/xml/tinyxml/tinyxmlerror.cpp" /> - <Unit filename="../../../engine/core/xml/tinyxml/tinyxmlparser.cpp" /> - <Unit filename="../../../engine/core/xml/xmlutil.cpp" /> - <Unit filename="../../../engine/core/xml/xmlutil.h" /> - <Unit filename="../../../engine/swigwrappers/python/fife_wrap.cxx" /> - <Unit filename="../../../engine/swigwrappers/python/fife_wrap.h" /> - <Extensions> - <code_completion /> - <envvars /> - <debugger /> - </Extensions> - </Project> -</CodeBlocks_project_file>
--- a/engine/SConscript Sun Jul 13 11:05:12 2008 +0000 +++ b/engine/SConscript Sun Jul 13 11:20:39 2008 +0000 @@ -195,9 +195,9 @@ msvc_project_builder9 = Builder(action = generate_msvc_project9, suffix = '.vcproj') env.Append(BUILDERS = {'MSVCProject9': msvc_project_builder9}) -cbbuildpath = joinpath('build', 'win32', 'build_environments', 'code_blocks') +cbbuildpath_win32 = joinpath('build', 'win32', 'build_environments', 'code_blocks') -def generate_codeblocks_project(target, source, env): +def generate_codeblocks_project_win32(target, source, env): codeblocksHeaderDef = \ ''' <Unit filename="..\..\..\engine\%s"> <Option compilerVar=""/> @@ -219,13 +219,47 @@ xmlstr.append(codeblocksHeaderDef % newf) else: xmlstr.append(codeblocksCppDef % newf) - projtxt = open(joinpath(cbbuildpath, 'engine_template.xml'), 'r').read() + projtxt = open(joinpath(cbbuildpath_win32, 'engine_template.xml'), 'r').read() projtxt = projtxt.replace('__FILE_INSERTION_POINT__', '\n'.join(xmlstr)) open(str(target[0]), 'w').write(projtxt) print "FIFE code::blocks project file succesfully created (%s)" % os.path.abspath(str(target[0])) -codeblocks_project_builder = Builder(action = generate_codeblocks_project, suffix = '.cbp') -env.Append(BUILDERS = {'CodeblocksProject': codeblocks_project_builder}) +codeblocks_project_builder_win32 = Builder(action = generate_codeblocks_project_win32, suffix = '.cbp') +env.Append(BUILDERS = {'CodeblocksProject': codeblocks_project_builder_win32}) + + +cbbuildpath_linux = joinpath('build', 'linux', 'code_blocks') + +def generate_codeblocks_project_linux(target, source, env): + codeblocksHeaderDef = \ + ''' <Unit filename="../../../engine/%s"> + <Option compilerVar=""/> + <Option compile="0"/> + <Option link="0"/> + <Option target="default"/> + </Unit>''' + + codeblocksCppDef = \ + ''' <Unit filename="../../../engine/%s"> + <Option compilerVar="CPP"/> + <Option target="default"/> + </Unit>''' + xmlstr = [] + for f in source: + newf = os.path.abspath(str(f)).split('%sengine%s' % (_sep, _sep))[-1] + newf = newf.replace('/', '\\') + if str(f) in headerfiles: + xmlstr.append(codeblocksHeaderDef % newf) + else: + xmlstr.append(codeblocksCppDef % newf) + projtxt = open(joinpath(cbbuildpath_linux, 'engine_template.xml'), 'r').read() + projtxt = projtxt.replace('__FILE_INSERTION_POINT__', '\n'.join(xmlstr)) + open(str(target[0]), 'w').write(projtxt) + print "FIFE code::blocks project file succesfully created (%s)" % os.path.abspath(str(target[0])) + +codeblocks_project_builder_linux = Builder(action = generate_codeblocks_project_linux, suffix = '.cbp') +env.Append(BUILDERS = {'CodeblocksProject': codeblocks_project_builder_linux}) + variated_dirs = eval(open(joinpath('config', 'variated_dirs'), 'r').read()) # filter out swigwrappers. fife_wrap.cxx is appended manually @@ -262,7 +296,8 @@ msvcproj = env.MSVCProject(joinpath('..', msvcbuildpath, 'fife'), projectfiles) msvcproj9 = env.MSVCProject9(joinpath('..', msvcbuildpath9, 'fife'), projectfiles) -cbproj = env.CodeblocksProject(joinpath('..', cbbuildpath, 'fife_engine'), projectfiles) +cbproj_win32 = env.CodeblocksProject(joinpath('..', cbbuildpath_win32, 'fife_engine'), projectfiles) +cbproj_linux = env.CodeblocksProject(joinpath('..', cbbuildpath_linux, 'fife_engine'), projectfiles) if not env['projectfiles_only']: env.Append(CPPPATH = ['#/engine/core', '#/engine/swigwrappers'])