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) > $(builddir)/gio.def.tmp && \
28 mv $(builddir)/gio.def.tmp $(builddir)/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
128 AM_CPPFLAGS += -DG_OS_CARBON
130 settings_sources += \
131 gnextstepsettingsbackend.c
134 application_headers = \
136 gapplicationcommandline.h \
140 gsimpleactiongroup.h \
141 gremoteactiongroup.h \
142 gactiongroupexporter.h \
153 application_sources = \
155 gapplicationcommandline.c \
156 gapplicationimpl-dbus.c \
161 gsimpleactiongroup.c \
162 gremoteactiongroup.c \
163 gactiongroupexporter.c \
175 glocaldirectorymonitor.c \
176 glocaldirectorymonitor.h \
179 glocalfileenumerator.c \
180 glocalfileenumerator.h \
183 glocalfileinputstream.c \
184 glocalfileinputstream.h \
185 glocalfilemonitor.c \
186 glocalfilemonitor.h \
187 glocalfileoutputstream.c \
188 glocalfileoutputstream.h \
189 glocalfileiostream.c \
190 glocalfileiostream.h \
207 platform_libadd += inotify/libinotify.la
208 platform_deps += inotify/libinotify.la
212 AM_CPPFLAGS += -DHAVE_FEN
214 platform_libadd += fen/libfen.la
215 platform_deps += fen/libfen.la
220 platform_libadd += win32/libgiowin32.la
221 platform_deps += win32/libgiowin32.la
231 appinfo_sources += gdesktopappinfo.c
232 platform_libadd += xdgmime/libxdgmime.la $(RESOLVER_LIBADD)
233 platform_deps += xdgmime/libxdgmime.la
235 gfiledescriptorbased.c \
237 gunixcredentialsmessage.c \
243 gunixsocketaddress.c \
246 gunixvolumemonitor.c \
247 gunixvolumemonitor.h \
249 gunixoutputstream.c \
253 giounixincludedir=$(includedir)/gio-unix-2.0/gio
254 giounixinclude_HEADERS = \
256 gfiledescriptorbased.h \
258 gunixcredentialsmessage.h \
263 gunixoutputstream.h \
264 gunixsocketaddress.h \
269 gnetworkmonitornetlink.c \
270 gnetworkmonitornetlink.h \
275 win32_actual_sources = \
278 gwin32volumemonitor.c \
279 gwin32volumemonitor.h \
280 gwin32inputstream.c \
281 gwin32outputstream.c \
282 gwin32outputstream.h \
285 win32_more_sources_for_vcproj = \
287 gregistrysettingsbackend.c \
288 win32/gwin32directorymonitor.c \
289 win32/gwinhttpfile.c \
290 win32/gwinhttpfileinputstream.c \
291 win32/gwinhttpfileoutputstream.c \
295 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
296 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
297 win32_sources = $(win32_actual_sources)
299 giowin32includedir=$(includedir)/gio-win32-2.0/gio
300 giowin32include_HEADERS = \
301 gwin32inputstream.h \
302 gwin32outputstream.h \
309 libgio_2_0_la_SOURCES = \
315 gbufferedinputstream.c \
316 gbufferedoutputstream.c \
319 gcontenttypeprivate.h \
320 gcharsetconverter.c \
322 gconverterinputstream.c \
323 gconverteroutputstream.c \
326 gdataoutputstream.c \
330 gdummyproxyresolver.c \
331 gdummyproxyresolver.h \
340 gfileattribute-priv.h \
347 gfilenamecompleter.c \
348 gfileoutputstream.c \
350 gfilterinputstream.c \
351 gfilteroutputstream.c \
355 ginetsocketaddress.c \
366 gmemoryinputstream.c \
367 gmemoryoutputstream.c \
369 gnativevolumemonitor.c \
370 gnativevolumemonitor.h \
372 gnetworkingprivate.h \
374 gnetworkmonitorbase.c \
375 gnetworkmonitorbase.h \
379 gpollableinputstream.c \
380 gpollableoutputstream.c \
389 gsimpleasyncresult.c \
390 gsimplepermission.c \
393 gsocketaddressenumerator.c \
395 gsocketconnectable.c \
396 gsocketconnection.c \
397 gsocketcontrolmessage.c \
398 gsocketinputstream.c \
399 gsocketinputstream.h \
401 gsocketoutputstream.c \
402 gsocketoutputstream.h \
405 gproxyaddressenumerator.c \
409 gtcpwrapperconnection.c \
410 gthreadedsocketservice.c\
412 gthreadedresolver.c \
413 gthreadedresolver.h \
416 gtlsclientconnection.c \
422 gtlsserverconnection.c \
423 gunionvolumemonitor.c \
424 gunionvolumemonitor.h \
429 gzlibdecompressor.c \
436 $(application_sources) \
437 $(settings_sources) \
442 EXTRA_DIST += strinfo.c
444 libgio_2_0_la_LIBADD = \
445 $(top_builddir)/glib/libglib-2.0.la \
446 $(top_builddir)/gobject/libgobject-2.0.la \
447 $(top_builddir)/gmodule/libgmodule-2.0.la \
456 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
459 no_undefined = -no-undefined
462 if OS_WIN32_AND_DLL_COMPILATION
463 export_symbols = -export-symbols $(builddir)/gio.def
466 gio_win32_res = gio-win32-res.o
467 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
470 $(INSTALL) $(builddir)/gio.def $(DESTDIR)$(libdir)/gio-2.0.def
473 -rm $(DESTDIR)$(libdir)/gio-2.0.def
478 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
481 install-data-local: install-ms-lib install-def-file
482 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
484 uninstall-local: uninstall-ms-lib uninstall-def-file
486 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
487 $(gio_win32_res_ldflag) \
488 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
489 -export-dynamic $(no_undefined) $(export_symbols)
491 # This condition is misnamed. It's really checking for Cocoa, not Carbon
493 # This is dumb. The ObjC source file should be properly named .m
494 libgio_2_0_la_CFLAGS = -xobjective-c
495 libgio_2_0_la_LDFLAGS += -framework Foundation
498 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
500 gio-win32-res.o: gio.rc
507 gbufferedinputstream.h \
508 gbufferedoutputstream.h \
511 gcharsetconverter.h \
513 gconverterinputstream.h \
514 gconverteroutputstream.h \
516 gdataoutputstream.h \
527 gfilenamecompleter.h \
528 gfileoutputstream.h \
530 gfilterinputstream.h \
531 gfilteroutputstream.h \
535 ginetsocketaddress.h \
547 gmemoryinputstream.h \
548 gmemoryoutputstream.h \
550 gnativevolumemonitor.h \
556 gpollableinputstream.h \
557 gpollableoutputstream.h \
560 gproxyaddressenumerator.h \
565 gsimpleasyncresult.h \
566 gsimplepermission.h \
569 gsocketaddressenumerator.h \
571 gsocketconnectable.h \
572 gsocketconnection.h \
573 gsocketcontrolmessage.h \
578 gtcpwrapperconnection.h \
579 gthreadedsocketservice.h\
583 gtlsclientconnection.h \
589 gtlsserverconnection.h \
594 gzlibdecompressor.h \
595 $(application_headers) \
596 $(settings_headers) \
600 gioincludedir=$(includedir)/glib-2.0/gio/
601 gioinclude_HEADERS = \
605 # these sources (also mentioned above) are generated.
607 gconstructor_as_data.h \
615 gioenumtypes.h.template \
616 gioenumtypes.c.template \
621 gconstructor_as_data.h \
627 # This is read by gobject-introspection/misc/ and gtk-doc
628 gio-public-headers.txt: Makefile
629 echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
631 CLEANFILES = gio-public-headers.txt gconstructor_as_data.h
633 all-local: gio-public-headers.txt
635 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
636 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
637 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
638 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
640 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
641 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
642 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
643 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
645 gio-2.0.lib: libgio-2.0.la gio.def
646 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/gio.def -out:$@
648 bin_PROGRAMS = gio-querymodules glib-compile-schemas glib-compile-resources gsettings
650 glib_compile_resources_LDADD = \
651 $(top_builddir)/glib/libglib-2.0.la \
652 $(top_builddir)/gobject/libgobject-2.0.la \
655 glib_compile_resources_SOURCES = \
657 gvdb/gvdb-builder.h \
658 gvdb/gvdb-builder.c \
659 glib-compile-resources.c
661 gio_querymodules_SOURCES = gio-querymodules.c
662 gio_querymodules_LDADD = \
663 $(top_builddir)/glib/libglib-2.0.la \
664 $(top_builddir)/gobject/libgobject-2.0.la \
665 $(top_builddir)/gmodule/libgmodule-2.0.la \
669 gconstructor_as_data.h: $(top_srcdir)/glib/gconstructor.h data-to-c.pl
670 $(AM_V_GEN) $(srcdir)/data-to-c.pl $(top_srcdir)/glib/gconstructor.h gconstructor_code > $@.tmp && mv $@.tmp $@
672 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
673 glib_compile_schemas_SOURCES = \
674 gconstructor_as_data.h \
676 gvdb/gvdb-builder.h \
677 gvdb/gvdb-builder.c \
678 glib-compile-schemas.c
681 $(top_builddir)/glib/libglib-2.0.la \
682 $(top_builddir)/gobject/libgobject-2.0.la \
684 gsettings_SOURCES = gsettings-tool.c
686 schemadir = $(datadir)/glib-2.0/schemas
687 dist_schema_DATA = gschema.dtd
689 # ------------------------------------------------------------------------
692 bin_PROGRAMS += gdbus
693 gdbus_SOURCES = gdbus-tool.c
694 gdbus_LDADD = libgio-2.0.la \
695 $(top_builddir)/glib/libglib-2.0.la \
696 $(top_builddir)/gobject/libgobject-2.0.la
698 completiondir = $(sysconfdir)/bash_completion.d
700 gdbus-bash-completion.sh \
701 gsettings-bash-completion.sh \
702 gresource-bash-completion.sh
703 EXTRA_DIST += $(completion_DATA)
705 # ------------------------------------------------------------------------
708 bin_PROGRAMS += gresource
709 gresource_SOURCES = gresource-tool.c
710 gresource_CPPFLAGS = $(LIBELF_CFLAGS) $(AM_CPPFLAGS)
711 gresource_LDADD = libgio-2.0.la \
712 $(top_builddir)/glib/libglib-2.0.la \
713 $(top_builddir)/gobject/libgobject-2.0.la \
716 # ------------------------------------------------------------------------
718 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
719 files='$(BUILT_EXTRA_DIST)'; \
720 for f in $$files; do \
721 if test -f $$f; then d=.; else d=$(srcdir); fi; \
722 cp $$d/$$f $(distdir) || exit 1; done
724 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
725 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
727 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
728 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
731 done | sort -u >libgio.sourcefiles
732 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
733 rm libgio.sourcefiles
735 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
736 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
738 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
739 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'" />' \
742 done | sort -u >libgio.vs10.sourcefiles
743 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
744 rm libgio.vs10.sourcefiles
746 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
747 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
749 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
750 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
753 done | sort -u >libgio.vs10.sourcefiles.filters
754 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
755 rm libgio.vs10.sourcefiles.filters
757 if HAVE_GLIB_RUNTIME_LIBDIR
759 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
760 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
761 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
762 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
763 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so