1 |
Import('env') |
Import('env') |
2 |
extfn_env = env.Clone() |
extfn_env = env.Clone() |
3 |
|
|
4 |
if extfn_env.get('WITH_PYTHON'): |
if 0: |
5 |
extfn_env.Append(CPPDEFINES=['-DWITH_PYTHON']) |
if extfn_env.get('WITH_PYTHON'): |
6 |
|
extfn_env.Append(CPPDEFINES=['-DWITH_PYTHON']) |
7 |
|
|
8 |
|
srcs = Split(""" |
9 |
|
extpy.c |
10 |
|
""") |
11 |
|
|
12 |
|
extfn_env.AppendUnique( |
13 |
|
LIBPATH=['#',env.get('PYTHON_LIBPATH')] |
14 |
|
,LIBS=['ascend',env.get('PYTHON_LIB')] |
15 |
|
,CPPPATH=[env.get('PYTHON_CPPPATH')] |
16 |
|
) |
17 |
|
|
18 |
|
lib = extfn_env.SharedLibrary("extpy",srcs |
19 |
|
,SHLIBSUFFIX = env['EXTLIB_SUFFIX'] |
20 |
|
,SHLIBPREFIX = env['EXTLIB_PREFIX'] |
21 |
|
) |
22 |
|
|
23 |
srcs = Split(""" |
# To run the test, type |
24 |
extpy.c |
# ascdev johnpye/extpy/extpytest.py |
|
""") |
|
|
|
|
|
extfn_env.AppendUnique( |
|
|
LIBPATH=['#',env.get('PYTHON_LIBPATH')] |
|
|
,LIBS=['ascend',env.get('PYTHON_LIB')] |
|
|
,CPPPATH=[env.get('PYTHON_CPPPATH')] |
|
|
) |
|
|
|
|
|
lib = extfn_env.SharedLibrary("extpy",srcs |
|
|
,SHLIBSUFFIX = env['EXTLIB_SUFFIX'] |
|
|
,SHLIBPREFIX = env['EXTLIB_PREFIX'] |
|
|
) |
|
25 |
|
|
26 |
# To run the test, type |
# Return the targs |
27 |
# ascdev johnpye/extpy/extpytest.py |
env['extfns'] += [lib] |
|
|
|
|
# Return the targs |
|
|
env['extfns'] += [lib] |
|
28 |
|
|
29 |
# vim: set syntax=python: |
# vim: set syntax=python: |
30 |
|
|