/[ascend]/trunk/pygtk/interface/SConscript
ViewVC logotype

Diff of /trunk/pygtk/interface/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 477 by johnpye, Mon Apr 17 07:06:45 2006 UTC revision 478 by johnpye, Mon Apr 17 08:10:48 2006 UTC
# Line 49  env.Append(BUILDERS={'Swig':swig_builder Line 49  env.Append(BUILDERS={'Swig':swig_builder
49  #   , CPPFLAGS = ['-O3']  #   , CPPFLAGS = ['-O3']
50  #)  #)
51    
52    def get_new_swig_flags(env):
53        min,maj,pat = env['SWIGVERSION']
54        flags = []
55        if min==1 and maj==3 and pat>=28:
56            flags += ['-O','-fvirtual']
57        return flags
58    
59        
60  swiglib = env.SharedLibrary("ascpy",objs + ['ascpy.i']  swiglib = env.SharedLibrary("ascpy",objs + ['ascpy.i']
61      , LIBS = ['ascend'] + env['PYTHON_LIB']      , LIBS = ['ascend'] + env['PYTHON_LIB']
62      , LIBPATH = ['#'] + env['PYTHON_LIBPATH']      , LIBPATH = ['#'] + env['PYTHON_LIBPATH']
63      , SWIGFLAGS=['-python','-c++','-O','-fvirtual']      , SWIGFLAGS=['-python','-c++'] + get_new_swig_flags(env)
64      , CPPPATH = ['../../base/generic'] + env['PYTHON_CPPPATH']      , CPPPATH = ['../../base/generic'] + env['PYTHON_CPPPATH']
65      , CPPDEFINES = {      , CPPDEFINES = {
66          'ASCXX_USE_PYTHON':None          'ASCXX_USE_PYTHON':None

Legend:
Removed from v.477  
changed lines
  Added in v.478

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22