52 |
flags += ['-O'] |
flags += ['-O'] |
53 |
return flags |
return flags |
54 |
|
|
55 |
swigobj = python_env.SharedObject('ascpy.i' |
swig_env = python_env.Copy() |
56 |
|
swig_env['CCFLAGS'] = swig_env['CCFLAGS'].remove('-Wall') |
57 |
|
|
58 |
|
swigobj = swig_env.SharedObject('ascpy.i' |
59 |
, SWIGFLAGS=['-python','-c++'] + get_new_swig_flags(env) |
, SWIGFLAGS=['-python','-c++'] + get_new_swig_flags(env) |
60 |
) |
) |
61 |
python_env.SideEffect(['ascpy.py','ascpy_wrap.h'],'ascpy$SWIGCXXFILESUFFIX') |
swig_env.SideEffect(['ascpy.py','ascpy_wrap.h'],'ascpy$SWIGCXXFILESUFFIX') |
62 |
python_env.Depends('ascpy.py',['ascpy.i']) |
swig_env.Depends('ascpy.py',['ascpy.i']) |
63 |
python_env.Clean('ascpy_wrap$SWIGCXXFILESUFFIX',swigobj) |
swig_env.Clean('ascpy_wrap$SWIGCXXFILESUFFIX',swigobj) |
64 |
python_env.Clean('ascpy.py','ascpy$SWIGCXXFILESUFFIX') |
swig_env.Clean('ascpy.py','ascpy$SWIGCXXFILESUFFIX') |
65 |
python_env.Clean('ascpy_wrap.h','ascpy$SWIGCXXFILESUFFIX') |
swig_env.Clean('ascpy_wrap.h','ascpy$SWIGCXXFILESUFFIX') |
66 |
|
|
67 |
_libs = ['ascend']+env['PYTHON_LIB'] |
_libs = ['ascend']+env['PYTHON_LIB'] |
68 |
if not env.get('MSVS'): |
if not env.get('MSVS'): |
69 |
_libs.append('stdc++') |
_libs.append('stdc++') |
70 |
|
|
71 |
swiglib = python_env.SharedLibrary("ascpy",objs + swigobj |
swiglib = swig_env.SharedLibrary("ascpy",objs + swigobj |
72 |
, LIBS = _libs |
, LIBS = _libs |
73 |
, LIBPATH = ['#'] + env['PYTHON_LIBPATH'] |
, LIBPATH = ['#'] + env['PYTHON_LIBPATH'] |
74 |
, SHLIBPREFIX = '_' |
, SHLIBPREFIX = '_' |