Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    rbadb525 ra24a84e  
    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 = '.'
     
    451442    # build documentation from source files using doxygen
    452443    if bld.env['DOXYGEN']:
    453         bld( name = 'doxygen', rule = 'doxygen ${SRC} > /dev/null',
     444        bld.env.VERSION = VERSION
     445        rule = '( cat ${SRC} && echo PROJECT_NUMBER=${VERSION}; )'
     446        rule += ' | doxygen - > /dev/null'
     447        bld( name = 'doxygen', rule = rule,
    454448                source = 'doc/web.cfg',
    455449                target = '../doc/web/html/index.html',
Note: See TracChangeset for help on using the changeset viewer.