Changeset f9a543e for wscript


Ignore:
Timestamp:
Oct 3, 2016, 12:02:00 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler, yinfft+
Children:
7daa881
Parents:
82e0f86
Message:

wscript: add options to disable source_wavread/sink_wavwrite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r82e0f86 rf9a543e  
    8787            help_str = 'use Atlas library (auto)',
    8888            help_disable_str = 'do not use Atlas library')
     89    add_option_enable_disable(ctx, 'wavread', default = True,
     90            help_str = 'compile with source_wavread (default)',
     91            help_disable_str = 'do not compile source_wavread')
     92    add_option_enable_disable(ctx, 'wavwrite', default = True,
     93            help_str = 'compile with source_wavwrite (default)',
     94            help_disable_str = 'do not compile source_wavwrite')
    8995
    9096    add_option_enable_disable(ctx, 'docs', default = None,
     
    288294            ctx.msg('Checking for all libav libraries', 'not found', color = 'YELLOW')
    289295
    290     ctx.define('HAVE_WAVREAD', 1)
    291     ctx.define('HAVE_WAVWRITE', 1)
     296    if (ctx.options.enable_wavread != False):
     297        ctx.define('HAVE_WAVREAD', 1)
     298    ctx.msg('Checking if using source_wavread', ctx.options.enable_wavread and 'yes' or 'no')
     299    if (ctx.options.enable_wavwrite!= False):
     300        ctx.define('HAVE_WAVWRITE', 1)
     301    ctx.msg('Checking if using sink_wavwrite', ctx.options.enable_wavwrite and 'yes' or 'no')
    292302
    293303    # use ATLAS
Note: See TracChangeset for help on using the changeset viewer.