mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
meson: generate .com in the same place as the .exe if possible
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.
This commit is contained in:
@@ -1686,6 +1686,13 @@ features += {'libmpv-' + get_option('default_library'): get_option('libmpv')}
|
||||
|
||||
# build targets
|
||||
if win32
|
||||
# Older meson versions generate this in the player subdirectory.
|
||||
if 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)
|
||||
endif
|
||||
|
||||
windows = import('windows')
|
||||
res_flags = ['--codepage=65001']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user