Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r2d64a24 r1ba359c  
    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')
     72    add_option_enable_disable(ctx, 'flac', default = None,
     73            help_str = 'compile with libFLAC (auto)',
     74            help_disable_str = 'disable libflac')
    6975    add_option_enable_disable(ctx, 'samplerate', default = None,
    7076            help_str = 'compile with samplerate (auto)',
     
    430436            ctx.define('HAVE_LIBAV', 1)
    431437
     438    # check for vorbisenc
     439    if (ctx.options.enable_vorbis != False):
     440        ctx.check_cfg(package = 'vorbisenc',
     441                args = '--cflags --libs',
     442                uselib_store = 'VORBISENC',
     443                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)
     451
    432452    if (ctx.options.enable_wavread != False):
    433453        ctx.define('HAVE_WAVREAD', 1)
     
    556576                target = bld.path.find_or_declare('api/index.html'),
    557577                cwd = bld.path.find_dir('doc'))
    558         # evaluate nodes lazily to prevent build directory traversal warnings
    559578        bld.install_files('${DATAROOTDIR}/doc/libaubio-doc/api',
    560                 bld.path.find_or_declare('api').ant_glob('**/*',
    561                     generator=True), cwd=bld.path.find_or_declare('api'),
     579                bld.path.find_or_declare('api').ant_glob('**/*'),
     580                cwd=bld.path.find_or_declare('api'),
    562581                relative_trick=True)
    563582
     
    581600                source = bld.path.find_dir('doc').ant_glob('*.rst'),
    582601                target = bld.path.find_or_declare('manual/index.html'))
    583         # evaluate nodes lazily to prevent build directory traversal warnings
    584602        bld.install_files('${DATAROOTDIR}/doc/libaubio-doc/manual',
    585                 bld.path.find_or_declare('manual').ant_glob('**/*',
    586                     generator=True), cwd=bld.path.find_or_declare('manual'),
     603                bld.path.find_or_declare('manual').ant_glob('**/*'),
     604                cwd=bld.path.find_or_declare('manual'),
    587605                relative_trick=True)
    588606
Note: See TracChangeset for help on using the changeset viewer.