/[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 528 by johnpye, Fri Apr 21 02:07:11 2006 UTC revision 529 by johnpye, Sat Apr 22 06:26:23 2006 UTC
# Line 47  for s in srcs: Line 47  for s in srcs:
47      objs += python_env.SharedObject(s)        objs += python_env.SharedObject(s)  
48    
49  #----------------------------------------------  #----------------------------------------------
50  # SWIG Builder  # SWIG wrapper
   
 #def swig_modify_targets(target, source, env):  
 #   target.append('ascpy.py')  
 #   target.append('ascpy_wrap.h')  
 #   return target, source  
 #  
 #swig_builder = Builder(  
 #   action='$SWIG $SWIGFLAGS -o $TARGET $SOURCE'  
 #   , emitter=swig_modify_targets  
 #)  
 #python_env.Append(BUILDERS={'Swig':swig_builder})  
   
 #---------------------------------------------  
51    
52  def get_new_swig_flags(env):  def get_new_swig_flags(env):
53      min,maj,pat = env['SWIGVERSION']      min,maj,pat = env['SWIGVERSION']
# Line 79  swiglib = python_env.SharedLibrary("ascp Line 66  swiglib = python_env.SharedLibrary("ascp
66      , LIBPATH = ['#'] + env['PYTHON_LIBPATH']      , LIBPATH = ['#'] + env['PYTHON_LIBPATH']
67      , SHLIBPREFIX = '_'      , SHLIBPREFIX = '_'
68  )  )
69    
70    #---------------------------------------------
71    # CONFIG & runtime shell script for posix
72    
73  configpy = env.SubstInFile(source='config.py.in')  configpy = env.SubstInFile(source='config.py.in')
74  configh = env.SubstInFile(source='config.h.in')  configh = env.SubstInFile(source='config.h.in')
75    
76  ascendcmd = env.SubstInFile(source='ascend.in')  if platform.system() != "Windows" or env.has_key('IS_MINGW'):
77  env.AddPostAction(ascendcmd, 'chmod 755 $TARGET')      ascendcmd = env.SubstInFile(source='ascend.in')
78        env.AddPostAction(ascendcmd, 'chmod 755 $TARGET')
79    
80    #---------------------------------------------
81    # LITTLE WEE TEST PROGRAM for debuggin the c++ wrapper
82    
83    libascxx = env.SharedLibrary('ascxx',objs
84        , LIBS = ['ascend'] + env['PYTHON_LIB']
85        , LIBPATH = ['#'] + env['PYTHON_LIBPATH']
86    )
87    
88    ascxxtest = env.Program('ascxxtest',['ascxxtest.cpp']
89        , LIBS = ['ascxx','ascend']
90        , LIBPATH = ['.','#']
91    )
92    
93    env.Alias('ascxx',ascxxtest)
94    
95  #---------------------------------------------  #---------------------------------------------
96  # INSTALLATION  # INSTALLATION
# Line 105  if env.has_key('WITH_INSTALLER') and env Line 112  if env.has_key('WITH_INSTALLER') and env
112      import platform      import platform
113      if platform.system()=="Windows":      if platform.system()=="Windows":
114          installer = env.Nsis('create.nsi')          installer = env.Nsis('create.nsi')
115          Depends(installer,[swiglib,configpy,configh,ascendcmd])          Depends(installer,[swiglib,configpy,configh])

Legend:
Removed from v.528  
changed lines
  Added in v.529

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