2017-11-01 21:27:13 +08:00
|
|
|
|
|
|
|
if platform_windows
|
|
|
|
gimp_debug_resume = executable('gimp-debug-resume',
|
|
|
|
'gimp-debug-resume.c',
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2022-08-31 21:10:13 +08:00
|
|
|
gimptool = executable('gimptool' + exec_ver,
|
2017-11-01 21:27:13 +08:00
|
|
|
'gimptool.c',
|
|
|
|
include_directories: rootInclude,
|
|
|
|
dependencies: [
|
|
|
|
gtk3,
|
|
|
|
],
|
|
|
|
link_with: [
|
|
|
|
libgimpbase,
|
|
|
|
],
|
|
|
|
c_args: [
|
|
|
|
'-DDATADIR="@0@"'.format(get_option('datadir')),
|
|
|
|
],
|
|
|
|
install: true,
|
|
|
|
)
|
|
|
|
|
2022-08-31 21:10:13 +08:00
|
|
|
gimp_test_clipboard = executable('gimp-test-clipboard' + exec_ver,
|
2017-11-01 21:27:13 +08:00
|
|
|
'gimp-test-clipboard.c',
|
|
|
|
include_directories: rootInclude,
|
|
|
|
dependencies: [
|
|
|
|
gtk3,
|
|
|
|
],
|
|
|
|
install: true,
|
|
|
|
)
|
|
|
|
|
2022-08-29 21:41:08 +08:00
|
|
|
if enable_default_bin and meson.version().version_compare('>=0.61.0')
|
2022-08-31 21:10:13 +08:00
|
|
|
install_symlink(fs.name(gimptool.full_path()).replace(exec_ver, ''),
|
|
|
|
pointing_to: fs.name(gimptool.full_path()),
|
meson: improve/fix previous commit from MR !725.
- Setting an exec_dir variable is an error. As meson docs says, if
relative, it is installed relatively to prefix anyway: "If this is a
relative path, it is assumed to be relative to the prefix."
On the other hand, it would make problems if someone tried to set an
absolute bindir.
Moreover it is a lot clearer now. When we want to install in the
binary directory unconditionally, then get_option('bindir') is the
meson way, hence the way to go.
- On the other hand, the `gimp-debug-tool` is installed either in bindir
for Windows or macOS and libexecdir for all other platforms, at least
that's how it's set in the autotools build. So let's keep both builds
consistent.
- Make a hopefully clearer description for enable-default-bin option.
Let's clarify this is just about creating unversionning links pointing
to versionned files.
- Adding an item in the "Optional Features" part of the summary listing
during meson configure, for better discovery.
For the ".exe" extension on Windows, I wished we had an $(EXEEXT)
equivalent on meson rather than trying to set it ourselves (are there
other platforms where we must set a different extension?). But I could
not find any.
2022-08-29 18:39:49 +08:00
|
|
|
install_dir: get_option('bindir')
|
2022-08-29 21:41:08 +08:00
|
|
|
)
|
2022-08-31 21:10:13 +08:00
|
|
|
install_symlink(fs.name(gimp_test_clipboard.full_path()).replace(exec_ver, ''),
|
|
|
|
pointing_to: fs.name(gimp_test_clipboard.full_path()),
|
meson: improve/fix previous commit from MR !725.
- Setting an exec_dir variable is an error. As meson docs says, if
relative, it is installed relatively to prefix anyway: "If this is a
relative path, it is assumed to be relative to the prefix."
On the other hand, it would make problems if someone tried to set an
absolute bindir.
Moreover it is a lot clearer now. When we want to install in the
binary directory unconditionally, then get_option('bindir') is the
meson way, hence the way to go.
- On the other hand, the `gimp-debug-tool` is installed either in bindir
for Windows or macOS and libexecdir for all other platforms, at least
that's how it's set in the autotools build. So let's keep both builds
consistent.
- Make a hopefully clearer description for enable-default-bin option.
Let's clarify this is just about creating unversionning links pointing
to versionned files.
- Adding an item in the "Optional Features" part of the summary listing
during meson configure, for better discovery.
For the ".exe" extension on Windows, I wished we had an $(EXEEXT)
equivalent on meson rather than trying to set it ourselves (are there
other platforms where we must set a different extension?). But I could
not find any.
2022-08-29 18:39:49 +08:00
|
|
|
install_dir: get_option('bindir')
|
2022-08-29 21:41:08 +08:00
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
2017-11-01 21:27:13 +08:00
|
|
|
executable('kernelgen',
|
|
|
|
'kernelgen.c',
|
|
|
|
include_directories: rootInclude,
|
|
|
|
install: false,
|
|
|
|
)
|
2022-01-29 05:34:02 +08:00
|
|
|
|
2022-02-01 05:08:56 +08:00
|
|
|
colorsvg2png = executable('colorsvg2png',
|
|
|
|
'colorsvg2png.c',
|
|
|
|
native: true,
|
|
|
|
dependencies: [
|
|
|
|
native_glib,
|
|
|
|
native_rsvg
|
|
|
|
],
|
2023-02-17 01:19:15 +08:00
|
|
|
# In case b_sanitize was set, we don't really care if the tool has issues (in
|
|
|
|
# particular we experienced some memory leaks with b_sanitize=address, within
|
|
|
|
# librsvg and we don't want this to break the build).
|
|
|
|
override_options: [ 'b_sanitize=none' ],
|
2022-02-01 05:08:56 +08:00
|
|
|
install: false,
|
|
|
|
)
|