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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1597 - (show annotations) (download)
Fri Aug 17 05:26:05 2007 UTC (17 years, 1 month ago) by jpye
File size: 554 byte(s)
New external library naming scheme on Windows: 'name_ascend.dll' instead of 'name.dll'.
This applies to solvers as well as external methods, extpy, import handlers, etc.
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 lib = extfn_env.SharedLibrary("extpy",srcs
18 ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
19 ,SHLIBPREFIX = env['EXTLIB_PREFIX']
20 )
21
22 # To run the test, type
23 # ascdev johnpye/extpy/extpytest.py
24
25 # Return the targs
26 env['extfns'] += [lib]
27
28 # vim: set syntax=python:
29

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