Commit 49129873 authored by Christian Persch's avatar Christian Persch

Renamed from evince-backend.pc.in. Renamed library to libevdocument.la.

        * configure.ac:
        * evince-document.pc.in: Renamed from evince-backend.pc.in.
        * libdocument/Makefile.am: Renamed library to libevdocument.la.
        * libview/Makefile.am:
        * shell/Makefile.am:
        * backend/*/Makefile.am: Adapt to changed library name.

        * libdocument/Makefile.am:
        * libview/Makefile.am: Change the installed headers path to match
        the directory names in SVN.

        * evince-document.h:
        * evince-view.h: Add single headers. Bug #568227.

        * libdocument/*.h:
        * libview/*.h: Add single headers guards.

        * libview/Makefile.am:
        * libdocument/Makefile.am:
        * backend/*/Makefile.am:
        * help/reference/Makefile.am: Define EVINCE_COMPILATION, so we can
        still include individual headers.

        * properties/Makefile.am:
        * properties/ev-properties-main.c:
        * properties/ev-properties-view.h:
        * thumbnailer/Makefile.am:
        * thumbnailer/evince-thumbnailer.c: Include only evince-document.h.

        * libdocument/Makefile.am:
        * libview/Makefile.am: Generate type builtins from all installed headers.
        * libdocument/ev-link-action.[ch]:
        * libdocument/ev-link-dest.[ch]:
        * libdocument/ev-transition-effect.[ch]:
        * libview/ev-view.[ch]: Remove handcoded type builtins.

        * libdocument/Makefile.am:
        * evince-document.h: Add ev-document-factory.h to the public headers.

