Changeset c325a11 for wscript


Ignore:
Timestamp:
Jul 11, 2012, 12:33:09 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:
c71e405
Parents:
4db0752
Message:

wscript: add -g to cflags and simplify

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r4db0752 rc325a11  
    6464  #ctx.check_tool('misc') # needed for subst
    6565  ctx.load('waf_unit_test')
     66  ctx.env.CFLAGS = ['-g']
    6667
    6768  if Options.options.target_platform:
     
    124125    else:
    125126      # fftw disabled, use ooura
    126       ctx.msg('Fftw disabled', 'using ooura')
     127      ctx.msg('Checking for FFT implementation', 'ooura')
    127128      pass
    128129
     
    180181
    181182  # add sub directories
    182   ctx.add_subdirs('src examples')
     183  ctx.add_subdirs(['src','examples'])
    183184  if ctx.env['SWIG']:
    184185    if ctx.env['PYTHON']:
     
    220221def build_tests(ctx):
    221222  for target_name in ctx.path.ant_glob('tests/src/**/*.c'):
     223    uselib = []
    222224    includes = ['src']
    223     uselib = []
    224     if not str(target_name).endswith('-jack.c'):
    225       includes = []
    226       uselib = []
    227       extra_source = []
    228     else:
    229       # phasevoc-jack needs jack
    230       if ctx.env['JACK']:
    231         includes = ['examples']
    232         uselib = ['JACK']
    233         extra_source = ['examples/jackio.c']
    234       else:
    235         continue
     225    extra_source = []
     226    if str(target_name).endswith('-jack.c') and ctx.env['JACK']:
     227      uselib += ['JACK']
     228      includes += ['examples']
     229      extra_source += ['examples/jackio.c']
    236230
    237231    this_target = ctx.new_task_gen(
     
    240234        source = [target_name] + extra_source,
    241235        target = str(target_name).split('.')[0],
    242         includes = ['src'] + includes,
     236        includes = includes,
    243237        defines = 'AUBIO_UNSTABLE_API=1',
     238        cflags = ['-g'],
    244239        use = 'aubio')
Note: See TracChangeset for help on using the changeset viewer.