Last change
on this file since 1325 was
1325,
checked in by mar637, 17 years ago
|
Changes to use casacore instead of casa_asap/aips++\nAdded atnf PKSIO library snapshot to external and linking against this local copy
|
File size:
684 bytes
|
Rev | Line | |
---|
[1082] | 1 | import os,glob,shutil |
---|
| 2 | |
---|
| 3 | # import root environment |
---|
[1135] | 4 | Import( "env") |
---|
[1082] | 5 | myenv = env.Copy() |
---|
| 6 | |
---|
[1109] | 7 | # gather cpp files |
---|
[1135] | 8 | cpps = env.SGlob("*.cpp") |
---|
| 9 | pycpps = env.SGlob("python_*.cpp") |
---|
[1105] | 10 | for pf in pycpps: cpps.remove(pf) |
---|
[1082] | 11 | |
---|
| 12 | # location of libcasav.a |
---|
[1105] | 13 | myenv.Prepend( LIBPATH = ['#/build'] ) |
---|
[1082] | 14 | myenv['SHLIBPREFIX']="" #gets rid of lib prefix |
---|
[1325] | 15 | myenv.Append(CCFLAGS=["-DWCSLIB_GETWCSTAB"]) |
---|
[1082] | 16 | # need to create library here to fool scons linker |
---|
[1121] | 17 | libasap = myenv.StaticLibrary(target = "asap", source = cpps) |
---|
| 18 | myenv.Prepend( LIBS = ['asap'] ) |
---|
| 19 | |
---|
[1082] | 20 | # Finally create the library for the module |
---|
[1325] | 21 | so = myenv.LoadableModule( target = "_asap.so", source = pycpps, SHLIBSUFFIX="" ) |
---|
[1121] | 22 | #test = myenv.Program("test", cpps) |
---|
[1082] | 23 | Return("so") |
---|
[1121] | 24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.