[gimp] tools, app-tools: move gimp-debug-tool from tools/ to app-tools/
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] tools, app-tools: move gimp-debug-tool from tools/ to app-tools/
- Date: Sat, 10 Mar 2018 22:57:20 +0000 (UTC)
commit 5893d2dc73df45de82017c63cae8ad37333ff482
Author: Ell <ell_se yahoo com>
Date: Sat Mar 10 16:48:20 2018 -0500
tools, app-tools: move gimp-debug-tool from tools/ to app-tools/
Move gimp-debug-tools.c from tools/ to a new app-tools/ subdir,
which should contain external tools needed by app/, and which is
built *after* app/ (unlinke tools/). This allows gimp-debug-tool
to depend on libapp and libappwidgets, instead of on actual source
files from app/. Building sources from app/ in another subdir
screws with the distclean rules, and breaks distcheck.
Makefile.am | 1 +
app-tools/.gitignore | 6 +++
app-tools/Makefile.am | 71 ++++++++++++++++++++++++++++++++
{tools => app-tools}/gimp-debug-tool.c | 0
configure.ac | 1 +
tools/.gitignore | 2 -
tools/Makefile.am | 32 +--------------
7 files changed, 80 insertions(+), 33 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 48df404..6c7fbb8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,6 +32,7 @@ SUBDIRS = \
libgimpwidgets \
libgimp \
app \
+ app-tools \
$(GIMP_MODULES) \
$(GIMP_PLUGINS) \
etc \
diff --git a/app-tools/.gitignore b/app-tools/.gitignore
new file mode 100644
index 0000000..a178f14
--- /dev/null
+++ b/app-tools/.gitignore
@@ -0,0 +1,6 @@
+/Makefile
+/Makefile.in
+/.deps
+/.libs
+/gimp-debug-tool-2.0
+/gimp-debug-tool-2.0.exe
diff --git a/app-tools/Makefile.am b/app-tools/Makefile.am
new file mode 100644
index 0000000..7195d36
--- /dev/null
+++ b/app-tools/Makefile.am
@@ -0,0 +1,71 @@
+## Process this file with automake to produce Makefile.in
+
+AUTOMAKE_OPTIONS = subdir-objects
+
+libapp = $(top_builddir)/app/libapp.a
+libappwidgets = $(top_builddir)/app/widgets/libappwidgets.a
+
+if PLATFORM_OSX
+xobjective_c = "-xobjective-c"
+endif
+
+if OS_WIN32
+bin_PROGRAMS = gimp-debug-tool-@GIMP_TOOL_VERSION@
+else
+
+if PLATFORM_OSX
+bin_PROGRAMS = gimp-debug-tool-@GIMP_TOOL_VERSION@
+else
+libexec_PROGRAMS = gimp-debug-tool-@GIMP_TOOL_VERSION@
+endif
+
+endif
+
+
+gimp_debug_tool_@GIMP_TOOL_VERSION@_SOURCES = \
+ gimp-debug-tool.c
+
+gimp_debug_tool_@GIMP_TOOL_VERSION@_CPPFLAGS = \
+ -DCC_VERSION=\""$(CC_VERSION)"\" \
+ -I$(top_srcdir)/app \
+ -I$(top_builddir)/app \
+ $(AM_CPPFLAGS) \
+ $(GIO_CFLAGS) \
+ $(GEGL_CFLAGS) \
+ $(GTK_CFLAGS) \
+ $(FONTCONFIG_CFLAGS)
+
+gimp_debug_tool_@GIMP_TOOL_VERSION@_LDADD = \
+ $(libappwidgets) \
+ $(libapp) \
+ $(GIO_LIBS) \
+ $(GEGL_LIBS) \
+ $(GTK_LIBS) \
+ $(FONTCONFIG_LIBS)
+
+
+AM_CPPFLAGS = \
+ -DGIMP_APP_VERSION=\"@GIMP_APP_VERSION@\" \
+ -DLOCALEDIR=\""$(gimplocaledir)"\" \
+ -DPREFIX=\""$(prefix)"\" \
+ -DEXEC_PREFIX=\""$(exec_prefix)"\" \
+ -DBINDIR=\""$(bindir)"\" \
+ -DSBINDIR=\""$(sbindir)"\" \
+ -DLIBEXECDIR=\""$(libexecdir)"\" \
+ -DDATADIR=\""$(datadir)"\" \
+ -DDATAROOTDIR=\""$(datarootdir)"\" \
+ -DSYSCONFDIR=\""$(sysconfdir)"\" \
+ -DSHAREDSTATEDIR=\""$(sharedstatedir)"\" \
+ -DLOCALSTATEDIR=\""$(localstatedir)"\" \
+ -DLIBDIR=\""$(libdir)"\" \
+ -DINFODIR=\""$(infodir)"\" \
+ -DMANDIR=\""$(mandir)"\" \
+ -DGIMPPLUGINDIR=\""$(gimpplugindir)"\" \
+ -DGIMPDATADIR=\""$(gimpdatadir)"\" \
+ -DCC=\""$(CC)"\" \
+ -DGIMPDIR=\""$(gimpdir)"\" \
+ -DGIMP_PLUGIN_VERSION=\""$(GIMP_PLUGIN_VERSION)"\" \
+ -I$(top_srcdir) \
+ $(GTK_CFLAGS) \
+ -I$(includedir) \
+ $(xobjective_c)
diff --git a/tools/gimp-debug-tool.c b/app-tools/gimp-debug-tool.c
similarity index 100%
rename from tools/gimp-debug-tool.c
rename to app-tools/gimp-debug-tool.c
diff --git a/configure.ac b/configure.ac
index 37a72b9..73cf927 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2538,6 +2538,7 @@ app/tests/gimpdir/Makefile
app/tests/gimpdir/brushes/Makefile
app/tests/gimpdir/gradients/Makefile
app/tests/gimpdir/patterns/Makefile
+app-tools/Makefile
build/Makefile
build/windows/Makefile
build/windows/gimp.rc
diff --git a/tools/.gitignore b/tools/.gitignore
index 483502e..5e454aa 100644
--- a/tools/.gitignore
+++ b/tools/.gitignore
@@ -5,8 +5,6 @@
/kernelgen
/gimptool-2.0
/gimptool-2.0.exe
-/gimp-debug-tool-2.0
-/gimp-debug-tool-2.0.exe
/test-clipboard
/test-clipboard.exe
/invert-svg
diff --git a/tools/Makefile.am b/tools/Makefile.am
index e841daf..e61b34a 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -11,8 +11,7 @@ endif
if OS_WIN32
bin_PROGRAMS = \
- gimptool-@GIMP_TOOL_VERSION@ \
- gimp-debug-tool-@GIMP_TOOL_VERSION@ \
+ gimptool-@GIMP_TOOL_VERSION@ \
gimp-debug-resume
gimp_debug_resume_SOURCES = gimp-debug-resume.c
@@ -21,12 +20,6 @@ else
bin_PROGRAMS = gimptool-@GIMP_TOOL_VERSION@
-if PLATFORM_OSX
-bin_PROGRAMS += gimp-debug-tool-@GIMP_TOOL_VERSION@
-else
-libexec_PROGRAMS = gimp-debug-tool-@GIMP_TOOL_VERSION@
-endif
-
endif
noinst_PROGRAMS = test-clipboard
@@ -34,29 +27,6 @@ noinst_PROGRAMS = test-clipboard
EXTRA_PROGRAMS = \
kernelgen
-gimp_debug_tool_@GIMP_TOOL_VERSION@_SOURCES = \
- gimp-debug-tool.c \
- ../app/widgets/gimpcriticaldialog.h \
- ../app/widgets/gimpcriticaldialog.c \
- ../app/gimp-version.h \
- ../app/gimp-version.c
-
-gimp_debug_tool_@GIMP_TOOL_VERSION@_CPPFLAGS = \
- -DCC_VERSION=\""$(CC_VERSION)"\" \
- -I$(top_srcdir)/app \
- -I$(top_builddir)/app \
- $(AM_CPPFLAGS) \
- $(GIO_CFLAGS) \
- $(GEGL_CFLAGS) \
- $(GTK_CFLAGS) \
- $(FONTCONFIG_CFLAGS)
-
-gimp_debug_tool_@GIMP_TOOL_VERSION@_LDADD = \
- $(GIO_LIBS) \
- $(GEGL_LIBS) \
- $(GTK_LIBS) \
- $(FONTCONFIG_LIBS)
-
gimptool_@GIMP_TOOL_VERSION@_SOURCES = gimptool.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]