1 include $(top_srcdir)/Makefile.decl
12 noinst_DATA = gio-2.0.lib
15 $(INSTALL) gio-2.0.lib $(DESTDIR)$(libdir)
18 -rm $(DESTDIR)$(libdir)/gio-2.0.lib
25 (echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gio.symbols | sed -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g' | sort) > gio.def.tmp && \
26 mv gio.def.tmp gio.def
28 gioalias.h: gio.symbols
29 $(PERL) $(srcdir)/makegioalias.pl < $(srcdir)/gio.symbols > gioalias.h.tmp && \
30 mv gioalias.h.tmp gioalias.h
32 gioaliasdef.c: gio.symbols
33 $(PERL) $(srcdir)/makegioalias.pl -def < $(srcdir)/gio.symbols > gioaliasdef.c.tmp && \
34 mv gioaliasdef.c.tmp gioaliasdef.c
37 if HAVE_GNUC_VISIBILITY
38 TESTS = abicheck.sh pltcheck.sh
43 -DG_LOG_DOMAIN=\"GLib-GIO\" \
46 -I$(top_srcdir)/glib \
47 -I$(top_srcdir)/gmodule \
49 -DG_DISABLE_DEPRECATED \
51 -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
53 lib_LTLIBRARIES = libgio-2.0.la
61 glib_genmarshal=$(GLIB_GENMARSHAL)
63 glib_genmarshal=../gobject/glib-genmarshal
66 gio-marshal.h: gio-marshal.list
67 $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --header --internal > $@.tmp && \
70 gio-marshal.c: gio-marshal.h gio-marshal.list
71 (echo "#include \"gio-marshal.h\""; \
72 $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --body --internal) > $@.tmp && \
76 glocaldirectorymonitor.c \
77 glocaldirectorymonitor.h \
80 glocalfileenumerator.c \
81 glocalfileenumerator.h \
84 glocalfileinputstream.c \
85 glocalfileinputstream.h \
88 glocalfileoutputstream.c \
89 glocalfileoutputstream.h \
99 platform_libadd += inotify/libinotify.la
103 AM_CPPFLAGS += -DHAVE_FEN
105 platform_libadd += fen/libfen.la
110 platform_libadd += win32/libgiowin32.la
121 appinfo_sources += gdesktopappinfo.c gdesktopappinfo.h
122 platform_libadd += xdgmime/libxdgmime.la
130 gunixvolumemonitor.c \
131 gunixvolumemonitor.h \
133 gunixoutputstream.c \
137 giounixincludedir=$(includedir)/gio-unix-2.0/gio
138 giounixinclude_HEADERS = \
142 gunixoutputstream.h \
147 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
148 platform_libadd += -lshlwapi
153 libgio_2_0_la_SOURCES = \
158 gbufferedinputstream.c \
159 gbufferedoutputstream.c \
162 gcontenttypeprivate.h \
164 gdataoutputstream.c \
170 gfileattribute-priv.h \
176 gfilenamecompleter.c \
177 gfileoutputstream.c \
178 gfilterinputstream.c \
179 gfilteroutputstream.c \
188 gmemoryinputstream.c \
189 gmemoryoutputstream.c \
191 gnativevolumemonitor.c \
192 gnativevolumemonitor.h \
197 gsimpleasyncresult.c \
199 gunionvolumemonitor.c \
200 gunionvolumemonitor.h \
215 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
217 libgio_2_0_la_LIBADD = \
218 $(top_builddir)/glib/libglib-2.0.la \
219 $(top_builddir)/gobject/libgobject-2.0.la \
220 $(top_builddir)/gmodule/libgmodule-2.0.la \
228 no_undefined = -no-undefined
232 export_symbols = -export-symbols gio.def
236 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
239 -rm $(DESTDIR)$(libdir)/gio-2.0.def
244 export_symbols = -export-symbols-regex '^g_.*'
247 install-data-local: install-ms-lib install-def-file
249 uninstall-local: uninstall-ms-lib uninstall-def-file
251 libgio_2_0_la_LDFLAGS= -export-dynamic $(no_undefined) $(export_symbols)
252 libgio_2_0_la_DEPENDENCIES = $(gio_def)
257 gbufferedinputstream.h \
258 gbufferedoutputstream.h \
262 gdataoutputstream.h \
271 gfilenamecompleter.h \
272 gfileoutputstream.h \
273 gfilterinputstream.h \
274 gfilteroutputstream.h \
284 gmemoryinputstream.h \
285 gmemoryoutputstream.h \
287 gnativevolumemonitor.h \
290 gsimpleasyncresult.h \
297 gioincludedir=$(includedir)/glib-2.0/gio/
298 gioinclude_HEADERS = \
302 # these sources (also mentioned above) are generated.
315 gioenumtypes.h.template \
316 gioenumtypes.c.template \
326 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
327 ( top_builddir=`cd $(top_builddir) && pwd`; \
328 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
329 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
331 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
332 ( top_builddir=`cd $(top_builddir) && pwd`; \
333 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
334 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
336 gio-2.0.lib: libgio-2.0.la gio.def
337 lib -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@