source: trunk/src/SConscript @ 1105

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

more clever use of python...

File size: 705 bytes
Line 
1import os,glob,shutil
2
3# import root environment
4Import( "env", "SGlob" )
5myenv = env.Copy()
6
7
8cpps = SGlob("*.cpp")
9pycpps = SGlob("python_*.cpp")
10for pf in pycpps: cpps.remove(pf)
11print cpps
12
13casalibd = os.path.join(myenv['CASAROOT'],myenv['CASAARCH'],'lib')
14
15# location of libcasav.a
16myenv.Prepend( LIBPATH = ['#/build'] )
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.