/[ascend]/trunk/pygtk/interface/SConscript
ViewVC logotype

Diff of /trunk/pygtk/interface/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 508 by johnpye, Wed Apr 19 04:48:32 2006 UTC revision 509 by johnpye, Wed Apr 19 05:13:08 2006 UTC
# Line 17  srcs = Split(""" Line 17  srcs = Split("""
17  # Build a static library with all the sources  # Build a static library with all the sources
18    
19  python_env = env.Copy()  python_env = env.Copy()
20    python_env.Replace(
21        CPPFLAGS=[]
22        , CCFLAGS=[]
23        , CPPDEFINES=[]
24        , LIBS=[]
25    )
26    
27  import platform  import platform
28    
29  if platform.system()=='Windows' and env.has_key('MSVS'):  if platform.system()=='Windows' and env.has_key('MSVS'):
30      python_env.Append(CCFLAGS=['/EHsc']) # for exceptions (as suggested by a MSVC error msg, dunno if it's right or not -- JP)      python_env.Append(CCFLAGS=['/EHsc']) # for exceptions (as suggested by a MSVC error msg, dunno if it's right or not -- JP)
31    
32    swig_has_gccvisibility = False
33    min,maj,pat = env['SWIGVERSION']
34    if min==1 and maj==3 and pat>=29:
35        swig_has_gccvisibility = True
36    
37  if env.has_key('HAVE_GCC'):  if env.has_key('HAVE_GCC'):
38      python_env.Append(CPPFLAGS=['-O3'])      python_env.Append(CPPFLAGS=['-O3'])
39      if env.has_key('HAVE_GCCVISIBILITY'):      if swig_has_gccvisibility and env.has_key('HAVE_GCCVISIBILITY'):
40          python_env.Append(CCFLAGS=['-fvisibility=hidden']);          python_env.Append(CCFLAGS=['-fvisibility=hidden']);
41    
42  objs = []  objs = []

Legend:
Removed from v.508  
changed lines
  Added in v.509

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22