Changeset 923670d for wscript


Ignore:
Timestamp:
Oct 3, 2016, 7:16:37 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
sampler
Children:
88042ef
Parents:
61abfa4
git-author:
Paul Brossier <piem@piem.org> (10/03/16 12:02:00)
git-committer:
Paul Brossier <piem@piem.org> (10/03/16 19:16:37)
Message:

wscript: add options to disable source_wavread/sink_wavwrite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r61abfa4 r923670d  
    9090            help_str = 'use Atlas library (auto)',
    9191            help_disable_str = 'do not use Atlas library')
     92    add_option_enable_disable(ctx, 'wavread', default = True,
     93            help_str = 'compile with source_wavread (default)',
     94            help_disable_str = 'do not compile source_wavread')
     95    add_option_enable_disable(ctx, 'wavwrite', default = True,
     96            help_str = 'compile with source_wavwrite (default)',
     97            help_disable_str = 'do not compile source_wavwrite')
    9298
    9399    add_option_enable_disable(ctx, 'docs', default = None,
     
    297303            ctx.msg('Checking for all libav libraries', 'not found', color = 'YELLOW')
    298304
    299     ctx.define('HAVE_WAVREAD', 1)
    300     ctx.define('HAVE_WAVWRITE', 1)
     305    if (ctx.options.enable_wavread != False):
     306        ctx.define('HAVE_WAVREAD', 1)
     307    ctx.msg('Checking if using source_wavread', ctx.options.enable_wavread and 'yes' or 'no')
     308    if (ctx.options.enable_wavwrite!= False):
     309        ctx.define('HAVE_WAVWRITE', 1)
     310    ctx.msg('Checking if using sink_wavwrite', ctx.options.enable_wavwrite and 'yes' or 'no')
    301311
    302312    # use ATLAS
Note: See TracChangeset for help on using the changeset viewer.