source: trunk/src/SConscript@ 1088

Last change on this file since 1088 was 1082, checked in by mar637, 18 years ago

Initial rev of scons files

File size: 1.8 KB
RevLine 
[1082]1import os,glob,shutil
2
3# import root environment
4Import( "env" )
5myenv = env.Copy()
6
7# casa includes
8casaincd = [os.path.join(myenv['CASAROOT'], 'code/include'), \
9 os.path.join(myenv['CASAROOT'], 'code/casa')]
10
11myenv.Append( CPPPATH = casaincd )
12
13# libaries and objects
14# myabe use glob here
15# ASAP
16cpps = """
17Logger.cpp
18MathUtils.cpp
19MathUtils2.cpp
20RowAccumulator.cpp
21STAsciiWriter.cpp
22STAttr.cpp
23STFiller.cpp
24STFit.cpp
25STFitEntry.cpp
26STFitter.cpp
27STFocus.cpp
28STFrequencies.cpp
29STHeader.cpp
30STHistory.cpp
31STLineFinder.cpp
32STMath.cpp
33STMolecules.cpp
34STPol.cpp
35STPolLinear.cpp
36STPolStokes.cpp
37STSelector.cpp
38STSubTable.cpp
39STTcal.cpp
40STWeather.cpp
41STWriter.cpp
42Scantable.cpp
43Templates.cpp
44""".split()
45
46pycpps = """
47python_Fitter.cpp
48python_Logger.cpp
49python_STFiller.cpp
50python_STFitEntry.cpp
51python_STLineFinder.cpp
52python_STMath.cpp
53python_STSelector.cpp
54python_STWriter.cpp
55python_Scantable.cpp
56python_asap.cpp
57""".split()
58
59# CASA
60casalibs = """
61casav
62atnf images ms components coordinates
63lattices fits measures measures_f
64tables scimath scimath_f casa
65wcs
66rpfits
67""".split()
68
69# OTHER
70genlibs = """
71g2c stdc++ lapack blas
72""".split()
73
74myenv.Append( LIBS = casalibs )
75myenv.Append( LIBS = ['cfitsio_lfs'] )
76myenv.Append( LIBS = genlibs )
77
78# Explicit templates in casa
79myenv.Append( CPPFLAGS = ['-DAIPS_NO_TEMPLATE_SRC'] )
80
81casalibd = os.path.join(myenv['CASAROOT'],myenv['CASAARCH'],'lib')
82# location of libcasav.a
83myenv.Append( LIBPATH = ['#/build', casalibd] )
84myenv.Install('#build', os.path.join(casalibd, 'libwcs.a'))
85myenv['SHLIBPREFIX']="" #gets rid of lib prefix
86
87# need to create library here to fool scons linker
88casav = myenv.StaticLibrary(target = "casav", source = os.path.join(casalibd, 'version.o'))
89# Finally create the library for the module
90so = myenv.SharedLibrary( target = "_asap", source = cpps+pycpps )
91Return("so")
Note: See TracBrowser for help on using the repository browser.