source: trunk/src/SConscript@ 1107

Last change on this file since 1107 was 1105, checked in by mar637, 18 years ago

more clever use of python...

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