mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-14 03:19:01 +08:00
85 lines
3.8 KiB
Diff
85 lines
3.8 KiB
Diff
diff --git a/subprojects/gst-plugins-bad/ext/dts/meson.build b/subprojects/gst-plugins-bad/ext/dts/meson.build
|
|
index c4868a4..6b34cb7 100644
|
|
--- a/subprojects/gst-plugins-bad/ext/dts/meson.build
|
|
+++ b/subprojects/gst-plugins-bad/ext/dts/meson.build
|
|
@@ -20,7 +20,7 @@ if not dca_dep.found()
|
|
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']
|
|
diff --git a/subprojects/gst-plugins-bad/meson.build b/subprojects/gst-plugins-bad/meson.build
|
|
index 6707dce..b8c6018 100644
|
|
--- a/subprojects/gst-plugins-bad/meson.build
|
|
+++ b/subprojects/gst-plugins-bad/meson.build
|
|
@@ -54,7 +54,7 @@ endif
|
|
cdata = configuration_data()
|
|
cdata.set('ENABLE_NLS', 1)
|
|
|
|
-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
|
|
diff --git a/subprojects/gst-plugins-bad/sys/asio/meson.build b/subprojects/gst-plugins-bad/sys/asio/meson.build
|
|
index c61ad4e..b30793c 100644
|
|
--- a/subprojects/gst-plugins-bad/sys/asio/meson.build
|
|
+++ b/subprojects/gst-plugins-bad/sys/asio/meson.build
|
|
@@ -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
|
|
diff --git a/subprojects/gst-plugins-bad/sys/d3d11/meson.build b/subprojects/gst-plugins-bad/sys/d3d11/meson.build
|
|
index ff557be..d5bf0db 100644
|
|
--- a/subprojects/gst-plugins-bad/sys/d3d11/meson.build
|
|
+++ b/subprojects/gst-plugins-bad/sys/d3d11/meson.build
|
|
@@ -118,7 +118,7 @@ endif
|
|
|
|
# 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',
|
|
])
|
|
diff --git a/subprojects/gst-plugins-bad/sys/mediafoundation/meson.build b/subprojects/gst-plugins-bad/sys/mediafoundation/meson.build
|
|
index 6b9a059..40713ce 100644
|
|
--- a/subprojects/gst-plugins-bad/sys/mediafoundation/meson.build
|
|
+++ b/subprojects/gst-plugins-bad/sys/mediafoundation/meson.build
|
|
@@ -54,7 +54,7 @@ if host_system != 'windows' or mf_option.disabled()
|
|
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
|
|
diff --git a/subprojects/gst-plugins-bad/sys/msdk/meson.build b/subprojects/gst-plugins-bad/sys/msdk/meson.build
|
|
index 51bf953..e30e138 100644
|
|
--- a/subprojects/gst-plugins-bad/sys/msdk/meson.build
|
|
+++ b/subprojects/gst-plugins-bad/sys/msdk/meson.build
|
|
@@ -175,12 +175,12 @@ if use_onevpl and have_mfx_ver205
|
|
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'))
|
|
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'
|
|
+ msdk_deps_found = d3d11_dep.found() and legacy_stdio_dep.found() and cc.get_argument_syntax() == 'msvc'
|
|
else
|
|
libdl_dep = cc.find_library('dl', required: get_option('msdk'))
|
|
libgudev_dep = dependency('gudev-1.0', required: get_option('msdk'), allow_fallback: true)
|