Last change
on this file since 2744 was 1429, checked in by Malte Marquarding, 16 years ago |
Copy -> Clone as it is now deprecated
|
File size:
773 bytes
|
Line | |
---|
1 | import os,glob,shutil
|
---|
2 |
|
---|
3 | # import root environment
|
---|
4 | Import( "env")
|
---|
5 | myenv = env.Clone()
|
---|
6 |
|
---|
7 | # gather cpp files
|
---|
8 | cpps = env.SGlob("*.cpp")
|
---|
9 | pycpps = env.SGlob("python_*.cpp")
|
---|
10 | for pf in pycpps: cpps.remove(pf)
|
---|
11 |
|
---|
12 | # location of libcasav.a
|
---|
13 | myenv.Prepend( LIBPATH = ['#/build'] )
|
---|
14 | myenv['SHLIBPREFIX']="" #gets rid of lib prefix
|
---|
15 | myenv.Append(CCFLAGS=["-DWCSLIB_GETWCSTAB"])
|
---|
16 | # need to create library here to fool scons linker
|
---|
17 | libasap = myenv.StaticLibrary(target = "asap", source = cpps)
|
---|
18 | myenv.Prepend( LIBS = ['asap'] )
|
---|
19 |
|
---|
20 | # Finally create the library for the module
|
---|
21 | if not hasattr(myenv, "LoadableModule"):
|
---|
22 | myenv.LoadableModule = myenv.SharedLibrary
|
---|
23 | so = myenv.LoadableModule( target = "_asap.so", source = pycpps, SHLIBSUFFIX="" )
|
---|
24 | #test = myenv.Program("test", cpps)
|
---|
25 | Return("so")
|
---|
26 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.