Line | |
---|
1 | import os,glob,shutil |
---|
2 | |
---|
3 | # import root environment |
---|
4 | Import( "env" ) |
---|
5 | myenv = env.Copy() |
---|
6 | |
---|
7 | # casa includes |
---|
8 | casaincd = [os.path.join(myenv['CASAROOT'], 'code/include'), \ |
---|
9 | os.path.join(myenv['CASAROOT'], 'code/casa')] |
---|
10 | |
---|
11 | myenv.Append( CPPPATH = casaincd ) |
---|
12 | |
---|
13 | # libaries and objects |
---|
14 | # myabe use glob here |
---|
15 | # ASAP |
---|
16 | cpps = """ |
---|
17 | Logger.cpp |
---|
18 | MathUtils.cpp |
---|
19 | MathUtils2.cpp |
---|
20 | RowAccumulator.cpp |
---|
21 | STAsciiWriter.cpp |
---|
22 | STAttr.cpp |
---|
23 | STFiller.cpp |
---|
24 | STFit.cpp |
---|
25 | STFitEntry.cpp |
---|
26 | STFitter.cpp |
---|
27 | STFocus.cpp |
---|
28 | STFrequencies.cpp |
---|
29 | STHeader.cpp |
---|
30 | STHistory.cpp |
---|
31 | STLineFinder.cpp |
---|
32 | STMath.cpp |
---|
33 | STMolecules.cpp |
---|
34 | STPol.cpp |
---|
35 | STPolLinear.cpp |
---|
36 | STPolStokes.cpp |
---|
37 | STSelector.cpp |
---|
38 | STSubTable.cpp |
---|
39 | STTcal.cpp |
---|
40 | STWeather.cpp |
---|
41 | STWriter.cpp |
---|
42 | Scantable.cpp |
---|
43 | Templates.cpp |
---|
44 | """.split() |
---|
45 | |
---|
46 | pycpps = """ |
---|
47 | python_Fitter.cpp |
---|
48 | python_Logger.cpp |
---|
49 | python_STFiller.cpp |
---|
50 | python_STFitEntry.cpp |
---|
51 | python_STLineFinder.cpp |
---|
52 | python_STMath.cpp |
---|
53 | python_STSelector.cpp |
---|
54 | python_STWriter.cpp |
---|
55 | python_Scantable.cpp |
---|
56 | python_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 | |
---|
69 | casalibd = os.path.join(myenv['CASAROOT'],myenv['CASAARCH'],'lib') |
---|
70 | # location of libcasav.a |
---|
71 | myenv.Append( LIBPATH = ['#/build', casalibd] ) |
---|
72 | myenv.Install('#build', os.path.join(casalibd, 'libwcs.a')) |
---|
73 | myenv['SHLIBPREFIX']="" #gets rid of lib prefix |
---|
74 | |
---|
75 | # need to create library here to fool scons linker |
---|
76 | casav = myenv.StaticLibrary(target = "casav", source = os.path.join(casalibd, 'version.o')) |
---|
77 | # Finally create the library for the module |
---|
78 | so = myenv.SharedLibrary( target = "_asap", source = cpps+pycpps ) |
---|
79 | Return("so") |
---|
Note: See
TracBrowser
for help on using the repository browser.