1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 10:02:17 +00:00

meson: check macos touchbar with has_header

This commit is contained in:
Dudemanguy 2023-01-31 10:12:44 -06:00
parent bf32281425
commit a9c5414b86

View File

@ -1544,8 +1544,8 @@ if swift.allowed()
endif
macos_touchbar = get_option('macos-touchbar').require(
features['cocoa'] and cc.compiles(files(join_paths(fragments, 'touchbar.m')), name: 'macos-touchbar check'),
error_message: 'Either cocoa could not be found or the macos-touchbar check failed!',
features['cocoa'] and cc.has_header('AppKit/NSTouchBar.h'),
error_message: 'Either cocoa could not be found or AppKit/NSTouchBar.h could not be found!',
)
features += {'macos-touchbar': macos_touchbar.allowed()}
if features['macos-touchbar']