40 |
, CPPFLAGS = ['-O3'] |
, CPPFLAGS = ['-O3'] |
41 |
) |
) |
42 |
|
|
43 |
#import platform |
#---------------------------------------------- |
44 |
#if platform.system()=="Windows": |
# SWIG Builder |
45 |
# # |
|
|
# # |
|
46 |
def swig_modify_targets(target, source, env): |
def swig_modify_targets(target, source, env): |
47 |
target.append('ascend.py') |
target.append('ascend.py') |
48 |
target.append('ascend_wrap.h') |
target.append('ascend_wrap.h') |
53 |
, emitter=swig_modify_targets |
, emitter=swig_modify_targets |
54 |
) |
) |
55 |
env.Append(BUILDERS={'Swig':swig_builder}) |
env.Append(BUILDERS={'Swig':swig_builder}) |
56 |
|
#--------------------------------------------- |
57 |
|
|
58 |
|
|
59 |
swig = env.Swig(target=['ascend_wrap.cc'],source=['ascend.i'] |
swig = env.Swig(target=['ascend_wrap.cc'],source=['ascend.i'] |
60 |
, SWIGFLAGS=['-python','-c++'] |
, SWIGFLAGS=['-python','-c++'] |
61 |
, CPPFLAGS = ['-O3'] |
, CPPFLAGS = ['-O3'] |
62 |
) |
) |
|
#else: |
|
|
#swig = env.CFile(target=['ascend_wrap.cc'],source=['ascend.i'] |
|
|
# , SWIGFLAGS=['-python','-c++'] |
|
|
# , ENV={'SWIGFEATURES':'-O'} |
|
|
# , CPPFLAGS = ['-O3'] |
|
|
# ) |
|
|
|
|
|
#env.Depends('ascend.py',swig); |
|
63 |
|
|
64 |
|
|
65 |
swiglib = env.SharedLibrary("ascend",['ascend_wrap.cc'] |
swiglib = env.SharedLibrary("ascend",['ascend_wrap.cc'] |