From 9d866d5680dbba86c7b3f1d3fbdecdf79003fc8e Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Tue, 19 Nov 2024 06:58:07 +0100 Subject: [PATCH] bin: don't build vlc.exe for Winstore builds winvlc.c uses API's not available in UWP: - SetProcessMitigationPolicy - SetProcessDEPPolicy - SetDllDirectory - SetDefaultDllDirectories - MessageBox GetCommandLine is allowed but not in mingw-w64 yet. --- bin/meson.build | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/meson.build b/bin/meson.build index 793ea60ca1..16f1208a1b 100644 --- a/bin/meson.build +++ b/bin/meson.build @@ -1,7 +1,7 @@ # Do we build the main VLC binary? build_vlc = get_option('vlc') -if build_vlc and (host_system != 'darwin' or have_osx) +if build_vlc and (host_system != 'darwin' or have_osx) and not have_win_store vlc_sources = [] vlc_deps = [m_lib, dl_lib, threads_dep] diff --git a/configure.ac b/configure.ac index 7a276da8f3..cc27956ca1 100644 --- a/configure.ac +++ b/configure.ac @@ -4796,7 +4796,7 @@ dnl the VLC binary dnl AC_ARG_ENABLE([vlc], AS_HELP_STRING([--enable-vlc], [build the VLC media player (default enabled)])) -AM_CONDITIONAL([BUILD_VLC], [test "${enable_vlc}" != "no"]) +AM_CONDITIONAL([BUILD_VLC], [test "${enable_vlc}" != "no" -a "$vlc_winstore_app" = "0"]) dnl dnl Fuzzer (at the end not to mess dependencies FLAGS)