mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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.
This commit is contained in:
parent
1cd5a5241f
commit
3da5144bbe
1 changed files with 5 additions and 1 deletions
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue