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) \
404 EXTRA_DIST += strinfo.c
406 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
408 libgio_2_0_la_LIBADD = \
409 $(top_builddir)/glib/libglib-2.0.la \
410 $(top_builddir)/gobject/libgobject-2.0.la \
411 $(top_builddir)/gmodule/libgmodule-2.0.la \
420 no_undefined = -no-undefined
423 if OS_WIN32_AND_DLL_COMPILATION
424 export_symbols = -export-symbols gio.def
427 gio_win32_res = gio-win32-res.o
428 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
431 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
434 -rm $(DESTDIR)$(libdir)/gio-2.0.def
439 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
442 install-data-local: install-ms-lib install-def-file
443 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
445 uninstall-local: uninstall-ms-lib uninstall-def-file
447 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
448 $(gio_win32_res_ldflag) \
449 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
450 -export-dynamic $(no_undefined) $(export_symbols)
452 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
454 gio-win32-res.o: gio.rc
461 gbufferedinputstream.h \
462 gbufferedoutputstream.h \
465 gcharsetconverter.h \
467 gconverterinputstream.h \
468 gconverteroutputstream.h \
470 gdataoutputstream.h \
481 gfilenamecompleter.h \
482 gfileoutputstream.h \
484 gfilterinputstream.h \
485 gfilteroutputstream.h \
488 ginetsocketaddress.h \
500 gmemoryinputstream.h \
501 gmemoryoutputstream.h \
503 gnativevolumemonitor.h \
508 gpollableinputstream.h \
509 gpollableoutputstream.h \
512 gproxyaddressenumerator.h \
516 gsimpleasyncresult.h \
517 gsimplepermission.h \
520 gsocketaddressenumerator.h \
522 gsocketconnectable.h \
523 gsocketconnection.h \
524 gsocketcontrolmessage.h \
529 gtcpwrapperconnection.h \
530 gthreadedsocketservice.h\
535 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 \
576 # This is read by gobject-introspection/misc/ and gtk-doc
577 gio-public-headers.txt: Makefile
578 echo $(gioinclude_HEADERS) > $@.tmp && mv $@.tmp $@
580 CLEANFILES += gio-public-headers.txt
582 all-local: gio-public-headers.txt
584 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
585 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
586 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
587 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
589 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
590 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
591 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
592 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
594 gio-2.0.lib: libgio-2.0.la gio.def
595 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
597 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
599 gio_querymodules_SOURCES = gio-querymodules.c
600 gio_querymodules_LDADD = \
601 $(top_builddir)/glib/libglib-2.0.la \
602 $(top_builddir)/gobject/libgobject-2.0.la \
603 $(top_builddir)/gmodule/libgmodule-2.0.la \
607 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
608 glib_compile_schemas_SOURCES = \
610 gvdb/gvdb-builder.h \
611 gvdb/gvdb-builder.c \
612 glib-compile-schemas.c
615 $(top_builddir)/glib/libglib-2.0.la \
616 $(top_builddir)/gobject/libgobject-2.0.la \
618 gsettings_SOURCES = gsettings-tool.c
620 schemadir = $(datadir)/glib-2.0/schemas
621 dist_schema_DATA = gschema.dtd
623 # ------------------------------------------------------------------------
626 bin_PROGRAMS += gdbus
627 gdbus_SOURCES = gdbus-tool.c
628 gdbus_LDADD = libgio-2.0.la \
629 $(top_builddir)/glib/libglib-2.0.la \
630 $(top_builddir)/gobject/libgobject-2.0.la
632 completiondir = $(sysconfdir)/bash_completion.d
633 completion_SCRIPTS = \
634 gdbus-bash-completion.sh \
635 gsettings-bash-completion.sh
636 EXTRA_DIST += $(completion_SCRIPTS)
638 # ------------------------------------------------------------------------
640 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
641 files='$(BUILT_EXTRA_DIST)'; \
642 for f in $$files; do \
643 if test -f $$f; then d=.; else d=$(srcdir); fi; \
644 cp $$d/$$f $(distdir) || exit 1; done
646 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
647 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
649 gunix*.c|gdesktopappinfo.c) ;; \
650 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
653 done | sort -u >libgio.sourcefiles
654 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
655 rm libgio.sourcefiles
657 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
658 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
660 gunix*.c|gdesktopappinfo.c) ;; \
661 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'" />' \
664 done | sort -u >libgio.vs10.sourcefiles
665 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
666 rm libgio.vs10.sourcefiles
668 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
669 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
671 gunix*.c|gdesktopappinfo.c) ;; \
672 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
675 done | sort -u >libgio.vs10.sourcefiles.filters
676 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
677 rm libgio.vs10.sourcefiles.filters
679 if HAVE_GLIB_RUNTIME_LIBDIR
681 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
682 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
683 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
684 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
685 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so