source: branches/hpc33/src/SConscript@ 2558

Last change on this file since 2558 was 2519, checked in by Takeshi Nakazato, 12 years ago

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: Defined STIdxIter and its python interface

Test Programs: List test programs

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Defined STIdxIter module that contains STIdxIterAcc class.
Python interface for STIdxIterAcc class also defined.
STMath::almacal is rewritten using STIdxIterAcc.


File size: 952 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")
9pycpps = env.SGlob("python_*.cpp")
10for pf in pycpps:
11 cpps.remove(pf)
12
13# location of libcasav.a
14myenv.Prepend( LIBPATH = ['#/build'] )
15myenv['SHLIBPREFIX']="" #gets rid of lib prefix
16myenv.Append(CCFLAGS=["-DWCSLIB_GETWCSTAB"])
17# need to create library here to fool scons linker
18libasap = myenv.StaticLibrary(target = "asap", source = cpps)
19myenv.Prepend( LIBS = ['asap'] )
20
21shenv = myenv.Clone()
22pyrapdir = shenv.get("pyrapint", None)
23if pyrapdir:
24 shenv.PrependUnique(CPPPATH=pyrapdir)
25 pycpps += shenv.Glob('%s/pyrap/*/*.cc' % pyrapdir)
26# Finally create the library for the module
27if not hasattr(shenv, "LoadableModule"):
28 shenv.LoadableModule = shenv.SharedLibrary
29so = shenv.LoadableModule( target = "_asap.so", source = pycpps, SHLIBSUFFIX="" )
30#test = shenv.Program("test", cpps)
31Return("so")
32
Note: See TracBrowser for help on using the repository browser.