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 -e 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 win32/gwin32directorymonitor.c \
260 win32/gwinhttpfile.c \
261 win32/gwinhttpfileinputstream.c \
262 win32/gwinhttpfileoutputstream.c \
266 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
267 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
268 win32_sources = $(win32_actual_sources)
270 giowin32includedir=$(includedir)/gio-win32-2.0/gio
271 giowin32include_HEADERS = \
272 gwin32inputstream.h \
273 gwin32outputstream.h \
280 libgio_2_0_la_SOURCES = \
286 gbufferedinputstream.c \
287 gbufferedoutputstream.c \
290 gcontenttypeprivate.h \
291 gcharsetconverter.c \
293 gconverterinputstream.c \
294 gconverteroutputstream.c \
297 gdataoutputstream.c \
301 gdummyproxyresolver.c \
302 gdummyproxyresolver.h \
311 gfileattribute-priv.h \
318 gfilenamecompleter.c \
319 gfileoutputstream.c \
321 gfilterinputstream.c \
322 gfilteroutputstream.c \
325 ginetsocketaddress.c \
336 gmemoryinputstream.c \
337 gmemoryoutputstream.c \
339 gnativevolumemonitor.c \
340 gnativevolumemonitor.h \
342 gnetworkingprivate.h \
346 gpollableinputstream.c \
347 gpollableoutputstream.c \
353 gsimpleasyncresult.c \
354 gsimplepermission.c \
357 gsocketaddressenumerator.c \
359 gsocketconnectable.c \
360 gsocketconnection.c \
361 gsocketcontrolmessage.c \
362 gsocketinputstream.c \
363 gsocketinputstream.h \
365 gsocketoutputstream.c \
366 gsocketoutputstream.h \
369 gproxyaddressenumerator.c \
373 gtcpwrapperconnection.c \
374 gthreadedsocketservice.c\
376 gthreadedresolver.c \
377 gthreadedresolver.h \
381 gtlsclientconnection.c \
383 gtlsserverconnection.c \
384 gunionvolumemonitor.c \
385 gunionvolumemonitor.h \
390 gzlibdecompressor.c \
397 $(application_sources) \
398 $(settings_sources) \
403 EXTRA_DIST += strinfo.c
405 libgio_2_0_la_LIBADD = \
406 $(top_builddir)/glib/libglib-2.0.la \
407 $(top_builddir)/gobject/libgobject-2.0.la \
408 $(top_builddir)/gmodule/libgmodule-2.0.la \
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\
532 gtlsclientconnection.h \
534 gtlsserverconnection.h \
539 gzlibdecompressor.h \
540 $(application_headers) \
541 $(settings_headers) \
545 gioincludedir=$(includedir)/glib-2.0/gio/
546 gioinclude_HEADERS = \
550 # these sources (also mentioned above) are generated.
558 gioenumtypes.h.template \
559 gioenumtypes.c.template \
569 # This is read by gobject-introspection/misc/ and gtk-doc
570 gio-public-headers.txt: Makefile
571 echo $(gioinclude_HEADERS) > $@.tmp && mv $@.tmp $@
573 CLEANFILES = gio-public-headers.txt
575 all-local: gio-public-headers.txt
577 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
578 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
579 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
580 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
582 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
583 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
584 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
585 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
587 gio-2.0.lib: libgio-2.0.la gio.def
588 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
590 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
592 gio_querymodules_SOURCES = gio-querymodules.c
593 gio_querymodules_LDADD = \
594 $(top_builddir)/glib/libglib-2.0.la \
595 $(top_builddir)/gobject/libgobject-2.0.la \
596 $(top_builddir)/gmodule/libgmodule-2.0.la \
600 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
601 glib_compile_schemas_SOURCES = \
603 gvdb/gvdb-builder.h \
604 gvdb/gvdb-builder.c \
605 glib-compile-schemas.c
608 $(top_builddir)/glib/libglib-2.0.la \
609 $(top_builddir)/gobject/libgobject-2.0.la \
611 gsettings_SOURCES = gsettings-tool.c
613 schemadir = $(datadir)/glib-2.0/schemas
614 dist_schema_DATA = gschema.dtd
616 # ------------------------------------------------------------------------
619 bin_PROGRAMS += gdbus
620 gdbus_SOURCES = gdbus-tool.c
621 gdbus_LDADD = libgio-2.0.la \
622 $(top_builddir)/glib/libglib-2.0.la \
623 $(top_builddir)/gobject/libgobject-2.0.la
625 completiondir = $(sysconfdir)/bash_completion.d
626 completion_SCRIPTS = \
627 gdbus-bash-completion.sh \
628 gsettings-bash-completion.sh
629 EXTRA_DIST += $(completion_SCRIPTS)
631 # ------------------------------------------------------------------------
633 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
634 files='$(BUILT_EXTRA_DIST)'; \
635 for f in $$files; do \
636 if test -f $$f; then d=.; else d=$(srcdir); fi; \
637 cp $$d/$$f $(distdir) || exit 1; done
639 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
640 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
642 gunix*.c|gdesktopappinfo.c) ;; \
643 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
646 done | sort -u >libgio.sourcefiles
647 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
648 rm libgio.sourcefiles
650 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
651 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
653 gunix*.c|gdesktopappinfo.c) ;; \
654 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'" />' \
657 done | sort -u >libgio.vs10.sourcefiles
658 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
659 rm libgio.vs10.sourcefiles
661 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
662 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
664 gunix*.c|gdesktopappinfo.c) ;; \
665 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
668 done | sort -u >libgio.vs10.sourcefiles.filters
669 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
670 rm libgio.vs10.sourcefiles.filters
672 if HAVE_GLIB_RUNTIME_LIBDIR
674 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
675 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
676 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
677 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
678 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so