source: trunk/src/SConscript@ 2551

Last change on this file since 2551 was 2289, checked in by ShinnosukeKawakami, 13 years ago

merged parallel branch to trunk

File size: 952 bytes
RevLine 
[1082]1import os,glob,shutil
2
3# import root environment
[1135]4Import( "env")
[1429]5myenv = env.Clone()
[1082]6
[1109]7# gather cpp files
[1135]8cpps = env.SGlob("*.cpp")
9pycpps = env.SGlob("python_*.cpp")
[1873]10for pf in pycpps:
11 cpps.remove(pf)
[1082]12
13# location of libcasav.a
[1105]14myenv.Prepend( LIBPATH = ['#/build'] )
[1082]15myenv['SHLIBPREFIX']="" #gets rid of lib prefix
[1325]16myenv.Append(CCFLAGS=["-DWCSLIB_GETWCSTAB"])
[1082]17# need to create library here to fool scons linker
[1121]18libasap = myenv.StaticLibrary(target = "asap", source = cpps)
19myenv.Prepend( LIBS = ['asap'] )
20
[1873]21shenv = myenv.Clone()
22pyrapdir = shenv.get("pyrapint", None)
23if pyrapdir:
24 shenv.PrependUnique(CPPPATH=pyrapdir)
25 pycpps += shenv.Glob('%s/pyrap/*/*.cc' % pyrapdir)
[1082]26# Finally create the library for the module
[1873]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)
[1082]31Return("so")
[1121]32
Note: See TracBrowser for help on using the repository browser.