/[ascend]/trunk/pygtk/interface/SConscript
ViewVC logotype

Contents of /trunk/pygtk/interface/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 392 - (show annotations) (download)
Thu Mar 30 12:36:15 2006 UTC (14 years, 7 months ago) by johnpye
File size: 1057 byte(s)
Some fixes to the SCons build:
- adding flags to enable QRSLV and CMSLV by default.
- adding commands to build SWIG library correctly for Python interface.
1 Import('env')
2
3 srcs = Split("""
4
5 library.cpp type.cpp module.cpp symchar.cpp
6 instance.cpp instanceinterfacedata.cpp
7 method.cpp name.cpp
8 reporter.cpp simulation.cpp set.cpp units.cpp dimensions.cpp extmethod.cpp
9 variable.cpp relation.cpp
10 solver.cpp curve.cpp plot.cpp
11 solverparameters.cpp solverparameter.cpp solverparameteriterator.cpp
12 solverstatus.cpp solverreporter.cpp
13 incidencematrix.cpp
14
15 """)
16
17 libs = Split("""
18 asccompiler ascpackages ascsolver ascutilities ascgeneral
19 """)
20
21 swig = CFile(target=['ascend_wrap.cc'],source=['ascend.i']
22 , SWIGFLAGS=['-python','-c++']
23 )
24 env.Depends('ascend.py',swig);
25
26 libpath = [
27 '../../base/generic/compiler'
28 ,'../../base/generic/packages'
29 ,'../../base/generic/solver'
30 ,'../../base/generic/utilities'
31 ,'../../base/generic/general'
32 ]
33
34 lib = env.SharedLibrary("ascend",srcs+swig
35 , LIBS = libs #+env['PYTHON_LIB']
36 , LIBPATH = libpath+env['PYTHON_LIBPATH']
37 , CPPPATH = ['../../base/generic']+env['PYTHON_CPPPATH']
38 , CPPDEFINES = ['ASCXX_USE_PYTHON']
39 , SHLIBPREFIX = '_'
40 )
41
42 env.Depends(lib,'ascend.py')

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