vcpkg/ports/gstreamer/plugin-base-disable-no-unused.patch

22 lines
922 B
Diff
Raw Normal View History

diff --git a/subprojects/gst-plugins-base/meson.build b/subprojects/gst-plugins-base/meson.build
2024-09-16 19:26:09 +00:00
index 2c09e7b..e51f5a8 100644
--- a/subprojects/gst-plugins-base/meson.build
+++ b/subprojects/gst-plugins-base/meson.build
2024-09-16 19:26:09 +00:00
@@ -412,6 +412,7 @@ int32x4_t testfunc(int16_t *a, int16_t *b) {
endif
2024-09-16 19:26:09 +00:00
# Disable compiler warnings for unused variables and args if gst debug system is disabled
+build_system = build_machine.system()
if gst_dep.type_name() == 'internal'
2024-09-16 19:26:09 +00:00
gst_proj = subproject('gstreamer')
gst_debug_disabled = not gst_proj.get_variable('gst_debug')
@@ -421,7 +422,7 @@ else
gst_debug_disabled = cc.has_header_symbol('gst/gstconfig.h', 'GST_DISABLE_GST_DEBUG', dependencies: gst_dep)
endif
2024-09-16 19:26:09 +00:00
-if gst_debug_disabled
+if gst_debug_disabled and build_system != 'windows'
message('GStreamer debug system is disabled')
if cc.get_argument_syntax() == 'msvc'
msvc_args = cc.get_supported_arguments([