Changeset fbafd2c for wscript


Ignore:
Timestamp:
Mar 25, 2017, 12:12:38 PM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
sampler
Children:
b201912
Parents:
f8d96f1 (diff), 2a7bcaa (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' into sampler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    rf8d96f1 rfbafd2c  
    1515APPNAME = 'aubio'
    1616
    17 # source VERSION
    18 for l in open('VERSION').readlines(): exec (l.strip())
    19 
    20 VERSION = '.'.join ([str(x) for x in [
    21     AUBIO_MAJOR_VERSION,
    22     AUBIO_MINOR_VERSION,
    23     AUBIO_PATCH_VERSION
    24     ]]) + AUBIO_VERSION_STATUS
    25 
    26 LIB_VERSION = '.'.join ([str(x) for x in [
    27     LIBAUBIO_LT_CUR,
    28     LIBAUBIO_LT_REV,
    29     LIBAUBIO_LT_AGE]])
     17from this_version import *
     18
     19VERSION = get_aubio_version()
     20LIB_VERSION = get_libaubio_version()
    3021
    3122top = '.'
     
    268259        # one of fftwf or fftw3f
    269260        if (ctx.options.enable_fftw3f != False):
    270             ctx.check_cfg(package = 'fftw3f', atleast_version = '3.0.0',
    271                     args = '--cflags --libs',
     261            ctx.check_cfg(package = 'fftw3f',
     262                    args = '--cflags --libs fftw3f >= 3.0.0',
    272263                    mandatory = ctx.options.enable_fftw3f)
    273264            if (ctx.options.enable_double == True):
     
    278269            # enable_double
    279270            if (ctx.options.enable_double == True):
    280                 ctx.check_cfg(package = 'fftw3', atleast_version = '3.0.0',
    281                         args = '--cflags --libs', mandatory =
    282                         ctx.options.enable_fftw3)
     271                ctx.check_cfg(package = 'fftw3',
     272                        args = '--cflags --libs fftw3 >= 3.0.0.',
     273                        mandatory = ctx.options.enable_fftw3)
    283274            else:
    284                 ctx.check_cfg(package = 'fftw3f', atleast_version = '3.0.0',
    285                         args = '--cflags --libs',
     275                ctx.check_cfg(package = 'fftw3f',
     276                        args = '--cflags --libs fftw3f >= 3.0.0',
    286277                        mandatory = ctx.options.enable_fftw3)
    287278        ctx.define('HAVE_FFTW3', 1)
     
    299290    # check for libsndfile
    300291    if (ctx.options.enable_sndfile != False):
    301         ctx.check_cfg(package = 'sndfile', atleast_version = '1.0.4',
    302                 args = '--cflags --libs',
     292        ctx.check_cfg(package = 'sndfile',
     293                args = '--cflags --libs sndfile >= 1.0.4',
    303294                mandatory = ctx.options.enable_sndfile)
    304295
     
    312303                    color = 'YELLOW')
    313304    if (ctx.options.enable_samplerate != False):
    314         ctx.check_cfg(package = 'samplerate', atleast_version = '0.0.15',
    315                 args = '--cflags --libs',
     305        ctx.check_cfg(package = 'samplerate',
     306                args = '--cflags --libs samplerate >= 0.0.15',
    316307                mandatory = ctx.options.enable_samplerate)
    317308
     
    330321    # check for libav
    331322    if (ctx.options.enable_avcodec != False):
    332         ctx.check_cfg(package = 'libavcodec', atleast_version = '54.35.0',
    333                 args = '--cflags --libs', uselib_store = 'AVCODEC',
     323        ctx.check_cfg(package = 'libavcodec',
     324                args = '--cflags --libs libavcodec >= 54.35.0',
     325                uselib_store = 'AVCODEC',
    334326                mandatory = ctx.options.enable_avcodec)
    335         ctx.check_cfg(package = 'libavformat', atleast_version = '52.3.0',
    336                 args = '--cflags --libs', uselib_store = 'AVFORMAT',
     327        ctx.check_cfg(package = 'libavformat',
     328                args = '--cflags --libs libavformat >= 52.3.0',
     329                uselib_store = 'AVFORMAT',
    337330                mandatory = ctx.options.enable_avcodec)
    338         ctx.check_cfg(package = 'libavutil', atleast_version = '52.3.0',
    339                 args = '--cflags --libs', uselib_store = 'AVUTIL',
     331        ctx.check_cfg(package = 'libavutil',
     332                args = '--cflags --libs libavutil >= 52.3.0',
     333                uselib_store = 'AVUTIL',
    340334                mandatory = ctx.options.enable_avcodec)
    341         ctx.check_cfg(package = 'libswresample', atleast_version = '2.3.0',
    342                 args = '--cflags --libs', uselib_store = 'SWRESAMPLE',
     335        ctx.check_cfg(package = 'libswresample',
     336                args = '--cflags --libs libswresample >= 2.3.0',
     337                uselib_store = 'SWRESAMPLE',
    343338                mandatory = False)
    344339        if 'HAVE_SWRESAMPLE' not in ctx.env:
    345             ctx.check_cfg(package = 'libavresample', atleast_version = '1.0.1',
    346                     args = '--cflags --libs', uselib_store = 'AVRESAMPLE',
     340            ctx.check_cfg(package = 'libavresample',
     341                    args = '--cflags --libs libavresample >= 1.0.1',
     342                    uselib_store = 'AVRESAMPLE',
    347343                    mandatory = False)
    348344
Note: See TracChangeset for help on using the changeset viewer.