Skip to content

Commit

Permalink
meson: add custom target for macOS App bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
Akemi committed Feb 22, 2024
1 parent d954646 commit c8ab994
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -1754,6 +1754,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')
Expand Down

0 comments on commit c8ab994

Please sign in to comment.