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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1597 - (hide annotations) (download)
Fri Aug 17 05:26:05 2007 UTC (17 years, 2 months 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 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 jpye 1597 lib = extfn_env.SharedLibrary("extpy",srcs
18     ,SHLIBSUFFIX = env['EXTLIB_SUFFIX']
19     ,SHLIBPREFIX = env['EXTLIB_PREFIX']
20     )
21 johnpye 862
22     # To run the test, type
23     # ascdev johnpye/extpy/extpytest.py
24    
25     # Return the targs
26 jpye 1597 env['extfns'] += [lib]
27 johnpye 862
28     # vim: set syntax=python:
29    

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