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

Diff of /trunk/pygtk/SConscript

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

revision 924 by johnpye, Wed Nov 8 05:25:37 2006 UTC revision 925 by johnpye, Tue Nov 21 23:30:30 2006 UTC
# Line 52  def get_new_swig_flags(env): Line 52  def get_new_swig_flags(env):
52          flags += ['-O']          flags += ['-O']
53      return flags      return flags
54    
55  swigobj = python_env.SharedObject('ascpy.i'  swig_env = python_env.Copy()
56    swig_env['CCFLAGS'] = swig_env['CCFLAGS'].remove('-Wall')
57    
58    swigobj = swig_env.SharedObject('ascpy.i'
59      , SWIGFLAGS=['-python','-c++'] + get_new_swig_flags(env)      , SWIGFLAGS=['-python','-c++'] + get_new_swig_flags(env)
60  )  )
61  python_env.SideEffect(['ascpy.py','ascpy_wrap.h'],'ascpy$SWIGCXXFILESUFFIX')  swig_env.SideEffect(['ascpy.py','ascpy_wrap.h'],'ascpy$SWIGCXXFILESUFFIX')
62  python_env.Depends('ascpy.py',['ascpy.i'])  swig_env.Depends('ascpy.py',['ascpy.i'])
63  python_env.Clean('ascpy_wrap$SWIGCXXFILESUFFIX',swigobj)  swig_env.Clean('ascpy_wrap$SWIGCXXFILESUFFIX',swigobj)
64  python_env.Clean('ascpy.py','ascpy$SWIGCXXFILESUFFIX')  swig_env.Clean('ascpy.py','ascpy$SWIGCXXFILESUFFIX')
65  python_env.Clean('ascpy_wrap.h','ascpy$SWIGCXXFILESUFFIX')  swig_env.Clean('ascpy_wrap.h','ascpy$SWIGCXXFILESUFFIX')
66    
67  _libs = ['ascend']+env['PYTHON_LIB']  _libs = ['ascend']+env['PYTHON_LIB']
68  if not env.get('MSVS'):  if not env.get('MSVS'):
69      _libs.append('stdc++')      _libs.append('stdc++')
70    
71  swiglib = python_env.SharedLibrary("ascpy",objs + swigobj  swiglib = swig_env.SharedLibrary("ascpy",objs + swigobj
72      , LIBS = _libs      , LIBS = _libs
73      , LIBPATH = ['#'] + env['PYTHON_LIBPATH']      , LIBPATH = ['#'] + env['PYTHON_LIBPATH']
74      , SHLIBPREFIX = '_'      , SHLIBPREFIX = '_'

Legend:
Removed from v.924  
changed lines
  Added in v.925

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