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 \
291 gcontenttypeprivate.h \
292 gcharsetconverter.c \
294 gconverterinputstream.c \
295 gconverteroutputstream.c \
298 gdataoutputstream.c \
302 gdummyproxyresolver.c \
303 gdummyproxyresolver.h \
312 gfileattribute-priv.h \
319 gfilenamecompleter.c \
320 gfileoutputstream.c \
322 gfilterinputstream.c \
323 gfilteroutputstream.c \
326 ginetsocketaddress.c \
337 gmemoryinputstream.c \
338 gmemoryoutputstream.c \
340 gnativevolumemonitor.c \
341 gnativevolumemonitor.h \
343 gnetworkingprivate.h \
347 gpollableinputstream.c \
348 gpollableoutputstream.c \
354 gsimpleasyncresult.c \
355 gsimplepermission.c \
358 gsocketaddressenumerator.c \
360 gsocketconnectable.c \
361 gsocketconnection.c \
362 gsocketcontrolmessage.c \
363 gsocketinputstream.c \
364 gsocketinputstream.h \
366 gsocketoutputstream.c \
367 gsocketoutputstream.h \
370 gproxyaddressenumerator.c \
374 gtcpwrapperconnection.c \
375 gthreadedsocketservice.c\
377 gthreadedresolver.c \
378 gthreadedresolver.h \
382 gtlsclientconnection.c \
384 gtlsserverconnection.c \
385 gunionvolumemonitor.c \
386 gunionvolumemonitor.h \
391 gzlibdecompressor.c \
398 $(application_sources) \
399 $(settings_sources) \
404 EXTRA_DIST += strinfo.c
406 libgio_2_0_la_LIBADD = \
407 $(top_builddir)/glib/libglib-2.0.la \
408 $(top_builddir)/gobject/libgobject-2.0.la \
409 $(top_builddir)/gmodule/libgmodule-2.0.la \
418 no_undefined = -no-undefined
421 if OS_WIN32_AND_DLL_COMPILATION
422 export_symbols = -export-symbols gio.def
425 gio_win32_res = gio-win32-res.o
426 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
429 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
432 -rm $(DESTDIR)$(libdir)/gio-2.0.def
437 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
440 install-data-local: install-ms-lib install-def-file
441 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
443 uninstall-local: uninstall-ms-lib uninstall-def-file
445 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
446 $(gio_win32_res_ldflag) \
447 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
448 -export-dynamic $(no_undefined) $(export_symbols)
450 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
452 gio-win32-res.o: gio.rc
459 gbufferedinputstream.h \
460 gbufferedoutputstream.h \
463 gcharsetconverter.h \
465 gconverterinputstream.h \
466 gconverteroutputstream.h \
468 gdataoutputstream.h \
479 gfilenamecompleter.h \
480 gfileoutputstream.h \
482 gfilterinputstream.h \
483 gfilteroutputstream.h \
486 ginetsocketaddress.h \
498 gmemoryinputstream.h \
499 gmemoryoutputstream.h \
501 gnativevolumemonitor.h \
506 gpollableinputstream.h \
507 gpollableoutputstream.h \
510 gproxyaddressenumerator.h \
514 gsimpleasyncresult.h \
515 gsimplepermission.h \
518 gsocketaddressenumerator.h \
520 gsocketconnectable.h \
521 gsocketconnection.h \
522 gsocketcontrolmessage.h \
527 gtcpwrapperconnection.h \
528 gthreadedsocketservice.h\
533 gtlsclientconnection.h \
535 gtlsserverconnection.h \
540 gzlibdecompressor.h \
541 $(application_headers) \
542 $(settings_headers) \
546 gioincludedir=$(includedir)/glib-2.0/gio/
547 gioinclude_HEADERS = \
551 # these sources (also mentioned above) are generated.
559 gioenumtypes.h.template \
560 gioenumtypes.c.template \
570 # This is read by gobject-introspection/misc/ and gtk-doc
571 gio-public-headers.txt: Makefile
572 echo $(gioinclude_HEADERS) > $@.tmp && mv $@.tmp $@
574 CLEANFILES = gio-public-headers.txt
576 all-local: gio-public-headers.txt
578 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
579 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
580 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
581 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
583 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
584 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
585 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
586 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
588 gio-2.0.lib: libgio-2.0.la gio.def
589 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
591 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
593 gio_querymodules_SOURCES = gio-querymodules.c
594 gio_querymodules_LDADD = \
595 $(top_builddir)/glib/libglib-2.0.la \
596 $(top_builddir)/gobject/libgobject-2.0.la \
597 $(top_builddir)/gmodule/libgmodule-2.0.la \
601 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
602 glib_compile_schemas_SOURCES = \
604 gvdb/gvdb-builder.h \
605 gvdb/gvdb-builder.c \
606 glib-compile-schemas.c
609 $(top_builddir)/glib/libglib-2.0.la \
610 $(top_builddir)/gobject/libgobject-2.0.la \
612 gsettings_SOURCES = gsettings-tool.c
614 schemadir = $(datadir)/glib-2.0/schemas
615 dist_schema_DATA = gschema.dtd
617 # ------------------------------------------------------------------------
620 bin_PROGRAMS += gdbus
621 gdbus_SOURCES = gdbus-tool.c
622 gdbus_LDADD = libgio-2.0.la \
623 $(top_builddir)/glib/libglib-2.0.la \
624 $(top_builddir)/gobject/libgobject-2.0.la
626 completiondir = $(sysconfdir)/bash_completion.d
628 gdbus-bash-completion.sh \
629 gsettings-bash-completion.sh
630 EXTRA_DIST += $(completion_DATA)
632 # ------------------------------------------------------------------------
634 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
635 files='$(BUILT_EXTRA_DIST)'; \
636 for f in $$files; do \
637 if test -f $$f; then d=.; else d=$(srcdir); fi; \
638 cp $$d/$$f $(distdir) || exit 1; done
640 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
641 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
643 gunix*.c|gdesktopappinfo.c) ;; \
644 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
647 done | sort -u >libgio.sourcefiles
648 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
649 rm libgio.sourcefiles
651 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
652 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
654 gunix*.c|gdesktopappinfo.c) ;; \
655 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'" />' \
658 done | sort -u >libgio.vs10.sourcefiles
659 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
660 rm libgio.vs10.sourcefiles
662 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
663 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
665 gunix*.c|gdesktopappinfo.c) ;; \
666 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
669 done | sort -u >libgio.vs10.sourcefiles.filters
670 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
671 rm libgio.vs10.sourcefiles.filters
673 if HAVE_GLIB_RUNTIME_LIBDIR
675 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
676 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
677 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
678 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
679 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so