/[ascend]/trunk/models/johnpye/extpy/SConscript
ViewVC logotype

Annotation of /trunk/models/johnpye/extpy/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 983 - (hide annotations) (download)
Thu Dec 21 03:43:11 2006 UTC (15 years, 8 months ago) by johnpye
File size: 506 byte(s)
Fixing building for libpython *present*
1 johnpye 862 Import('env')
2     extfn_env = env.Copy()
3    
4 johnpye 983 if extfn_env.get('WITH_PYTHON'):
5     extfn_env.Append(CPPDEFINES=['-DWITH_PYTHON'])
6    
7 johnpye 862 srcs = Split("""
8     extpy.c
9     """)
10    
11 johnpye 875 extfn_env.AppendUnique(
12     LIBPATH=['#',env.get('PYTHON_LIBPATH')]
13     ,LIBS=['ascend',env.get('PYTHON_LIB')]
14     ,CPPPATH=[env.get('PYTHON_CPPPATH')]
15     )
16 johnpye 862
17     targets = []
18     targets.append( extfn_env.SharedLibrary("extpy",srcs) )
19    
20     # To run the test, type
21     # ascdev johnpye/extpy/extpytest.py
22    
23     # Return the targs
24     env['extfns'] += targets
25    
26     # vim: set syntax=python:
27    

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