Skip to content

Commit

Permalink
Add some explicit --with-NAME options to wcb to help out with Fermila…
Browse files Browse the repository at this point in the history
…b's lack of pkgconfig support.
  • Loading branch information
brettviren committed Nov 11, 2016
1 parent 8e1c7bc commit cc419c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
16 changes: 8 additions & 8 deletions wcb

Large diffs are not rendered by default.

13 changes: 2 additions & 11 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def options(opt):
opt.load('smplpkgs')
opt.load('rootsys')
opt.load('eigen')
opt.load('jsoncpp')
opt.load('tbb')
opt.load('boost')

Expand All @@ -23,30 +24,20 @@ def configure(cfg):
cfg.load('smplpkgs')
cfg.load('rootsys')
cfg.load('eigen')
cfg.load('jsoncpp')
cfg.load('tbb')
cfg.load('boost')

cfg.check_tbb()

cfg.check_boost(lib='system filesystem graph thread program_options')

cfg.check_cxx(header_name="boost/pipeline.hpp", use='BOOST',
define_name='BOOST_PIPELINE', mandatory=False)

cfg.check_cxx(header_name="Rtypes.h", use='ROOTSYS',
mandatory=True)
cfg.check(header_name="dlfcn.h", uselib_store='DYNAMO',
lib=['dl'], mandatory=True)


cfg.check(features='cxx cxxprogram', lib=['pthread'], uselib_store='PTHREAD')

# JSONCPP
cfg.check_cfg(package='jsoncpp', uselib_store='JSONCPP',
args='--cflags --libs', mandatory=True)
cfg.check_cxx(header_name="json/json.h", use='JSONCPP', mandatory=True)


cfg.env.CXXFLAGS += [cfg.options.build_debug]
cfg.env.SUBDIRS = 'util iface gen alg sst bio rootvis apps sigproc'.split()

Expand Down

0 comments on commit cc419c8

Please sign in to comment.