mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 18:20:44 +00:00
meson: Pass -DGST_STATIC_COMPILATION for static builds
This is only needed on Windows when building with MSVC, but it is safe to pass it everywhere. Closes https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/398
This commit is contained in:
parent
b19de413b9
commit
ebd918c0f6
1 changed files with 6 additions and 0 deletions
|
@ -275,7 +275,13 @@ if build_gir
|
||||||
)]
|
)]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
gst_compile_args = []
|
||||||
|
if get_option('default_library') == 'static'
|
||||||
|
gst_compile_args += ['-DGST_STATIC_COMPILATION']
|
||||||
|
endif
|
||||||
|
|
||||||
gst_dep = declare_dependency(link_with : libgst,
|
gst_dep = declare_dependency(link_with : libgst,
|
||||||
|
compile_args : gst_compile_args,
|
||||||
include_directories : gst_incdirs,
|
include_directories : gst_incdirs,
|
||||||
dependencies : [glib_dep, gobject_dep, gmodule_dep],
|
dependencies : [glib_dep, gobject_dep, gmodule_dep],
|
||||||
# Everything that uses libgst needs this built to compile
|
# Everything that uses libgst needs this built to compile
|
||||||
|
|
Loading…
Reference in a new issue