summaryrefslogtreecommitdiff
path: root/ext/speex
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-09-07 18:47:22 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-09-07 18:51:17 +0530
commit3da5144bbe9cd45b7cda1057fc51aa69b9213679 (patch)
treeb7a553bf2e73145fb7ce5490f4cd0fee140a2be5 /ext/speex
parent1cd5a5241f3f0450f03fc54c5fe2e43b75ae4e7d (diff)
downloadgstreamer-plugins-good-3da5144bbe9cd45b7cda1057fc51aa69b9213679.tar.gz
meson: Explicitly pass -DWIN32 while building speex
The speex headers assume that WIN32 will always be defined when building on Windows, but this is only true by default on MinGW. Always set it explicitly.
Diffstat (limited to 'ext/speex')
-rw-r--r--ext/speex/meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/speex/meson.build b/ext/speex/meson.build
index d7dacd4e1..a520fa18b 100644
--- a/ext/speex/meson.build
+++ b/ext/speex/meson.build
@@ -5,11 +5,15 @@ speex_sources = [
]
speex_dep = dependency('speex', version : '>=1.1.6', required : get_option('speex'))
+windows_args = []
+if host_system == 'windows'
+ windows_args = ['-DWIN32']
+endif
if speex_dep.found()
gstspeex = library('gstspeex',
speex_sources,
- c_args : gst_plugins_good_args + ['-DGST_USE_UNSTABLE_API'],
+ c_args : gst_plugins_good_args + ['-DGST_USE_UNSTABLE_API'] + windows_args,
link_args : noseh_link_args,
include_directories : [configinc],
dependencies : [gstbase_dep, gsttag_dep, gstaudio_dep, speex_dep, libm],