Commit b318694b authored by Jehan's avatar Jehan

app, tools: install the debug tools in libexec when appropriate.

AFAIK this means on all platforms but Win32 and macOS which would rather
need relative path and therefore cannot make use of build-time
LIBEXECDIR. Anyway on these platforms, leaving the binary in BINDIR is
not likely to "pollute" too much as it would on Linux or BSD where
people often use terminal.
parent 4e5a5dbb
......@@ -112,6 +112,7 @@ endif
AM_CPPFLAGS = \
-DGIMPDIR=\""$(gimpdir)"\" \
-DLIBEXECDIR=\""$(libexecdir)"\" \
-DGIMP_USER_VERSION=\"$(GIMP_USER_VERSION)\" \
-DG_LOG_DOMAIN=\"Gimp\" \
-DGIMP_APP_GLUE_COMPILATION \
......
......@@ -289,8 +289,10 @@ gimp_eek (const gchar *reason,
*/
#ifdef G_OS_WIN32
const gchar *gimpdebug = "gimpdebug-2.0.exe";
#else
#elif defined (PLATFORM_OSX)
const gchar *gimpdebug = "gimpdebug-2.0";
#else
const gchar *gimpdebug = LIBEXECDIR "/gimpdebug-2.0";
#endif
gchar *args[7] = { (gchar *) gimpdebug, full_prog_name, NULL,
(gchar *) reason, (gchar *) message,
......
......@@ -15,9 +15,13 @@ gimp_debug_resume_SOURCES = gimp-debug-resume.c
else
bin_PROGRAMS = \
gimptool-2.0 \
gimpdebug-2.0
bin_PROGRAMS = gimptool-2.0
if PLATFORM_OSX
bin_PROGRAMS += gimpdebug-2.0
else
libexec_PROGRAMS = gimpdebug-2.0
endif
endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment