/[ascend]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

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

revision 386 by johnpye, Thu Mar 30 04:46:48 2006 UTC revision 387 by johnpye, Thu Mar 30 05:13:59 2006 UTC
# Line 27  opts.Add(BoolOption( Line 27  opts.Add(BoolOption(
27      , False      , False
28  ))  ))
29    
30    opts.Add(BoolOption(
31        'WITHOUT_PYTHON'
32        ,"Set to True if you don't want to build Python wrappers."
33        , False
34    ))
35    
36  opts.Update(env)  opts.Update(env)
37  opts.Save('options.cache',env)  opts.Save('options.cache',env)
38    
# Line 36  env.Append(CPPDEFINES=env['PACKAGE_LINKI Line 42  env.Append(CPPDEFINES=env['PACKAGE_LINKI
42    
43  with_tcltk_gui = (env['WITHOUT_TCLTK_GUI']==False)  with_tcltk_gui = (env['WITHOUT_TCLTK_GUI']==False)
44    
45    with_python = (env['WITHOUT_PYTHON']==False)
46    
47  #------------------------------------------------------  #------------------------------------------------------
48  # CONFIGURATION  # CONFIGURATION
49    
# Line 58  if not conf.CheckFunc('isnan'): Line 66  if not conf.CheckFunc('isnan'):
66      print "Didn't find isnan"      print "Didn't find isnan"
67      Exit(1)      Exit(1)
68    
69  # Where is tcl.h ?  # Tcl/Tk
70  if not conf.CheckHeader('tcl.h'):  if not conf.CheckHeader('tcl.h'):
71      with_tcltk_gui = False      with_tcltk_gui = False
72    
# Line 71  if not conf.CheckLib('tcl'): Line 79  if not conf.CheckLib('tcl'):
79  if not conf.CheckLib('tk'):  if not conf.CheckLib('tk'):
80      with_tcktk_gui = False      with_tcktk_gui = False
81    
82    # Python
83    if not conf.CheckHeader('python2.4/Python.h'):
84        print "Didn't find Python 2.4"
85        with_python = False
86    else:
87        env.Append(CPPPATH=['/usr/include/python2.4'])
88    
89  # TODO: -D_HPUX_SOURCE is needed  # TODO: -D_HPUX_SOURCE is needed
90    
91  # TODO: check size of void*  # TODO: check size of void*
# Line 93  env.SConscript(['base/generic/packages/S Line 108  env.SConscript(['base/generic/packages/S
108  if with_tcltk_gui:  if with_tcltk_gui:
109      env.SConscript(['tcltk98/generic/interface/SConscript'],'env')      env.SConscript(['tcltk98/generic/interface/SConscript'],'env')
110    
111    if with_python:
112        env.SConscript(['pygtk/interface/SConscript'],'env')

Legend:
Removed from v.386  
changed lines
  Added in v.387

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