/[escript]/branches/scons-dev/SConstruct
ViewVC logotype

Diff of /branches/scons-dev/SConstruct

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

revision 1656 by ksteube, Wed Jul 16 06:20:40 2008 UTC revision 1657 by ksteube, Wed Jul 16 09:40:14 2008 UTC
# Line 13  Line 13 
13    
14  EnsureSConsVersion(0,96,91)  EnsureSConsVersion(0,96,91)
15  EnsurePythonVersion(2,3)  EnsurePythonVersion(2,3)
16    SetOption('warn', 'no-deprecated-copy') # Hush warning about Copy (deprecated in 0.98) instead of Clone
17    
18  import sys, os, re, socket  import sys, os, re, socket
19    
# Line 31  if os.path.isdir('/usr/lib64'): usr_lib Line 32  if os.path.isdir('/usr/lib64'): usr_lib
32  IS_WINDOWS_PLATFORM = (os.name== "nt")  IS_WINDOWS_PLATFORM = (os.name== "nt")
33    
34  prefix = ARGUMENTS.get('prefix', Dir('#.').abspath)  prefix = ARGUMENTS.get('prefix', Dir('#.').abspath)
 print "Install prefix is: ", prefix  
35    
36  # Read configuration options from file scons/<hostname>_options.py  # Read configuration options from file scons/<hostname>_options.py
37  hostname = re.sub("[^0-9a-zA-Z]", "_", socket.gethostname().split('.')[0])  hostname = re.sub("[^0-9a-zA-Z]", "_", socket.gethostname().split('.')[0])
# Line 67  opts.AddOptions( Line 67  opts.AddOptions(
67    BoolOption('usevtk', 'Do you want to use VTK?', 'yes'),    BoolOption('usevtk', 'Do you want to use VTK?', 'yes'),
68    ('options_file', "File of paths/options. Default: scons/<hostname>_options.py", options_file),    ('options_file', "File of paths/options. Default: scons/<hostname>_options.py", options_file),
69    ('cc_defines','C/C++ defines to use', None),    ('cc_defines','C/C++ defines to use', None),
70      # The strings -DDEFAULT_ get replaced by scons/<hostname>_options.py or by defaults below
71    ('cc_flags', 'C compiler flags to use', '-DEFAULT_1'),    ('cc_flags', 'C compiler flags to use', '-DEFAULT_1'),
72    ('cc_optim', 'C compiler optimization flags to use', '-DEFAULT_2'),    ('cc_optim', 'C compiler optimization flags to use', '-DEFAULT_2'),
73    ('cc_debug', 'C compiler debug flags to use', '-DEFAULT_3'),    ('cc_debug', 'C compiler debug flags to use', '-DEFAULT_3'),
# Line 388  if env['useparmetis']: print " Using Par Line 389  if env['useparmetis']: print " Using Par
389  else: print "   Not using ParMETIS"  else: print "   Not using ParMETIS"
390  if env['usedebug']: print " Compiling for debug"  if env['usedebug']: print " Compiling for debug"
391  else: print "   Not compiling for debug"  else: print "   Not compiling for debug"
392    print " Installing in", prefix
393  print ""  print ""
394    
395  #==========================================================================  #==========================================================================

Legend:
Removed from v.1656  
changed lines
  Added in v.1657

  ViewVC Help
Powered by ViewVC 1.1.26