Skip to content

Commit

Permalink
Merge commit 'addd0bd9f083cb3dab19b7f13bae56f326016dd3' into 0.0.x
Browse files Browse the repository at this point in the history
Merge for release 0.0.4.
  • Loading branch information
brettviren committed Dec 19, 2016
2 parents cc419c8 + addd0bd commit 73789ea
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ test_*
blah*
foo*
bar*
waf
17 changes: 11 additions & 6 deletions sourceme-prefix-has-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
# this script simplifies configuration.


if [ "$(lsb_release -s -c)" = "xenial" ] ; then
echo "Setting compilers to GCC 4.9 on xenial"
export CC=/usr/bin/gcc-4.9
export CXX=/usr/bin/g++-4.9
fi
### latest ROOT no longer needs this workaround
# if [ "$(lsb_release -s -c)" = "xenial" ] ; then
# echo "Setting compilers to GCC 4.9 on xenial"
# export CC=/usr/bin/gcc-4.9
# export CXX=/usr/bin/g++-4.9
# fi

wcb-configure () {
local prefix="$1" ; shift
Expand All @@ -33,11 +34,15 @@ wcb-configure () {
cd $mydir
./wcb configure \
--prefix=$prefix \
--with-eigen=$prefix \
--with-jsoncpp=$prefix \
--with-tbb=$prefix \
--boost-includes=$prefix/include \
--boost-libs=$prefix/lib \
--boost-mt \
--with-root=$prefix \
$@
--with-fftw=$prefix \
"$@"
}

# setup run time environment
Expand Down
10 changes: 5 additions & 5 deletions wcb

Large diffs are not rendered by default.

23 changes: 17 additions & 6 deletions wscript
Original file line number Diff line number Diff line change
@@ -1,34 +1,43 @@
#!/usr/bin/env python

from waflib.Utils import to_list

TOP = '.'
APPNAME = 'WireCell'

def options(opt):
opt.load('doxygen')
opt.load('boost')

opt.load('smplpkgs')
opt.load('rootsys')
opt.load('fftw')
opt.load('eigen')
opt.load('jsoncpp')
opt.load('tbb')
opt.load('boost')

opt.add_option('--build-debug', default='-O2',
opt.add_option('--build-debug', default='-O2 -ggdb3',
help="Build with debug symbols")
opt.add_option('--doxygen-tarball', default=None,
help="Build Doxygen documentation to a tarball")
opt.add_option('--doxygen-install-path', default="",
help="Build Doxygen documentation to a tarball")

def configure(cfg):
print 'Compile options: %s' % cfg.options.build_debug

cfg.load('doxygen')
cfg.load('boost')

cfg.load('smplpkgs')
cfg.load('rootsys')
cfg.load('eigen')
cfg.load('jsoncpp')
cfg.load('tbb')
cfg.load('boost')
cfg.load('fftw')

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

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

cfg.check_cxx(header_name="boost/pipeline.hpp", use='BOOST',
define_name='BOOST_PIPELINE', mandatory=False)
Expand All @@ -38,14 +47,16 @@ def configure(cfg):

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

cfg.env.CXXFLAGS += [cfg.options.build_debug]
cfg.env.CXXFLAGS += to_list(cfg.options.build_debug)
cfg.env.CXXFLAGS += ['-DEIGEN_FFTW_DEFAULT=1']

cfg.env.SUBDIRS = 'util iface gen alg sst bio rootvis apps sigproc'.split()

if 'BOOST_PIPELINE=1' in cfg.env.DEFINES:
cfg.env.SUBDIRS += ['dfp'] # fixme: rename, make B.P specific

if 'HAVE_TBB_TBB_H=1' in cfg.env.DEFINES:
cfg.env.SUBDIRS += ['tbb']
cfg.env.SUBDIRS += ['tbb']

#print cfg.env

Expand Down

0 comments on commit 73789ea

Please sign in to comment.