# HG changeset patch # User vtchill@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1263966978 0 # Node ID 621b062e752dfc3c6f0b34dad49f523fcde60b64 # Parent 12ca54931880ad7672845fc3246ec7bf3d5cfc95 Modified the code blocks project files to fit with the new build system. Code blocks now uses scons to build each of the configurations. The python configurations build properly but fail during link with a bunch of undefined references insides of the swig generated dll, not sure why. Also updated the win32-config.py so that it no longer relies on variables defined outside of itself, this was causing code blocks to not be able to build. Updated a couple of the batch scripts so they run properly. diff -r 12ca54931880 -r 621b062e752d build/win32-config.py --- a/build/win32-config.py Tue Jan 19 17:45:49 2010 +0000 +++ b/build/win32-config.py Wed Jan 20 05:56:18 2010 +0000 @@ -5,13 +5,16 @@ #a hack to stop passing the -nologo flag to mingw env['CCFLAGS'] = SCons.Util.CLVar('') - path = os.environ['_'] - win32_swig_dir = os.environ['_SWIG'] + path = os.getcwd() + + swigdir = os.path.join(path, 'build', 'win32', 'applications', 'swigwin-1.3.40') + mingwbindir = os.path.join(path, 'build', 'win32', 'applications', 'mingw', 'bin') - env.AppendENVPath('PATH', win32_swig_dir) + env.AppendENVPath('PATH', swigdir) + env.AppendENVPath('PATH', mingwbindir) - includepath = os.path.join(path, '..', '..', 'includes') - staticlibpath = os.path.join(path, '..', '..', 'static_libs','mingw') + includepath = os.path.join(path, 'build', 'win32', 'includes') + staticlibpath = os.path.join(path, 'build', 'win32', 'static_libs', 'mingw') env.Append(CPPPATH = [includepath + '\\libogg', includepath + '\\openal', includepath + '\\sdl_image', includepath + '\\zlib', includepath + '\\libguichan', includepath + '\\boost_1_38_0', includepath + '\\libvorbis', includepath + '\\libpng', includepath + '\\sdl_ttf', includepath + '\\sdl', includepath + '\\python26', includepath + '\\unittest++']) env.Append(LIBPATH = [staticlibpath, staticlibpath + '\\python26']) diff -r 12ca54931880 -r 621b062e752d build/win32/build_environments/code_blocks/engine_template.xml --- a/build/win32/build_environments/code_blocks/engine_template.xml Tue Jan 19 17:45:49 2010 +0000 +++ b/build/win32/build_environments/code_blocks/engine_template.xml Wed Jan 20 05:56:18 2010 +0000 @@ -2,68 +2,116 @@ - diff -r 12ca54931880 -r 621b062e752d build/win32/create_documentation.bat --- a/build/win32/create_documentation.bat Tue Jan 19 17:45:49 2010 +0000 +++ b/build/win32/create_documentation.bat Wed Jan 20 05:56:18 2010 +0000 @@ -12,7 +12,7 @@ :: Goto TRUNK and call SCons cd \ cd %_%\..\.. -scons docs=1 >> "%_%\doxygen_log.txt" 2>&1 +python build\win32\applications\scons\scons.py docs >> "%_%\doxygen_log.txt" 2>&1 :: Return us to the directory we started from cd %_% diff -r 12ca54931880 -r 621b062e752d build/win32/update_project_files.bat --- a/build/win32/update_project_files.bat Tue Jan 19 17:45:49 2010 +0000 +++ b/build/win32/update_project_files.bat Wed Jan 20 05:56:18 2010 +0000 @@ -8,14 +8,14 @@ :: Delete old generated project files to ensure that they get generated from scratch again cd %_%\build_environments -del code_blocks\fife_engine.cbp +del code_blocks\fife.cbp del visual_studio_8\fife.vcproj del visual_studio_9\fife.vcproj :: Goto TRUNK and call SCons cd \ cd "%_%\..\..\" -python build\win32\applications\scons\scons.py --release projects +python build\win32\applications\scons\scons.py projects :: Return us to the directory we started from cd %_% diff -r 12ca54931880 -r 621b062e752d build/win32/update_swig_files.bat --- a/build/win32/update_swig_files.bat Tue Jan 19 17:45:49 2010 +0000 +++ b/build/win32/update_swig_files.bat Wed Jan 20 05:56:18 2010 +0000 @@ -9,7 +9,7 @@ :: Goto TRUNK and call SCons cd \ cd "%_%\..\..\" -python build\win32\applications\scons\scons.py --release fife-swig +python build\win32\applications\scons\scons.py fife-swig :: Return us to the directory we started from cd %_% diff -r 12ca54931880 -r 621b062e752d engine/SConscript --- a/engine/SConscript Tue Jan 19 17:45:49 2010 +0000 +++ b/engine/SConscript Wed Jan 20 05:56:18 2010 +0000 @@ -75,8 +75,8 @@ msvcproj = env.MSVCProject(os.path.join('..', '..','..', builders.msvcbuildpath, 'fife'), projectfiles) msvcproj9 = env.MSVCProject9(os.path.join('..', '..','..', builders.msvcbuildpath9, 'fife'), projectfiles) -cbproj_win32 = env.CodeblocksProjectWin32(os.path.join('..', '..','..', builders.cbbuildpath_win32, 'fife_engine'), projectfiles) -cbproj_linux = env.CodeblocksProjectLinux(os.path.join('..', '..','..', builders.cbbuildpath_linux, 'fife_engine'), projectfiles) +cbproj_win32 = env.CodeblocksProjectWin32(os.path.join('..', '..','..', builders.cbbuildpath_win32, 'fife'), projectfiles) +cbproj_linux = env.CodeblocksProjectLinux(os.path.join('..', '..','..', builders.cbbuildpath_linux, 'fife'), projectfiles) #**************************************************************************