Changeset 1090
- Timestamp:
- 07/28/06 11:42:22 (18 years ago)
- Location:
- trunk
- Files:
-
- 2 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) -
trunk/src/SConscript
r1082 r1090 57 57 """.split() 58 58 59 # CASA60 casalibs = """61 casav62 atnf images ms components coordinates63 lattices fits measures measures_f64 tables scimath scimath_f casa65 wcs66 rpfits67 """.split()68 59 69 60 # OTHER 70 genlibs = """71 g2c stdc++ lapack blas72 """.split()61 #genlibs = """ 62 #g2c stdc++ lapack blas 63 #""".split() 73 64 74 myenv.Append( LIBS = casalibs ) 75 myenv.Append( LIBS = ['cfitsio_lfs'] ) 76 myenv.Append( LIBS = genlibs ) 65 #myenv.Append( LIBS = ['cfitsio_lfs'] ) 66 #myenv.Append( LIBS = genlibs ) 77 67 78 # Explicit templates in casa79 myenv.Append( CPPFLAGS = ['-DAIPS_NO_TEMPLATE_SRC'] )80 68 81 69 casalibd = os.path.join(myenv['CASAROOT'],myenv['CASAARCH'],'lib')
Note:
See TracChangeset
for help on using the changeset viewer.