meson: d3d11: Clarify the message for WGC support check
authorSeungha Yang <seungha@centricular.com>
Wed, 9 Nov 2022 18:23:53 +0000 (03:23 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 11 Nov 2022 19:42:19 +0000 (19:42 +0000)
Even Windows10 SDK seems to have required symbols depending on installed
SDK version

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3376>

subprojects/gst-plugins-bad/sys/d3d11/meson.build

index c4a140f..1368b79 100644 (file)
@@ -47,7 +47,7 @@ if d3d11_winapi_only_app and (not d3dcompiler_lib.found() or not runtimeobject_l
   subdir_done()
 endif
 
-win11_sdk = cxx.compiles('''
+have_wgc = cxx.compiles('''
     #include<windows.h>
     #include<winstring.h>
     #include<roapi.h>
@@ -65,7 +65,7 @@ win11_sdk = cxx.compiles('''
     ComPtr<IGraphicsCaptureSession2> session2;
     ComPtr<IGraphicsCaptureSession3> session3;
     ''',
-    name: 'building with Windows 11 SDK')
+    name: 'Windows Graphics Capture support in Windows SDK')
 
 # if build target is Windows 10 and WINAPI_PARTITION_APP is allowed,
 # we can build UWP only modules as well
@@ -88,7 +88,7 @@ if d3d11_winapi_desktop
     extra_dep += [winmm_lib]
   endif
 
-  if win11_sdk
+  if have_wgc
     d3d11_sources += ['gstd3d11winrtcapture.cpp']
     extra_args += ['-DHAVE_WINRT_CAPTURE']
   endif