/[ascend]/trunk/models/johnpye/extfn/SConstruct
ViewVC logotype

Diff of /trunk/models/johnpye/extfn/SConstruct

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

revision 542 by johnpye, Wed Apr 26 15:15:40 2006 UTC revision 692 by johnpye, Thu Jun 22 02:45:47 2006 UTC
# Line 1  Line 1 
1  import os, platform  import os, platform
2    
3  if platform.system()=="Windows" and os.environ.has_key('OSTYPE'):  if platform.system()=="Windows" and os.environ.has_key('OSTYPE'):
4      env = Environment(ENV=os.environ,tools=['mingw'])      env = Environment(ENV=os.environ,tools=['mingw'])
5  else:  else:
6      env = Environment(ENV=os.environ);      env = Environment(ENV=os.environ);
7        # assuming GCC, we will want the GCC visibility stuff set so that
8        # we ensure windows will work as well.
9        env.Append(CCFLAGS=['-fvisibility=hidden'])
10        env.Append(CPPDEFINES=['HAVE_GCCVISIBILITY'])
11    
12  srcs = Split("""  srcs = Split("""
13      extfntest.c      extfntest.c
14  """)  """)
15    
16  env.SharedLibrary("extfntest",srcs  env.ParseConfig('ascend-config')
17      , CPPPATH=['../../../base/generic']  env.Append(CPPPATH=['../../../base/generic'])
18      , LIBS=['ascend']  
19      , LIBPATH=['../../..']  env.SharedLibrary("extfntest",srcs)
 )  
20    
21  # To run the test  # To run the test
22  # type  # type
23  #  #
24  # PYTHONPATH=../../../pygtk/interface ./extfntest.py  # ASCENDLIBRARY=../../../models LD_LIBRARY_PATH=../../.. PYTHONPATH=../../../pygtk python extfntest.py
25    
26    

Legend:
Removed from v.542  
changed lines
  Added in v.692

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