Changeset 21234ee for wscript


Ignore:
Timestamp:
Dec 18, 2013, 8:07:27 AM (10 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:
6465d7f
Parents:
1573b16 (diff), c3c6305 (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' of aubio.org:/git/aubio/aubio into develop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r1573b16 r21234ee  
    8585    ctx.load('waf_unit_test')
    8686    ctx.load('gnu_dirs')
    87     ctx.env.CFLAGS += ['-g', '-Wall', '-Wextra', '-fPIC']
     87
     88    ctx.env.CFLAGS += ['-g', '-Wall', '-Wextra']
    8889
    8990    target_platform = Options.platform
     
    9293    ctx.env['DEST_OS'] = target_platform
    9394
    94     if target_platform == 'win32':
    95         ctx.env['shlib_PATTERN'] = 'lib%s.dll'
     95    if target_platform not in ['win32', 'win64']:
     96        ctx.env.CFLAGS += ['-fPIC']
     97    else:
     98        ctx.define('HAVE_WIN_HACKS', 1)
     99        ctx.env['cshlib_PATTERN'] = 'lib%s.dll'
    96100
    97101    if target_platform == 'darwin':
     
    201205    # check for jack
    202206    if (ctx.options.enable_jack != False):
    203         ctx.check_cfg(package = 'jack', atleast_version = '0.15.0',
     207        ctx.check_cfg(package = 'jack',
    204208                args = '--cflags --libs', mandatory = False)
    205209
     
    214218        ctx.check_cfg(package = 'libavresample', atleast_version = '1.0.1',
    215219                args = '--cflags --libs', uselib_store = 'AVRESAMPLE', mandatory = False)
     220        if all ( 'HAVE_' + i in ctx.env.define_key
     221                for i in ['AVCODEC', 'AVFORMAT', 'AVUTIL', 'AVRESAMPLE'] ):
     222            ctx.define('HAVE_LIBAV', 1)
     223            ctx.msg('Checking for all libav libraries', 'yes')
     224        else:
     225            ctx.msg('Checking for all libav libraries', 'not found', color = 'YELLOW')
    216226
    217227    # use memcpy hacks
     
    233243    except ctx.errors.ConfigurationError:
    234244      ctx.to_log('txt2man was not found (ignoring)')
     245
     246    # check if doxygen is installed, optional
     247    try:
     248      ctx.find_program('doxygen', var='DOXYGEN')
     249    except ctx.errors.ConfigurationError:
     250      ctx.to_log('doxygen was not found (ignoring)')
    235251
    236252def build(bld):
     
    248264    bld( source = 'aubio.pc.in' )
    249265
    250     # build manpages from sgml files
     266    # build manpages from txt files using txt2man
    251267    if bld.env['TXT2MAN']:
    252268        from waflib import TaskGen
     
    267283        bld( source = bld.path.ant_glob('doc/*.txt') )
    268284
    269     """
    270     bld(rule = 'doxygen ${SRC}', source = 'web.cfg') #, target = 'doc/web/index.html')
    271     """
    272 
     285    # build documentation from source files using doxygen
     286    if bld.env['DOXYGEN']:
     287        bld( name = 'doxygen', rule = 'doxygen ${SRC} > /dev/null',
     288                source = 'doc/web.cfg',
     289                cwd = 'doc')
     290        bld.install_files( '${PREFIX}' + '/share/doc/libaubio-doc',
     291                bld.path.ant_glob('doc/web/html/**'),
     292                cwd = bld.path.find_dir ('doc/web'),
     293                relative_trick = True)
    273294
    274295def shutdown(bld):
     
    288309    ctx.excl += ' **/python/*.db'
    289310    ctx.excl += ' **/python.old/*'
     311    ctx.excl += ' **/python/tests/sounds'
Note: See TracChangeset for help on using the changeset viewer.