1 include $(top_srcdir)/Makefile.decl
5 SUBDIRS = gdbus-codegen
8 SUBDIRS += libasyncns xdgmime
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 THREAD_FLAGS=-DG_THREADS_MANDATORY
41 -DG_LOG_DOMAIN=\"GLib-GIO\" \
45 -DG_DISABLE_DEPRECATED \
47 -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
49 lib_LTLIBRARIES = libgio-2.0.la
62 gdbusintrospection.h \
63 gdbusmethodinvocation.h \
66 gdbusinterfaceskeleton.h \
68 gdbusobjectskeleton.h \
70 gdbusobjectmanager.h \
71 gdbusobjectmanagerclient.h \
72 gdbusobjectmanagerserver.h \
76 gdbusutils.h gdbusutils.c \
77 gdbusaddress.h gdbusaddress.c \
78 gdbusauthobserver.h gdbusauthobserver.c \
79 gdbusauth.h gdbusauth.c \
80 gdbusauthmechanism.h gdbusauthmechanism.c \
81 gdbusauthmechanismanon.h gdbusauthmechanismanon.c \
82 gdbusauthmechanismexternal.h gdbusauthmechanismexternal.c \
83 gdbusauthmechanismsha1.h gdbusauthmechanismsha1.c \
84 gdbuserror.h gdbuserror.c \
85 gdbusconnection.h gdbusconnection.c \
86 gdbusmessage.h gdbusmessage.c \
87 gdbusnameowning.h gdbusnameowning.c \
88 gdbusnamewatching.h gdbusnamewatching.c \
89 gdbusproxy.h gdbusproxy.c \
90 gdbusprivate.h gdbusprivate.c \
91 gdbusintrospection.h gdbusintrospection.c \
92 gdbusmethodinvocation.h gdbusmethodinvocation.c \
93 gdbusserver.h gdbusserver.c \
94 gdbusinterface.h gdbusinterface.c \
95 gdbusinterfaceskeleton.h gdbusinterfaceskeleton.c \
96 gdbusobject.h gdbusobject.c \
97 gdbusobjectskeleton.h gdbusobjectskeleton.c \
98 gdbusobjectproxy.h gdbusobjectproxy.c \
99 gdbusobjectmanager.h gdbusobjectmanager.c \
100 gdbusobjectmanagerclient.h gdbusobjectmanagerclient.c \
101 gdbusobjectmanagerserver.h gdbusobjectmanagerserver.c \
112 gdelayedsettingsbackend.h \
113 gdelayedsettingsbackend.c \
114 gkeyfilesettingsbackend.c \
115 gmemorysettingsbackend.c \
116 gnullsettingsbackend.c \
117 gsettingsbackendinternal.h \
121 gsettings-mapping.h \
122 gsettings-mapping.c \
126 settings_sources += \
127 gregistrysettingsbackend.h \
128 gregistrysettingsbackend.c
131 application_headers = \
133 gsimpleactiongroup.h \
136 gapplicationcommandline.h \
139 application_sources = \
141 gsimpleactiongroup.c \
144 gapplicationcommandline.c \
146 gapplicationimpl-dbus.c \
150 glocaldirectorymonitor.c \
151 glocaldirectorymonitor.h \
154 glocalfileenumerator.c \
155 glocalfileenumerator.h \
158 glocalfileinputstream.c \
159 glocalfileinputstream.h \
160 glocalfilemonitor.c \
161 glocalfilemonitor.h \
162 glocalfileoutputstream.c \
163 glocalfileoutputstream.h \
164 glocalfileiostream.c \
165 glocalfileiostream.h \
182 platform_libadd += inotify/libinotify.la
183 platform_deps += inotify/libinotify.la
187 AM_CPPFLAGS += -DHAVE_FEN
189 platform_libadd += fen/libfen.la
190 platform_deps += fen/libfen.la
195 platform_libadd += win32/libgiowin32.la
196 platform_deps += win32/libgiowin32.la
206 appinfo_sources += gdesktopappinfo.c
207 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
208 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
210 gfiledescriptorbased.c \
212 gunixcredentialsmessage.c \
220 gunixsocketaddress.c \
223 gunixvolumemonitor.c \
224 gunixvolumemonitor.h \
226 gunixoutputstream.c \
230 giounixincludedir=$(includedir)/gio-unix-2.0/gio
231 giounixinclude_HEADERS = \
233 gfiledescriptorbased.h \
235 gunixcredentialsmessage.h \
240 gunixoutputstream.h \
241 gunixsocketaddress.h \
245 win32_actual_sources = \
250 gwin32volumemonitor.c \
251 gwin32volumemonitor.h \
252 gwin32inputstream.c \
253 gwin32outputstream.c \
254 gwin32outputstream.h \
257 win32_more_sources_for_vcproj = \
259 gregistrysettingsbackend.c \
260 win32/gwin32directorymonitor.c \
261 win32/gwinhttpfile.c \
262 win32/gwinhttpfileinputstream.c \
263 win32/gwinhttpfileoutputstream.c \
267 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
268 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
269 win32_sources = $(win32_actual_sources)
271 giowin32includedir=$(includedir)/gio-win32-2.0/gio
272 giowin32include_HEADERS = \
273 gwin32inputstream.h \
274 gwin32outputstream.h \
281 libgio_2_0_la_SOURCES = \
287 gbufferedinputstream.c \
288 gbufferedoutputstream.c \
292 gcontenttypeprivate.h \
293 gcharsetconverter.c \
295 gconverterinputstream.c \
296 gconverteroutputstream.c \
299 gdataoutputstream.c \
303 gdummyproxyresolver.c \
304 gdummyproxyresolver.h \
313 gfileattribute-priv.h \
320 gfilenamecompleter.c \
321 gfileoutputstream.c \
323 gfilterinputstream.c \
324 gfilteroutputstream.c \
327 ginetsocketaddress.c \
338 gmemoryinputstream.c \
339 gmemoryoutputstream.c \
341 gnativevolumemonitor.c \
342 gnativevolumemonitor.h \
344 gnetworkingprivate.h \
348 gpollableinputstream.c \
349 gpollableoutputstream.c \
355 gsimpleasyncresult.c \
356 gsimplepermission.c \
359 gsocketaddressenumerator.c \
361 gsocketconnectable.c \
362 gsocketconnection.c \
363 gsocketcontrolmessage.c \
364 gsocketinputstream.c \
365 gsocketinputstream.h \
367 gsocketoutputstream.c \
368 gsocketoutputstream.h \
371 gproxyaddressenumerator.c \
375 gtcpwrapperconnection.c \
376 gthreadedsocketservice.c\
378 gthreadedresolver.c \
379 gthreadedresolver.h \
383 gtlsclientconnection.c \
385 gtlsserverconnection.c \
386 gunionvolumemonitor.c \
387 gunionvolumemonitor.h \
392 gzlibdecompressor.c \
399 $(application_sources) \
400 $(settings_sources) \
405 EXTRA_DIST += strinfo.c
407 libgio_2_0_la_LIBADD = \
408 $(top_builddir)/glib/libglib-2.0.la \
409 $(top_builddir)/gobject/libgobject-2.0.la \
410 $(top_builddir)/gmodule/libgmodule-2.0.la \
418 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
421 no_undefined = -no-undefined
424 if OS_WIN32_AND_DLL_COMPILATION
425 export_symbols = -export-symbols gio.def
428 gio_win32_res = gio-win32-res.o
429 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
432 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
435 -rm $(DESTDIR)$(libdir)/gio-2.0.def
440 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
443 install-data-local: install-ms-lib install-def-file
444 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
446 uninstall-local: uninstall-ms-lib uninstall-def-file
448 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
449 $(gio_win32_res_ldflag) \
450 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
451 -export-dynamic $(no_undefined) $(export_symbols)
453 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
455 gio-win32-res.o: gio.rc
462 gbufferedinputstream.h \
463 gbufferedoutputstream.h \
466 gcharsetconverter.h \
468 gconverterinputstream.h \
469 gconverteroutputstream.h \
471 gdataoutputstream.h \
482 gfilenamecompleter.h \
483 gfileoutputstream.h \
485 gfilterinputstream.h \
486 gfilteroutputstream.h \
489 ginetsocketaddress.h \
501 gmemoryinputstream.h \
502 gmemoryoutputstream.h \
504 gnativevolumemonitor.h \
509 gpollableinputstream.h \
510 gpollableoutputstream.h \
513 gproxyaddressenumerator.h \
517 gsimpleasyncresult.h \
518 gsimplepermission.h \
521 gsocketaddressenumerator.h \
523 gsocketconnectable.h \
524 gsocketconnection.h \
525 gsocketcontrolmessage.h \
530 gtcpwrapperconnection.h \
531 gthreadedsocketservice.h\
536 gtlsclientconnection.h \
538 gtlsserverconnection.h \
543 gzlibdecompressor.h \
544 $(application_headers) \
545 $(settings_headers) \
549 gioincludedir=$(includedir)/glib-2.0/gio/
550 gioinclude_HEADERS = \
554 # these sources (also mentioned above) are generated.
562 gioenumtypes.h.template \
563 gioenumtypes.c.template \
573 # This is read by gobject-introspection/misc/ and gtk-doc
574 gio-public-headers.txt: Makefile
575 echo $(gioinclude_HEADERS) > $@.tmp && mv $@.tmp $@
577 CLEANFILES = gio-public-headers.txt
579 all-local: gio-public-headers.txt
581 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
582 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
583 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
584 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
586 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
587 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
588 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
589 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
591 gio-2.0.lib: libgio-2.0.la gio.def
592 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
594 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
596 gio_querymodules_SOURCES = gio-querymodules.c
597 gio_querymodules_LDADD = \
598 $(top_builddir)/glib/libglib-2.0.la \
599 $(top_builddir)/gobject/libgobject-2.0.la \
600 $(top_builddir)/gmodule/libgmodule-2.0.la \
604 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
605 glib_compile_schemas_SOURCES = \
607 gvdb/gvdb-builder.h \
608 gvdb/gvdb-builder.c \
609 glib-compile-schemas.c
612 $(top_builddir)/glib/libglib-2.0.la \
613 $(top_builddir)/gobject/libgobject-2.0.la \
615 gsettings_SOURCES = gsettings-tool.c
617 schemadir = $(datadir)/glib-2.0/schemas
618 dist_schema_DATA = gschema.dtd
620 # ------------------------------------------------------------------------
623 bin_PROGRAMS += gdbus
624 gdbus_SOURCES = gdbus-tool.c
625 gdbus_LDADD = libgio-2.0.la \
626 $(top_builddir)/glib/libglib-2.0.la \
627 $(top_builddir)/gobject/libgobject-2.0.la
629 completiondir = $(sysconfdir)/bash_completion.d
631 gdbus-bash-completion.sh \
632 gsettings-bash-completion.sh
633 EXTRA_DIST += $(completion_DATA)
635 # ------------------------------------------------------------------------
637 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
638 files='$(BUILT_EXTRA_DIST)'; \
639 for f in $$files; do \
640 if test -f $$f; then d=.; else d=$(srcdir); fi; \
641 cp $$d/$$f $(distdir) || exit 1; done
643 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
644 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
646 gunix*.c|gdesktopappinfo.c) ;; \
647 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
650 done | sort -u >libgio.sourcefiles
651 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
652 rm libgio.sourcefiles
654 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
655 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
657 gunix*.c|gdesktopappinfo.c) ;; \
658 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'" />' \
661 done | sort -u >libgio.vs10.sourcefiles
662 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
663 rm libgio.vs10.sourcefiles
665 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
666 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
668 gunix*.c|gdesktopappinfo.c) ;; \
669 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
672 done | sort -u >libgio.vs10.sourcefiles.filters
673 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
674 rm libgio.vs10.sourcefiles.filters
676 if HAVE_GLIB_RUNTIME_LIBDIR
678 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
679 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
680 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
681 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
682 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so