]> www.fi.muni.cz Git - evince.git/blob - libview/Makefile.am
Merge branch 'unmessify-my-pdfs' - bgo#627443 - Add an 'Open containing folder' command
[evince.git] / libview / Makefile.am
1 lib_LTLIBRARIES = libevview3.la
2
3 NOINST_H_FILES =                        \
4         ev-annotation-window.h          \
5         ev-loading-window.h             \
6         ev-page-cache.h                 \
7         ev-pixbuf-cache.h               \
8         ev-timeline.h                   \
9         ev-transition-animation.h       \
10         ev-view-accessible.h            \
11         ev-view-cursor.h                \
12         ev-view-marshal.h               \
13         ev-view-private.h
14
15 INST_H_SRC_FILES =                      \
16         ev-document-model.h             \
17         ev-jobs.h                       \
18         ev-job-scheduler.h              \
19         ev-print-operation.h            \
20         ev-stock-icons.h                \
21         ev-view.h                       \
22         ev-view-presentation.h
23
24 INST_H_FILES =                          \
25         $(INST_H_SRC_FILES)             \
26         ev-view-type-builtins.h
27
28 headerdir = $(includedir)/evince/$(EV_API_VERSION)/libview
29 header_DATA = $(INST_H_FILES)
30
31 libevview3_la_SOURCES =                 \
32         ev-annotation-window.c          \
33         ev-document-model.c             \
34         ev-loading-window.c             \
35         ev-jobs.c                       \
36         ev-job-scheduler.c              \
37         ev-page-cache.c                 \
38         ev-pixbuf-cache.c               \
39         ev-print-operation.c            \
40         ev-stock-icons.c                \
41         ev-timeline.c                   \
42         ev-transition-animation.c       \
43         ev-view.c                       \
44         ev-view-accessible.c            \
45         ev-view-marshal.c               \
46         ev-view-cursor.c                \
47         ev-view-presentation.c          \
48         ev-view-type-builtins.c         \
49         $(NOINST_H_FILES)               \
50         $(INST_H_FILES)
51
52 libevview3_la_CPPFLAGS = \
53         -DEVINCEDATADIR=\"$(pkgdatadir)\"       \
54         -DG_LOG_DOMAIN=\"EvinceView\"           \
55         -DGNOMELOCALEDIR=\"$(datadir)/locale\"  \
56         -DEVINCE_COMPILATION                    \
57         -I$(top_srcdir)                         \
58         -I$(top_srcdir)/libdocument             \
59         -I$(top_builddir)                       \
60         $(AM_CPPFLAGS)
61
62 libevview3_la_CFLAGS = \
63         $(LIBVIEW_CFLAGS)       \
64         $(WARN_CFLAGS)          \
65         $(DISABLE_DEPRECATED)   \
66         $(AM_CFLAGS)
67
68 libevview3_la_LDFLAGS = \
69         -version-info $(EV_VIEW_LT_VERSION_INFO)        \
70         -no-undefined   \
71         -export-symbols-regex "^ev_*"   \
72         $(AM_LDFLAGS)
73
74 libevview3_la_LIBADD = \
75         $(top_builddir)/libdocument/libevdocument3.la \
76         $(LIBVIEW_LIBS)
77
78 BUILT_SOURCES =                         \
79         ev-view-marshal.h               \
80         ev-view-marshal.c               \
81         ev-view-type-builtins.c         \
82         ev-view-type-builtins.h
83
84 CLEANFILES =                            \
85         $(BUILT_SOURCES)                \
86         stamp-ev-view-type-builtins.h   \
87         stamp-ev-view-type-builtins.c
88
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 > $@
91
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 >> $@
95
96 ev-view-type-builtins.h: stamp-ev-view-type-builtins.h
97         @true
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 ) \
101         && rm -f xgen-etbh \
102         && echo timestamp > $(@F)
103
104 ev-view-type-builtins.c: stamp-ev-view-type-builtins.c
105         @true
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 ) \
109         && rm -f xgen-etbc \
110         && echo timestamp > $(@F)
111
112 EXTRA_DIST = \
113         ev-view-type-builtins.c.template  \
114         ev-view-type-builtins.h.template  \
115         ev-view-marshal.list
116
117 # GObject Introspection
118
119 if ENABLE_INTROSPECTION
120
121 EvinceView-$(EV_API_VERSION).gir: libevview3.la Makefile $(INST_H_FILES) $(filter %.c,$(libevview3_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 \
125         --strip-prefix=Ev \
126         --nsversion=$(EV_API_VERSION) \
127         --include=GLib-2.0 \
128         --include=GObject-2.0 \
129         --include=Gio-2.0 \
130         --include=Gdk-2.0 \
131         --include=GdkPixbuf-2.0 \
132         --include=Gtk-2.0 \
133         --include=EvinceDocument-$(EV_API_VERSION) \
134         --library=evview \
135         --libtool="$(LIBTOOL)" \
136         --output $@ \
137         --pkg evince-document-$(EV_API_VERSION) \
138         --pkg evince-view-$(EV_API_VERSION) \
139         -I$(top_srcdir) \
140         -I$(top_builddir) \
141         -DEVINCE_COMPILATION \
142         $(filter %.h,$^) \
143         $(filter %.c,$^)
144
145 girdir = $(GIRDIR)
146 gir_DATA = EvinceView-$(EV_API_VERSION).gir
147
148 typelibsdir = $(GIRTYPELIBDIR)
149 typelibs_DATA = EvinceView-$(EV_API_VERSION).typelib
150
151 EXTRA_DIST += $(gir_DATA)
152 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
153
154 %.typelib: %.gir
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) \
159         $< -o $@
160
161 endif # ENABLE_INTROSPECTION
162
163 -include $(top_srcdir)/git.mk