source: trunk/src/SConscript@ 1123

Last change on this file since 1123 was 1121, checked in by mar637, 18 years ago

added static lib build for asap

File size: 842 bytes
Line 
1import os,glob,shutil
2
3# import root environment
4Import( "env", "SGlob" )
5myenv = env.Copy()
6
7# gather cpp files
8cpps = SGlob("*.cpp")
9pycpps = SGlob("python_*.cpp")
10for pf in pycpps: cpps.remove(pf)
11
12casalibd = os.path.join(myenv['CASAROOT'],myenv['CASAARCH'],'lib')
13
14# location of libcasav.a
15myenv.Prepend( LIBPATH = ['#/build'] )
16myenv.Install('#build', os.path.join(casalibd, 'libwcs.a'))
17myenv['SHLIBPREFIX']="" #gets rid of lib prefix
18
19# need to create library here to fool scons linker
20casav = myenv.StaticLibrary(target = "casav", source = os.path.join(casalibd, 'version.o'))
21libasap = myenv.StaticLibrary(target = "asap", source = cpps)
22myenv.Prepend( LIBS = ['asap'] )
23
24# Finally create the library for the module
25so = myenv.SharedLibrary( target = "_asap", source = pycpps )
26#test = myenv.Program("test", cpps)
27Return("so")
28
Note: See TracBrowser for help on using the repository browser.