Changeset 1090 for trunk/SConstruct
- Timestamp:
- 07/28/06 11:42:22 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
r1082 r1090 10 10 opts.Add("moduledir", "The python module path (site-packages))", moduledir) 11 11 12 def addCasaLibs(env): 13 casalibs = "casav atnf images ms components coordinates \ 14 lattices fits measures measures_f \ 15 tables scimath scimath_f casa wcs".split() 16 env.Prepend( LIBS = casalibs ) 17 # Explicit templates in casa 18 env.Append( CPPFLAGS = ['-DAIPS_NO_TEMPLATE_SRC'] ) 12 19 13 20 def checkCasa(conf, path=None): … … 19 26 conf.env.Append(CASAARCH = casa[1]) 20 27 conf.env.Append(CASAROOT = casa[0]) 28 addCasaLibs(conf.env) 21 29 conf.Result('yes') 22 30 return True … … 33 41 conf.env.Append(CASAARCH = casaarch) 34 42 conf.env.Append(CASAROOT = p) 43 addCasaLibs(conf.env) 35 44 conf.Result('yes') 36 45 return True … … 49 58 if not conf.CheckHeader(pyvers+'/Python.h', language='c'): Exit(1) 50 59 else: conf.env.Append(CPPPATH=[distutils.sysconfig.get_python_inc()]) 51 #if not conf.CheckHeader(['boost/python.hpp'], language="C++"): Exit(1)60 if not conf.CheckHeader(['boost/python.hpp'], language="C++"): Exit(1) 52 61 if not conf.CheckLib(library='boost_python', language='c++'): Exit(1) 53 # # if not conf.CheckLib('g2c'): Exit(1) 54 # # if not conf.CheckLib('lapack'): Exit(1) 55 # # if not conf.CheckLib('blas'): Exit(1) 56 # # if not conf.CheckLib('stdc++',language='c++'): Exit(1) 62 if not conf.CheckLib('rpfits'): Exit(1) 63 if not conf.CheckLib('cfitsio'): Exit(1) 64 if not conf.CheckLib('g2c'): Exit(1) 65 if not conf.CheckLib('lapack'): Exit(1) 66 if not conf.CheckLib('blas'): Exit(1) 67 if not conf.CheckLib('stdc++',language='c++'): Exit(1) 57 68 if not conf.CheckCasa(): Exit(1) 58 69 env = conf.Finish() 70 # general CPPFLAGS 59 71 env.Append(CPPFLAGS='-O3 -Wno-long-long'.split()) 72 # 64bit flags 60 73 if platform.architecture()[0] == '64bit': 61 env.Append(CPPFLAGS='-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__x86_64__ -DAIPS_64B -DAIPS_GCC3'.split())74 env.Append(CPPFLAGS='-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__x86_64__ -DAIPS_64B'.split()) 62 75 63 #env.BuildDir('build', 'src')64 76 Export("env") 65 77 so = env.SConscript("src/SConscript", build_dir="build", duplicate=0) 66 78 env.Install(moduledir, so ) 79 env.Install(moduledir, ["python/__init__.py"] ) 67 80 env.Alias('install',moduledir)
Note:
See TracChangeset
for help on using the changeset viewer.