Last change
on this file since 1946 was 1941, checked in by Takeshi Nakazato, 14 years ago |
New Development: Yes/No
JIRA Issue: No/Yes List JIRA ticket.
Ready for Test: Yes/No
Interface Changes: Yes/No
What Interface Changed: Please list interface changes
Test Programs: List test programs
Put in Release Notes: Yes/No
Module(s): Module Names change impacts.
Description: Describe your changes here...
Merged bug fix on PKSMS2writer (external-alma@asap4casa3.1.0) to trunk.
|
-
Property svn:mergeinfo
set to
|
File size:
952 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:
|
---|
11 | cpps.remove(pf)
|
---|
12 |
|
---|
13 | # location of libcasav.a
|
---|
14 | myenv.Prepend( LIBPATH = ['#/build'] )
|
---|
15 | myenv['SHLIBPREFIX']="" #gets rid of lib prefix
|
---|
16 | myenv.Append(CCFLAGS=["-DWCSLIB_GETWCSTAB"])
|
---|
17 | # need to create library here to fool scons linker
|
---|
18 | libasap = myenv.StaticLibrary(target = "asap", source = cpps)
|
---|
19 | myenv.Prepend( LIBS = ['asap'] )
|
---|
20 |
|
---|
21 | shenv = myenv.Clone()
|
---|
22 | pyrapdir = shenv.get("pyrapint", None)
|
---|
23 | if pyrapdir:
|
---|
24 | shenv.PrependUnique(CPPPATH=pyrapdir)
|
---|
25 | pycpps += shenv.Glob('%s/pyrap/*/*.cc' % pyrapdir)
|
---|
26 | # Finally create the library for the module
|
---|
27 | if not hasattr(shenv, "LoadableModule"):
|
---|
28 | shenv.LoadableModule = shenv.SharedLibrary
|
---|
29 | so = shenv.LoadableModule( target = "_asap.so", source = pycpps, SHLIBSUFFIX="" )
|
---|
30 | #test = shenv.Program("test", cpps)
|
---|
31 | Return("so")
|
---|
32 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.