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\" \
40 -DG_THREADS_MANDATORY \
41 -DG_DISABLE_DEPRECATED \
43 -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
45 lib_LTLIBRARIES = libgio-2.0.la
58 gdbusintrospection.h \
59 gdbusmethodinvocation.h \
62 gdbusinterfaceskeleton.h \
64 gdbusobjectskeleton.h \
66 gdbusobjectmanager.h \
67 gdbusobjectmanagerclient.h \
68 gdbusobjectmanagerserver.h \
72 gdbusutils.h gdbusutils.c \
73 gdbusaddress.h gdbusaddress.c \
74 gdbusauthobserver.h gdbusauthobserver.c \
75 gdbusauth.h gdbusauth.c \
76 gdbusauthmechanism.h gdbusauthmechanism.c \
77 gdbusauthmechanismanon.h gdbusauthmechanismanon.c \
78 gdbusauthmechanismexternal.h gdbusauthmechanismexternal.c \
79 gdbusauthmechanismsha1.h gdbusauthmechanismsha1.c \
80 gdbuserror.h gdbuserror.c \
81 gdbusconnection.h gdbusconnection.c \
82 gdbusmessage.h gdbusmessage.c \
83 gdbusnameowning.h gdbusnameowning.c \
84 gdbusnamewatching.h gdbusnamewatching.c \
85 gdbusproxy.h gdbusproxy.c \
86 gdbusprivate.h gdbusprivate.c \
87 gdbusintrospection.h gdbusintrospection.c \
88 gdbusmethodinvocation.h gdbusmethodinvocation.c \
89 gdbusserver.h gdbusserver.c \
90 gdbusinterface.h gdbusinterface.c \
91 gdbusinterfaceskeleton.h gdbusinterfaceskeleton.c \
92 gdbusobject.h gdbusobject.c \
93 gdbusobjectskeleton.h gdbusobjectskeleton.c \
94 gdbusobjectproxy.h gdbusobjectproxy.c \
95 gdbusobjectmanager.h gdbusobjectmanager.c \
96 gdbusobjectmanagerclient.h gdbusobjectmanagerclient.c \
97 gdbusobjectmanagerserver.h gdbusobjectmanagerserver.c \
108 gdelayedsettingsbackend.h \
109 gdelayedsettingsbackend.c \
110 gkeyfilesettingsbackend.c \
111 gmemorysettingsbackend.c \
112 gnullsettingsbackend.c \
113 gsettingsbackendinternal.h \
117 gsettings-mapping.h \
118 gsettings-mapping.c \
122 settings_sources += \
123 gregistrysettingsbackend.h \
124 gregistrysettingsbackend.c
127 application_headers = \
129 gsimpleactiongroup.h \
132 gapplicationcommandline.h \
135 application_sources = \
137 gsimpleactiongroup.c \
140 gapplicationcommandline.c \
142 gapplicationimpl-dbus.c \
146 glocaldirectorymonitor.c \
147 glocaldirectorymonitor.h \
150 glocalfileenumerator.c \
151 glocalfileenumerator.h \
154 glocalfileinputstream.c \
155 glocalfileinputstream.h \
156 glocalfilemonitor.c \
157 glocalfilemonitor.h \
158 glocalfileoutputstream.c \
159 glocalfileoutputstream.h \
160 glocalfileiostream.c \
161 glocalfileiostream.h \
178 platform_libadd += inotify/libinotify.la
179 platform_deps += inotify/libinotify.la
183 AM_CPPFLAGS += -DHAVE_FEN
185 platform_libadd += fen/libfen.la
186 platform_deps += fen/libfen.la
191 platform_libadd += win32/libgiowin32.la
192 platform_deps += win32/libgiowin32.la
202 appinfo_sources += gdesktopappinfo.c
203 platform_libadd += xdgmime/libxdgmime.la $(RESOLVER_LIBADD)
204 platform_deps += xdgmime/libxdgmime.la
206 gfiledescriptorbased.c \
208 gunixcredentialsmessage.c \
214 gunixsocketaddress.c \
217 gunixvolumemonitor.c \
218 gunixvolumemonitor.h \
220 gunixoutputstream.c \
224 giounixincludedir=$(includedir)/gio-unix-2.0/gio
225 giounixinclude_HEADERS = \
227 gfiledescriptorbased.h \
229 gunixcredentialsmessage.h \
234 gunixoutputstream.h \
235 gunixsocketaddress.h \
239 win32_actual_sources = \
242 gwin32volumemonitor.c \
243 gwin32volumemonitor.h \
244 gwin32inputstream.c \
245 gwin32outputstream.c \
246 gwin32outputstream.h \
249 win32_more_sources_for_vcproj = \
251 gregistrysettingsbackend.c \
252 win32/gwin32directorymonitor.c \
253 win32/gwinhttpfile.c \
254 win32/gwinhttpfileinputstream.c \
255 win32/gwinhttpfileoutputstream.c \
259 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
260 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
261 win32_sources = $(win32_actual_sources)
263 giowin32includedir=$(includedir)/gio-win32-2.0/gio
264 giowin32include_HEADERS = \
265 gwin32inputstream.h \
266 gwin32outputstream.h \
273 libgio_2_0_la_SOURCES = \
279 gbufferedinputstream.c \
280 gbufferedoutputstream.c \
284 gcontenttypeprivate.h \
285 gcharsetconverter.c \
287 gconverterinputstream.c \
288 gconverteroutputstream.c \
291 gdataoutputstream.c \
295 gdummyproxyresolver.c \
296 gdummyproxyresolver.h \
305 gfileattribute-priv.h \
312 gfilenamecompleter.c \
313 gfileoutputstream.c \
315 gfilterinputstream.c \
316 gfilteroutputstream.c \
319 ginetsocketaddress.c \
330 gmemoryinputstream.c \
331 gmemoryoutputstream.c \
333 gnativevolumemonitor.c \
334 gnativevolumemonitor.h \
336 gnetworkingprivate.h \
340 gpollableinputstream.c \
341 gpollableoutputstream.c \
347 gsimpleasyncresult.c \
348 gsimplepermission.c \
351 gsocketaddressenumerator.c \
353 gsocketconnectable.c \
354 gsocketconnection.c \
355 gsocketcontrolmessage.c \
356 gsocketinputstream.c \
357 gsocketinputstream.h \
359 gsocketoutputstream.c \
360 gsocketoutputstream.h \
363 gproxyaddressenumerator.c \
367 gtcpwrapperconnection.c \
368 gthreadedsocketservice.c\
370 gthreadedresolver.c \
371 gthreadedresolver.h \
374 gtlsclientconnection.c \
380 gtlsserverconnection.c \
381 gunionvolumemonitor.c \
382 gunionvolumemonitor.h \
387 gzlibdecompressor.c \
394 $(application_sources) \
395 $(settings_sources) \
400 EXTRA_DIST += strinfo.c
402 libgio_2_0_la_LIBADD = \
403 $(top_builddir)/glib/libglib-2.0.la \
404 $(top_builddir)/gobject/libgobject-2.0.la \
405 $(top_builddir)/gmodule/libgmodule-2.0.la \
414 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
417 no_undefined = -no-undefined
420 if OS_WIN32_AND_DLL_COMPILATION
421 export_symbols = -export-symbols gio.def
424 gio_win32_res = gio-win32-res.o
425 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
428 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
431 -rm $(DESTDIR)$(libdir)/gio-2.0.def
436 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
439 install-data-local: install-ms-lib install-def-file
440 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
442 uninstall-local: uninstall-ms-lib uninstall-def-file
444 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
445 $(gio_win32_res_ldflag) \
446 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
447 -export-dynamic $(no_undefined) $(export_symbols)
449 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
451 gio-win32-res.o: gio.rc
458 gbufferedinputstream.h \
459 gbufferedoutputstream.h \
462 gcharsetconverter.h \
464 gconverterinputstream.h \
465 gconverteroutputstream.h \
467 gdataoutputstream.h \
478 gfilenamecompleter.h \
479 gfileoutputstream.h \
481 gfilterinputstream.h \
482 gfilteroutputstream.h \
485 ginetsocketaddress.h \
497 gmemoryinputstream.h \
498 gmemoryoutputstream.h \
500 gnativevolumemonitor.h \
505 gpollableinputstream.h \
506 gpollableoutputstream.h \
509 gproxyaddressenumerator.h \
513 gsimpleasyncresult.h \
514 gsimplepermission.h \
517 gsocketaddressenumerator.h \
519 gsocketconnectable.h \
520 gsocketconnection.h \
521 gsocketcontrolmessage.h \
526 gtcpwrapperconnection.h \
527 gthreadedsocketservice.h\
531 gtlsclientconnection.h \
537 gtlsserverconnection.h \
542 gzlibdecompressor.h \
543 $(application_headers) \
544 $(settings_headers) \
548 gioincludedir=$(includedir)/glib-2.0/gio/
549 gioinclude_HEADERS = \
553 # these sources (also mentioned above) are generated.
561 gioenumtypes.h.template \
562 gioenumtypes.c.template \
572 # This is read by gobject-introspection/misc/ and gtk-doc
573 gio-public-headers.txt: Makefile
574 echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
576 CLEANFILES = gio-public-headers.txt
578 all-local: gio-public-headers.txt
580 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
581 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
582 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
583 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
585 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
586 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
587 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
588 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
590 gio-2.0.lib: libgio-2.0.la gio.def
591 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
593 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
595 gio_querymodules_SOURCES = gio-querymodules.c
596 gio_querymodules_LDADD = \
597 $(top_builddir)/glib/libglib-2.0.la \
598 $(top_builddir)/gobject/libgobject-2.0.la \
599 $(top_builddir)/gmodule/libgmodule-2.0.la \
603 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
604 glib_compile_schemas_SOURCES = \
606 gvdb/gvdb-builder.h \
607 gvdb/gvdb-builder.c \
608 glib-compile-schemas.c
611 $(top_builddir)/glib/libglib-2.0.la \
612 $(top_builddir)/gobject/libgobject-2.0.la \
614 gsettings_SOURCES = gsettings-tool.c
616 schemadir = $(datadir)/glib-2.0/schemas
617 dist_schema_DATA = gschema.dtd
619 # ------------------------------------------------------------------------
622 bin_PROGRAMS += gdbus
623 gdbus_SOURCES = gdbus-tool.c
624 gdbus_LDADD = libgio-2.0.la \
625 $(top_builddir)/glib/libglib-2.0.la \
626 $(top_builddir)/gobject/libgobject-2.0.la
628 completiondir = $(sysconfdir)/bash_completion.d
630 gdbus-bash-completion.sh \
631 gsettings-bash-completion.sh
632 EXTRA_DIST += $(completion_DATA)
634 # ------------------------------------------------------------------------
636 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
637 files='$(BUILT_EXTRA_DIST)'; \
638 for f in $$files; do \
639 if test -f $$f; then d=.; else d=$(srcdir); fi; \
640 cp $$d/$$f $(distdir) || exit 1; done
642 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
643 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
645 gunix*.c|gdesktopappinfo.c) ;; \
646 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
649 done | sort -u >libgio.sourcefiles
650 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
651 rm libgio.sourcefiles
653 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
654 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
656 gunix*.c|gdesktopappinfo.c) ;; \
657 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'" />' \
660 done | sort -u >libgio.vs10.sourcefiles
661 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
662 rm libgio.vs10.sourcefiles
664 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
665 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
667 gunix*.c|gdesktopappinfo.c) ;; \
668 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
671 done | sort -u >libgio.vs10.sourcefiles.filters
672 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
673 rm libgio.vs10.sourcefiles.filters
675 if HAVE_GLIB_RUNTIME_LIBDIR
677 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
678 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
679 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
680 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
681 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so