From f0c3eefefceecf2a868f24f76c93016b76d4c126 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 23 Sep 2021 17:07:09 +0530 Subject: [PATCH] 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: --- subprojects/gstreamer/tools/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gstreamer/tools/meson.build b/subprojects/gstreamer/tools/meson.build index e22721d9db..c5bf4f9a02 100644 --- a/subprojects/gstreamer/tools/meson.build +++ b/subprojects/gstreamer/tools/meson.build @@ -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]