Changeset 0116e79 for wscript


Ignore:
Timestamp:
Dec 29, 2021, 5:51:56 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe
Children:
d0c88f4
Parents:
1b6a0035
git-author:
Paul Brossier <piem@piem.org> (01/08/19 16:00:15)
git-committer:
Paul Brossier <piem@piem.org> (12/29/21 17:51:56)
Message:

[wscript] add detection of hdf5 library

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r1b6a0035 r0116e79  
    113113            help_disable_str = 'do not compile source_wavwrite')
    114114
     115    add_option_enable_disable(ctx, 'hdf5', default = None,
     116            help_str = 'use libhdf5 (default)',
     117            help_disable_str = 'do not use libhdf5')
     118
    115119    add_option_enable_disable(ctx, 'docs', default = None,
    116120            help_str = 'build documentation (auto)',
     
    519523    if (ctx.options.enable_memcpy == True):
    520524        ctx.define('HAVE_MEMCPY_HACKS', 1)
     525
     526    if (ctx.options.enable_hdf5 != True):
     527        ctx.check_cfg(package='hdf5', args='--cflags --libs',
     528                uselib_store='HDF5', mandatory=ctx.options.enable_hdf5)
     529        ctx.check(lib=['hdf5_hl'], use = ['HDF5'],
     530                uselib_store='HDF5_HL', mandatory=ctx.options.enable_hdf5)
    521531
    522532    # write configuration header
Note: See TracChangeset for help on using the changeset viewer.