Changeset 729a3c0 for wscript


Ignore:
Timestamp:
Nov 17, 2011, 2:29:35 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:
cfaa3c4
Parents:
e298138
Message:

add support for ooura so that aubio can be build without fftw

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    re298138 r729a3c0  
    3131  opt.add_option('--enable-double', action='store_true', default=False,
    3232      help='compile aubio in double precision mode')
     33  opt.add_option('--disable-fftw', action='store_true', default=False,
     34      help='compile with ooura instead of fftw')
    3335  opt.add_option('--disable-fftw3f', action='store_true', default=False,
    3436      help='compile with fftw3 instead of fftw3f')
     
    8688    conf.define('HAVE_AUBIO_DOUBLE', 0)
    8789
    88   # one of fftwf or fftw3f
    89   if (Options.options.disable_fftw3f == True):
    90     conf.check_cfg(package = 'fftw3', atleast_version = '3.0.0',
    91         args = '--cflags --libs')
    92   else:
    93     # fftw3f not disabled, take most sensible one according to enable_double
    94     if (Options.options.enable_double == True):
     90  if (Options.options.disable_fftw == False):
     91    # one of fftwf or fftw3f
     92    if (Options.options.disable_fftw3f == True):
    9593      conf.check_cfg(package = 'fftw3', atleast_version = '3.0.0',
    9694          args = '--cflags --libs')
    9795    else:
    98       conf.check_cfg(package = 'fftw3f', atleast_version = '3.0.0',
    99           args = '--cflags --libs')
     96      # fftw3f not disabled, take most sensible one according to enable_double
     97      if (Options.options.enable_double == True):
     98        conf.check_cfg(package = 'fftw3', atleast_version = '3.0.0',
     99            args = '--cflags --libs')
     100      else:
     101        conf.check_cfg(package = 'fftw3f', atleast_version = '3.0.0',
     102            args = '--cflags --libs')
     103    conf.define('HAVE_FFTW3', 1)
     104  else:
     105    # fftw disabled, use ooura
     106    pass
    100107
    101108  # optional dependancies
     
    192199    if str(target_name).endswith('test-phasevoc-jack.c'):
    193200      this_target.includes = ['src', 'examples']
    194       this_target.use = ['aubio']
    195201      this_target.uselib = ['JACK']
    196202      this_target.target += ' examples/jackio.c'
Note: See TracChangeset for help on using the changeset viewer.