Changeset d1decd5 for wscript


Ignore:
Timestamp:
Jul 2, 2020, 3:39:25 PM (5 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/cnn, feature/crepe, fix/ffmpeg5, master
Children:
e625579
Parents:
7c9285f (diff), 9c730b5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into feature/timestretch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r7c9285f rd1decd5  
    4949            dest = 'build_type', const = 'debug',
    5050            help = 'build in debug mode (see --build-type)')
     51    ctx.add_option('--nodeps', action = 'store_const',
     52            dest = 'nodeps', const = 'debug',
     53            help = 'build with no external dependencies')
    5154    add_option_enable_disable(ctx, 'fftw3f', default = False,
    5255            help_str = 'compile with fftw3f instead of ooura (recommended)',
     
    130133        target_platform = ctx.options.target_platform
    131134
     135    if ctx.options.nodeps:
     136        external_deps = [
     137                'sndfile',
     138                'samplerate',
     139                'jack',
     140                'avcodec',
     141                'blas',
     142                'fftw3',
     143                'fftw3f',
     144        ]
     145        for d in external_deps:
     146            if not hasattr(ctx.options, 'enable_' + d):
     147                raise ctx.errors.ConfigurationError ('--enable-%s missing from options' % d)
     148            if getattr(ctx.options, 'enable_' + d) == True:
     149                msg = 'Option --nodeps can not be used along with --enable-%s' % d
     150                raise ctx.errors.ConfigurationError (msg)
     151            elif getattr(ctx.options, 'enable_' + d) is None:
     152                msg = 'Option --nodeps used but automatic detection with --enable-%s' % d
     153                ctx.msg('Warning', msg)
     154            setattr(ctx.options, 'enable_' + d, False)
     155
    132156    from waflib import Options
    133157
Note: See TracChangeset for help on using the changeset viewer.