gimp/tools/meson.build

71 lines
2.2 KiB
Meson

if platform_windows
gimp_debug_resume = executable('gimp-debug-resume',
'gimp-debug-resume.c',
)
endif
gimptool = executable('gimptool' + exec_ver,
'gimptool.c',
include_directories: rootInclude,
dependencies: [
gegl, gtk3,
],
link_with: [
libgimpbase,
],
c_args: [
'-DDATADIR="@0@"'.format(get_option('datadir')),
],
install: true,
)
gimp_test_clipboard = executable('gimp-test-clipboard' + exec_ver,
'gimp-test-clipboard.c',
include_directories: rootInclude,
dependencies: [
gegl, gtk3,
],
install: true,
)
if isocodes.found()
native_gio = dependency('gio-2.0', native: true)
gen_languages = executable('gen-languages',
'gen-languages.c',
'../app/config/gimpxmlparser.c',
include_directories: [ rootInclude, appInclude ],
dependencies: [ native_gio ],
c_args: [
'-DSRCDIR="@0@"'.format(meson.project_source_root()),
'-DISOCODES_LOCALEDIR="@0@"'.format(isocodes_localedir),
],
native: true,
install: false)
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')
)
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')
)
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')))
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')))
endif
endif
executable('kernelgen',
'kernelgen.c',
include_directories: rootInclude,
install: false,
)