From: Paul Brossier Date: Wed, 20 Jul 2016 23:38:01 +0000 (+0200) Subject: wscript: update X-Git-Tag: 0.4.4~286 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=004b43111a7845fdff5e06266f37c9e920e21f22;p=aubio.git wscript: update --- diff --git a/wscript b/wscript index e91ea279..f35f2a06 100644 --- a/wscript +++ b/wscript @@ -10,6 +10,8 @@ # have Python installed, you do *not* need to install anything to build aubio. # For more info about waf, see http://code.google.com/p/waf/ . +import sys + APPNAME = 'aubio' # source VERSION @@ -111,7 +113,7 @@ def configure(ctx): ctx.check(header_name='getopt.h', mandatory = False) ctx.check(header_name='unistd.h', mandatory = False) - target_platform = Options.platform + target_platform = sys.platform if ctx.options.target_platform: target_platform = ctx.options.target_platform ctx.env['DEST_OS'] = target_platform @@ -359,7 +361,7 @@ def build(bld): if bld.env['DOXYGEN']: bld( name = 'doxygen', rule = 'doxygen ${SRC} > /dev/null', source = 'doc/web.cfg', - cwd = 'doc') + cwd = bld.path.find_dir('doc')) bld.install_files( '${PREFIX}' + '/share/doc/libaubio-doc', bld.path.ant_glob('doc/web/html/**'), cwd = bld.path.find_dir ('doc/web'),