1 include $(top_srcdir)/Makefile.decl
5 SUBDIRS = gdbus-2.0/codegen
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 $(AM_V_GEN) (echo 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
31 if HAVE_GNUC_VISIBILITY
37 -DG_LOG_DOMAIN=\"GLib-GIO\" \
41 -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
43 lib_LTLIBRARIES = libgio-2.0.la
56 gdbusintrospection.h \
57 gdbusmethodinvocation.h \
60 gdbusinterfaceskeleton.h \
62 gdbusobjectskeleton.h \
64 gdbusobjectmanager.h \
65 gdbusobjectmanagerclient.h \
66 gdbusobjectmanagerserver.h \
70 gdbusutils.h gdbusutils.c \
71 gdbusaddress.h gdbusaddress.c \
72 gdbusauthobserver.h gdbusauthobserver.c \
73 gdbusauth.h gdbusauth.c \
74 gdbusauthmechanism.h gdbusauthmechanism.c \
75 gdbusauthmechanismanon.h gdbusauthmechanismanon.c \
76 gdbusauthmechanismexternal.h gdbusauthmechanismexternal.c \
77 gdbusauthmechanismsha1.h gdbusauthmechanismsha1.c \
78 gdbuserror.h gdbuserror.c \
79 gdbusconnection.h gdbusconnection.c \
80 gdbusmessage.h gdbusmessage.c \
81 gdbusnameowning.h gdbusnameowning.c \
82 gdbusnamewatching.h gdbusnamewatching.c \
83 gdbusproxy.h gdbusproxy.c \
84 gdbusprivate.h gdbusprivate.c \
85 gdbusintrospection.h gdbusintrospection.c \
86 gdbusmethodinvocation.h gdbusmethodinvocation.c \
87 gdbusserver.h gdbusserver.c \
88 gdbusinterface.h gdbusinterface.c \
89 gdbusinterfaceskeleton.h gdbusinterfaceskeleton.c \
90 gdbusobject.h gdbusobject.c \
91 gdbusobjectskeleton.h gdbusobjectskeleton.c \
92 gdbusobjectproxy.h gdbusobjectproxy.c \
93 gdbusobjectmanager.h gdbusobjectmanager.c \
94 gdbusobjectmanagerclient.h gdbusobjectmanagerclient.c \
95 gdbusobjectmanagerserver.h gdbusobjectmanagerserver.c \
107 gdelayedsettingsbackend.h \
108 gdelayedsettingsbackend.c \
109 gkeyfilesettingsbackend.c \
110 gmemorysettingsbackend.c \
111 gnullsettingsbackend.c \
112 gsettingsbackendinternal.h \
115 gsettingsschema-internal.h \
117 gsettings-mapping.h \
118 gsettings-mapping.c \
122 settings_sources += \
123 gregistrysettingsbackend.h \
124 gregistrysettingsbackend.c
127 application_headers = \
129 gapplicationcommandline.h \
133 gsimpleactiongroup.h \
134 gactiongroupexporter.h \
146 application_sources = \
148 gapplicationcommandline.c \
149 gapplicationimpl-dbus.c \
154 gsimpleactiongroup.c \
155 gactiongroupexporter.c \
168 glocaldirectorymonitor.c \
169 glocaldirectorymonitor.h \
172 glocalfileenumerator.c \
173 glocalfileenumerator.h \
176 glocalfileinputstream.c \
177 glocalfileinputstream.h \
178 glocalfilemonitor.c \
179 glocalfilemonitor.h \
180 glocalfileoutputstream.c \
181 glocalfileoutputstream.h \
182 glocalfileiostream.c \
183 glocalfileiostream.h \
200 platform_libadd += inotify/libinotify.la
201 platform_deps += inotify/libinotify.la
205 AM_CPPFLAGS += -DHAVE_FEN
207 platform_libadd += fen/libfen.la
208 platform_deps += fen/libfen.la
213 platform_libadd += win32/libgiowin32.la
214 platform_deps += win32/libgiowin32.la
224 appinfo_sources += gdesktopappinfo.c
225 platform_libadd += xdgmime/libxdgmime.la $(RESOLVER_LIBADD)
226 platform_deps += xdgmime/libxdgmime.la
228 gfiledescriptorbased.c \
230 gunixcredentialsmessage.c \
236 gunixsocketaddress.c \
239 gunixvolumemonitor.c \
240 gunixvolumemonitor.h \
242 gunixoutputstream.c \
246 giounixincludedir=$(includedir)/gio-unix-2.0/gio
247 giounixinclude_HEADERS = \
249 gfiledescriptorbased.h \
251 gunixcredentialsmessage.h \
256 gunixoutputstream.h \
257 gunixsocketaddress.h \
262 gnetworkmonitornetlink.c \
263 gnetworkmonitornetlink.h \
268 win32_actual_sources = \
271 gwin32volumemonitor.c \
272 gwin32volumemonitor.h \
273 gwin32inputstream.c \
274 gwin32outputstream.c \
275 gwin32outputstream.h \
278 win32_more_sources_for_vcproj = \
280 gregistrysettingsbackend.c \
281 win32/gwin32directorymonitor.c \
282 win32/gwinhttpfile.c \
283 win32/gwinhttpfileinputstream.c \
284 win32/gwinhttpfileoutputstream.c \
288 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
289 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
290 win32_sources = $(win32_actual_sources)
292 giowin32includedir=$(includedir)/gio-win32-2.0/gio
293 giowin32include_HEADERS = \
294 gwin32inputstream.h \
295 gwin32outputstream.h \
302 libgio_2_0_la_SOURCES = \
308 gbufferedinputstream.c \
309 gbufferedoutputstream.c \
312 gcontenttypeprivate.h \
313 gcharsetconverter.c \
315 gconverterinputstream.c \
316 gconverteroutputstream.c \
319 gdataoutputstream.c \
323 gdummyproxyresolver.c \
324 gdummyproxyresolver.h \
333 gfileattribute-priv.h \
340 gfilenamecompleter.c \
341 gfileoutputstream.c \
343 gfilterinputstream.c \
344 gfilteroutputstream.c \
348 ginetsocketaddress.c \
359 gmemoryinputstream.c \
360 gmemoryoutputstream.c \
362 gnativevolumemonitor.c \
363 gnativevolumemonitor.h \
365 gnetworkingprivate.h \
367 gnetworkmonitorbase.c \
368 gnetworkmonitorbase.h \
372 gpollableinputstream.c \
373 gpollableoutputstream.c \
379 gsimpleasyncresult.c \
380 gsimplepermission.c \
383 gsocketaddressenumerator.c \
385 gsocketconnectable.c \
386 gsocketconnection.c \
387 gsocketcontrolmessage.c \
388 gsocketinputstream.c \
389 gsocketinputstream.h \
391 gsocketoutputstream.c \
392 gsocketoutputstream.h \
395 gproxyaddressenumerator.c \
399 gtcpwrapperconnection.c \
400 gthreadedsocketservice.c\
402 gthreadedresolver.c \
403 gthreadedresolver.h \
406 gtlsclientconnection.c \
412 gtlsserverconnection.c \
413 gunionvolumemonitor.c \
414 gunionvolumemonitor.h \
419 gzlibdecompressor.c \
426 $(application_sources) \
427 $(settings_sources) \
432 EXTRA_DIST += strinfo.c
434 libgio_2_0_la_LIBADD = \
435 $(top_builddir)/glib/libglib-2.0.la \
436 $(top_builddir)/gobject/libgobject-2.0.la \
437 $(top_builddir)/gmodule/libgmodule-2.0.la \
446 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
449 no_undefined = -no-undefined
452 if OS_WIN32_AND_DLL_COMPILATION
453 export_symbols = -export-symbols gio.def
456 gio_win32_res = gio-win32-res.o
457 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
460 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
463 -rm $(DESTDIR)$(libdir)/gio-2.0.def
468 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
471 install-data-local: install-ms-lib install-def-file
472 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
474 uninstall-local: uninstall-ms-lib uninstall-def-file
476 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
477 $(gio_win32_res_ldflag) \
478 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
479 -export-dynamic $(no_undefined) $(export_symbols)
481 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
483 gio-win32-res.o: gio.rc
490 gbufferedinputstream.h \
491 gbufferedoutputstream.h \
494 gcharsetconverter.h \
496 gconverterinputstream.h \
497 gconverteroutputstream.h \
499 gdataoutputstream.h \
510 gfilenamecompleter.h \
511 gfileoutputstream.h \
513 gfilterinputstream.h \
514 gfilteroutputstream.h \
518 ginetsocketaddress.h \
530 gmemoryinputstream.h \
531 gmemoryoutputstream.h \
533 gnativevolumemonitor.h \
539 gpollableinputstream.h \
540 gpollableoutputstream.h \
543 gproxyaddressenumerator.h \
547 gsimpleasyncresult.h \
548 gsimplepermission.h \
551 gsocketaddressenumerator.h \
553 gsocketconnectable.h \
554 gsocketconnection.h \
555 gsocketcontrolmessage.h \
560 gtcpwrapperconnection.h \
561 gthreadedsocketservice.h\
565 gtlsclientconnection.h \
571 gtlsserverconnection.h \
576 gzlibdecompressor.h \
577 $(application_headers) \
578 $(settings_headers) \
582 gioincludedir=$(includedir)/glib-2.0/gio/
583 gioinclude_HEADERS = \
587 # these sources (also mentioned above) are generated.
595 gioenumtypes.h.template \
596 gioenumtypes.c.template \
609 # This is read by gobject-introspection/misc/ and gtk-doc
610 gio-public-headers.txt: Makefile
611 echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
613 CLEANFILES = gio-public-headers.txt
615 all-local: gio-public-headers.txt
617 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
618 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
619 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
620 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
622 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
623 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
624 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
625 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
627 gio-2.0.lib: libgio-2.0.la gio.def
628 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
630 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
632 gio_querymodules_SOURCES = gio-querymodules.c
633 gio_querymodules_LDADD = \
634 $(top_builddir)/glib/libglib-2.0.la \
635 $(top_builddir)/gobject/libgobject-2.0.la \
636 $(top_builddir)/gmodule/libgmodule-2.0.la \
640 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
641 glib_compile_schemas_SOURCES = \
643 gvdb/gvdb-builder.h \
644 gvdb/gvdb-builder.c \
645 glib-compile-schemas.c
648 $(top_builddir)/glib/libglib-2.0.la \
649 $(top_builddir)/gobject/libgobject-2.0.la \
651 gsettings_SOURCES = gsettings-tool.c
653 schemadir = $(datadir)/glib-2.0/schemas
654 dist_schema_DATA = gschema.dtd
656 # ------------------------------------------------------------------------
659 bin_PROGRAMS += gdbus
660 gdbus_SOURCES = gdbus-tool.c
661 gdbus_LDADD = libgio-2.0.la \
662 $(top_builddir)/glib/libglib-2.0.la \
663 $(top_builddir)/gobject/libgobject-2.0.la
665 completiondir = $(sysconfdir)/bash_completion.d
667 gdbus-bash-completion.sh \
668 gsettings-bash-completion.sh
669 EXTRA_DIST += $(completion_DATA)
671 # ------------------------------------------------------------------------
673 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
674 files='$(BUILT_EXTRA_DIST)'; \
675 for f in $$files; do \
676 if test -f $$f; then d=.; else d=$(srcdir); fi; \
677 cp $$d/$$f $(distdir) || exit 1; done
679 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
680 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
682 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
683 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
686 done | sort -u >libgio.sourcefiles
687 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
688 rm libgio.sourcefiles
690 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
691 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
693 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
694 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'" />' \
697 done | sort -u >libgio.vs10.sourcefiles
698 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
699 rm libgio.vs10.sourcefiles
701 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
702 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
704 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
705 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
708 done | sort -u >libgio.vs10.sourcefiles.filters
709 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
710 rm libgio.vs10.sourcefiles.filters
712 if HAVE_GLIB_RUNTIME_LIBDIR
714 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
715 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
716 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
717 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
718 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so