-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwscript
32 lines (23 loc) · 1005 Bytes
/
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
#!/usr/bin/env python
TOP = '.'
APPNAME = 'Junk'
from waflib.extras import wcb
wcb.package_descriptions.append(("WCT", dict(
incs=["WireCellUtil/Units.h"],
libs=["WireCellUtil", "WireCellIface","gomp"], mandatory=True)))
def options(opt):
opt.load("wcb")
def configure(cfg):
cfg.load("wcb")
# boost 1.59 uses auto_ptr and GCC 5 deprecates it vociferously.
cfg.env.CXXFLAGS += ['-Wno-deprecated-declarations']
cfg.env.CXXFLAGS += ['-Wall', '-Wno-unused-local-typedefs', '-Wno-unused-function']
cfg.env.CXXFLAGS += ['-fopenmp']
# cfg.env.CXXFLAGS += ['-Wpedantic', '-Werror']
def build(bld):
bld.load('wcb')
bld.smplpkg('WireCellGenKokkos', use='WCT SPDLOG JSONCPP BOOST EIGEN FFTW KOKKOS CUDA')
bld.install_files('${PREFIX}/share/wirecell',
bld.path.ant_glob("cfg/pgrapher/common/**/*.jsonnet") +
bld.path.ant_glob("cfg/pgrapher/experiment/**/*.jsonnet"),
relative_trick=True)