2022-11-29 04:09:25 +08:00
|
|
|
diff --git a/subprojects/gst-plugins-bad/ext/dts/meson.build b/subprojects/gst-plugins-bad/ext/dts/meson.build
|
2023-09-21 01:19:20 +08:00
|
|
|
index c4868a4..6b34cb7 100644
|
2022-11-29 04:09:25 +08:00
|
|
|
--- a/subprojects/gst-plugins-bad/ext/dts/meson.build
|
|
|
|
+++ b/subprojects/gst-plugins-bad/ext/dts/meson.build
|
2023-09-21 01:19:20 +08:00
|
|
|
@@ -20,7 +20,7 @@ if not dca_dep.found()
|
2022-08-04 01:40:07 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
no_warn_c_args = []
|
|
|
|
-if cc.get_id() != 'msvc'
|
|
|
|
+if cc.get_argument_syntax() != 'msvc'
|
|
|
|
# autotools didn't use the libdca pkg-config cflags, and they
|
|
|
|
# can point to a non-existing location (/usr/include/dca)
|
|
|
|
no_warn_c_args = ['-Wno-missing-include-dirs']
|
2022-11-29 04:09:25 +08:00
|
|
|
diff --git a/subprojects/gst-plugins-bad/meson.build b/subprojects/gst-plugins-bad/meson.build
|
2024-09-17 03:26:09 +08:00
|
|
|
index 6707dce..b8c6018 100644
|
2022-11-29 04:09:25 +08:00
|
|
|
--- a/subprojects/gst-plugins-bad/meson.build
|
|
|
|
+++ b/subprojects/gst-plugins-bad/meson.build
|
2023-09-21 01:19:20 +08:00
|
|
|
@@ -54,7 +54,7 @@ endif
|
2022-08-04 01:40:07 +08:00
|
|
|
cdata = configuration_data()
|
2023-09-21 01:19:20 +08:00
|
|
|
cdata.set('ENABLE_NLS', 1)
|
2022-08-04 01:40:07 +08:00
|
|
|
|
|
|
|
-if cc.get_id() == 'msvc'
|
|
|
|
+if cc.get_argument_syntax() == 'msvc'
|
|
|
|
msvc_args = [
|
|
|
|
# Ignore several spurious warnings for things gstreamer does very commonly
|
|
|
|
# If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
|
2022-11-29 04:09:25 +08:00
|
|
|
diff --git a/subprojects/gst-plugins-bad/sys/asio/meson.build b/subprojects/gst-plugins-bad/sys/asio/meson.build
|
2023-09-21 01:19:20 +08:00
|
|
|
index c61ad4e..b30793c 100644
|
2022-11-29 04:09:25 +08:00
|
|
|
--- a/subprojects/gst-plugins-bad/sys/asio/meson.build
|
|
|
|
+++ b/subprojects/gst-plugins-bad/sys/asio/meson.build
|
2022-08-04 01:40:07 +08:00
|
|
|
@@ -15,7 +15,7 @@ endif
|
|
|
|
|
|
|
|
# FIXME: non-msvc is not tested, and unlikely supported yet because of
|
|
|
|
# tool-chain issue
|
|
|
|
-if cxx.get_id() != 'msvc'
|
|
|
|
+if cxx.get_argument_syntax() != 'msvc'
|
|
|
|
if asio_option.enabled()
|
|
|
|
error('asio plugin can only be built with MSVC')
|
|
|
|
else
|
2022-11-29 04:09:25 +08:00
|
|
|
diff --git a/subprojects/gst-plugins-bad/sys/d3d11/meson.build b/subprojects/gst-plugins-bad/sys/d3d11/meson.build
|
2024-09-17 03:26:09 +08:00
|
|
|
index ff557be..d5bf0db 100644
|
2022-11-29 04:09:25 +08:00
|
|
|
--- a/subprojects/gst-plugins-bad/sys/d3d11/meson.build
|
|
|
|
+++ b/subprojects/gst-plugins-bad/sys/d3d11/meson.build
|
2024-09-17 03:26:09 +08:00
|
|
|
@@ -118,7 +118,7 @@ endif
|
2022-08-04 01:40:07 +08:00
|
|
|
|
|
|
|
# MinGW 32bits compiler seems to be complaining about redundant-decls
|
|
|
|
# when ComPtr is in use. Let's just disable the warning
|
|
|
|
-if cc.get_id() != 'msvc'
|
|
|
|
+if cc.get_argument_syntax() != 'msvc'
|
|
|
|
extra_mingw_args = cc.get_supported_arguments([
|
|
|
|
'-Wno-redundant-decls',
|
|
|
|
])
|
2022-11-29 04:09:25 +08:00
|
|
|
diff --git a/subprojects/gst-plugins-bad/sys/mediafoundation/meson.build b/subprojects/gst-plugins-bad/sys/mediafoundation/meson.build
|
2023-09-21 01:19:20 +08:00
|
|
|
index 6b9a059..40713ce 100644
|
2022-11-29 04:09:25 +08:00
|
|
|
--- a/subprojects/gst-plugins-bad/sys/mediafoundation/meson.build
|
|
|
|
+++ b/subprojects/gst-plugins-bad/sys/mediafoundation/meson.build
|
2023-09-21 01:19:20 +08:00
|
|
|
@@ -54,7 +54,7 @@ if host_system != 'windows' or mf_option.disabled()
|
2022-08-04 01:40:07 +08:00
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
-if cc.get_id() != 'msvc'
|
|
|
|
+if cc.get_argument_syntax() != 'msvc'
|
|
|
|
if mf_option.enabled()
|
|
|
|
error('mediafoundation plugin can only be built with MSVC')
|
|
|
|
endif
|
2022-11-29 04:09:25 +08:00
|
|
|
diff --git a/subprojects/gst-plugins-bad/sys/msdk/meson.build b/subprojects/gst-plugins-bad/sys/msdk/meson.build
|
2024-09-17 03:26:09 +08:00
|
|
|
index 51bf953..e30e138 100644
|
2022-11-29 04:09:25 +08:00
|
|
|
--- a/subprojects/gst-plugins-bad/sys/msdk/meson.build
|
|
|
|
+++ b/subprojects/gst-plugins-bad/sys/msdk/meson.build
|
2024-09-17 03:26:09 +08:00
|
|
|
@@ -175,12 +175,12 @@ if use_onevpl and have_mfx_ver205
|
2022-08-04 01:40:07 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
if host_machine.system() == 'windows'
|
|
|
|
- if cc.get_id() != 'msvc' and msdk_option.enabled()
|
|
|
|
+ if cc.get_argument_syntax() != 'msvc' and msdk_option.enabled()
|
|
|
|
error('msdk plugin can only be built with MSVC')
|
|
|
|
endif
|
|
|
|
legacy_stdio_dep = cc.find_library('legacy_stdio_definitions', required: get_option('msdk'))
|
2023-09-21 01:19:20 +08:00
|
|
|
msdk_deps = declare_dependency(dependencies: [gstd3d11_dep, legacy_stdio_dep])
|
|
|
|
- msdk_deps_found = gstd3d11_dep.found() and legacy_stdio_dep.found() and cc.get_id() == 'msvc'
|
2022-08-04 01:40:07 +08:00
|
|
|
+ msdk_deps_found = d3d11_dep.found() and legacy_stdio_dep.found() and cc.get_argument_syntax() == 'msvc'
|
|
|
|
else
|
2023-09-21 01:19:20 +08:00
|
|
|
libdl_dep = cc.find_library('dl', required: get_option('msdk'))
|
2024-09-17 03:26:09 +08:00
|
|
|
libgudev_dep = dependency('gudev-1.0', required: get_option('msdk'), allow_fallback: true)
|