source: branches/casa-release-4_3-test/src/SConscript@ 3030

Last change on this file since 3030 was 2830, checked in by WataruKawasaki, 11 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: a new simple plotter based on PGPLOT. the module name is sd.plotter2. only available on casapy (unavailable in the standalone ASAP)


File size: 1017 bytes
Line 
1import os,glob,shutil
2
3# import root environment
4Import( "env")
5myenv = env.Clone()
6
7# gather cpp files
8cpps = env.SGlob("*.cpp")
9cpps.remove("Plotter2.cpp")
10pycpps = env.SGlob("python_*.cpp")
11for pf in pycpps:
12 cpps.remove(pf)
13pycpps.remove("python_Plotter2.cpp")
14
15# location of libcasav.a
16myenv.Prepend( LIBPATH = ['#/build'] )
17myenv['SHLIBPREFIX']="" #gets rid of lib prefix
18myenv.Append(CCFLAGS=["-DWCSLIB_GETWCSTAB"])
19# need to create library here to fool scons linker
20libasap = myenv.StaticLibrary(target = "asap", source = cpps)
21myenv.Prepend( LIBS = ['asap'] )
22
23shenv = myenv.Clone()
24pyrapdir = shenv.get("pyrapint", None)
25if pyrapdir:
26 shenv.PrependUnique(CPPPATH=pyrapdir)
27 pycpps += shenv.Glob('%s/pyrap/*/*.cc' % pyrapdir)
28# Finally create the library for the module
29if not hasattr(shenv, "LoadableModule"):
30 shenv.LoadableModule = shenv.SharedLibrary
31so = shenv.LoadableModule( target = "_asap.so", source = pycpps, SHLIBSUFFIX="" )
32#test = shenv.Program("test", cpps)
33Return("so")
34
Note: See TracBrowser for help on using the repository browser.