/[ascend]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

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

revision 385 by johnpye, Thu Mar 30 04:14:29 2006 UTC revision 386 by johnpye, Thu Mar 30 04:46:48 2006 UTC
# Line 14  print "PLATFORM = ",platform.system() Line 14  print "PLATFORM = ",platform.system()
14  # TODO: flags for optimisation  # TODO: flags for optimisation
15    
16  # Package linking option  # Package linking option
17  opts.Add(EnumOption('PACKAGE_LINKING'  opts.Add(EnumOption(
18        'PACKAGE_LINKING'
19      , 'Style of linking for external libraries'      , 'Style of linking for external libraries'
20      , 'DYNAMIC_PACKAGES'      , 'DYNAMIC_PACKAGES'
21      , ['DYNAMIC_PACKAGES', 'STATIC_PACKAGES', 'NO_PACKAGES'])      , ['DYNAMIC_PACKAGES', 'STATIC_PACKAGES', 'NO_PACKAGES']
22  )  ))
23    
24    opts.Add(BoolOption(
25        'WITHOUT_TCLTK_GUI'
26        ,"Set to True if you don't want to build the original Tcl/Tk GUI."
27        , False
28    ))
29    
30  opts.Update(env)  opts.Update(env)
31  opts.Save('options.cache',env)  opts.Save('options.cache',env)
# Line 27  Help(opts.GenerateHelpText(env)) Line 34  Help(opts.GenerateHelpText(env))
34    
35  env.Append(CPPDEFINES=env['PACKAGE_LINKING'])  env.Append(CPPDEFINES=env['PACKAGE_LINKING'])
36    
37    with_tcltk_gui = (env['WITHOUT_TCLTK_GUI']==False)
38    
39  #------------------------------------------------------  #------------------------------------------------------
40  # CONFIGURATION  # CONFIGURATION
41    
# Line 49  if not conf.CheckFunc('isnan'): Line 58  if not conf.CheckFunc('isnan'):
58      print "Didn't find isnan"      print "Didn't find isnan"
59      Exit(1)      Exit(1)
60    
61    # Where is tcl.h ?
62    if not conf.CheckHeader('tcl.h'):
63        with_tcltk_gui = False
64    
65    if not conf.CheckHeader('tk.h'):
66        with_tcltk_gui = False
67    
68    if not conf.CheckLib('tcl'):
69        with_tcltk_gui = False
70    
71    if not conf.CheckLib('tk'):
72        with_tcktk_gui = False
73    
74  # TODO: -D_HPUX_SOURCE is needed  # TODO: -D_HPUX_SOURCE is needed
75    
76  # TODO: check size of void*  # TODO: check size of void*
# Line 67  env.SConscript(['base/generic/compiler/S Line 89  env.SConscript(['base/generic/compiler/S
89  env.SConscript(['base/generic/solver/SConscript'],'env')  env.SConscript(['base/generic/solver/SConscript'],'env')
90    
91  env.SConscript(['base/generic/packages/SConscript'],'env')  env.SConscript(['base/generic/packages/SConscript'],'env')
92    
93    if with_tcltk_gui:
94        env.SConscript(['tcltk98/generic/interface/SConscript'],'env')
95    

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

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