blob: 4be99e6124d130a2742a6969a31519d73d94c844 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
lib_LTLIBRARIES = libatrilview.la
NOINST_H_FILES = \
ev-annotation-window.h \
ev-loading-window.h \
ev-page-cache.h \
ev-pixbuf-cache.h \
ev-timeline.h \
ev-transition-animation.h \
ev-view-accessible.h \
ev-view-cursor.h \
ev-view-marshal.h \
ev-view-private.h
INST_H_SRC_FILES = \
ev-document-model.h \
ev-jobs.h \
ev-job-scheduler.h \
ev-print-operation.h \
ev-stock-icons.h \
ev-view.h \
ev-view-presentation.h
INST_H_FILES = \
$(INST_H_SRC_FILES) \
ev-view-type-builtins.h
headerdir = $(includedir)/atril/$(EV_API_VERSION)/libview
header_DATA = $(INST_H_FILES)
libatrilview_la_SOURCES = \
ev-annotation-window.c \
ev-document-model.c \
ev-loading-window.c \
ev-jobs.c \
ev-job-scheduler.c \
ev-page-cache.c \
ev-pixbuf-cache.c \
ev-print-operation.c \
ev-stock-icons.c \
ev-timeline.c \
ev-transition-animation.c \
ev-view.c \
ev-view-accessible.c \
ev-view-marshal.c \
ev-view-cursor.c \
ev-view-presentation.c \
ev-view-type-builtins.c \
$(NOINST_H_FILES) \
$(INST_H_FILES)
libatrilview_la_CPPFLAGS = \
-DATRILDATADIR=\"$(pkgdatadir)\" \
-DG_LOG_DOMAIN=\"AtrilView\" \
-DMATELOCALEDIR=\"$(datadir)/locale\" \
-DATRIL_COMPILATION \
-I$(top_srcdir) \
-I$(top_srcdir)/libdocument \
-I$(top_builddir) \
$(AM_CPPFLAGS)
libatrilview_la_CFLAGS = \
$(LIBVIEW_CFLAGS) \
$(WARN_CFLAGS) \
$(DISABLE_DEPRECATED) \
$(AM_CFLAGS)
libatrilview_la_LDFLAGS = \
-version-info $(EV_VIEW_LT_VERSION_INFO) \
-no-undefined \
-export-symbols-regex "^ev_*" \
$(AM_LDFLAGS)
libatrilview_la_LIBADD = \
$(top_builddir)/libdocument/libatrildocument.la \
$(LIBVIEW_LIBS)
BUILT_SOURCES = \
ev-view-marshal.h \
ev-view-marshal.c \
ev-view-type-builtins.c \
ev-view-type-builtins.h
CLEANFILES = \
$(BUILT_SOURCES) \
stamp-ev-view-type-builtins.h \
stamp-ev-view-type-builtins.c
ev-view-marshal.h: $(srcdir)/ev-view-marshal.list
$(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=ev_view_marshal $(srcdir)/ev-view-marshal.list --header --internal > $@
ev-view-marshal.c: $(srcdir)/ev-view-marshal.list
echo '#include <config.h>' > ev-view-marshal.c
$(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=ev_view_marshal $(srcdir)/ev-view-marshal.list --header --internal --body >> $@
ev-view-type-builtins.h: stamp-ev-view-type-builtins.h
@true
stamp-ev-view-type-builtins.h: ev-view-type-builtins.h.template $(INST_H_SRC_FILES)
$(AM_V_GEN)$(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbh \
&& (cmp -s xgen-etbh ev-view-type-builtins.h || cp xgen-etbh ev-view-type-builtins.h ) \
&& rm -f xgen-etbh \
&& echo timestamp > $(@F)
ev-view-type-builtins.c: stamp-ev-view-type-builtins.c
@true
stamp-ev-view-type-builtins.c: ev-view-type-builtins.c.template $(INST_H_SRC_FILES)
$(AM_V_GEN)$(GLIB_MKENUMS) --template $< $(filter-out $<,$^) > xgen-etbc \
&& (cmp -s xgen-etbc ev-view-type-builtins.c || cp xgen-etbc ev-view-type-builtins.c ) \
&& rm -f xgen-etbc \
&& echo timestamp > $(@F)
EXTRA_DIST = \
ev-view-type-builtins.c.template \
ev-view-type-builtins.h.template \
ev-view-marshal.list
# GObject Introspection
if ENABLE_INTROSPECTION
AtrilView-$(EV_API_VERSION).gir: libatrilview.la Makefile $(INST_H_FILES) $(filter %.c,$(libatrilview_la_SOURCES))
$(AM_V_GEN) PKG_CONFIG_PATH=$(top_builddir):$$PKG_CONFIG_PATH \
$(G_IR_SCANNER) -v --namespace AtrilView \
--add-include-path=$(top_builddir)/libdocument \
--strip-prefix=Ev \
--nsversion=$(EV_API_VERSION) \
--include=GLib-2.0 \
--include=GObject-2.0 \
--include=Gio-2.0 \
--include=Gdk-2.0 \
--include=GdkPixbuf-2.0 \
--include=Gtk-2.0 \
--include=AtrilDocument-$(EV_API_VERSION) \
--library=atrilview \
--libtool="$(LIBTOOL)" \
--output $@ \
--pkg atril-document-$(EV_API_VERSION) \
--pkg atril-view-$(EV_API_VERSION) \
-I$(top_srcdir) \
-I$(top_builddir) \
-DATRIL_COMPILATION \
$(filter %.h,$^) \
$(filter %.c,$^)
girdir = $(GIRDIR)
gir_DATA = AtrilView-$(EV_API_VERSION).gir
typelibsdir = $(GIRTYPELIBDIR)
typelibs_DATA = AtrilView-$(EV_API_VERSION).typelib
EXTRA_DIST += $(gir_DATA)
CLEANFILES += $(gir_DATA) $(typelibs_DATA)
%.typelib: %.gir
$(AM_V_GEN) LD_LIBRARY_PATH=$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}. $(G_IR_COMPILER) \
--includedir=$(srcdir) \
--includedir=$(top_builddir)/libdocument \
$(G_IR_COMPILER_OPTS) \
$< -o $@
endif # ENABLE_INTROSPECTION
-include $(top_srcdir)/git.mk
|