mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-06 01:12:40 +02:00
Issue #4053: Add "*default_bin" support on Windows and enable it
Almost every program have a non-versioned .exe on Windows. MSYS2 does this too.
This commit is contained in:
@@ -23,9 +23,14 @@ gimp_debug_tool = executable('gimp-debug-tool' + exec_ver,
|
||||
install_dir: gimp_debug_tool_dir
|
||||
)
|
||||
|
||||
if enable_default_bin and meson.version().version_compare('>=0.61.0')
|
||||
install_symlink(fs.name(gimp_debug_tool.full_path()).replace(exec_ver, ''),
|
||||
pointing_to: fs.name(gimp_debug_tool.full_path()),
|
||||
install_dir: gimp_debug_tool_dir
|
||||
)
|
||||
if enable_default_bin
|
||||
if not platform_windows
|
||||
install_symlink(fs.name(gimp_debug_tool.full_path()).replace(exec_ver, ''),
|
||||
pointing_to: fs.name(gimp_debug_tool.full_path()),
|
||||
install_dir: gimp_debug_tool_dir
|
||||
)
|
||||
else
|
||||
meson.add_install_script('sh', '-c',
|
||||
'cp -f "@0@" "$MESON_INSTALL_DESTDIR_PREFIX/bin/@1@"'.format((gimp_debug_tool.full_path()), fs.name(gimp_debug_tool.name()).replace(exec_ver, '.exe')))
|
||||
endif
|
||||
endif
|
||||
|
Reference in New Issue
Block a user