diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-19 22:59:05 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-20 00:31:10 +0200 |
| commit | 7f094ed2cde4c8bc187c2728873c234493fc57aa (patch) | |
| tree | f24af26ebfea386820dd793bfd8918ff445b9370 /wscript | |
| parent | 835b4625429b5f57ff381e1321230901f43e13fc (diff) | |
Add GPL boilerplate; allow building without libsndfile.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -11,9 +11,13 @@ else: def options(opt): opt.load('compiler_cxx') + opt.add_option('--without-libsndfile', action='store_true', default=False, help='do not build code that requires libsndfile (file-based interface and CLI tool)') def configure(conf): conf.load('compiler_cxx') + conf.env.WITH_LIBSNDFILE = not conf.options.without_libsndfile + if conf.env.WITH_LIBSNDFILE: + conf.env.append_value('CXXFLAGS', ['-DLEQM_NRT_WITH_LIBSNDFILE']) conf.env.append_value('CXXFLAGS', ['-Wall', '-Wextra', '-D_FILE_OFFSET_BITS=64', '-D__STDC_FORMAT_MACROS']) conf.env.append_value('LINKFLAGS', ['-pthread']) conf.check_cfg(package='sndfile', args='--cflags --libs', uselib_store='SNDFILE') |
