From: Paul Brossier Date: Thu, 5 Nov 2009 15:02:42 +0000 (+0100) Subject: wscript: check for pd header, define VERSION X-Git-Tag: 0.3~26 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=b0670135f430b5c435522177280f2bacbec04999;p=pd-aubio.git wscript: check for pd header, define VERSION --- diff --git a/wscript b/wscript index 973dd97..64a9ee5 100644 --- a/wscript +++ b/wscript @@ -3,21 +3,24 @@ srcdir = '.' blddir = 'build' +VERSION = '0.2' def set_options(opt): - opt.tool_options('compiler_cc') + opt.tool_options('compiler_cc') def configure(conf): - conf.check_tool('compiler_cc') - # required dependancies - conf.check_cfg(package = 'aubio', atleast_version = '0.4.0', - args = '--cflags --libs') + conf.check_tool('compiler_cc') + # required dependancies + conf.check_cfg(package = 'aubio', atleast_version = '0.4.0', + args = '--cflags --libs') + # check for puredata header + conf.check(header_name='m_pd.h') def build(bld): aubio_pd = bld.new_task_gen( features = 'cc cshlib', uselib = ['AUBIO'], - defines = ['PD'], + defines = ['PD', 'PACKAGE_VERSION=\"'+repr(VERSION)+"\""], install_path = '${PREFIX}/lib/pd/extra') if bld.env['DEST_OS'] == 'win32':