From f9a543e3989c0e8fb45ae05c8deb315f23fe27c4 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 3 Oct 2016 12:02:00 +0200 Subject: [PATCH] wscript: add options to disable source_wavread/sink_wavwrite --- wscript | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index 359d2eed..3646dd38 100644 --- a/wscript +++ b/wscript @@ -86,6 +86,12 @@ def options(ctx): add_option_enable_disable(ctx, 'atlas', default = None, help_str = 'use Atlas library (auto)', help_disable_str = 'do not use Atlas library') + add_option_enable_disable(ctx, 'wavread', default = True, + help_str = 'compile with source_wavread (default)', + help_disable_str = 'do not compile source_wavread') + add_option_enable_disable(ctx, 'wavwrite', default = True, + help_str = 'compile with source_wavwrite (default)', + help_disable_str = 'do not compile source_wavwrite') add_option_enable_disable(ctx, 'docs', default = None, help_str = 'build documentation (auto)', @@ -287,8 +293,12 @@ def configure(ctx): else: ctx.msg('Checking for all libav libraries', 'not found', color = 'YELLOW') - ctx.define('HAVE_WAVREAD', 1) - ctx.define('HAVE_WAVWRITE', 1) + if (ctx.options.enable_wavread != False): + ctx.define('HAVE_WAVREAD', 1) + ctx.msg('Checking if using source_wavread', ctx.options.enable_wavread and 'yes' or 'no') + if (ctx.options.enable_wavwrite!= False): + ctx.define('HAVE_WAVWRITE', 1) + ctx.msg('Checking if using sink_wavwrite', ctx.options.enable_wavwrite and 'yes' or 'no') # use ATLAS if (ctx.options.enable_atlas != False): -- 2.11.0