source: trunk/src/SConscript@ 1090

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

added more auto-detection of libs

File size: 1.6 KB
Line 
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
60# OTHER
61#genlibs = """
62#g2c stdc++ lapack blas
63#""".split()
64
65#myenv.Append( LIBS = ['cfitsio_lfs'] )
66#myenv.Append( LIBS = genlibs )
67
68
69casalibd = os.path.join(myenv['CASAROOT'],myenv['CASAARCH'],'lib')
70# location of libcasav.a
71myenv.Append( LIBPATH = ['#/build', casalibd] )
72myenv.Install('#build', os.path.join(casalibd, 'libwcs.a'))
73myenv['SHLIBPREFIX']="" #gets rid of lib prefix
74
75# need to create library here to fool scons linker
76casav = myenv.StaticLibrary(target = "casav", source = os.path.join(casalibd, 'version.o'))
77# Finally create the library for the module
78so = myenv.SharedLibrary( target = "_asap", source = cpps+pycpps )
79Return("so")
Note: See TracBrowser for help on using the repository browser.