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 = \
130 gsimpleactiongroup.h \
134 gactiongroupexporter.h \
135 gapplicationcommandline.h \
144 application_sources = \
147 gsimpleactiongroup.c \
151 gactiongroupexporter.c \
152 gapplicationcommandline.c \
154 gapplicationimpl-dbus.c \
164 glocaldirectorymonitor.c \
165 glocaldirectorymonitor.h \
168 glocalfileenumerator.c \
169 glocalfileenumerator.h \
172 glocalfileinputstream.c \
173 glocalfileinputstream.h \
174 glocalfilemonitor.c \
175 glocalfilemonitor.h \
176 glocalfileoutputstream.c \
177 glocalfileoutputstream.h \
178 glocalfileiostream.c \
179 glocalfileiostream.h \
196 platform_libadd += inotify/libinotify.la
197 platform_deps += inotify/libinotify.la
201 AM_CPPFLAGS += -DHAVE_FEN
203 platform_libadd += fen/libfen.la
204 platform_deps += fen/libfen.la
209 platform_libadd += win32/libgiowin32.la
210 platform_deps += win32/libgiowin32.la
220 appinfo_sources += gdesktopappinfo.c
221 platform_libadd += xdgmime/libxdgmime.la $(RESOLVER_LIBADD)
222 platform_deps += xdgmime/libxdgmime.la
224 gfiledescriptorbased.c \
226 gunixcredentialsmessage.c \
232 gunixsocketaddress.c \
235 gunixvolumemonitor.c \
236 gunixvolumemonitor.h \
238 gunixoutputstream.c \
242 giounixincludedir=$(includedir)/gio-unix-2.0/gio
243 giounixinclude_HEADERS = \
245 gfiledescriptorbased.h \
247 gunixcredentialsmessage.h \
252 gunixoutputstream.h \
253 gunixsocketaddress.h \
258 gnetworkmonitornetlink.c \
259 gnetworkmonitornetlink.h \
264 win32_actual_sources = \
267 gwin32volumemonitor.c \
268 gwin32volumemonitor.h \
269 gwin32inputstream.c \
270 gwin32outputstream.c \
271 gwin32outputstream.h \
274 win32_more_sources_for_vcproj = \
276 gregistrysettingsbackend.c \
277 win32/gwin32directorymonitor.c \
278 win32/gwinhttpfile.c \
279 win32/gwinhttpfileinputstream.c \
280 win32/gwinhttpfileoutputstream.c \
284 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
285 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
286 win32_sources = $(win32_actual_sources)
288 giowin32includedir=$(includedir)/gio-win32-2.0/gio
289 giowin32include_HEADERS = \
290 gwin32inputstream.h \
291 gwin32outputstream.h \
298 libgio_2_0_la_SOURCES = \
304 gbufferedinputstream.c \
305 gbufferedoutputstream.c \
308 gcontenttypeprivate.h \
309 gcharsetconverter.c \
311 gconverterinputstream.c \
312 gconverteroutputstream.c \
315 gdataoutputstream.c \
319 gdummyproxyresolver.c \
320 gdummyproxyresolver.h \
329 gfileattribute-priv.h \
336 gfilenamecompleter.c \
337 gfileoutputstream.c \
339 gfilterinputstream.c \
340 gfilteroutputstream.c \
344 ginetsocketaddress.c \
355 gmemoryinputstream.c \
356 gmemoryoutputstream.c \
358 gnativevolumemonitor.c \
359 gnativevolumemonitor.h \
361 gnetworkingprivate.h \
363 gnetworkmonitorbase.c \
364 gnetworkmonitorbase.h \
368 gpollableinputstream.c \
369 gpollableoutputstream.c \
375 gsimpleasyncresult.c \
376 gsimplepermission.c \
379 gsocketaddressenumerator.c \
381 gsocketconnectable.c \
382 gsocketconnection.c \
383 gsocketcontrolmessage.c \
384 gsocketinputstream.c \
385 gsocketinputstream.h \
387 gsocketoutputstream.c \
388 gsocketoutputstream.h \
391 gproxyaddressenumerator.c \
395 gtcpwrapperconnection.c \
396 gthreadedsocketservice.c\
398 gthreadedresolver.c \
399 gthreadedresolver.h \
402 gtlsclientconnection.c \
408 gtlsserverconnection.c \
409 gunionvolumemonitor.c \
410 gunionvolumemonitor.h \
415 gzlibdecompressor.c \
422 $(application_sources) \
423 $(settings_sources) \
428 EXTRA_DIST += strinfo.c
430 libgio_2_0_la_LIBADD = \
431 $(top_builddir)/glib/libglib-2.0.la \
432 $(top_builddir)/gobject/libgobject-2.0.la \
433 $(top_builddir)/gmodule/libgmodule-2.0.la \
442 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
445 no_undefined = -no-undefined
448 if OS_WIN32_AND_DLL_COMPILATION
449 export_symbols = -export-symbols gio.def
452 gio_win32_res = gio-win32-res.o
453 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
456 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
459 -rm $(DESTDIR)$(libdir)/gio-2.0.def
464 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
467 install-data-local: install-ms-lib install-def-file
468 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
470 uninstall-local: uninstall-ms-lib uninstall-def-file
472 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
473 $(gio_win32_res_ldflag) \
474 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
475 -export-dynamic $(no_undefined) $(export_symbols)
477 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
479 gio-win32-res.o: gio.rc
486 gbufferedinputstream.h \
487 gbufferedoutputstream.h \
490 gcharsetconverter.h \
492 gconverterinputstream.h \
493 gconverteroutputstream.h \
495 gdataoutputstream.h \
506 gfilenamecompleter.h \
507 gfileoutputstream.h \
509 gfilterinputstream.h \
510 gfilteroutputstream.h \
514 ginetsocketaddress.h \
526 gmemoryinputstream.h \
527 gmemoryoutputstream.h \
529 gnativevolumemonitor.h \
535 gpollableinputstream.h \
536 gpollableoutputstream.h \
539 gproxyaddressenumerator.h \
543 gsimpleasyncresult.h \
544 gsimplepermission.h \
547 gsocketaddressenumerator.h \
549 gsocketconnectable.h \
550 gsocketconnection.h \
551 gsocketcontrolmessage.h \
556 gtcpwrapperconnection.h \
557 gthreadedsocketservice.h\
561 gtlsclientconnection.h \
567 gtlsserverconnection.h \
572 gzlibdecompressor.h \
573 $(application_headers) \
574 $(settings_headers) \
578 gioincludedir=$(includedir)/glib-2.0/gio/
579 gioinclude_HEADERS = \
583 # these sources (also mentioned above) are generated.
591 gioenumtypes.h.template \
592 gioenumtypes.c.template \
605 # This is read by gobject-introspection/misc/ and gtk-doc
606 gio-public-headers.txt: Makefile
607 echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
609 CLEANFILES = gio-public-headers.txt
611 all-local: gio-public-headers.txt
613 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
614 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
615 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
616 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
618 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
619 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
620 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
621 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
623 gio-2.0.lib: libgio-2.0.la gio.def
624 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
626 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
628 gio_querymodules_SOURCES = gio-querymodules.c
629 gio_querymodules_LDADD = \
630 $(top_builddir)/glib/libglib-2.0.la \
631 $(top_builddir)/gobject/libgobject-2.0.la \
632 $(top_builddir)/gmodule/libgmodule-2.0.la \
636 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
637 glib_compile_schemas_SOURCES = \
639 gvdb/gvdb-builder.h \
640 gvdb/gvdb-builder.c \
641 glib-compile-schemas.c
644 $(top_builddir)/glib/libglib-2.0.la \
645 $(top_builddir)/gobject/libgobject-2.0.la \
647 gsettings_SOURCES = gsettings-tool.c
649 schemadir = $(datadir)/glib-2.0/schemas
650 dist_schema_DATA = gschema.dtd
652 # ------------------------------------------------------------------------
655 bin_PROGRAMS += gdbus
656 gdbus_SOURCES = gdbus-tool.c
657 gdbus_LDADD = libgio-2.0.la \
658 $(top_builddir)/glib/libglib-2.0.la \
659 $(top_builddir)/gobject/libgobject-2.0.la
661 completiondir = $(sysconfdir)/bash_completion.d
663 gdbus-bash-completion.sh \
664 gsettings-bash-completion.sh
665 EXTRA_DIST += $(completion_DATA)
667 # ------------------------------------------------------------------------
669 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
670 files='$(BUILT_EXTRA_DIST)'; \
671 for f in $$files; do \
672 if test -f $$f; then d=.; else d=$(srcdir); fi; \
673 cp $$d/$$f $(distdir) || exit 1; done
675 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
676 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
678 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
679 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
682 done | sort -u >libgio.sourcefiles
683 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
684 rm libgio.sourcefiles
686 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
687 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
689 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
690 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'" />' \
693 done | sort -u >libgio.vs10.sourcefiles
694 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
695 rm libgio.vs10.sourcefiles
697 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
698 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
700 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
701 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
704 done | sort -u >libgio.vs10.sourcefiles.filters
705 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
706 rm libgio.vs10.sourcefiles.filters
708 if HAVE_GLIB_RUNTIME_LIBDIR
710 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
711 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
712 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
713 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
714 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so