/[ascend]/branches/adrian/ascend/general/SConscript
ViewVC logotype

Contents of /branches/adrian/ascend/general/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2930 - (show annotations) (download)
Mon Jun 1 11:17:13 2015 UTC (7 years, 5 months ago) by adrian
File size: 791 byte(s)
Fixed windows real time library issue
1 #!/usr/bin/python invoke_using_scons
2 Import('libascend_env')
3
4 import platform
5
6 csrcs = Split("""
7 ascMalloc.c color.c
8 dstring.c except.c
9 hashpjw.c list.c listio.c mem.c
10 panic.c pool.c pretty.c
11 stack.c table.c tm_time.c
12 ospath.c env.c pairlist.c ltmatrix.c
13 """)
14
15 configh = libascend_env.SubstInFile(source='config.h.in')
16
17 objs =[]
18 for c in csrcs:
19 objs += libascend_env.SharedObject(c)
20
21 if platform.system() != "Windows":
22 #required for clock_gettime()
23 libascend_env.AppendUnique(LIBS=['rt'])
24
25 #--------------------
26 # INSTALL
27
28 import glob
29
30 if libascend_env.get('CAN_INSTALL'):
31 installdir = Dir(libascend_env.subst("$INSTALL_ROOT$INSTALL_INCLUDE/ascend/general"))
32
33 headers = glob.glob("*.h")
34 libascend_env.InstallHeader(installdir,headers)
35
36 Return('objs')
37
38 # vim: set syntax=python:
39

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