Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r1ba359c r2d64a24  
    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')
    7569    add_option_enable_disable(ctx, 'samplerate', default = None,
    7670            help_str = 'compile with samplerate (auto)',
     
    436430            ctx.define('HAVE_LIBAV', 1)
    437431
    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 
    452432    if (ctx.options.enable_wavread != False):
    453433        ctx.define('HAVE_WAVREAD', 1)
     
    576556                target = bld.path.find_or_declare('api/index.html'),
    577557                cwd = bld.path.find_dir('doc'))
     558        # evaluate nodes lazily to prevent build directory traversal warnings
    578559        bld.install_files('${DATAROOTDIR}/doc/libaubio-doc/api',
    579                 bld.path.find_or_declare('api').ant_glob('**/*'),
    580                 cwd=bld.path.find_or_declare('api'),
     560                bld.path.find_or_declare('api').ant_glob('**/*',
     561                    generator=True), cwd=bld.path.find_or_declare('api'),
    581562                relative_trick=True)
    582563
     
    600581                source = bld.path.find_dir('doc').ant_glob('*.rst'),
    601582                target = bld.path.find_or_declare('manual/index.html'))
     583        # evaluate nodes lazily to prevent build directory traversal warnings
    602584        bld.install_files('${DATAROOTDIR}/doc/libaubio-doc/manual',
    603                 bld.path.find_or_declare('manual').ant_glob('**/*'),
    604                 cwd=bld.path.find_or_declare('manual'),
     585                bld.path.find_or_declare('manual').ant_glob('**/*',
     586                    generator=True), cwd=bld.path.find_or_declare('manual'),
    605587                relative_trick=True)
    606588
Note: See TracChangeset for help on using the changeset viewer.