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
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 \
154 application_sources = \
156 gapplicationcommandline.c \
157 gapplicationimpl-dbus.c \
162 gsimpleactiongroup.c \
163 gremoteactiongroup.c \
164 gactiongroupexporter.c \
177 glocaldirectorymonitor.c \
178 glocaldirectorymonitor.h \
181 glocalfileenumerator.c \
182 glocalfileenumerator.h \
185 glocalfileinputstream.c \
186 glocalfileinputstream.h \
187 glocalfilemonitor.c \
188 glocalfilemonitor.h \
189 glocalfileoutputstream.c \
190 glocalfileoutputstream.h \
191 glocalfileiostream.c \
192 glocalfileiostream.h \
209 platform_libadd += inotify/libinotify.la
210 platform_deps += inotify/libinotify.la
214 AM_CPPFLAGS += -DHAVE_FEN
216 platform_libadd += fen/libfen.la
217 platform_deps += fen/libfen.la
222 platform_libadd += win32/libgiowin32.la
223 platform_deps += win32/libgiowin32.la
233 appinfo_sources += gdesktopappinfo.c
234 platform_libadd += xdgmime/libxdgmime.la $(RESOLVER_LIBADD)
235 platform_deps += xdgmime/libxdgmime.la
237 gfiledescriptorbased.c \
239 gunixcredentialsmessage.c \
245 gunixsocketaddress.c \
248 gunixvolumemonitor.c \
249 gunixvolumemonitor.h \
251 gunixoutputstream.c \
255 giounixincludedir=$(includedir)/gio-unix-2.0/gio
256 giounixinclude_HEADERS = \
258 gfiledescriptorbased.h \
260 gunixcredentialsmessage.h \
265 gunixoutputstream.h \
266 gunixsocketaddress.h \
271 gnetworkmonitornetlink.c \
272 gnetworkmonitornetlink.h \
277 win32_actual_sources = \
280 gwin32volumemonitor.c \
281 gwin32volumemonitor.h \
282 gwin32inputstream.c \
283 gwin32outputstream.c \
284 gwin32outputstream.h \
287 win32_more_sources_for_vcproj = \
289 gregistrysettingsbackend.c \
290 win32/gwin32directorymonitor.c \
291 win32/gwinhttpfile.c \
292 win32/gwinhttpfileinputstream.c \
293 win32/gwinhttpfileoutputstream.c \
297 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
298 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
299 win32_sources = $(win32_actual_sources)
301 giowin32includedir=$(includedir)/gio-win32-2.0/gio
302 giowin32include_HEADERS = \
303 gwin32inputstream.h \
304 gwin32outputstream.h \
311 libgio_2_0_la_SOURCES = \
317 gbufferedinputstream.c \
318 gbufferedoutputstream.c \
321 gcontenttypeprivate.h \
322 gcharsetconverter.c \
324 gconverterinputstream.c \
325 gconverteroutputstream.c \
328 gdataoutputstream.c \
332 gdummyproxyresolver.c \
333 gdummyproxyresolver.h \
342 gfileattribute-priv.h \
349 gfilenamecompleter.c \
350 gfileoutputstream.c \
352 gfilterinputstream.c \
353 gfilteroutputstream.c \
357 ginetsocketaddress.c \
368 gmemoryinputstream.c \
369 gmemoryoutputstream.c \
371 gnativevolumemonitor.c \
372 gnativevolumemonitor.h \
374 gnetworkingprivate.h \
376 gnetworkmonitorbase.c \
377 gnetworkmonitorbase.h \
381 gpollableinputstream.c \
382 gpollableoutputstream.c \
391 gsimpleasyncresult.c \
392 gsimplepermission.c \
395 gsocketaddressenumerator.c \
397 gsocketconnectable.c \
398 gsocketconnection.c \
399 gsocketcontrolmessage.c \
400 gsocketinputstream.c \
401 gsocketinputstream.h \
403 gsocketoutputstream.c \
404 gsocketoutputstream.h \
407 gproxyaddressenumerator.c \
411 gtcpwrapperconnection.c \
412 gthreadedsocketservice.c\
414 gthreadedresolver.c \
415 gthreadedresolver.h \
418 gtlsclientconnection.c \
424 gtlsserverconnection.c \
425 gunionvolumemonitor.c \
426 gunionvolumemonitor.h \
431 gzlibdecompressor.c \
438 $(application_sources) \
439 $(settings_sources) \
444 EXTRA_DIST += strinfo.c
446 libgio_2_0_la_LIBADD = \
447 $(top_builddir)/glib/libglib-2.0.la \
448 $(top_builddir)/gobject/libgobject-2.0.la \
449 $(top_builddir)/gmodule/libgmodule-2.0.la \
458 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
461 libgio_2_0_la_CFLAGS = -xobjective-c
465 no_undefined = -no-undefined
468 if OS_WIN32_AND_DLL_COMPILATION
469 export_symbols = -export-symbols gio.def
472 gio_win32_res = gio-win32-res.o
473 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
476 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
479 -rm $(DESTDIR)$(libdir)/gio-2.0.def
484 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
487 install-data-local: install-ms-lib install-def-file
488 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
490 uninstall-local: uninstall-ms-lib uninstall-def-file
492 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
493 $(gio_win32_res_ldflag) \
494 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
495 -export-dynamic $(no_undefined) $(export_symbols)
497 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
499 gio-win32-res.o: gio.rc
506 gbufferedinputstream.h \
507 gbufferedoutputstream.h \
510 gcharsetconverter.h \
512 gconverterinputstream.h \
513 gconverteroutputstream.h \
515 gdataoutputstream.h \
526 gfilenamecompleter.h \
527 gfileoutputstream.h \
529 gfilterinputstream.h \
530 gfilteroutputstream.h \
534 ginetsocketaddress.h \
546 gmemoryinputstream.h \
547 gmemoryoutputstream.h \
549 gnativevolumemonitor.h \
555 gpollableinputstream.h \
556 gpollableoutputstream.h \
559 gproxyaddressenumerator.h \
564 gsimpleasyncresult.h \
565 gsimplepermission.h \
568 gsocketaddressenumerator.h \
570 gsocketconnectable.h \
571 gsocketconnection.h \
572 gsocketcontrolmessage.h \
577 gtcpwrapperconnection.h \
578 gthreadedsocketservice.h\
582 gtlsclientconnection.h \
588 gtlsserverconnection.h \
593 gzlibdecompressor.h \
594 $(application_headers) \
595 $(settings_headers) \
599 gioincludedir=$(includedir)/glib-2.0/gio/
600 gioinclude_HEADERS = \
604 # these sources (also mentioned above) are generated.
612 gioenumtypes.h.template \
613 gioenumtypes.c.template \
626 # This is read by gobject-introspection/misc/ and gtk-doc
627 gio-public-headers.txt: Makefile
628 echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
630 CLEANFILES = gio-public-headers.txt
632 all-local: gio-public-headers.txt
634 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
635 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
636 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
637 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
639 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
640 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
641 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
642 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
644 gio-2.0.lib: libgio-2.0.la gio.def
645 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
647 bin_PROGRAMS = gio-querymodules glib-compile-schemas glib-compile-resources gsettings
649 glib_compile_resources_LDADD = \
650 $(top_builddir)/glib/libglib-2.0.la \
651 $(top_builddir)/gobject/libgobject-2.0.la \
654 glib_compile_resources_SOURCES = \
656 gvdb/gvdb-builder.h \
657 gvdb/gvdb-builder.c \
658 glib-compile-resources.c
660 gio_querymodules_SOURCES = gio-querymodules.c
661 gio_querymodules_LDADD = \
662 $(top_builddir)/glib/libglib-2.0.la \
663 $(top_builddir)/gobject/libgobject-2.0.la \
664 $(top_builddir)/gmodule/libgmodule-2.0.la \
668 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
669 glib_compile_schemas_SOURCES = \
671 gvdb/gvdb-builder.h \
672 gvdb/gvdb-builder.c \
673 glib-compile-schemas.c
676 $(top_builddir)/glib/libglib-2.0.la \
677 $(top_builddir)/gobject/libgobject-2.0.la \
679 gsettings_SOURCES = gsettings-tool.c
681 schemadir = $(datadir)/glib-2.0/schemas
682 dist_schema_DATA = gschema.dtd
684 # ------------------------------------------------------------------------
687 bin_PROGRAMS += gdbus
688 gdbus_SOURCES = gdbus-tool.c
689 gdbus_LDADD = libgio-2.0.la \
690 $(top_builddir)/glib/libglib-2.0.la \
691 $(top_builddir)/gobject/libgobject-2.0.la
693 completiondir = $(sysconfdir)/bash_completion.d
695 gdbus-bash-completion.sh \
696 gsettings-bash-completion.sh
697 EXTRA_DIST += $(completion_DATA)
699 # ------------------------------------------------------------------------
701 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
702 files='$(BUILT_EXTRA_DIST)'; \
703 for f in $$files; do \
704 if test -f $$f; then d=.; else d=$(srcdir); fi; \
705 cp $$d/$$f $(distdir) || exit 1; done
707 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
708 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
710 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
711 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
714 done | sort -u >libgio.sourcefiles
715 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
716 rm libgio.sourcefiles
718 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
719 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
721 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
722 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'" />' \
725 done | sort -u >libgio.vs10.sourcefiles
726 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
727 rm libgio.vs10.sourcefiles
729 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
730 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
732 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
733 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
736 done | sort -u >libgio.vs10.sourcefiles.filters
737 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
738 rm libgio.vs10.sourcefiles.filters
740 if HAVE_GLIB_RUNTIME_LIBDIR
742 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
743 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
744 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
745 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
746 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so