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

Contents of /trunk/models/johnpye/extpy/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 983 - (show annotations) (download)
Thu Dec 21 03:43:11 2006 UTC (13 years, 2 months ago) by johnpye
File size: 506 byte(s)
Fixing building for libpython *present*
1 Import('env')
2 extfn_env = env.Copy()
3
4 if extfn_env.get('WITH_PYTHON'):
5 extfn_env.Append(CPPDEFINES=['-DWITH_PYTHON'])
6
7 srcs = Split("""
8 extpy.c
9 """)
10
11 extfn_env.AppendUnique(
12 LIBPATH=['#',env.get('PYTHON_LIBPATH')]
13 ,LIBS=['ascend',env.get('PYTHON_LIB')]
14 ,CPPPATH=[env.get('PYTHON_CPPPATH')]
15 )
16
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