1 lib_LTLIBRARIES = libevview.la
4 ev-annotation-window.h \
9 ev-transition-animation.h \
10 ev-view-accessible.h \
19 ev-print-operation.h \
22 ev-view-presentation.h
26 ev-view-type-builtins.h
28 headerdir = $(includedir)/evince/$(EV_API_VERSION)/libview
29 header_DATA = $(INST_H_FILES)
31 libevview_la_SOURCES = \
32 ev-annotation-window.c \
39 ev-print-operation.c \
42 ev-transition-animation.c \
44 ev-view-accessible.c \
47 ev-view-presentation.c \
48 ev-view-type-builtins.c \
52 libevview_la_CPPFLAGS = \
53 -DDATADIR=\"$(pkgdatadir)\" \
54 -DG_LOG_DOMAIN=\"EvinceView\" \
55 -DGNOMELOCALEDIR=\"$(datadir)/locale\" \
56 -DEVINCE_COMPILATION \
58 -I$(top_srcdir)/libdocument \
62 libevview_la_CFLAGS = \
65 $(DISABLE_DEPRECATED) \
68 libevview_la_LDFLAGS = \
69 -version-info $(EV_VIEW_LT_VERSION_INFO) \
71 -export-symbols-regex "^ev_*" \
74 libevview_la_LIBADD = \
75 $(top_builddir)/libdocument/libevdocument.la \
81 ev-view-type-builtins.c \
82 ev-view-type-builtins.h
86 stamp-ev-view-type-builtins.h \
87 stamp-ev-view-type-builtins.c
89 ev-view-marshal.h: $(srcdir)/ev-view-marshal.list
90 $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=ev_view_marshal $(srcdir)/ev-view-marshal.list --header --internal > $@
92 ev-view-marshal.c: $(srcdir)/ev-view-marshal.list
93 echo '#include <config.h>' > ev-view-marshal.c
94 $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=ev_view_marshal $(srcdir)/ev-view-marshal.list --header --internal --body >> $@
96 ev-view-type-builtins.h: stamp-ev-view-type-builtins.h
98 stamp-ev-view-type-builtins.h: ev-view-type-builtins.h.template $(INST_H_SRC_FILES)
99 $(AM_V_GEN)$(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbh \
100 && (cmp -s xgen-etbh ev-view-type-builtins.h || cp xgen-etbh ev-view-type-builtins.h ) \
102 && echo timestamp > $(@F)
104 ev-view-type-builtins.c: stamp-ev-view-type-builtins.c
106 stamp-ev-view-type-builtins.c: ev-view-type-builtins.c.template $(INST_H_SRC_FILES)
107 $(AM_V_GEN)$(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbc \
108 && (cmp -s xgen-etbc ev-view-type-builtins.c || cp xgen-etbc ev-view-type-builtins.c ) \
110 && echo timestamp > $(@F)
113 ev-view-type-builtins.c.template \
114 ev-view-type-builtins.h.template \
117 # GObject Introspection
119 if ENABLE_INTROSPECTION
121 EvinceView-$(EV_API_VERSION).gir: libevview.la Makefile $(INST_H_FILES) $(filter %.c,$(libevview_la_SOURCES))
122 $(AM_V_GEN) PKG_CONFIG_PATH=$(top_builddir):$$PKG_CONFIG_PATH \
123 $(G_IR_SCANNER) -v --namespace EvinceView \
124 --add-include-path=$(top_builddir)/libdocument \
126 --nsversion=$(EV_API_VERSION) \
128 --include=GObject-2.0 \
131 --include=GdkPixbuf-2.0 \
133 --include=EvinceDocument-$(EV_API_VERSION) \
135 --libtool="$(LIBTOOL)" \
137 --pkg evince-document-$(EV_API_VERSION) \
138 --pkg evince-view-$(EV_API_VERSION) \
141 -DEVINCE_COMPILATION \
146 gir_DATA = EvinceView-$(EV_API_VERSION).gir
148 typelibsdir = $(GIRTYPELIBDIR)
149 typelibs_DATA = EvinceView-$(EV_API_VERSION).typelib
151 EXTRA_DIST += $(gir_DATA)
152 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
155 $(AM_V_GEN) LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}. $(G_IR_COMPILER) \
156 --includedir=$(srcdir) \
157 --includedir=$(top_builddir)/libdocument \
158 $(G_IR_COMPILER_OPTS) \
161 endif # ENABLE_INTROSPECTION
163 -include $(top_srcdir)/git.mk