6 mydir = osp.dirname(__file__)
9 package_descriptions = dict(
11 ZLib = dict(incs=[
'zlib.h'], libs=[
'z']),
12 FFTW = dict(incs=[
'fftw3.h'], libs=[
'fftw3f'], pcname=
'fftw3f'),
13 JsonCpp = dict(incs=[
"json/json.h"], libs=[
'jsoncpp']),
15 Eigen = dict(incs=[
"Eigen/Dense"]),
17 Jsonnet = dict(incs=[
"libjsonnet++.h"], libs=[
'jsonnet++',
'jsonnet']),
18 TBB = dict(incs=[
"tbb/parallel_for.h"], libs=[
'tbb'], mandatory=
False),
28 opt.load(
'smplpkgs',tooldir=mydir)
29 opt.load(
'rootsys',tooldir=mydir)
30 opt.load(
'cuda',tooldir=mydir)
33 for name
in package_descriptions:
36 opt.add_option(
'--build-debug', default=
'-O2 -ggdb3',
37 help=
"Build with debug symbols")
40 print (
'Compile options: %s' % cfg.options.build_debug)
44 for name, args
in package_descriptions.items():
49 if cfg.options.with_cuda
is False:
54 if cfg.options.with_root
is False:
def _configure(ctx, name, incs=(), libs=(), bins=(), pcname=None, mandatory=True)