mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
0ea374b1c7
Meson was pretty strict about target ids and generating the mpv.com in the same directory as mpv.exe wasn't possible. So as a workaround we tucked it away in a subdirectory, but that's not really intuitive at all. Well as of meson 1.3.0, this is now possible so leverage it since it makes way more sense. We still keep the old workaround for anyone using older meson versions.
12 lines
550 B
Meson
12 lines
550 B
Meson
subdir('javascript')
|
|
subdir('lua')
|
|
|
|
# Older versions of meson don't allow multiple build targets with the same name in the same
|
|
# file. Generate it here for compatibility reasons for windows.
|
|
if win32 and get_option('cplayer') and meson.version().version_compare('< 1.3.0')
|
|
wrapper_sources= '../osdep/win32-console-wrapper.c'
|
|
executable('mpv', wrapper_sources, c_args: '-municode', link_args: '-municode',
|
|
name_suffix: 'com', install: true)
|
|
warning('mpv.com executable will be generated in the player subdirectory.')
|
|
endif
|