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 |
|
|
|