/[ascend]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

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

revision 388 by johnpye, Thu Mar 30 05:52:06 2006 UTC revision 391 by johnpye, Thu Mar 30 07:19:05 2006 UTC
# Line 79  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    if platform.system()=="Windows":
83        conf.env.Append(LIBPATH='c:\Python24\libs')
84        conf.env.Append(CPPPATH='c:\Python24\include')
85        python_header='Python.h'
86        python_lib='python24'
87        python_libpath='c:\\Python24\\libs'
88    else:
89        python_header='python2.4/Python.h'
90        python_lib='python2.4'
91        python_libpath='/usr/include/python2.4'
92    
93  # Python  # Python
94  if not conf.CheckLibWithHeader('python2.4','python2.4/Python.h','C'):  if not conf.CheckLibWithHeader(python_lib,python_header,'C'):
95      print "Didn't find Python 2.4"      print "Didn't find Python 2.4 ("+python_lib+")"
96      with_python = False      with_python = False
97  else:  else:
98      env.Append(CPPPATH=['/usr/include/python2.4'])      env.Append(PYTHON_LIBPATH=[python_libpath])
99      env.Append(PYTHONLIB='python2.4')      env.Append(PYTHON_LIB=python_lib)
100    
101  # TODO: -D_HPUX_SOURCE is needed  # TODO: -D_HPUX_SOURCE is needed
102    
# Line 108  env.SConscript(['base/generic/packages/S Line 119  env.SConscript(['base/generic/packages/S
119    
120  if with_tcltk_gui:  if with_tcltk_gui:
121      env.SConscript(['tcltk98/generic/interface/SConscript'],'env')      env.SConscript(['tcltk98/generic/interface/SConscript'],'env')
122    else:
123        print "Skipping... Tcl/Tk GUI isn't being built"
124    
125  if with_python:  if with_python:
126      env.SConscript(['pygtk/interface/SConscript'],'env')      env.SConscript(['pygtk/interface/SConscript'],'env')
127    else:
128        print "Skipping... Python GUI isn't being built"
129    

Legend:
Removed from v.388  
changed lines
  Added in v.391

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