mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
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.
This commit is contained in:
parent
646a56fe8a
commit
5893d2dc73
7 changed files with 80 additions and 33 deletions
|
@ -32,6 +32,7 @@ SUBDIRS = \
|
||||||
libgimpwidgets \
|
libgimpwidgets \
|
||||||
libgimp \
|
libgimp \
|
||||||
app \
|
app \
|
||||||
|
app-tools \
|
||||||
$(GIMP_MODULES) \
|
$(GIMP_MODULES) \
|
||||||
$(GIMP_PLUGINS) \
|
$(GIMP_PLUGINS) \
|
||||||
etc \
|
etc \
|
||||||
|
|
6
app-tools/.gitignore
vendored
Normal file
6
app-tools/.gitignore
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
/Makefile
|
||||||
|
/Makefile.in
|
||||||
|
/.deps
|
||||||
|
/.libs
|
||||||
|
/gimp-debug-tool-2.0
|
||||||
|
/gimp-debug-tool-2.0.exe
|
71
app-tools/Makefile.am
Normal file
71
app-tools/Makefile.am
Normal file
|
@ -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)
|
|
@ -2538,6 +2538,7 @@ app/tests/gimpdir/Makefile
|
||||||
app/tests/gimpdir/brushes/Makefile
|
app/tests/gimpdir/brushes/Makefile
|
||||||
app/tests/gimpdir/gradients/Makefile
|
app/tests/gimpdir/gradients/Makefile
|
||||||
app/tests/gimpdir/patterns/Makefile
|
app/tests/gimpdir/patterns/Makefile
|
||||||
|
app-tools/Makefile
|
||||||
build/Makefile
|
build/Makefile
|
||||||
build/windows/Makefile
|
build/windows/Makefile
|
||||||
build/windows/gimp.rc
|
build/windows/gimp.rc
|
||||||
|
|
2
tools/.gitignore
vendored
2
tools/.gitignore
vendored
|
@ -5,8 +5,6 @@
|
||||||
/kernelgen
|
/kernelgen
|
||||||
/gimptool-2.0
|
/gimptool-2.0
|
||||||
/gimptool-2.0.exe
|
/gimptool-2.0.exe
|
||||||
/gimp-debug-tool-2.0
|
|
||||||
/gimp-debug-tool-2.0.exe
|
|
||||||
/test-clipboard
|
/test-clipboard
|
||||||
/test-clipboard.exe
|
/test-clipboard.exe
|
||||||
/invert-svg
|
/invert-svg
|
||||||
|
|
|
@ -11,8 +11,7 @@ endif
|
||||||
if OS_WIN32
|
if OS_WIN32
|
||||||
|
|
||||||
bin_PROGRAMS = \
|
bin_PROGRAMS = \
|
||||||
gimptool-@GIMP_TOOL_VERSION@ \
|
gimptool-@GIMP_TOOL_VERSION@ \
|
||||||
gimp-debug-tool-@GIMP_TOOL_VERSION@ \
|
|
||||||
gimp-debug-resume
|
gimp-debug-resume
|
||||||
|
|
||||||
gimp_debug_resume_SOURCES = gimp-debug-resume.c
|
gimp_debug_resume_SOURCES = gimp-debug-resume.c
|
||||||
|
@ -21,12 +20,6 @@ else
|
||||||
|
|
||||||
bin_PROGRAMS = gimptool-@GIMP_TOOL_VERSION@
|
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
|
endif
|
||||||
|
|
||||||
noinst_PROGRAMS = test-clipboard
|
noinst_PROGRAMS = test-clipboard
|
||||||
|
@ -34,29 +27,6 @@ noinst_PROGRAMS = test-clipboard
|
||||||
EXTRA_PROGRAMS = \
|
EXTRA_PROGRAMS = \
|
||||||
kernelgen
|
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
|
gimptool_@GIMP_TOOL_VERSION@_SOURCES = gimptool.c
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue