summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2012-05-27 08:33:48 -0700
committerDan Nicholson <dbn.lists@gmail.com>2012-05-27 08:33:48 -0700
commit2c458e7c62b59db60304c4b3bf6e2d0a11a85c6d (patch)
tree9b002da940185fd6d2cd5c5a50c3bdd18afd990d /src
parent89214d98317a6f8a1a4c1efcfd84870f37495a75 (diff)
Add EvbpViewer convenience library to use in tests
Rather than build all the EvbpViewer sources twice, make a convience library for the tests to link to. This does add the unfortunate effect of relinking libevbp-viewer.la and libevbp.la every time there's a change in the source, though.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 07b58b5..e7f2e4f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,11 +1,15 @@
AM_CFLAGS = $(MOZILLA_CFLAGS) $(EVINCE_CFLAGS) $(E_CFLAGS)
-plugindir = $(libdir)/mozilla/plugins
-plugin_LTLIBRARIES = libevbp.la
-libevbp_la_LDFLAGS = -avoid-version -module
-libevbp_la_LIBADD = $(EVINCE_LIBS)
-libevbp_la_SOURCES = evbp.c \
+noinst_LTLIBRARIES = libevbp-viewer.la
+libevbp_viewer_la_LIBADD = $(EVINCE_LIBS)
+libevbp_viewer_la_SOURCES = \
evbp-viewer.h evbp-viewer.c \
evbp-mime.h evbp-mime.c \
ev-page-action.h ev-page-action.c \
ev-page-action-widget.h ev-page-action-widget.c
+
+plugindir = $(libdir)/mozilla/plugins
+plugin_LTLIBRARIES = libevbp.la
+libevbp_la_LDFLAGS = -avoid-version -module
+libevbp_la_LIBADD = libevbp-viewer.la
+libevbp_la_SOURCES = evbp.c