1 include $(top_srcdir)/Makefile.decl
8 SUBDIRS += libasyncns xdgmime
11 if OS_WIN32_AND_DLL_COMPILATION
13 noinst_DATA = gio-2.0.lib
15 install_ms_lib_cmd = $(INSTALL) gio-2.0.lib $(DESTDIR)$(libdir)
16 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gio-2.0.lib
24 $(uninstall_ms_lib_cmd)
27 (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 && \
28 mv gio.def.tmp gio.def
30 gioalias.h: gio.symbols
31 $(PERL) $(srcdir)/makegioalias.pl < $(srcdir)/gio.symbols > gioalias.h.tmp && \
32 mv gioalias.h.tmp gioalias.h
34 gioaliasdef.c: gio.symbols
35 $(PERL) $(srcdir)/makegioalias.pl -def < $(srcdir)/gio.symbols > gioaliasdef.c.tmp && \
36 mv gioaliasdef.c.tmp gioaliasdef.c
39 if HAVE_GNUC_VISIBILITY
40 TESTS = abicheck.sh pltcheck.sh
45 THREAD_FLAGS=-DG_THREADS_MANDATORY
49 -DG_LOG_DOMAIN=\"GLib-GIO\" \
52 -I$(top_srcdir)/glib \
53 -I$(top_srcdir)/gmodule \
56 -DG_DISABLE_DEPRECATED \
58 -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
60 lib_LTLIBRARIES = libgio-2.0.la
68 glib_genmarshal=$(GLIB_GENMARSHAL)
70 glib_genmarshal=../gobject/glib-genmarshal
73 gio-marshal.h: gio-marshal.list
74 $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --header --internal > $@.tmp && \
77 gio-marshal.c: gio-marshal.h gio-marshal.list
78 (echo "#include \"gio-marshal.h\""; \
79 $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --body --internal) > $@.tmp && \
90 gdelayedsettingsbackend.h \
91 gdelayedsettingsbackend.c \
92 gkeyfilesettingsbackend.h \
93 gkeyfilesettingsbackend.c \
94 gmemorysettingsbackend.h \
95 gmemorysettingsbackend.c \
96 gnullsettingsbackend.h \
97 gnullsettingsbackend.c \
98 gsettingsbackendinternal.h \
102 gsettings-mapping.h \
103 gsettings-mapping.c \
107 glocaldirectorymonitor.c \
108 glocaldirectorymonitor.h \
111 glocalfileenumerator.c \
112 glocalfileenumerator.h \
115 glocalfileinputstream.c \
116 glocalfileinputstream.h \
117 glocalfilemonitor.c \
118 glocalfilemonitor.h \
119 glocalfileoutputstream.c \
120 glocalfileoutputstream.h \
121 glocalfileiostream.c \
122 glocalfileiostream.h \
133 platform_libadd += inotify/libinotify.la
134 platform_deps += inotify/libinotify.la
138 AM_CPPFLAGS += -DHAVE_FEN
140 platform_libadd += fen/libfen.la
141 platform_deps += fen/libfen.la
146 platform_libadd += win32/libgiowin32.la
147 platform_deps += win32/libgiowin32.la
158 appinfo_sources += gdesktopappinfo.c gdesktopappinfo.h
159 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
160 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
171 gunixsocketaddress.c \
174 gunixvolumemonitor.c \
175 gunixvolumemonitor.h \
177 gunixoutputstream.c \
181 giounixincludedir=$(includedir)/gio-unix-2.0/gio
182 giounixinclude_HEADERS = \
184 gfiledescriptorbased.h \
190 gunixoutputstream.h \
191 gunixsocketaddress.h \
196 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
197 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
203 gwin32volumemonitor.c \
204 gwin32volumemonitor.h \
205 gwin32inputstream.c \
206 gwin32outputstream.c \
207 gwin32outputstream.h \
210 win32_more_sources_for_vcproj = \
212 win32/gwin32directorymonitor.c \
213 win32/gwinhttpfile.c \
214 win32/gwinhttpfileinputstream.c \
215 win32/gwinhttpfileoutputstream.c \
218 giowin32includedir=$(includedir)/gio-win32-2.0/gio
219 giowin32include_HEADERS = \
220 gwin32inputstream.h \
221 gwin32outputstream.h \
228 libgio_2_0_la_SOURCES = \
234 gbufferedinputstream.c \
235 gbufferedoutputstream.c \
238 gcontenttypeprivate.h \
239 gcharsetconverter.c \
241 gconverterinputstream.c \
242 gconverteroutputstream.c \
244 gdataoutputstream.c \
254 gfileattribute-priv.h \
255 gfiledescriptorbased.h \
256 gfiledescriptorbased.c \
263 gfilenamecompleter.c \
264 gfileoutputstream.c \
266 gfilterinputstream.c \
267 gfilteroutputstream.c \
270 ginetsocketaddress.c \
281 gmemoryinputstream.c \
282 gmemoryoutputstream.c \
284 gnativevolumemonitor.c \
285 gnativevolumemonitor.h \
287 gnetworkingprivate.h \
294 gsimpleasyncresult.c \
297 gsocketaddressenumerator.c \
299 gsocketconnectable.c \
300 gsocketconnection.c \
301 gsocketcontrolmessage.c \
302 gsocketinputstream.c \
303 gsocketinputstream.h \
305 gsocketoutputstream.c \
306 gsocketoutputstream.h \
310 gthreadedsocketservice.c\
312 gthreadedresolver.c \
313 gthreadedresolver.h \
314 gunionvolumemonitor.c \
315 gunionvolumemonitor.h \
320 gzlibdecompressor.c \
329 $(settings_sources) \
334 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
336 libgio_2_0_la_LIBADD = \
337 $(top_builddir)/glib/libglib-2.0.la \
338 $(top_builddir)/gobject/libgobject-2.0.la \
339 $(top_builddir)/gmodule/libgmodule-2.0.la \
348 no_undefined = -no-undefined
351 if OS_WIN32_AND_DLL_COMPILATION
352 export_symbols = -export-symbols gio.def
355 gio_win32_res = gio-win32-res.o
356 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
359 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
362 -rm $(DESTDIR)$(libdir)/gio-2.0.def
367 export_symbols = -export-symbols-regex '^g_.*'
370 install-data-local: install-ms-lib install-def-file
371 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
373 uninstall-local: uninstall-ms-lib uninstall-def-file
375 libgio_2_0_la_LDFLAGS = \
376 $(gio_win32_res_ldflag) \
377 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
378 -export-dynamic $(no_undefined) $(export_symbols)
380 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
382 gio-win32-res.o: gio.rc
389 gbufferedinputstream.h \
390 gbufferedoutputstream.h \
393 gcharsetconverter.h \
395 gconverterinputstream.h \
396 gconverteroutputstream.h \
398 gdataoutputstream.h \
409 gfilenamecompleter.h \
410 gfileoutputstream.h \
412 gfilterinputstream.h \
413 gfilteroutputstream.h \
416 ginetsocketaddress.h \
428 gmemoryinputstream.h \
429 gmemoryoutputstream.h \
431 gnativevolumemonitor.h \
437 gsimpleasyncresult.h \
440 gsocketaddressenumerator.h \
442 gsocketconnectable.h \
443 gsocketconnection.h \
444 gsocketcontrolmessage.h \
449 gthreadedsocketservice.h\
455 gzlibdecompressor.h \
456 $(settings_headers) \
459 gioincludedir=$(includedir)/glib-2.0/gio/
460 gioinclude_HEADERS = \
464 # these sources (also mentioned above) are generated.
477 gioenumtypes.h.template \
478 gioenumtypes.c.template \
494 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
495 ( top_builddir=`cd $(top_builddir) && pwd`; \
496 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
497 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
499 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
500 ( top_builddir=`cd $(top_builddir) && pwd`; \
501 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
502 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
504 gio-2.0.lib: libgio-2.0.la gio.def
505 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
507 dist_bin_SCRIPTS = gsettings-schema-convert
508 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
510 gio_querymodules_SOURCES = gio-querymodules.c
511 gio_querymodules_LDADD = \
512 $(top_builddir)/glib/libglib-2.0.la \
513 $(top_builddir)/gobject/libgobject-2.0.la \
514 $(top_builddir)/gmodule/libgmodule-2.0.la \
518 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
519 glib_compile_schemas_SOURCES = \
521 gvdb/gvdb-builder.h \
522 gvdb/gvdb-builder.c \
526 $(top_builddir)/glib/libglib-2.0.la \
527 $(top_builddir)/gobject/libgobject-2.0.la \
529 gsettings_SOURCES = gsettings-tool.c
532 schemadir = $(datadir)/glib-2.0/schemas
533 dist_schema_DATA = gschema.dtd
535 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
536 files='$(BUILT_EXTRA_DIST)'; \
537 for f in $$files; do \
538 if test -f $$f; then d=.; else d=$(srcdir); fi; \
539 cp $$d/$$f $(distdir) || exit 1; done
541 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
542 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
544 gunix*.c|gdesktopappinfo.c) ;; \
545 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
548 done | sort -u >libgio.sourcefiles
549 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
550 rm libgio.sourcefiles
552 if HAVE_GLIB_RUNTIME_LIBDIR
554 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
555 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
556 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
557 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
558 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so