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
235 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
238 -rm $(DESTDIR)$(libdir)/gio-2.0.def
243 export_symbols = -export-symbols-regex '^g_.*'
246 install-data-local: install-ms-lib install-def-file
248 uninstall-local: uninstall-ms-lib uninstall-def-file
250 libgio_2_0_la_LDFLAGS= -export-dynamic $(no_undefined) $(export_symbols)
255 gbufferedinputstream.h \
256 gbufferedoutputstream.h \
260 gdataoutputstream.h \
269 gfilenamecompleter.h \
270 gfileoutputstream.h \
271 gfilterinputstream.h \
272 gfilteroutputstream.h \
282 gmemoryinputstream.h \
283 gmemoryoutputstream.h \
285 gnativevolumemonitor.h \
288 gsimpleasyncresult.h \
295 gioincludedir=$(includedir)/glib-2.0/gio/
296 gioinclude_HEADERS = \
300 # these sources (also mentioned above) are generated.
313 gioenumtypes.h.template \
314 gioenumtypes.c.template \
324 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
325 ( top_builddir=`cd $(top_builddir) && pwd`; \
326 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
327 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
329 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
330 ( top_builddir=`cd $(top_builddir) && pwd`; \
331 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
332 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
334 gio-2.0.lib: libgio-2.0.la gio.def
335 lib -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@