Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    re625579 re836160  
    7373            help_str = 'compile with libavcodec (auto)',
    7474            help_disable_str = 'disable libavcodec')
     75    add_option_enable_disable(ctx, 'vorbis', default = None,
     76            help_str = 'compile with libvorbis (auto)',
     77            help_disable_str = 'disable libvorbis')
     78    add_option_enable_disable(ctx, 'flac', default = None,
     79            help_str = 'compile with libFLAC (auto)',
     80            help_disable_str = 'disable libflac')
    7581    add_option_enable_disable(ctx, 'samplerate', default = None,
    7682            help_str = 'compile with samplerate (auto)',
    7783            help_disable_str = 'disable samplerate')
    78     add_option_enable_disable(ctx, 'rubberband', default = None,
    79             help_str = 'compile with rubberband (auto)',
    80             help_disable_str = 'disable rubberband')
    8184    add_option_enable_disable(ctx, 'memcpy', default = True,
    8285            help_str = 'use memcpy hacks (default)',
     
    138141                'samplerate',
    139142                'jack',
    140                 'rubberband',
    141143                'avcodec',
    142144                'blas',
    143145                'fftw3',
    144146                'fftw3f',
     147                'flac',
     148                'vorbis',
    145149        ]
    146150        for d in external_deps:
     
    413417                mandatory = ctx.options.enable_samplerate)
    414418
    415     # check for librubberband
    416     if (ctx.options.enable_rubberband != False):
    417         ctx.check_cfg(package = 'rubberband', atleast_version = '1.3',
    418                 args = '--cflags --libs',
    419                 mandatory = ctx.options.enable_rubberband)
    420 
    421419    # check for jack
    422420    if (ctx.options.enable_jack != False):
     
    467465                ctx.define('HAVE_AVRESAMPLE', 1)
    468466            ctx.define('HAVE_LIBAV', 1)
     467
     468    # check for vorbisenc
     469    if (ctx.options.enable_vorbis != False):
     470        ctx.check_cfg(package = 'vorbisenc vorbis ogg',
     471                args = '--cflags --libs',
     472                uselib_store = 'VORBISENC',
     473                mandatory = ctx.options.enable_vorbis)
     474
     475    # check for flac
     476    if (ctx.options.enable_flac != False):
     477        ctx.check_cfg(package = 'flac',
     478                args = '--cflags --libs',
     479                uselib_store = 'FLAC',
     480                mandatory = ctx.options.enable_flac)
    469481
    470482    if (ctx.options.enable_wavread != False):
Note: See TracChangeset for help on using the changeset viewer.