Changeset 255c4c8 for wscript


Ignore:
Timestamp:
Mar 13, 2017, 10:23:21 PM (7 years ago)
Author:
Martin Hermant <martin.hermant@gmail.com>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler
Children:
b991cc1
Parents:
20a33fb
Message:

cleaner api for Version.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r20a33fb r255c4c8  
    2121
    2222
    23 VERSION = '.'.join ([str(x) for x in [
    24     AUBIO_MAJOR_VERSION,
    25     AUBIO_MINOR_VERSION,
    26     AUBIO_PATCH_VERSION
    27     ]]) + AUBIO_VERSION_STATUS
    28 
    29 LIB_VERSION = '.'.join ([str(x) for x in [
    30     LIBAUBIO_LT_CUR,
    31     LIBAUBIO_LT_REV,
    32     LIBAUBIO_LT_AGE]])
     23
     24
     25VERSION = get_aubio_version()
     26LIB_VERSION = get_libaubio_version()
    3327
    3428top = '.'
     
    135129    ctx.env['DEST_OS'] = target_platform
    136130
     131    version_dict = get_version_info();
    137132    ctx.define('AUBIO_VERSION',VERSION)
    138     ctx.define('AUBIO_MAJOR_VERSION',AUBIO_MAJOR_VERSION)
    139     ctx.define('AUBIO_MINOR_VERSION',AUBIO_MINOR_VERSION)
    140     ctx.define('AUBIO_PATCH_VERSION',AUBIO_PATCH_VERSION)
    141     ctx.define('AUBIO_VERSION_STATUS',AUBIO_VERSION_STATUS)
     133    ctx.define('AUBIO_MAJOR_VERSION', version_dict['AUBIO_MAJOR_VERSION'])
     134    ctx.define('AUBIO_MINOR_VERSION', version_dict['AUBIO_MINOR_VERSION'])
     135    ctx.define('AUBIO_PATCH_VERSION', version_dict['AUBIO_PATCH_VERSION'])
     136    ctx.define('AUBIO_VERSION_STATUS', version_dict['AUBIO_VERSION_STATUS'])
    142137   
    143138    if ctx.options.build_type == "debug":
Note: See TracChangeset for help on using the changeset viewer.