Changeset 3efb631


Ignore:
Timestamp:
Dec 12, 2018, 2:15:51 PM (5 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
Children:
dc46037b
Parents:
6b84d81
Message:

[waf] add vorbisenc detection

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/wscript_build

    r6b84d81 r3efb631  
    1212uselib += ['AVRESAMPLE']
    1313uselib += ['AVUTIL']
     14uselib += ['VORBISENC']
    1415uselib += ['BLAS']
    1516
  • wscript

    r6b84d81 r3efb631  
    6767            help_str = 'compile with libavcodec (auto)',
    6868            help_disable_str = 'disable libavcodec')
     69    add_option_enable_disable(ctx, 'vorbis', default = None,
     70            help_str = 'compile with libvorbis (auto)',
     71            help_disable_str = 'disable libvorbis')
    6972    add_option_enable_disable(ctx, 'samplerate', default = None,
    7073            help_str = 'compile with samplerate (auto)',
     
    429432                ctx.define('HAVE_AVRESAMPLE', 1)
    430433            ctx.define('HAVE_LIBAV', 1)
     434
     435    # check for vorbisenc
     436    if (ctx.options.enable_vorbis != False):
     437        ctx.check_cfg(package = 'vorbisenc',
     438                args = '--cflags --libs',
     439                uselib_store = 'VORBISENC',
     440                mandatory = ctx.options.enable_vorbis)
    431441
    432442    if (ctx.options.enable_wavread != False):
Note: See TracChangeset for help on using the changeset viewer.