ref: f9a543e3989c0e8fb45ae05c8deb315f23fe27c4
parent: 82e0f865fbe89058ce97f2f4edc792a65b1bbee0
author: Paul Brossier <piem@piem.org>
date: Mon Oct 3 08:02:00 EDT 2016
wscript: add options to disable source_wavread/sink_wavwrite
--- a/wscript
+++ b/wscript
@@ -86,6 +86,12 @@
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 @@
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):