|
Last change
on this file since 2982 was 2825, checked in by WataruKawasaki, 12 years ago |
New Development: Yes
JIRA Issue: Yes (CAS-3620)
Ready for Test: Yes
Interface Changes: No
What Interface Changed:
Test Programs:
Put in Release Notes: Yes
Module(s): sd
Description: add a new sd module sd.plotter2, a new lightweight plotter based on pgplot.
|
-
Property svn:mergeinfo
set to
| /branches/alma/src/SConscript | 1386-1818 | | /branches/asap-3.x/src/SConscript | 1747-1748,1750-1751,1753 | | /branches/asap4casa3.1.0/src/SConscript | 1935-1936,1940 | | /branches/hpc33/src/SConscript | 2405-2579 | | /branches/hpc34/src/SConscript | 2582-2642 | | /branches/newfiller/src/SConscript | 1774-1817 | | /branches/parallel/src/SConscript | 2196-2288 |
|
|
File size:
1017 bytes
|
| Line | |
|---|
| 1 | import os,glob,shutil
|
|---|
| 2 |
|
|---|
| 3 | # import root environment
|
|---|
| 4 | Import( "env")
|
|---|
| 5 | myenv = env.Clone()
|
|---|
| 6 |
|
|---|
| 7 | # gather cpp files
|
|---|
| 8 | cpps = env.SGlob("*.cpp")
|
|---|
| 9 | cpps.remove("Plotter2.cpp")
|
|---|
| 10 | pycpps = env.SGlob("python_*.cpp")
|
|---|
| 11 | for pf in pycpps:
|
|---|
| 12 | cpps.remove(pf)
|
|---|
| 13 | pycpps.remove("python_Plotter2.cpp")
|
|---|
| 14 |
|
|---|
| 15 | # location of libcasav.a
|
|---|
| 16 | myenv.Prepend( LIBPATH = ['#/build'] )
|
|---|
| 17 | myenv['SHLIBPREFIX']="" #gets rid of lib prefix
|
|---|
| 18 | myenv.Append(CCFLAGS=["-DWCSLIB_GETWCSTAB"])
|
|---|
| 19 | # need to create library here to fool scons linker
|
|---|
| 20 | libasap = myenv.StaticLibrary(target = "asap", source = cpps)
|
|---|
| 21 | myenv.Prepend( LIBS = ['asap'] )
|
|---|
| 22 |
|
|---|
| 23 | shenv = myenv.Clone()
|
|---|
| 24 | pyrapdir = shenv.get("pyrapint", None)
|
|---|
| 25 | if pyrapdir:
|
|---|
| 26 | shenv.PrependUnique(CPPPATH=pyrapdir)
|
|---|
| 27 | pycpps += shenv.Glob('%s/pyrap/*/*.cc' % pyrapdir)
|
|---|
| 28 | # Finally create the library for the module
|
|---|
| 29 | if not hasattr(shenv, "LoadableModule"):
|
|---|
| 30 | shenv.LoadableModule = shenv.SharedLibrary
|
|---|
| 31 | so = shenv.LoadableModule( target = "_asap.so", source = pycpps, SHLIBSUFFIX="" )
|
|---|
| 32 | #test = shenv.Program("test", cpps)
|
|---|
| 33 | Return("so")
|
|---|
| 34 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.