Changeset 19237a7


Ignore:
Timestamp:
Nov 4, 2018, 1:34:34 PM (13 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
3fb5812
Parents:
fedb139
Message:

[build] wrap long lines in wscript

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    rfedb139 r19237a7  
    4343            choices = ('debug', 'release'),
    4444            dest = 'build_type',
    45             help = 'whether to compile with (--build-type=release) or without (--build-type=debug) '\
    46               ' compiler opimizations [default: release]')
     45            help = 'whether to compile with (--build-type=release)' \
     46                    ' or without (--build-type=debug)' \
     47                    ' compiler opimizations [default: release]')
    4748    add_option_enable_disable(ctx, 'fftw3f', default = False,
    4849            help_str = 'compile with fftw3f instead of ooura (recommended)',
     
    110111
    111112    ctx.add_option('--with-target-platform', type='string',
    112             help='set target platform for cross-compilation', dest='target_platform')
     113            help='set target platform for cross-compilation',
     114            dest='target_platform')
    113115
    114116    ctx.load('compiler_c')
     
    206208            ctx.msg('Checking for AudioToolbox.framework', 'yes')
    207209        else:
    208             ctx.msg('Checking for AudioToolbox.framework', 'no (disabled)', color = 'YELLOW')
     210            ctx.msg('Checking for AudioToolbox.framework', 'no (disabled)',
     211                    color = 'YELLOW')
    209212        if (ctx.options.enable_accelerate != False):
    210213            ctx.define('HAVE_ACCELERATE', 1)
     
    212215            ctx.msg('Checking for Accelerate framework', 'yes')
    213216        else:
    214             ctx.msg('Checking for Accelerate framework', 'no (disabled)', color = 'YELLOW')
     217            ctx.msg('Checking for Accelerate framework', 'no (disabled)',
     218                    color = 'YELLOW')
    215219
    216220    if target_platform in [ 'ios', 'iosimulator' ]:
     
    266270        # tell emscripten functions we want to expose
    267271        from python.lib.gen_external import get_c_declarations, \
    268                 get_cpp_objects_from_c_declarations, get_all_func_names_from_lib, \
     272                get_cpp_objects_from_c_declarations, \
     273                get_all_func_names_from_lib, \
    269274                generate_lib_from_c_declarations
    270         c_decls = get_c_declarations(usedouble=False)  # emscripten can't use double
     275        # emscripten can't use double
     276        c_decls = get_c_declarations(usedouble=False)
    271277        objects = list(get_cpp_objects_from_c_declarations(c_decls))
    272278        # ensure that aubio structs are exported
     
    275281        exported_funcnames = get_all_func_names_from_lib(lib)
    276282        c_mangled_names = ['_' + s for s in exported_funcnames]
    277         ctx.env.LINKFLAGS_cshlib += ['-s', 'EXPORTED_FUNCTIONS=%s' % c_mangled_names]
     283        ctx.env.LINKFLAGS_cshlib += ['-s',
     284                'EXPORTED_FUNCTIONS=%s' % c_mangled_names]
    278285
    279286    # check support for C99 __VA_ARGS__ macros
     
    305312    # check for Intel IPP
    306313    if (ctx.options.enable_intelipp != False):
    307         has_ipp_headers = ctx.check(header_name=['ippcore.h', 'ippvm.h', 'ipps.h'],
    308                 mandatory = False)
     314        has_ipp_headers = ctx.check(header_name=['ippcore.h', 'ippvm.h',
     315            'ipps.h'], mandatory = False)
    309316        has_ipp_libs = ctx.check(lib=['ippcore', 'ippvm', 'ipps'],
    310317                uselib_store='INTEL_IPP', mandatory = False)
     
    313320            ctx.define('HAVE_INTEL_IPP', 1)
    314321            if ctx.env.CC_NAME == 'msvc':
    315                 # force linking multi-threaded static IPP libraries on Windows with msvc
     322                # force linking multi-threaded static IPP libraries on Windows
     323                # with msvc
    316324                ctx.define('_IPP_SEQUENTIAL_STATIC', 1)
    317325        else:
     
    362370    if (ctx.options.enable_double):
    363371        if (ctx.options.enable_samplerate):
    364             ctx.fatal("Could not compile aubio in double precision mode with libsamplerate")
     372            ctx.fatal("Could not compile aubio in double precision mode' \
     373                    ' with libsamplerate")
    365374        else:
    366375            ctx.options.enable_samplerate = False
    367             ctx.msg('Checking if using samplerate', 'no (disabled in double precision mode)',
    368                     color = 'YELLOW')
     376            ctx.msg('Checking if using samplerate',
     377                    'no (disabled in double precision mode)', color = 'YELLOW')
    369378    if (ctx.options.enable_samplerate != False):
    370379        ctx.check_cfg(package = 'samplerate',
     
    409418        elif 'HAVE_AVUTIL' not in ctx.env:
    410419            ctx.msg(msg_check, 'not found (missing avutil)', color = 'YELLOW')
    411         elif 'HAVE_SWRESAMPLE' not in ctx.env and 'HAVE_AVRESAMPLE' not in ctx.env:
     420        elif 'HAVE_SWRESAMPLE' not in ctx.env \
     421                and 'HAVE_AVRESAMPLE' not in ctx.env:
    412422            resample_missing = 'not found (avresample or swresample required)'
    413423            ctx.msg(msg_check, resample_missing, color = 'YELLOW')
     
    422432    if (ctx.options.enable_wavread != False):
    423433        ctx.define('HAVE_WAVREAD', 1)
    424     ctx.msg('Checking if using source_wavread', ctx.options.enable_wavread and 'yes' or 'no')
     434    ctx.msg('Checking if using source_wavread',
     435            ctx.options.enable_wavread and 'yes' or 'no')
    425436    if (ctx.options.enable_wavwrite!= False):
    426437        ctx.define('HAVE_WAVWRITE', 1)
    427     ctx.msg('Checking if using sink_wavwrite', ctx.options.enable_wavwrite and 'yes' or 'no')
     438    ctx.msg('Checking if using sink_wavwrite',
     439            ctx.options.enable_wavwrite and 'yes' or 'no')
    428440
    429441    # use BLAS/ATLAS
     
    543555
    544556def sphinx(bld):
    545     # build documentation from source files using sphinx-build
    546     # note: build in ../doc/_build/html, otherwise waf wont install unsigned files
     557    # build documentation from source files using sphinx-build note: build in
     558    # ../doc/_build/html, otherwise waf wont install unsigned files
    547559    if bld.env['SPHINX']:
    548560        bld.env.VERSION = VERSION
    549561        bld( name = 'sphinx',
    550                 rule = '${SPHINX} -b html -D release=${VERSION} -D version=${VERSION} -a -q `dirname ${SRC}` `dirname ${TGT}`',
     562                rule = '${SPHINX} -b html -D release=${VERSION}' \
     563                        ' -D version=${VERSION} -a -q' \
     564                        ' `dirname ${SRC}` `dirname ${TGT}`',
    551565                source = 'doc/conf.py',
    552566                target = '../doc/_build/html/index.html')
     
    578592    from waflib import Logs
    579593    if bld.options.target_platform in ['ios', 'iosimulator']:
    580         msg ='building for %s, contact the author for a commercial license' % bld.options.target_platform
     594        msg ='building for %s, contact the author for a commercial license' \
     595                % bld.options.target_platform
    581596        Logs.pprint('RED', msg)
    582597        msg ='   Paul Brossier <piem@aubio.org>'
     
    584599
    585600def dist(ctx):
    586     ctx.excl  = ' **/.waf* **/*~ **/*.pyc **/*.swp **/*.swo **/*.swn **/.lock-w* **/.git*'
     601    ctx.excl  = ' **/.waf*'
     602    ctx.excl += ' **/.git*'
     603    ctx.excl += ' **/*~ **/*.pyc **/*.swp **/*.swo **/*.swn **/.lock-w*'
    587604    ctx.excl += ' **/build/*'
    588605    ctx.excl += ' doc/_build'
Note: See TracChangeset for help on using the changeset viewer.