diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-19 22:59:05 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-19 22:59:05 +0200 |
| commit | a4a3b397bb78b7aec75fd240a314009082c1770e (patch) | |
| tree | f24af26ebfea386820dd793bfd8918ff445b9370 /wscript | |
| parent | b1a6f7217ed2d88c5f3b80eb5a54c4126052fa88 (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') |
