meson: Fix gst-launch build on UWP

The APIs we need from WinMM for higher timer resolution are only
available for non-UWP apps. The winmm library itself is still
available, so we need to disable the check.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/890>
This commit is contained in:
Nirbheek Chauhan 2021-09-23 17:07:09 +05:30 committed by GStreamer Marge Bot
parent be607d7cca
commit f0c3eefefc

View file

@ -4,7 +4,7 @@ extra_launch_dep = []
extra_launch_arg = []
if gst_parse
if host_system == 'windows'
if host_system == 'windows' and not building_for_uwp
winmm_lib = cc.find_library('winmm', required: false)
if winmm_lib.found() and cc.has_header('timeapi.h')
extra_launch_dep += [winmm_lib]