#!/usr/bin/env python


TOP = '.'
APPNAME = 'Junk'

from waflib.extras import wcb
wcb.package_descriptions["WCT"] = dict(
    incs=["WireCellUtil/Units.h"],
    libs=["WireCellUtil"], 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 += ['-Wpedantic', '-Werror']


def build(bld):
    bld.load('wcb')
    bld.smplpkg('WireCellJunk', use='WireCellUtil WireCellIface WCT JSONCPP')
