0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-19 19:42:24 +02:00

meson: add custom target for macOS App bundling

Fixes #10879
This commit is contained in:
der richter 2024-02-21 20:56:41 +01:00
parent 2cc3bc12db
commit 218d9e26d2

View File

@ -1756,6 +1756,14 @@ if get_option('cplayer')
executable('mpv', wrapper_sources, c_args: '-municode', link_args: '-municode',
name_suffix: 'com', install: true)
endif
if darwin
osxbundle = find_program(join_paths(tools_directory, 'osxbundle.py'), required: true)
custom_target('macos-bundle',
output: 'mpv.app',
command: [osxbundle, mpv.full_path(), '@SOURCE_ROOT@'],
)
endif
endif
if get_option('tests')