From e7add205d8fdfcb31a569e282284b10db83130b9 Mon Sep 17 00:00:00 2001 From: der richter Date: Mon, 23 Dec 2019 00:02:23 +0100 Subject: build: fix build with disabled swift and Media Player when swift is disabled some headers are not included. one of them is the options/options.h header that is needed for the vo_sub_opts struct. we include it to fix the build without swift. the second problem is the build time check for the macOS 10.12.2 features or more specific the Media Player support. since it is a swift feature we can not use it when swift is disabled. add a separate Media Player check that also depends on swift and use that new preprocessor variable as a build time check instead. Fixes #7282 --- wscript | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index b7fc0b474d..def7f77738 100644 --- a/wscript +++ b/wscript @@ -928,6 +928,11 @@ standalone_features = [ 'desc': 'macOS 10.14 SDK Features', 'deps': 'cocoa', 'func': check_macos_sdk('10.14') + },{ + 'name': '--macos-media-player', + 'desc': 'macOS Media Player support', + 'deps': 'macos-10-12-2-features && swift', + 'func': check_true }, { 'name': '--macos-cocoa-cb', 'desc': 'macOS libmpv backend', -- cgit v1.2.3