svn path=/trunk/; revision=3381
parent b2c38760
*~
*/*~
*/*/*~
*/*/*/*~
*.orig
*.rej
*/*.orig
*/*.rej
*/*/*.orig
*/*/*.rej
*/*/*/*.orig
*/*/*/*.rej
INSTALL
Makefile.in
*/Makefile.in
*/*/Makefile.in
*/*/*/Makefile.in
*/*/*/*/Makefile.in
aclocal.m4
autom4te.cache
compile
config.guess
config.h.in
config.sub
configure
depcomp
gnome-doc-utils.make
gtk-doc.make
help/reference/*.bak
help/reference/*.stamp
help/reference/html
help/reference/tmpl/*.sgml.bak
help/reference/xml
install-sh
intltool-extract.in
intltool-merge.in
intltool-update.in
ltmain.sh
missing
mkinstalldirs
po/Makefile.in.in
2009-01-25 Christian Persch <chpe@gnome.org>
* configure.ac:
* evince-document.pc.in: Renamed from evince-backend.pc.in.
* libdocument/Makefile.am: Renamed library to libevdocument.la.
* libview/Makefile.am:
* shell/Makefile.am:
* backend/*/Makefile.am: Adapt to changed library name.
* libdocument/Makefile.am:
* libview/Makefile.am: Change the installed headers path to match
the directory names in SVN.
* evince-document.h:
* evince-view.h: Add single headers. Bug #568227.
* libdocument/*.h:
* libview/*.h: Add single headers guards.
* libview/Makefile.am:
* libdocument/Makefile.am:
* backend/*/Makefile.am:
* help/reference/Makefile.am: Define EVINCE_COMPILATION, so we can
still include individual headers.
* properties/Makefile.am:
* properties/ev-properties-main.c:
* properties/ev-properties-view.h:
* thumbnailer/Makefile.am:
* thumbnailer/evince-thumbnailer.c: Include only evince-document.h.
* libdocument/Makefile.am:
* libview/Makefile.am: Generate type builtins from all installed headers.
* libdocument/ev-link-action.[ch]:
* libdocument/ev-link-dest.[ch]:
* libdocument/ev-transition-effect.[ch]:
* libview/ev-view.[ch]: Remove handcoded type builtins.
* libdocument/Makefile.am:
* evince-document.h: Add ev-document-factory.h to the public headers.
2009-01-24 Carlos Garcia Campos <carlosgc@gnome.org> 2009-01-24 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-sidebar-page.c: * shell/ev-sidebar-page.c:
......
...@@ -14,10 +14,19 @@ if ENABLE_THUMBNAILER ...@@ -14,10 +14,19 @@ if ENABLE_THUMBNAILER
SUBDIRS += thumbnailer SUBDIRS += thumbnailer
endif endif
NULL =
pkgconfigdir = $(libdir)/pkgconfig pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = \ pkgconfig_DATA = \
evince-backend-$(EV_API_VERSION).pc \ evince-document-$(EV_API_VERSION).pc \
evince-view-$(EV_API_VERSION).pc evince-view-$(EV_API_VERSION).pc \
$(NULL)
headerdir = $(includedir)/evince/$(EV_API_VERSION)
header_DATA = \
evince-document.h \
evince-view.h \
$(NULL)
# Applications # Applications
......
...@@ -4,6 +4,7 @@ INCLUDES = \ ...@@ -4,6 +4,7 @@ INCLUDES = \
-I$(top_srcdir) \ -I$(top_srcdir) \
-I$(top_srcdir)/libdocument \ -I$(top_srcdir)/libdocument \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \ -DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(BACKEND_CFLAGS) \ $(BACKEND_CFLAGS) \
$(LIB_CFLAGS) \ $(LIB_CFLAGS) \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
...@@ -17,7 +18,7 @@ libcomicsdocument_la_SOURCES = \ ...@@ -17,7 +18,7 @@ libcomicsdocument_la_SOURCES = \
libcomicsdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS) libcomicsdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
libcomicsdocument_la_LIBADD = \ libcomicsdocument_la_LIBADD = \
$(top_builddir)/libdocument/libevbackend.la \ $(top_builddir)/libdocument/libevdocument.la \
$(BACKEND_LIBS) \ $(BACKEND_LIBS) \
$(LIB_LIBS) $(LIB_LIBS)
......
...@@ -5,6 +5,7 @@ INCLUDES = \ ...@@ -5,6 +5,7 @@ INCLUDES = \
-I$(top_srcdir)/libdocument \ -I$(top_srcdir)/libdocument \
-DGNOMEICONDIR=\""${prefix}/${DATADIRNAME}/pixmaps"\" \ -DGNOMEICONDIR=\""${prefix}/${DATADIRNAME}/pixmaps"\" \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \ -DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(BACKEND_CFLAGS) \ $(BACKEND_CFLAGS) \
$(DJVU_CFLAGS) \ $(DJVU_CFLAGS) \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
...@@ -23,7 +24,7 @@ libdjvudocument_la_SOURCES = \ ...@@ -23,7 +24,7 @@ libdjvudocument_la_SOURCES = \
libdjvudocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS) libdjvudocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
libdjvudocument_la_LIBADD = \ libdjvudocument_la_LIBADD = \
$(top_builddir)/libdocument/libevbackend.la \ $(top_builddir)/libdocument/libevdocument.la \
$(BACKEND_LIBS) \ $(BACKEND_LIBS) \
$(DJVU_LIBS) $(DJVU_LIBS)
......
...@@ -7,6 +7,7 @@ INCLUDES = \ ...@@ -7,6 +7,7 @@ INCLUDES = \
-I$(top_srcdir)/libdocument \ -I$(top_srcdir)/libdocument \
-I$(srcdir)/mdvi-lib \ -I$(srcdir)/mdvi-lib \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \ -DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
$(BACKEND_CFLAGS) \ $(BACKEND_CFLAGS) \
$(SPECTRE_CFLAGS) \ $(SPECTRE_CFLAGS) \
...@@ -26,7 +27,7 @@ libdvidocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS) ...@@ -26,7 +27,7 @@ libdvidocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
libdvidocument_la_LIBADD = \ libdvidocument_la_LIBADD = \
mdvi-lib/libmdvi.la \ mdvi-lib/libmdvi.la \
-lkpathsea \ -lkpathsea \
$(top_builddir)/libdocument/libevbackend.la \ $(top_builddir)/libdocument/libevdocument.la \
$(BACKEND_LIBS) \ $(BACKEND_LIBS) \
$(SPECTRE_LIBS) $(SPECTRE_LIBS)
......
...@@ -5,6 +5,7 @@ INCLUDES = \ ...@@ -5,6 +5,7 @@ INCLUDES = \
-I$(top_srcdir)/libdocument \ -I$(top_srcdir)/libdocument \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \ -DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DDATADIR=\""$(datadir)"\" \ -DDATADIR=\""$(datadir)"\" \
-DEVINCE_COMPILATION \
$(BACKEND_CFLAGS) \ $(BACKEND_CFLAGS) \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
$(DISABLE_DEPRECATED) $(DISABLE_DEPRECATED)
...@@ -43,7 +44,7 @@ IMPOSTER_RENDER_INCLUDE_FILES = \ ...@@ -43,7 +44,7 @@ IMPOSTER_RENDER_INCLUDE_FILES = \
libimpressdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS) libimpressdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
libimpressdocument_la_LIBADD = \ libimpressdocument_la_LIBADD = \
$(top_builddir)/libdocument/libevbackend.la \ $(top_builddir)/libdocument/libevdocument.la \
$(BACKEND_LIBS) $(BACKEND_LIBS)
backend_in_files = impressdocument.evince-backend.in backend_in_files = impressdocument.evince-backend.in
......
...@@ -4,6 +4,7 @@ INCLUDES = \ ...@@ -4,6 +4,7 @@ INCLUDES = \
-I$(top_srcdir) \ -I$(top_srcdir) \
-I$(top_srcdir)/libdocument \ -I$(top_srcdir)/libdocument \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \ -DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(BACKEND_CFLAGS) \ $(BACKEND_CFLAGS) \
$(POPPLER_CFLAGS) \ $(POPPLER_CFLAGS) \
$(WARN_CXXFLAGS) \ $(WARN_CXXFLAGS) \
...@@ -17,7 +18,7 @@ libpdfdocument_la_SOURCES = \ ...@@ -17,7 +18,7 @@ libpdfdocument_la_SOURCES = \
libpdfdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS) libpdfdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
libpdfdocument_la_LIBADD = \ libpdfdocument_la_LIBADD = \
$(top_builddir)/libdocument/libevbackend.la \ $(top_builddir)/libdocument/libevdocument.la \
$(BACKEND_LIBS) \ $(BACKEND_LIBS) \
$(POPPLER_LIBS) \ $(POPPLER_LIBS) \
$(CAIRO_PDF_LIBS) \ $(CAIRO_PDF_LIBS) \
...@@ -31,4 +32,4 @@ backend_DATA = $(backend_in_files:.evince-backend.in=.evince-backend) ...@@ -31,4 +32,4 @@ backend_DATA = $(backend_in_files:.evince-backend.in=.evince-backend)
EXTRA_DIST = $(backend_in_files) EXTRA_DIST = $(backend_in_files)
CLEANFILES = $(backend_DATA) CLEANFILES = $(backend_DATA)
\ No newline at end of file
...@@ -4,6 +4,7 @@ INCLUDES = \ ...@@ -4,6 +4,7 @@ INCLUDES = \
-I$(top_srcdir) \ -I$(top_srcdir) \
-I$(top_srcdir)/libdocument \ -I$(top_srcdir)/libdocument \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \ -DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(BACKEND_CFLAGS) \ $(BACKEND_CFLAGS) \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
$(DISABLE_DEPRECATED) $(DISABLE_DEPRECATED)
...@@ -16,7 +17,7 @@ libpixbufdocument_la_SOURCES = \ ...@@ -16,7 +17,7 @@ libpixbufdocument_la_SOURCES = \
libpixbufdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS) libpixbufdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
libpixbufdocument_la_LIBADD = \ libpixbufdocument_la_LIBADD = \
$(top_builddir)/libdocument/libevbackend.la \ $(top_builddir)/libdocument/libevdocument.la \
$(BACKEND_LIBS) $(BACKEND_LIBS)
backend_in_files = pixbufdocument.evince-backend.in backend_in_files = pixbufdocument.evince-backend.in
......
...@@ -4,6 +4,7 @@ INCLUDES = \ ...@@ -4,6 +4,7 @@ INCLUDES = \
-I$(top_srcdir) \ -I$(top_srcdir) \
-I$(top_srcdir)/libdocument \ -I$(top_srcdir)/libdocument \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \ -DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(BACKEND_CFLAGS) \ $(BACKEND_CFLAGS) \
$(SPECTRE_CFLAGS) \ $(SPECTRE_CFLAGS) \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
...@@ -17,7 +18,7 @@ libpsdocument_la_SOURCES = \ ...@@ -17,7 +18,7 @@ libpsdocument_la_SOURCES = \
libpsdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS) libpsdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
libpsdocument_la_LIBADD = \ libpsdocument_la_LIBADD = \
$(top_builddir)/libdocument/libevbackend.la \ $(top_builddir)/libdocument/libevdocument.la \
$(BACKEND_LIBS) \ $(BACKEND_LIBS) \
$(SPECTRE_LIBS) $(SPECTRE_LIBS)
...@@ -29,4 +30,4 @@ backend_DATA = $(backend_in_files:.evince-backend.in=.evince-backend) ...@@ -29,4 +30,4 @@ backend_DATA = $(backend_in_files:.evince-backend.in=.evince-backend)
EXTRA_DIST = $(backend_in_files) EXTRA_DIST = $(backend_in_files)
CLEANFILES = $(backend_DATA) CLEANFILES = $(backend_DATA)
\ No newline at end of file
...@@ -4,6 +4,7 @@ INCLUDES = \ ...@@ -4,6 +4,7 @@ INCLUDES = \
-I$(top_srcdir) \ -I$(top_srcdir) \
-I$(top_srcdir)/libdocument \ -I$(top_srcdir)/libdocument \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \ -DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEVINCE_COMPILATION \
$(BACKEND_CFLAGS) \ $(BACKEND_CFLAGS) \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
$(DISABLE_DEPRECATED) $(DISABLE_DEPRECATED)
...@@ -18,7 +19,7 @@ libtiffdocument_la_SOURCES = \ ...@@ -18,7 +19,7 @@ libtiffdocument_la_SOURCES = \
libtiffdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS) libtiffdocument_la_LDFLAGS = $(BACKEND_LIBTOOL_FLAGS)
libtiffdocument_la_LIBADD = \ libtiffdocument_la_LIBADD = \
$(top_builddir)/libdocument/libevbackend.la \ $(top_builddir)/libdocument/libevdocument.la \
-ltiff -ltiff
backend_in_files = tiffdocument.evince-backend.in backend_in_files = tiffdocument.evince-backend.in
......
...@@ -21,11 +21,11 @@ m4_define([ev_api_version], [2.25]) ...@@ -21,11 +21,11 @@ m4_define([ev_api_version], [2.25])
# - If the interface is the same as the previous version, change to C:R+1:A # - If the interface is the same as the previous version, change to C:R+1:A
# Libtool version of the backend library # Libtool version of the backend library
m4_define([ev_backend_lt_current],[1]) m4_define([ev_document_lt_current],[1])
m4_define([ev_backend_lt_revision],[0]) m4_define([ev_document_lt_revision],[0])
m4_define([ev_backend_lt_age],[0]) m4_define([ev_document_lt_age],[0])
m4_define([ev_backend_lt_version_info],[ev_backend_lt_current:ev_backend_lt_revision:ev_backend_lt_age]) m4_define([ev_document_lt_version_info],[ev_document_lt_current:ev_document_lt_revision:ev_document_lt_age])
m4_define([ev_backend_lt_current_minus_age],[m4_eval(ev_backend_lt_current - ev_backend_lt_age)]) m4_define([ev_document_lt_current_minus_age],[m4_eval(ev_document_lt_current - ev_document_lt_age)])
# Libtool version of the view library # Libtool version of the view library
m4_define([ev_view_lt_current],[1]) m4_define([ev_view_lt_current],[1])
...@@ -49,6 +49,7 @@ AM_PROG_LIBTOOL ...@@ -49,6 +49,7 @@ AM_PROG_LIBTOOL
AC_ISC_POSIX AC_ISC_POSIX
AC_PROG_CC AC_PROG_CC
AM_PROG_CC_STDC AM_PROG_CC_STDC
AM_PROG_CC_C_O
AC_PROG_CXX AC_PROG_CXX
AC_STDC_HEADERS AC_STDC_HEADERS
IT_PROG_INTLTOOL([0.35.0]) IT_PROG_INTLTOOL([0.35.0])
...@@ -456,8 +457,8 @@ AC_SUBST([EV_MICRO_VERSION],[ev_micro_version]) ...@@ -456,8 +457,8 @@ AC_SUBST([EV_MICRO_VERSION],[ev_micro_version])
AC_SUBST([EV_API_VERSION],[ev_api_version]) AC_SUBST([EV_API_VERSION],[ev_api_version])
AC_SUBST([EV_BACKEND_LT_VERSION_INFO],[ev_backend_lt_version_info]) AC_SUBST([EV_DOCUMENT_LT_VERSION_INFO],[ev_document_lt_version_info])
AC_SUBST([EV_BACKEND_LT_CURRENT_MINUS_AGE],[ev_backend_lt_current_minus_age]) AC_SUBST([EV_DOCUMENT_LT_CURRENT_MINUS_AGE],[ev_document_lt_current_minus_age])
AC_SUBST([EV_VIEW_LT_VERSION_INFO],[ev_view_lt_version_info]) AC_SUBST([EV_VIEW_LT_VERSION_INFO],[ev_view_lt_version_info])
AC_SUBST([EV_VIEW_LT_CURRENT_MINUS_AGE],[ev_view_lt_current_minus_age]) AC_SUBST([EV_VIEW_LT_CURRENT_MINUS_AGE],[ev_view_lt_current_minus_age])
...@@ -515,7 +516,7 @@ test/Makefile ...@@ -515,7 +516,7 @@ test/Makefile
thumbnailer/Makefile thumbnailer/Makefile
]) ])
AC_CONFIG_FILES(evince-backend-[]ev_api_version[].pc:evince-backend.pc.in) AC_CONFIG_FILES(evince-document-[]ev_api_version[].pc:evince-document.pc.in)
AC_CONFIG_FILES(evince-view-[]ev_api_version[].pc:evince-view.pc.in) AC_CONFIG_FILES(evince-view-[]ev_api_version[].pc:evince-view.pc.in)
AC_OUTPUT AC_OUTPUT
......
...@@ -7,4 +7,4 @@ libevmountoperation_la_SOURCES = \ ...@@ -7,4 +7,4 @@ libevmountoperation_la_SOURCES = \
libevmountoperation_la_CFLAGS = \ libevmountoperation_la_CFLAGS = \
$(SHELL_CORE_CFLAGS) \ $(SHELL_CORE_CFLAGS) \
$(WARNING_CFLAGS) \ $(WARNING_CFLAGS) \
$(DISABLE_DEPRECATED) $(DISABLE_DEPRECATED)
\ No newline at end of file
...@@ -33,4 +33,4 @@ gimpwidgetsmarshal.c: gimpwidgetsmarshal.h ...@@ -33,4 +33,4 @@ gimpwidgetsmarshal.c: gimpwidgetsmarshal.h
gen_sources = xgen-wmh xgen-wmc $(libgimpcellrenderertoggle_la_built_sources) gen_sources = xgen-wmh xgen-wmc $(libgimpcellrenderertoggle_la_built_sources)
CLEANFILES = $(gen_sources) CLEANFILES = $(gen_sources)
EXTRA_DIST = $(libgimpcellrenderertoggle_la_extra_sources) EXTRA_DIST = $(libgimpcellrenderertoggle_la_extra_sources)
\ No newline at end of file
/*
* Copyright © 2009 Christian Persch
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation; either version 2.1 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
* General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02110-1301 USA
*/
#ifndef EVINCE_DOCUMENT_H
#define EVINCE_DOCUMENT_H
#define __EV_EVINCE_DOCUMENT_H_INSIDE__
#include <libdocument/ev-async-renderer.h>
#include <libdocument/ev-attachment.h>
#include <libdocument/ev-backends-manager.h>
#include <libdocument/ev-document-factory.h>
#include <libdocument/ev-document-find.h>
#include <libdocument/ev-document-fonts.h>
#include <libdocument/ev-document-forms.h>
#include <libdocument/ev-document.h>
#include <libdocument/ev-document-images.h>
#include <libdocument/ev-document-info.h>
#include <libdocument/ev-document-layers.h>
#include <libdocument/ev-document-links.h>
#include <libdocument/ev-document-misc.h>
#include <libdocument/ev-document-security.h>
#include <libdocument/ev-document-thumbnails.h>
#include <libdocument/ev-document-transition.h>
#include <libdocument/ev-document-type-builtins.h>
#include <libdocument/ev-file-exporter.h>
#include <libdocument/ev-file-helpers.h>
#include <libdocument/ev-form-field.h>
#include <libdocument/ev-image.h>
#include <libdocument/ev-layer.h>
#include <libdocument/ev-link-action.h>
#include <libdocument/ev-link-dest.h>
#include <libdocument/ev-link.h>
#include <libdocument/ev-page.h>
#include <libdocument/ev-render-context.h>
#include <libdocument/ev-selection.h>
#include <libdocument/ev-transition-effect.h>
#include <libdocument/ev-version.h>
#undef __EV_EVINCE_DOCUMENT_H_INSIDE__
#endif /* !EVINCE_DOCUMENT_H */
...@@ -3,9 +3,9 @@ exec_prefix=@exec_prefix@ ...@@ -3,9 +3,9 @@ exec_prefix=@exec_prefix@
libdir=@libdir@ libdir=@libdir@
includedir=@includedir@/evince/@EV_API_VERSION@ includedir=@includedir@/evince/@EV_API_VERSION@
Name: Evince Backend Name: Evince Document
Description: GNOME document viewer backend library Description: GNOME document viewer backend library
Version: @VERSION@ Version: @VERSION@
Requires: gio-2.0 >= @GLIB_REQUIRED@ gtk+-2.0 >= @GTK_REQUIRED@ Requires: gio-2.0 >= @GLIB_REQUIRED@ gtk+-2.0 >= @GTK_REQUIRED@
Libs: -L${libdir} -levbackend Libs: -L${libdir} -levdocument
Cflags: -I${includedir} Cflags: -I${includedir}
/*
* Copyright © 2009 Christian Persch
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation; either version 2.1 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
* General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02110-1301 USA
*/
#ifndef EVINCE_VIEW_H
#define EVINCE_VIEW_H
#define __EV_EVINCE_VIEW_H_INSIDE__
#include <libview/ev-job-scheduler.h>
#include <libview/ev-jobs.h>
#include <libview/ev-page-cache.h>
#include <libview/ev-view.h>
#include <libview/ev-view-type-builtins.h>
#undef __EV_EVINCE_VIEW_H_INSIDE__
#endif /* !EVINCE_VIEW_H */
...@@ -6,6 +6,6 @@ includedir=@includedir@/evince/@EV_API_VERSION@ ...@@ -6,6 +6,6 @@ includedir=@includedir@/evince/@EV_API_VERSION@
Name: Evince View Name: Evince View
Description: GNOME document viewer view library Description: GNOME document viewer view library
Version: @VERSION@ Version: @VERSION@
Requires: evince-backend-@EV_API_VERSION@ = @VERSION@ gthread-2.0 Requires: evince-document-@EV_API_VERSION@ = @VERSION@ gthread-2.0
Libs: -L${libdir} -levview Libs: -L${libdir} -levview
Cflags: -I${includedir} Cflags: -I${includedir}
...@@ -73,6 +73,8 @@ expand_content_files= ...@@ -73,6 +73,8 @@ expand_content_files=
# e.g. INCLUDES=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS) # e.g. INCLUDES=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib) # e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
INCLUDES= \ INCLUDES= \
-I$(top_srcdir) \
-I$(top_builddir) \
-I$(top_srcdir)/shell \ -I$(top_srcdir)/shell \
-DDATADIR=\"$(pkgdatadir)\" \ -DDATADIR=\"$(pkgdatadir)\" \
-DGNOMEDATADIR=\"$(datadir)\" \ -DGNOMEDATADIR=\"$(datadir)\" \
...@@ -82,10 +84,11 @@ INCLUDES= \ ...@@ -82,10 +84,11 @@ INCLUDES= \
-I$(top_srcdir)/libdocument \ -I$(top_srcdir)/libdocument \
-I$(top_builddir)/libdocument \ -I$(top_builddir)/libdocument \
-I$(top_srcdir)/libview \ -I$(top_srcdir)/libview \
-I$(top_builddir)/libview \ -I$(top_builddir)/libview \
-I$(top_srcdir)/properties \ -I$(top_srcdir)/properties \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \ -DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DGNOMEICONDIR=\""$(datadir)/pixmaps"\" \ -DGNOMEICONDIR=\""$(datadir)/pixmaps"\" \
-DEVINCE_COMPILATION \
$(SHELL_CFLAGS) \ $(SHELL_CFLAGS) \
$(WARN_CFLAGS) \ $(WARN_CFLAGS) \
$(DISABLE_DEPRECATED) \ $(DISABLE_DEPRECATED) \
...@@ -101,7 +104,7 @@ GTKDOC_LIBS= \ ...@@ -101,7 +104,7 @@ GTKDOC_LIBS= \
$(top_builddir)/cut-n-paste/gimpcellrenderertoggle/libgimpcellrenderertoggle.la \ $(top_builddir)/cut-n-paste/gimpcellrenderertoggle/libgimpcellrenderertoggle.la \
$(top_builddir)/cut-n-paste/smclient/libsmclient.la \ $(top_builddir)/cut-n-paste/smclient/libsmclient.la \
$(top_builddir)/properties/libevproperties.la \ $(top_builddir)/properties/libevproperties.la \
$(top_builddir)/libdocument/libevbackend.la \ $(top_builddir)/libdocument/libevdocument.la \
$(top_builddir)/libview/libevview.la \ $(top_builddir)/libview/libevview.la \
$(SHELL_LIBS) \ $(SHELL_LIBS) \
$(GNOME_PRINT_LIBS) \ $(GNOME_PRINT_LIBS) \
......
INCLUDES= \ lib_LTLIBRARIES = libevdocument.la
-DG_LOG_DOMAIN=\"EvDocument\" \
-DEVINCE_UIDIR=\"$(pkgdatadir)\" \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEV_BACKENDSDIR=\"$(libdir)/evince/backends\" \
$(LIBDOCUMENT_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED)
lib_LTLIBRARIES = libevbackend.la
libevbackend_la_LDFLAGS = \
-version-info $(EV_BACKEND_LT_VERSION_INFO) \
-export-symbols-regex "^ev_*" \
$(AM_LDFLAGS)
libevbackend_la_LIBADD = $(LIBDOCUMENT_LIBS)
NOINST_H_FILES = \ NOINST_H_FILES = \
ev-debug.h \ ev-debug.h \
ev-document-factory.h \
ev-module.h ev-module.h
INST_H_FILES = \ INST_H_FILES = \
ev-async-renderer.h \ ev-async-renderer.h \
ev-attachment.h \ ev-attachment.h \
ev-backends-manager.h \ ev-backends-manager.h \
ev-document-factory.h \
ev-document-find.h \ ev-document-find.h \
ev-document-fonts.h \ ev-document-fonts.h \
ev-document-forms.h \ ev-document-forms.h \
...@@ -52,10 +36,10 @@ INST_H_FILES = \ ...@@ -52,10 +36,10 @@ INST_H_FILES = \
ev-transition-effect.h \ ev-transition-effect.h \
ev-version.h ev-version.h
headerdir = $(includedir)/evince/$(EV_API_VERSION)/ev-backend headerdir = $(includedir)/evince/$(EV_API_VERSION)/libdocument
header_DATA = $(INST_H_FILES) header_DATA = $(INST_H_FILES)
libevbackend_la_SOURCES= \ libevdocument_la_SOURCES= \
ev-async-renderer.c \ ev-async-renderer.c \
ev-attachment.c \ ev-attachment.c \
ev-backends-manager.c \ ev-backends-manager.c \
...@@ -89,6 +73,27 @@ libevbackend_la_SOURCES= \ ...@@ -89,6 +73,27 @@ libevbackend_la_SOURCES= \
$(NOINST_H_FILES) \ $(NOINST_H_FILES) \
$(INST_H_FILES) $(INST_H_FILES)
libevdocument_la_CPPFLAGS = \
-DG_LOG_DOMAIN=\"EvDocument\" \
-DEVINCE_UIDIR=\"$(pkgdatadir)\" \
-DGNOMELOCALEDIR=\"$(datadir)/locale\" \
-DEV_BACKENDSDIR=\"$(libdir)/evince/backends\" \
-DEVINCE_COMPILATION \
$(AM_CPPFLAGS)
libevdocument_la_CFLAGS = \
$(LIBDOCUMENT_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED) \
$(AM_CFLAGS)
libevdocument_la_LDFLAGS = \
-version-info $(EV_DOCUMENT_LT_VERSION_INFO) \
-export-symbols-regex "^ev_*" \
$(AM_LDFLAGS)
libevdocument_la_LIBADD = $(LIBDOCUMENT_LIBS)
BUILT_SOURCES = \ BUILT_SOURCES = \
ev-document-type-builtins.c \ ev-document-type-builtins.c \
ev-document-type-builtins.h ev-document-type-builtins.h
...@@ -98,13 +103,13 @@ CLEANFILES = $(BUILT_SOURCES) stamp-ev-document-type-builtins.h ...@@ -98,13 +103,13 @@ CLEANFILES = $(BUILT_SOURCES) stamp-ev-document-type-builtins.h
ev-document-type-builtins.h: stamp-ev-document-type-builtins.h ev-document-type-builtins.h: stamp-ev-document-type-builtins.h
@true @true
stamp-ev-document-type-builtins.h: ev-document-type-builtins.h.template ev-document-info.h stamp-ev-document-type-builtins.h: ev-document-type-builtins.h.template $(INST_H_FILES)
$(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbh \ $(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbh \
&& (cmp -s xgen-etbh ev-document-type-builtins.h || cp xgen-etbh ev-document-type-builtins.h ) \ && (cmp -s xgen-etbh ev-document-type-builtins.h || cp xgen-etbh ev-document-type-builtins.h ) \
&& rm -f xgen-etbh \ && rm -f xgen-etbh \
&& echo timestamp > $(@F) && echo timestamp > $(@F)
ev-document-type-builtins.c: ev-document-type-builtins.c.template ev-document-info.h ev-document-type-builtins.c: ev-document-type-builtins.c.template $(INST_H_FILES)
$(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbc \ $(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbc \
&& (cmp -s xgen-etbc ev-document-type-builtins.c || cp xgen-etbc ev-document-type-builtins.c ) \ && (cmp -s xgen-etbc ev-document-type-builtins.c || cp xgen-etbc ev-document-type-builtins.c ) \
&& rm -f xgen-etbc && rm -f xgen-etbc
...@@ -112,4 +117,3 @@ ev-document-type-builtins.c: ev-document-type-builtins.c.template ev-document-in ...@@ -112,4 +117,3 @@ ev-document-type-builtins.c: ev-document-type-builtins.c.template ev-document-in
EXTRA_DIST = \ EXTRA_DIST = \
ev-document-type-builtins.c.template \ ev-document-type-builtins.c.template \
ev-document-type-builtins.h.template ev-document-type-builtins.h.template
...@@ -18,6 +18,10 @@ ...@@ -18,6 +18,10 @@
* *
*/ */
#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
#error "Only <evince-document.h> can be included directly."
#endif
#ifndef EV_ASYNC_RENDERER_H #ifndef EV_ASYNC_RENDERER_H
#define EV_ASYNC_RENDERER_H #define EV_ASYNC_RENDERER_H
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*/ */