mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:16:13 +00:00
meson: d3d11: Clarify the message for WGC support check
Even Windows10 SDK seems to have required symbols depending on installed SDK version Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3376>
This commit is contained in:
parent
12a2c1dffe
commit
219c5cf330
1 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@ if d3d11_winapi_only_app and (not d3dcompiler_lib.found() or not runtimeobject_l
|
||||||
subdir_done()
|
subdir_done()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
win11_sdk = cxx.compiles('''
|
have_wgc = cxx.compiles('''
|
||||||
#include<windows.h>
|
#include<windows.h>
|
||||||
#include<winstring.h>
|
#include<winstring.h>
|
||||||
#include<roapi.h>
|
#include<roapi.h>
|
||||||
|
@ -65,7 +65,7 @@ win11_sdk = cxx.compiles('''
|
||||||
ComPtr<IGraphicsCaptureSession2> session2;
|
ComPtr<IGraphicsCaptureSession2> session2;
|
||||||
ComPtr<IGraphicsCaptureSession3> session3;
|
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,
|
# if build target is Windows 10 and WINAPI_PARTITION_APP is allowed,
|
||||||
# we can build UWP only modules as well
|
# we can build UWP only modules as well
|
||||||
|
@ -88,7 +88,7 @@ if d3d11_winapi_desktop
|
||||||
extra_dep += [winmm_lib]
|
extra_dep += [winmm_lib]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if win11_sdk
|
if have_wgc
|
||||||
d3d11_sources += ['gstd3d11winrtcapture.cpp']
|
d3d11_sources += ['gstd3d11winrtcapture.cpp']
|
||||||
extra_args += ['-DHAVE_WINRT_CAPTURE']
|
extra_args += ['-DHAVE_WINRT_CAPTURE']
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue