forked from BNLIF/wire-cell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wscript
52 lines (44 loc) · 1.59 KB
/
wscript
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env python
TOP = '.'
APPNAME = 'WireCell'
# the sequence matters
subdirs = ['data',
'nav',
'signal',
'sst',
'tiling',
'rootvis',
'graph',
'examples',
'matrix',
'2dtoy',
'lsp',
]
def options(opt):
opt.load('doxygen', tooldir='waf-tools')
opt.load('find_package', tooldir='waf-tools')
opt.add_option('--build-debug', default='-O2',
help="Build with debug symbols")
opt.add_option('--doxygen-tarball', default=None,
help="Build Doxygen documentation to a tarball")
def configure(cfg):
cfg.env.append_unique('CXXFLAGS',['--std=c++11'])
cfg.load( "compiler_cxx" )
cfg.env.LIBPATH_XDATA = [cfg.env['PREFIX'] + '/lib']
cfg.env.LIBPATH_XDATA += [cfg.env['PREFIX'] + '/lib64']
cfg.env.INCLUDES_XDATA = [cfg.env['PREFIX'] + '/include']
print cfg.env.LIBPATH_XDATA
print cfg.env.INCLUDES_XDATA
cfg.load('doxygen', tooldir='waf-tools')
cfg.load('find_package', tooldir='waf-tools')
cfg.env.CXXFLAGS += [cfg.options.build_debug]
cfg.check_boost(lib='system filesystem graph')
cfg.check_cxx(lib = "WireCellXdataRoot",
header_name="WireCellXdataRoot/Wire.h",
use='XDATA ROOTSYS', uselib_store='XDATA')
def build(bld):
bld.load('find_package', tooldir='waf-tools')
bld.recurse(subdirs)
if bld.env.DOXYGEN and bld.options.doxygen_tarball:
bld(features="doxygen", doxyfile=bld.path.find_resource('Doxyfile'),
doxy_tar = bld.options.doxygen_tarball)