Changeset 445e60f5 for wscript


Ignore:
Timestamp:
Sep 21, 2018, 5:30:21 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
Children:
5447a26
Parents:
917adb0
Message:

wscript: add options to disable examples and tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r917adb0 r445e60f5  
    9898            help_disable_str = 'do not build documentation')
    9999
     100    add_option_enable_disable(ctx, 'tests', default = True,
     101            help_str = 'build tests (true)',
     102            help_disable_str = 'do not build or run tests')
     103
     104    add_option_enable_disable(ctx, 'examples', default = True,
     105            help_str = 'build examples (true)',
     106            help_disable_str = 'do not build examples')
     107
    100108    ctx.add_option('--with-target-platform', type='string',
    101109            help='set target platform for cross-compilation', dest='target_platform')
     
    474482        if bld.env['DEST_OS']=='emscripten' and not bld.options.testcmd:
    475483            bld.options.testcmd = 'node %s'
    476         bld.recurse('examples')
    477         bld.recurse('tests')
     484        if bld.options.enable_examples:
     485            bld.recurse('examples')
     486        if bld.options.enable_tests:
     487            bld.recurse('tests')
    478488
    479489    # pkg-config template
Note: See TracChangeset for help on using the changeset viewer.