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