Changeset 06c6d7d


Ignore:
Timestamp:
Apr 30, 2016, 3:17:24 AM (8 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:
3fc5696
Parents:
ff3b27c
Message:

wscript: add more infos, pass HAVE_AUBIO_DOUBLE in compiler arguments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    rff3b27c r06c6d7d  
    196196        ctx.define('HAVE_C99_VARARGS_MACROS', 1)
    197197
    198     # double precision mode
     198    # show a message about enable_double status
    199199    if (ctx.options.enable_double == True):
    200         ctx.define('HAVE_AUBIO_DOUBLE', 1)
    201     else:
    202         ctx.define('HAVE_AUBIO_DOUBLE', 0)
     200        ctx.msg('Checking for size of smpl_t', 'double')
     201        ctx.msg('Checking for size of lsmp_t', 'long double')
     202    else:
     203        ctx.msg('Checking for size of smpl_t', 'float')
     204        ctx.msg('Checking for size of lsmp_t', 'double')
    203205
    204206    # optionally use complex.h
    205207    if (ctx.options.enable_complex == True):
    206208        ctx.check(header_name='complex.h')
     209    else:
     210        ctx.msg('Checking if complex.h is enabled', 'no')
    207211
    208212    # check for fftw3
     
    294298    ctx.write_config_header('src/config.h')
    295299
     300    # the following defines will be passed as arguments to the compiler
     301    # instead of being written to src/config.h
     302
    296303    # add some defines used in examples
    297304    ctx.define('AUBIO_PREFIX', ctx.env['PREFIX'])
    298305    ctx.define('PACKAGE', APPNAME)
     306
     307    # double precision mode
     308    if (ctx.options.enable_double == True):
     309        ctx.define('HAVE_AUBIO_DOUBLE', 1)
    299310
    300311    if (ctx.options.enable_docs != False):
Note: See TracChangeset for help on using the changeset viewer.