Changeset 1ba359c


Ignore:
Timestamp:
Dec 12, 2018, 11:26:35 PM (5 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
Children:
7436353
Parents:
6031419
Message:

[waf] add flac detection

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/wscript_build

    r6031419 r1ba359c  
    1313uselib += ['AVUTIL']
    1414uselib += ['VORBISENC']
     15uselib += ['FLAC']
    1516uselib += ['BLAS']
    1617
  • wscript

    r6031419 r1ba359c  
    7070            help_str = 'compile with libvorbis (auto)',
    7171            help_disable_str = 'disable libvorbis')
     72    add_option_enable_disable(ctx, 'flac', default = None,
     73            help_str = 'compile with libFLAC (auto)',
     74            help_disable_str = 'disable libflac')
    7275    add_option_enable_disable(ctx, 'samplerate', default = None,
    7376            help_str = 'compile with samplerate (auto)',
     
    439442                uselib_store = 'VORBISENC',
    440443                mandatory = ctx.options.enable_vorbis)
     444
     445    # check for flac
     446    if (ctx.options.enable_flac != False):
     447        ctx.check_cfg(package = 'flac',
     448                args = '--cflags --libs',
     449                uselib_store = 'FLAC',
     450                mandatory = ctx.options.enable_flac)
    441451
    442452    if (ctx.options.enable_wavread != False):
Note: See TracChangeset for help on using the changeset viewer.