/[ascend]/branches/python3/models/johnpye/extpy/SConscript
ViewVC logotype

Diff of /branches/python3/models/johnpye/extpy/SConscript

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

revision 3505 by jpye, Thu Sep 17 01:14:02 2015 UTC revision 3506 by jpye, Wed Mar 8 23:02:10 2023 UTC
# Line 1  Line 1 
1  Import('env')  Import('env')
2  extfn_env = env.Clone()  extfn_env = env.Clone()
3    
4  if extfn_env.get('WITH_PYTHON'):  if 0:
5      extfn_env.Append(CPPDEFINES=['-DWITH_PYTHON'])      if extfn_env.get('WITH_PYTHON'):
6            extfn_env.Append(CPPDEFINES=['-DWITH_PYTHON'])
7    
8        srcs = Split("""
9            extpy.c
10        """)
11    
12        extfn_env.AppendUnique(
13            LIBPATH=['#',env.get('PYTHON_LIBPATH')]
14            ,LIBS=['ascend',env.get('PYTHON_LIB')]
15            ,CPPPATH=[env.get('PYTHON_CPPPATH')]
16        )
17    
18        lib = extfn_env.SharedLibrary("extpy",srcs
19            ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
20            ,SHLIBPREFIX = env['EXTLIB_PREFIX']
21        )
22    
23  srcs = Split("""      # To run the test, type
24      extpy.c      #     ascdev johnpye/extpy/extpytest.py
 """)  
   
 extfn_env.AppendUnique(  
     LIBPATH=['#',env.get('PYTHON_LIBPATH')]  
     ,LIBS=['ascend',env.get('PYTHON_LIB')]  
     ,CPPPATH=[env.get('PYTHON_CPPPATH')]  
 )  
   
 lib = extfn_env.SharedLibrary("extpy",srcs  
     ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']  
     ,SHLIBPREFIX = env['EXTLIB_PREFIX']  
 )  
25    
26  # To run the test, type      # Return the targs
27  #     ascdev johnpye/extpy/extpytest.py      env['extfns'] += [lib]
   
 # Return the targs  
 env['extfns'] += [lib]  
28    
29  # vim: set syntax=python:  # vim: set syntax=python:
30    

Legend:
Removed from v.3505  
changed lines
  Added in v.3506

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