Changeset 6ed0f4e for wscript


Ignore:
Timestamp:
Feb 10, 2013, 1:03:21 AM (12 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:
c57ecd9
Parents:
cbc9765
Message:

waf: update to 1.7.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    rcbc9765 r6ed0f4e  
    5353      help='set target platform for cross-compilation', dest='target_platform')
    5454  ctx.load('compiler_c')
    55   ctx.load('gnu_dirs')
    5655  ctx.load('waf_unit_test')
    5756
    5857def configure(ctx):
    59   import Options
    60   ctx.check_tool('compiler_c')
    61   ctx.check_tool('gnu_dirs') # helpful for autotools transition and .pc generation
     58  from waflib import Options
     59  ctx.load('compiler_c')
    6260  ctx.load('waf_unit_test')
    6361  ctx.env.CFLAGS = ['-g', '-Wall', '-Wextra']
     
    180178    ctx.to_log('docbook-to-man was not found (ignoring)')
    181179
    182 def build(ctx):
    183   ctx.env['VERSION'] = VERSION
    184   ctx.env['LIB_VERSION'] = LIB_VERSION
     180def build(bld):
     181  bld.env['VERSION'] = VERSION
     182  bld.env['LIB_VERSION'] = LIB_VERSION
    185183
    186184  # add sub directories
    187   ctx.add_subdirs(['src','examples'])
    188   if ctx.env['SWIG']:
    189     if ctx.env['PYTHON']:
    190       ctx.add_subdirs('python')
    191 
     185  bld.recurse('src examples tests')
     186
     187  """
    192188  # create the aubio.pc file for pkg-config
    193189  if ctx.env['TARGET_PLATFORM'] == 'linux':
     
    212208
    213209  # install woodblock sound
    214   ctx.install_files('${PREFIX}/share/sounds/aubio/',
     210  bld.install_files('${PREFIX}/share/sounds/aubio/',
    215211      'sounds/woodblock.aiff')
    216 
    217   # build and run the unit tests
    218   build_tests(ctx)
    219 
    220 def shutdown(ctx):
    221   pass
    222 
    223 # loop over all *.c filenames in tests/src to build them all
    224 # target name is filename.c without the .c
    225 def build_tests(ctx):
    226   for target_name in ctx.path.ant_glob('tests/src/**/*.c'):
    227     uselib = []
    228     includes = ['src']
    229     extra_source = []
    230     if str(target_name).endswith('-jack.c') and ctx.env['JACK']:
    231       uselib += ['JACK']
    232       includes += ['examples']
    233       extra_source += ['examples/jackio.c']
    234 
    235     this_target = ctx.new_task_gen(
    236         features = 'c cprogram test',
    237         uselib = uselib,
    238         source = [target_name] + extra_source,
    239         target = str(target_name).split('.')[0],
    240         includes = includes,
    241         defines = 'AUBIO_UNSTABLE_API=1',
    242         cflags = ['-g'],
    243         use = 'aubio')
     212  """
Note: See TracChangeset for help on using the changeset viewer.