forked from GNOME/librsvg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
262 lines (216 loc) · 6.46 KB
/
Makefile.am
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
SUBDIRS = . gdk-pixbuf-loader tests tools doc
NULL =
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
if ENABLE_GTK2_ENGINE
SUBDIRS += gtk-engine
endif
lib_LTLIBRARIES = librsvg-@[email protected]
bin_PROGRAMS = rsvg-convert
if HAVE_GTK_3
bin_PROGRAMS += rsvg-view-3
endif
headers = \
rsvg.h \
rsvg-cairo.h
enum_sources = \
librsvg-enum-types.h \
librsvg-enum-types.c
librsvg_@RSVG_API_MAJOR_VERSION@_la_SOURCES = \
librsvg-features.c \
rsvg-css.c \
rsvg-css.h \
rsvg-defs.c \
rsvg-defs.h \
rsvg-image.c \
rsvg-image.h \
rsvg-io.c \
rsvg-io.h \
rsvg-paint-server.c \
rsvg-paint-server.h \
rsvg-path.c \
rsvg-path.h \
rsvg-private.h \
rsvg-base-file-util.c \
rsvg-filter.c \
rsvg-filter.h \
rsvg-marker.c \
rsvg-marker.h \
rsvg-mask.c \
rsvg-mask.h \
rsvg-shapes.c \
rsvg-shapes.h \
rsvg-structure.c \
rsvg-structure.h \
rsvg-styles.c \
rsvg-styles.h \
rsvg-text.c \
rsvg-text.h \
rsvg-cond.c \
rsvg-base.c \
librsvg-enum-types.c \
rsvg-cairo-draw.c \
rsvg-cairo-draw.h \
rsvg-cairo-render.c \
rsvg-cairo-render.h \
rsvg-cairo-clip.h \
rsvg-cairo-clip.c \
rsvg.c \
rsvg-gobject.c \
rsvg-file-util.c \
rsvg-size-callback.c \
rsvg-size-callback.h \
rsvg-xml.c \
rsvg-xml.h \
rsvg.h \
rsvg-cairo.h \
librsvg-features.h \
librsvg-enum-types.h \
$(NULL)
librsvg_@RSVG_API_MAJOR_VERSION@_la_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir) \
-DG_LOG_DOMAIN=\"librsvg\" \
-DLIBRSVG_DATADIR="\"$(datadir)\"" \
-DRSVG_DISABLE_DEPRECATION_WARNINGS \
$(AM_CPPFLAGS)
librsvg_@RSVG_API_MAJOR_VERSION@_la_CFLAGS = \
-DRSVG_COMPILATION \
$(LIBRSVG_CFLAGS) \
$(AM_CFLAGS)
librsvg_@RSVG_API_MAJOR_VERSION@_la_LDFLAGS = \
$(BSYMBOLIC_LDFLAG) \
-version-info @RSVG_LT_VERSION_INFO@ \
-export-dynamic \
-no-undefined \
-export-symbols-regex "^rsvg_.*" \
$(AM_LDFLAGS)
librsvg_@RSVG_API_MAJOR_VERSION@_la_LIBADD = \
$(LIBRSVG_LIBS) \
$(LIBM)
librsvgincdir = $(includedir)/librsvg-$(RSVG_API_VERSION)/librsvg
librsvginc_HEADERS = \
$(headers) \
librsvg-features.h \
librsvg-enum-types.h
dist_man_MANS = rsvg-convert.1
rsvg_convert_SOURCES = \
rsvg-convert.c \
rsvg-size-callback.c \
rsvg-size-callback.h \
$(NULL)
rsvg_convert_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir) \
-DLIBRSVG_DATADIR="\"$(datadir)\"" \
$(AM_CPPFLAGS)
rsvg_convert_CFLAGS =\
$(LIBRSVG_CFLAGS) \
$(AM_CFLAGS)
rsvg_convert_LDFLAGS = $(AM_LDFLAGS)
rsvg_convert_LDADD = \
$(top_builddir)/librsvg-@[email protected] \
$(LIBRSVG_LIBS) \
$(GTHREAD_LIBS) \
$(LIBM)
rsvg_view_3_SOURCES = \
test-display.c \
rsvg-size-callback.h
rsvg_view_3_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir) \
-DLIBRSVG_DATADIR="\"$(datadir)\"" \
$(AM_CPPFLAGS)
rsvg_view_3_CFLAGS =\
$(GTK3_CFLAGS) \
$(LIBRSVG_CFLAGS) \
$(AM_CFLAGS)
rsvg_view_3_LDFLAGS =
rsvg_view_3_LDADD = \
$(top_builddir)/librsvg-@[email protected] \
$(GTK3_LIBS) \
$(LIBRSVG_LIBS) \
$(GTHREAD_LIBS) \
$(LIBM)
if OS_WIN32
rsvg_view_3_LDFLAGS += -mwindows
endif # OS_WIN32
EXTRA_DIST = \
librsvg.doap \
AUTHORS \
NEWS \
TODO \
COPYING.LIB \
librsvg-zip.in \
gtk-doc.make
CLEANFILES = \
$(enum_sources) \
s-enum-types-h s-enum-types-c
## Put `exec' in the name because this should be installed by
## `install-exec', not `install-data'.
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = librsvg-$(RSVG_API_VERSION).pc
librsvg-enum-types.h: s-enum-types-h
@true
s-enum-types-h: $(headers) Makefile
$(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) \
--fhead "#if !defined (__RSVG_RSVG_H_INSIDE__) && !defined (RSVG_COMPILATION)\n#warning \"Including <librsvg/librsvg-enum-types.h> directly is deprecated.\"\n#endif\n\n#ifndef __LIBRSVG_ENUM_TYPES_H__\n#define __LIBRSVG_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
--fprod "/* enumerations from \"@filename@\" */\n" \
--vhead "GType @enum_name@_get_type (void);\n#define RSVG_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
--ftail "G_END_DECLS\n\n#endif /* __LIBRSVG_ENUM_TYPES_H__ */" \
$(headers) ) > tmp-librsvg-enum-types.h \
&& (cmp -s tmp-librsvg-enum-types.h librsvg-enum-types.h || cp tmp-librsvg-enum-types.h librsvg-enum-types.h ) \
&& rm -f tmp-librsvg-enum-types.h \
&& echo timestamp > $(@F)
librsvg-enum-types.c: s-enum-types-c librsvg-enum-types.h
@true
s-enum-types-c: $(headers) Makefile
$(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) \
--fhead "#include \"rsvg.h\"" \
--fprod "\n/* enumerations from \"@filename@\" */" \
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
$(headers) ) > tmp-librsvg-enum-types.c \
&& (cmp -s tmp-librsvg-enum-types.c librsvg-enum-types.c || cp tmp-librsvg-enum-types.c librsvg-enum-types.c ) \
&& rm -f tmp-librsvg-enum-types.c \
&& echo timestamp > $(@F)
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
if HAVE_INTROSPECTION
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS = Rsvg-@[email protected]
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
Rsvg-@[email protected]: librsvg-@[email protected]
Rsvg_@RSVG_API_VERSION_U@_gir_NAMESPACE = Rsvg
Rsvg_@RSVG_API_VERSION_U@_gir_EXPORT_PACKAGES = librsvg-$(RSVG_API_VERSION)
Rsvg_@RSVG_API_VERSION_U@_gir_FILES = \
$(librsvginc_HEADERS) \
$(filter-out %.h,$(librsvg_@RSVG_API_MAJOR_VERSION@_la_SOURCES)) \
$(NULL)
Rsvg_@RSVG_API_VERSION_U@_gir_INCLUDES = \
GLib-2.0 \
GObject-2.0 \
Gio-2.0 \
cairo-1.0 \
GdkPixbuf-2.0 \
$(NULL)
Rsvg_@RSVG_API_VERSION_U@_gir_PACKAGES = \
pango \
libxml-2.0 \
$(NULL)
Rsvg_@RSVG_API_VERSION_U@_gir_CFLAGS = -I$(top_builddir) -DRSVG_COMPILATION
Rsvg_@RSVG_API_VERSION_U@_gir_LIBS = librsvg-@[email protected]
Rsvg_@RSVG_API_VERSION_U@_gir_SCANNERFLAGS = --c-include="librsvg/rsvg.h"
girdir = $(datadir)/gir-1.0
nodist_gir_DATA = $(INTROSPECTION_GIRS)
typelibsdir = $(libdir)/girepository-1.0
nodist_typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES += $(nodist_gir_DATA) $(nodist_typelibs_DATA)
endif # HAVE_INTROSPECTION
# ChangeLog generation
ChangeLog:
$(AM_V_GEN) if test -d $(top_srcdir)/.git; then \
GIT_DIR="$(top_srcdir)/.git" git log --stat > $@; \
fi
dist: ChangeLog
.PHONY: ChangeLog