forked from Juniper/contrail-sandesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConscript
More file actions
25 lines (19 loc) · 678 Bytes
/
SConscript
File metadata and controls
25 lines (19 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
import sys
SandeshEnv = DefaultEnvironment().Clone()
SandeshEnv.Append(CPPDEFINES='SANDESH')
SandeshEnv.Replace(LIBS='')
# TODO(md): Change it to SCons' Configure context (autoconf equivalent) for automatic
# discovery of headers on different platforms
if sys.platform.startswith('freebsd'):
SandeshEnv.Append(CPPDEFINES='HAVE_SYS_STAT_H')
subdirs = ['compiler', 'library']
for dir in subdirs:
SConscript(dir + '/SConscript', exports = 'SandeshEnv',
variant_dir = SandeshEnv['TOP'] + '/tools/sandesh/' + dir,
duplicate = 0)
# Local Variables:
# mode: python
# End: