mirror of https://github.com/GNOME/gimp.git
37 lines
925 B
Meson
37 lines
925 B
Meson
if platform_windows or platform_osx
|
|
gimp_debug_tool_dir = get_option('bindir')
|
|
else
|
|
gimp_debug_tool_dir = get_option('libexecdir')
|
|
endif
|
|
|
|
|
|
gimp_debug_tool = executable('gimp-debug-tool' + exec_ver,
|
|
'gimp-debug-tool.c',
|
|
include_directories: rootInclude,
|
|
dependencies: [
|
|
fontconfig,
|
|
gio,
|
|
gegl,
|
|
gtk3,
|
|
],
|
|
link_with: [
|
|
libapp,
|
|
libappwidgets,
|
|
libgimpbase,
|
|
],
|
|
install: true,
|
|
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
|