Mercurial > fife-parpg
diff engine/SConscript @ 576:a21915a97237
Added some debug capability when building with mingw on windows. This should work for you if you have debug versions of python available.
Added the show and hide functions to the baseobject in the RPG demo.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 05 Jul 2010 19:36:41 +0000 |
parents | 92433f507feb |
children | ae479ce3f762 |
line wrap: on
line diff
--- a/engine/SConscript Fri Jul 02 14:41:27 2010 +0000 +++ b/engine/SConscript Mon Jul 05 19:36:41 2010 +0000 @@ -112,17 +112,22 @@ cbproj_linux = env.CodeblocksProjectLinux(os.path.join('..', '..','..', builders.cbbuildpath_linux, 'fife'), projectfiles) +if opts['DEBUG'] and sys.platform == 'win32': + fife_tgt = 'fife_d' +else: + fife_tgt = 'fife' + #************************************************************************** #shared library target #************************************************************************** if sys.platform == 'win32': - sharedlib = env.SharedLibrary(target = 'fife', + sharedlib = env.SharedLibrary(target = fife_tgt, source = compilefiles, OBJPREFIX='shared_', SHLIBEMITTER = '') else: - sharedlib = env.SharedLibrary(target = 'fife', + sharedlib = env.SharedLibrary(target = fife_tgt, source = compilefiles) #************************************************************************** @@ -133,7 +138,7 @@ else: dest_suffix = '.so' -pythonlib = env.SharedLibrary(target = 'fife', +pythonlib = env.SharedLibrary(target = fife_tgt, source = pyfiles, OBJPREFIX='py_', SHLIBPREFIX='_', @@ -147,7 +152,11 @@ SWIGOUTDIR=Dir('#/engine/python/fife').srcnode().path) -copy_dest = os.path.join(opts['PYLIB_COPY_DEST'], '_fife' + dest_suffix) +if opts['DEBUG'] and sys.platform == 'win32': + copy_dest = os.path.join(opts['PYLIB_COPY_DEST'], '_fife_d' + dest_suffix) +else: + copy_dest = os.path.join(opts['PYLIB_COPY_DEST'], '_fife' + dest_suffix) + copy_cmd = env.Command(copy_dest, pythonlib, [Copy('$TARGET', '$SOURCE')]) copy_cmd2 = env.Command(os.path.join(opts['WRAP_COPY_DEST'], 'fife_wrap.h'), os.path.join('swigwrappers','python','fife_wrap.h'), @@ -160,7 +169,7 @@ #static library target #************************************************************************** -staticlib = env.StaticLibrary(target = 'fife', +staticlib = env.StaticLibrary(target = fife_tgt, source = compilefiles, LINKFLAGS=['-Wl'])