2017-11-01 06:27:13 -07:00
|
|
|
|
|
|
|
|
if platform_windows
|
|
|
|
|
gimp_debug_resume = executable('gimp-debug-resume',
|
|
|
|
|
'gimp-debug-resume.c',
|
|
|
|
|
)
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
2022-08-31 06:10:13 -07:00
|
|
|
gimptool = executable('gimptool' + exec_ver,
|
2017-11-01 06:27:13 -07:00
|
|
|
'gimptool.c',
|
|
|
|
|
include_directories: rootInclude,
|
|
|
|
|
dependencies: [
|
2025-08-21 11:18:02 -07:00
|
|
|
gegl, gtk3, gexiv2
|
2017-11-01 06:27:13 -07:00
|
|
|
],
|
|
|
|
|
link_with: [
|
|
|
|
|
libgimpbase,
|
|
|
|
|
],
|
|
|
|
|
c_args: [
|
|
|
|
|
'-DDATADIR="@0@"'.format(get_option('datadir')),
|
|
|
|
|
],
|
|
|
|
|
install: true,
|
|
|
|
|
)
|
|
|
|
|
|
2022-08-31 06:10:13 -07:00
|
|
|
gimp_test_clipboard = executable('gimp-test-clipboard' + exec_ver,
|
2017-11-01 06:27:13 -07:00
|
|
|
'gimp-test-clipboard.c',
|
|
|
|
|
include_directories: rootInclude,
|
|
|
|
|
dependencies: [
|
2025-08-21 11:18:02 -07:00
|
|
|
gegl, gtk3, gexiv2
|
2017-11-01 06:27:13 -07:00
|
|
|
],
|
|
|
|
|
install: true,
|
|
|
|
|
)
|
|
|
|
|
|
2024-08-17 11:54:12 -07:00
|
|
|
if isocodes.found()
|
2024-09-30 07:38:02 -07:00
|
|
|
native_gio = dependency('gio-2.0', native: true)
|
2024-08-17 11:54:12 -07:00
|
|
|
gen_languages = executable('gen-languages',
|
|
|
|
|
'gen-languages.c',
|
|
|
|
|
'../app/config/gimpxmlparser.c',
|
|
|
|
|
include_directories: [ rootInclude, appInclude ],
|
2024-09-30 07:38:02 -07:00
|
|
|
dependencies: [ native_gio ],
|
2024-08-17 11:54:12 -07:00
|
|
|
c_args: [
|
|
|
|
|
'-DSRCDIR="@0@"'.format(meson.project_source_root()),
|
|
|
|
|
'-DISOCODES_LOCALEDIR="@0@"'.format(isocodes_localedir),
|
|
|
|
|
],
|
2024-09-30 07:38:02 -07:00
|
|
|
native: true,
|
2024-08-17 11:54:12 -07:00
|
|
|
install: false)
|
|
|
|
|
endif
|
2024-08-09 17:02:49 -07:00
|
|
|
|
2024-06-05 05:40:30 -07:00
|
|
|
if enable_default_bin
|
|
|
|
|
if not platform_windows
|
|
|
|
|
install_symlink(fs.name(gimptool.full_path()).replace(exec_ver, ''),
|
2024-11-03 13:47:21 -08:00
|
|
|
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'))
|
|
|
|
|
|
2024-06-05 05:40:30 -07:00
|
|
|
install_symlink(fs.name(gimp_test_clipboard.full_path()).replace(exec_ver, ''),
|
2024-11-03 13:47:21 -08:00
|
|
|
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'))
|
2024-06-05 05:40:30 -07:00
|
|
|
else
|
2025-05-18 02:46:12 -07:00
|
|
|
meson.add_install_script(python, '-c', 'from shutil import copy2; from pathlib import Path; from sys import argv; import os; copy2(argv[1], str(Path(os.environ.get("MESON_INSTALL_DESTDIR_PREFIX")) / "bin" / argv[2]))',
|
|
|
|
|
gimptool.full_path(), fs.name(gimptool.name()).replace(exec_ver, '.exe'))
|
|
|
|
|
meson.add_install_script(python, '-c', 'from shutil import copy2; from pathlib import Path; from sys import argv; import os; copy2(argv[1], str(Path(os.environ.get("MESON_INSTALL_DESTDIR_PREFIX")) / "bin" / argv[2].replace("@0@", argv[3])))',
|
|
|
|
|
gimptool.full_path(), fs.name(gimptool.name()).replace(exec_ver, '-@0@.exe'), api_version_major.to_string())
|
2025-04-17 10:27:44 -07:00
|
|
|
|
2025-05-18 02:46:12 -07:00
|
|
|
meson.add_install_script(python, '-c', 'from shutil import copy2; from pathlib import Path; from sys import argv; import os; copy2(argv[1], str(Path(os.environ.get("MESON_INSTALL_DESTDIR_PREFIX")) / "bin" / argv[2]))',
|
|
|
|
|
gimp_test_clipboard.full_path(), fs.name(gimp_test_clipboard.name()).replace(exec_ver, '.exe'))
|
|
|
|
|
meson.add_install_script(python, '-c', 'from shutil import copy2; from pathlib import Path; from sys import argv; import os; copy2(argv[1], str(Path(os.environ.get("MESON_INSTALL_DESTDIR_PREFIX")) / "bin" / argv[2].replace("@0@", argv[3])))',
|
|
|
|
|
gimp_test_clipboard.full_path(), fs.name(gimp_test_clipboard.name()).replace(exec_ver, '-@0@.exe'), api_version_major.to_string())
|
2024-06-05 05:40:30 -07:00
|
|
|
endif
|
2022-08-29 06:41:08 -07:00
|
|
|
endif
|
|
|
|
|
|
2017-11-01 06:27:13 -07:00
|
|
|
executable('kernelgen',
|
|
|
|
|
'kernelgen.c',
|
|
|
|
|
include_directories: rootInclude,
|
|
|
|
|
install: false,
|
|
|
|
|
)
|