Changeset 1464 for trunk/SConstruct


Ignore:
Timestamp:
01/14/09 12:32:14 (15 years ago)
Author:
Malte Marquarding
Message:

require scons>=1.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SConstruct

    r1443 r1464  
    1111        moduledir = moduledir.replace("lib", "lib64")
    1212
    13 opts = Options("options.cfg")
    14 opts.AddOptions(
     13
     14EnsureSConsVersion(1,1,0)
     15
     16opts = Variables("options.cfg")
     17opts.AddVariables(
    1518                ("FORTRAN", "The fortran compiler", None),
    1619                ("f2clib", "The fortran to c library", None),
    17                 PathOption("prefix",
     20                PathVariable("prefix",
    1821                "The root installation path",
    1922                           distutils.sysconfig.PREFIX),
    20                 PathOption("moduledir",
     23                PathVariable("moduledir",
    2124                            "The python module path (site-packages))",
    2225                            moduledir),
    23                 PathOption("casacoreroot", "The location of casacore",
     26                PathVariable("casacoreroot", "The location of casacore",
    2427                                    "/usr/local"),
    2528                ("boostroot", "The root dir where boost is installed", None),
     
    5356                ("rpfitslibdir", "The rpfits library location", None),
    5457#               ("rpfitsincdir", "The rpfits include location", None),
    55                 EnumOption("mode", "The type of build.", "release",
     58                EnumVariable("mode", "The type of build.", "release",
    5659                           ["release","debug"], ignorecase=1),
    5760                ("makedist",
    5861                 "Make a binary archive giving a suffix, e.g. sarge or fc5",
    5962                 ""),
    60                 EnumOption("makedoc", "Build the userguide in specified format",
     63                EnumVariable("makedoc", "Build the userguide in specified format",
    6164                           "none",
    6265                           ["none", "pdf", "html"], ignorecase=1),
    63                 BoolOption("apps", "Build cpp apps", False),
    64                 BoolOption("alma", "Enable alma specific functionality", False)
     66                BoolVariable("apps", "Build cpp apps", False),
     67                BoolVariable("alma", "Enable alma specific functionality", False)
    6568                )
    6669
     
    7477Help(opts.GenerateHelpText(env))
    7578env.SConsignFile()
    76 
    77 if env["PLATFORM"] == "darwin":
    78     env.EnsureSConsVersion(0,96,95)
    7979
    8080casacoretooldir = os.path.join(env["casacoreroot"],"share",
Note: See TracChangeset for help on using the changeset viewer.