mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 03:52:33 +00:00
app: Create libapp.a for convenient test case linking
Create libapp.a for convenient test case linking and link the existing tests against that.
This commit is contained in:
parent
84b02fb978
commit
3e6f6088ee
|
@ -35,13 +35,17 @@ SUBDIRS = \
|
|||
gui \
|
||||
tests
|
||||
|
||||
# Put the GIMP core in a lib so we can conveniently link against that
|
||||
# in test cases
|
||||
noinst_LIBRARIES = libapp.a
|
||||
|
||||
if ENABLE_GIMP_CONSOLE
|
||||
bin_PROGRAMS = gimp-2.7 gimp-console-2.7
|
||||
else
|
||||
bin_PROGRAMS = gimp-2.7
|
||||
endif
|
||||
|
||||
app_sources = \
|
||||
libapp_sources = \
|
||||
about.h \
|
||||
app.c \
|
||||
app.h \
|
||||
|
@ -49,7 +53,6 @@ app_sources = \
|
|||
batch.h \
|
||||
errors.c \
|
||||
errors.h \
|
||||
main.c \
|
||||
sanity.c \
|
||||
sanity.h \
|
||||
signals.c \
|
||||
|
@ -66,7 +69,9 @@ app_sources = \
|
|||
gimp-log.h \
|
||||
gimp-intl.h
|
||||
|
||||
gimp_2_7_SOURCES = $(app_sources)
|
||||
libapp_a_SOURCES = $(libapp_sources)
|
||||
|
||||
gimp_2_7_SOURCES = $(libapp_sources) main.c
|
||||
|
||||
|
||||
EXTRA_DIST = \
|
||||
|
@ -187,7 +192,7 @@ gimp_2_7_LDADD = \
|
|||
|
||||
if ENABLE_GIMP_CONSOLE
|
||||
|
||||
gimp_console_2_7_SOURCES = $(app_sources)
|
||||
gimp_console_2_7_SOURCES = $(libapp_sources) main.c
|
||||
|
||||
gimp_console_2_7_CPPFLAGS = \
|
||||
$(AM_CPPFLAGS) \
|
||||
|
|
|
@ -28,6 +28,7 @@ AM_CPPFLAGS = \
|
|||
# comments about it in app/Makefile.am
|
||||
AM_LDFLAGS = \
|
||||
-u $(SYMPREFIX)xcf_init \
|
||||
-u $(SYMPREFIX)base_init \
|
||||
-u $(SYMPREFIX)internal_procs_init \
|
||||
-u $(SYMPREFIX)gimp_plug_in_manager_restore \
|
||||
-u $(SYMPREFIX)gimp_pdb_compat_param_spec \
|
||||
|
@ -56,9 +57,7 @@ LDADD = \
|
|||
$(top_builddir)/app/display/libappdisplay.a \
|
||||
$(top_builddir)/app/paint-funcs/libapppaint-funcs.a \
|
||||
$(top_builddir)/app/base/libappbase.a \
|
||||
$(top_builddir)/app/gimp-log.o \
|
||||
$(top_builddir)/app/tests.o \
|
||||
$(top_builddir)/app/units.o \
|
||||
$(top_builddir)/app/libapp.a \
|
||||
$(libgimpconfig) \
|
||||
$(libgimpmath) \
|
||||
$(libgimpthumb) \
|
||||
|
|
Loading…
Reference in a new issue