From 748f6e6a110d1323e7b8f17508a159a0943220c9 Mon Sep 17 00:00:00 2001 From: Alexandre Janniaux Date: Mon, 6 Feb 2023 11:26:45 +0100 Subject: [PATCH] bin: meson.build: conditionnally build binaries Neither vlc.c nor darwinvlc.m can be compiled against iOS SDK currently so only build them on other platforms than iOS and tvOS. --- bin/meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/meson.build b/bin/meson.build index 3087f9abf8..1082928979 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 +if build_vlc and (host_system != 'darwin' or have_osx) vlc_sources = [] vlc_deps = [m_lib, dl_lib, threads_dep] @@ -9,7 +9,9 @@ if build_vlc if host_system == 'darwin' vlc_sources += ['darwinvlc.m'] vlc_deps += corefoundation_dep - vlc_deps += dependency('Cocoa', required: true) + if have_osx + vlc_deps += dependency('Cocoa', required: true) + endif elif host_system == 'windows' vlc_sources += ['winvlc.c'] else