source: trunk/src/SConscript@ 1229

Last change on this file since 1229 was 1135, checked in by mar637, 18 years ago

more work on a modular scons set up

File size: 840 bytes
RevLine 
[1082]1import os,glob,shutil
2
3# import root environment
[1135]4Import( "env")
[1082]5myenv = env.Copy()
6
[1109]7# gather cpp files
[1135]8cpps = env.SGlob("*.cpp")
9pycpps = env.SGlob("python_*.cpp")
[1105]10for pf in pycpps: cpps.remove(pf)
[1082]11
[1105]12casalibd = os.path.join(myenv['CASAROOT'],myenv['CASAARCH'],'lib')
[1082]13
14# location of libcasav.a
[1105]15myenv.Prepend( LIBPATH = ['#/build'] )
[1082]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'))
[1121]21libasap = myenv.StaticLibrary(target = "asap", source = cpps)
22myenv.Prepend( LIBS = ['asap'] )
23
[1082]24# Finally create the library for the module
[1121]25so = myenv.SharedLibrary( target = "_asap", source = pycpps )
26#test = myenv.Program("test", cpps)
[1082]27Return("so")
[1121]28
Note: See TracBrowser for help on using the repository browser.