source: branches/mergetest/src/SConscript@ 1864

Last change on this file since 1864 was 1819, checked in by Kana Sugimoto, 14 years ago

New Development: No

JIRA Issue: No (merge alma branch to trunk)

Ready for Test: Yes

Interface Changes: No

Test Programs: regressions may work

Module(s): all single dish modules

Description:

Merged all changes in alma (r1386:1818) and newfiller (r1774:1818) branch.


File size: 773 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: cpps.remove(pf)
11
12# location of libcasav.a
13myenv.Prepend( LIBPATH = ['#/build'] )
14myenv['SHLIBPREFIX']="" #gets rid of lib prefix
15myenv.Append(CCFLAGS=["-DWCSLIB_GETWCSTAB"])
16# need to create library here to fool scons linker
17libasap = myenv.StaticLibrary(target = "asap", source = cpps)
18myenv.Prepend( LIBS = ['asap'] )
19
20# Finally create the library for the module
21if not hasattr(myenv, "LoadableModule"):
22 myenv.LoadableModule = myenv.SharedLibrary
23so = myenv.LoadableModule( target = "_asap.so", source = pycpps, SHLIBSUFFIX="" )
24#test = myenv.Program("test", cpps)
25Return("so")
26
Note: See TracBrowser for help on using the repository browser.