mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-06 01:12:40 +02:00
app*, docs, tools: -Denable-default-bin=enabled will also install a gimp-major binary.
On Windows, it will basically be a copy of the main binaries. On other OSes, it will be symlinks. This will help for Windows installers where we want to use major version only in registry and we need a binary named appropriately for this apparently. As for the "major" version, I will in fact use the next major when minor is 99 (also called API major version), not that it will matter much very soon!
This commit is contained in:
@@ -48,18 +48,31 @@ endif
|
||||
if enable_default_bin
|
||||
if not platform_windows
|
||||
install_symlink(fs.name(gimptool.full_path()).replace(exec_ver, ''),
|
||||
pointing_to: fs.name(gimptool.full_path()),
|
||||
install_dir: get_option('bindir')
|
||||
)
|
||||
pointing_to: fs.name(gimptool.full_path()),
|
||||
install_dir: get_option('bindir'))
|
||||
install_symlink(fs.name(gimptool.full_path()).replace(exec_ver, '-@0@'.format(api_version_major)),
|
||||
pointing_to: fs.name(gimptool.full_path()),
|
||||
install_dir: get_option('bindir'))
|
||||
|
||||
install_symlink(fs.name(gimp_test_clipboard.full_path()).replace(exec_ver, ''),
|
||||
pointing_to: fs.name(gimp_test_clipboard.full_path()),
|
||||
install_dir: get_option('bindir')
|
||||
)
|
||||
pointing_to: fs.name(gimp_test_clipboard.full_path()),
|
||||
install_dir: get_option('bindir'))
|
||||
install_symlink(fs.name(gimp_test_clipboard.full_path()).replace(exec_ver, '-@0@'.format(api_version_major)),
|
||||
pointing_to: fs.name(gimp_test_clipboard.full_path()),
|
||||
install_dir: get_option('bindir'))
|
||||
else
|
||||
meson.add_install_script('sh', '-c',
|
||||
'cp -f "@0@" "$MESON_INSTALL_DESTDIR_PREFIX/bin/@1@"'.format((gimptool.full_path()), fs.name(gimptool.name()).replace(exec_ver, '.exe')))
|
||||
'cp -f "@0@" "$MESON_INSTALL_DESTDIR_PREFIX/bin/@1@"'.format(gimptool.full_path(),
|
||||
fs.name(gimptool.name()).replace(exec_ver, '.exe')))
|
||||
meson.add_install_script('sh', '-c',
|
||||
'cp -f "@0@" "$MESON_INSTALL_DESTDIR_PREFIX/bin/@1@"'.format((gimp_test_clipboard.full_path()), fs.name(gimp_test_clipboard.name()).replace(exec_ver, '.exe')))
|
||||
'cp -f "@0@" "$MESON_INSTALL_DESTDIR_PREFIX/bin/@1@"'.format(gimptool.full_path(),
|
||||
fs.name(gimptool.name()).replace(exec_ver, '-@0@.exe'.format(api_version_major))))
|
||||
meson.add_install_script('sh', '-c',
|
||||
'cp -f "@0@" "$MESON_INSTALL_DESTDIR_PREFIX/bin/@1@"'.format(gimp_test_clipboard.full_path(),
|
||||
fs.name(gimp_test_clipboard.name()).replace(exec_ver, '.exe')))
|
||||
meson.add_install_script('sh', '-c',
|
||||
'cp -f "@0@" "$MESON_INSTALL_DESTDIR_PREFIX/bin/@1@"'.format(gimp_test_clipboard.full_path(),
|
||||
fs.name(gimp_test_clipboard.name()).replace(exec_ver, '-@0@.exe'.format(api_version_major))))
|
||||
endif
|
||||
endif
|
||||
|
||||
|
Reference in New Issue
Block a user