/[ascend]/trunk/base/generic/system/SConscript
ViewVC logotype

Contents of /trunk/base/generic/system/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1786 - (show annotations) (download)
Sat Jun 7 06:17:35 2008 UTC (11 years, 9 months ago) by jpye
File size: 1202 byte(s)
Fixed for missing libpython (DistutilsPlatformError).
Fixed several env.Copy() warnings.
Removed swig 'SideEffect' statement for current SCons swig tool.
1 Import('libascend_env')
2
3 csrcs = Split("""
4 analyze.c block.c
5 bnd.c bndman.c calc.c cond_config.c
6 conditional.c discrete.c
7 diffvars.c
8 jacobian.c
9 logrel.c logrelman.c model_reorder.c
10 rel.c relman.c
11 slv.c
12 slv_common.c
13 slv_param.c
14 slv_stdcalls.c system.c var.c
15 incidence.c
16 """)
17
18 solver_env = libascend_env.Clone()
19
20 defs = []
21 objs = []
22
23 for c in csrcs:
24 objs += solver_env.SharedObject(c)
25
26 graph_env = solver_env.Clone()
27 if libascend_env.get('WITH_GRAPHVIZ'):
28 graph_env.Append(CPPDEFINES=['WITH_GRAPHVIZ'])
29 graph_env.Append(CPPPATH=libascend_env['GRAPHVIZ_CPPPATH'])
30 if graph_env.get('HAVE_GRAPHVIZ_BOOLEAN'):
31 graph_env.Append(CPPDEFINES=['HAVE_GRAPHVIZ_BOOLEAN'])
32 else:
33 print "NO GRAPHVIZ----"
34
35 objs += graph_env.SharedObject('graph.c')
36
37 if libascend_env.get('WITH_GRAPHVIZ'):
38 libascend_env.Append(LIBS=libascend_env['GRAPHVIZ_LIBS'])
39 libascend_env.Append(LIBPATH=libascend_env['GRAPHVIZ_LIBPATH'])
40
41
42 #--------------------
43 # INSTALL
44
45 import glob
46
47 if libascend_env.get('CAN_INSTALL'):
48 installdir = Dir(libascend_env.subst("$INSTALL_ROOT$INSTALL_INCLUDE/system"))
49
50 headers = glob.glob("*.h")
51 libascend_env.InstallHeader(installdir,headers)
52
53 Return('objs')
54
55 # vim: set syntax=python:
56

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