From 218d9e26d2d593f853a2a6d8199fbc3151d99f99 Mon Sep 17 00:00:00 2001 From: der richter Date: Wed, 21 Feb 2024 20:56:41 +0100 Subject: [PATCH] meson: add custom target for macOS App bundling Fixes #10879 --- meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meson.build b/meson.build index de893c79d9..1eb36a7807 100644 --- a/meson.build +++ b/meson.build @@ -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')