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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1722 - (show annotations) (download)
Thu Jan 10 03:12:08 2008 UTC (12 years, 8 months ago) by jpye
File size: 1200 byte(s)
Fixed detection of 'boolean' definition in GraphViz graph.h. Newer versions of GraphViz (2.16) include this definition, although it's not included in the older versions (2.12). Older versions still (2.8) are in use (Ubuntu 6.10 and Ubuntu 7.04).
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.Copy()
19
20 defs = []
21 objs = []
22
23 for c in csrcs:
24 objs += solver_env.SharedObject(c)
25
26 graph_env = solver_env.Copy()
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