Changeset a33d406 for wscript


Ignore:
Timestamp:
Feb 8, 2016, 6:07:23 PM (9 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, pitchshift, sampler, timestretch, yinfft+
Children:
9590e81
Parents:
7e80dc9
Message:

wscript: add --disable-docs option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r7e80dc9 ra33d406  
    8686            help_disable_str = 'do not use Atlas library')
    8787
     88    add_option_enable_disable(ctx, 'docs', default = None,
     89            help_str = 'build documentation (auto)',
     90            help_disable_str = 'do not build documentation')
     91
    8892    ctx.add_option('--with-target-platform', type='string',
    8993            help='set target platform for cross-compilation', dest='target_platform')
     
    283287    ctx.define('PACKAGE', APPNAME)
    284288
    285     # check if txt2man is installed, optional
    286     try:
    287       ctx.find_program('txt2man', var='TXT2MAN')
    288     except ctx.errors.ConfigurationError:
    289       ctx.to_log('txt2man was not found (ignoring)')
    290 
    291     # check if doxygen is installed, optional
    292     try:
    293       ctx.find_program('doxygen', var='DOXYGEN')
    294     except ctx.errors.ConfigurationError:
    295       ctx.to_log('doxygen was not found (ignoring)')
     289    if (ctx.options.enable_docs != False):
     290        # check if txt2man is installed, optional
     291        try:
     292          ctx.find_program('txt2man', var='TXT2MAN')
     293        except ctx.errors.ConfigurationError:
     294          ctx.to_log('txt2man was not found (ignoring)')
     295
     296        # check if doxygen is installed, optional
     297        try:
     298          ctx.find_program('doxygen', var='DOXYGEN')
     299        except ctx.errors.ConfigurationError:
     300          ctx.to_log('doxygen was not found (ignoring)')
    296301
    297302def build(bld):
     
    301306    # add sub directories
    302307    bld.recurse('src')
    303     if bld.env['DEST_OS'] not in ['ios', 'iosimulator']:
    304         pass
    305308    if bld.env['DEST_OS'] not in ['ios', 'iosimulator', 'android']:
    306309        bld.recurse('examples')
Note: See TracChangeset for help on using the changeset viewer.