diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m index 3d420a3152..43f3bb4a4f 100644 --- a/osdep/macosx_application.m +++ b/osdep/macosx_application.m @@ -24,6 +24,7 @@ #include "input/input.h" #include "player/client.h" #include "options/m_config.h" +#include "options/options.h" #import "osdep/macosx_application_objc.h" #include "osdep/macosx_compat.h" @@ -299,7 +300,7 @@ static void init_cocoa_application(bool regular) [NSApp setDelegate:NSApp]; [NSApp setMenuBar:[[MenuBar alloc] init]]; -#if HAVE_MACOS_10_12_2_FEATURES +#if HAVE_MACOS_MEDIA_PLAYER // 10.12.2 runtime availability check if ([NSApp respondsToSelector:@selector(touchBar)]) { [NSApp setRemoteCommandCenter:[[RemoteCommandCenter alloc] initWithApp:NSApp]]; 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',