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
1 changed files with 8 additions and 0 deletions

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')