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\" \
41 -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
43 lib_LTLIBRARIES = libgio-2.0.la
56 gdbusintrospection.h \
57 gdbusmethodinvocation.h \
60 gdbusinterfaceskeleton.h \
62 gdbusobjectskeleton.h \
64 gdbusobjectmanager.h \
65 gdbusobjectmanagerclient.h \
66 gdbusobjectmanagerserver.h \
70 gdbusutils.h gdbusutils.c \
71 gdbusaddress.h gdbusaddress.c \
72 gdbusauthobserver.h gdbusauthobserver.c \
73 gdbusauth.h gdbusauth.c \
74 gdbusauthmechanism.h gdbusauthmechanism.c \
75 gdbusauthmechanismanon.h gdbusauthmechanismanon.c \
76 gdbusauthmechanismexternal.h gdbusauthmechanismexternal.c \
77 gdbusauthmechanismsha1.h gdbusauthmechanismsha1.c \
78 gdbuserror.h gdbuserror.c \
79 gdbusconnection.h gdbusconnection.c \
80 gdbusmessage.h gdbusmessage.c \
81 gdbusnameowning.h gdbusnameowning.c \
82 gdbusnamewatching.h gdbusnamewatching.c \
83 gdbusproxy.h gdbusproxy.c \
84 gdbusprivate.h gdbusprivate.c \
85 gdbusintrospection.h gdbusintrospection.c \
86 gdbusmethodinvocation.h gdbusmethodinvocation.c \
87 gdbusserver.h gdbusserver.c \
88 gdbusinterface.h gdbusinterface.c \
89 gdbusinterfaceskeleton.h gdbusinterfaceskeleton.c \
90 gdbusobject.h gdbusobject.c \
91 gdbusobjectskeleton.h gdbusobjectskeleton.c \
92 gdbusobjectproxy.h gdbusobjectproxy.c \
93 gdbusobjectmanager.h gdbusobjectmanager.c \
94 gdbusobjectmanagerclient.h gdbusobjectmanagerclient.c \
95 gdbusobjectmanagerserver.h gdbusobjectmanagerserver.c \
106 gdelayedsettingsbackend.h \
107 gdelayedsettingsbackend.c \
108 gkeyfilesettingsbackend.c \
109 gmemorysettingsbackend.c \
110 gnullsettingsbackend.c \
111 gsettingsbackendinternal.h \
115 gsettings-mapping.h \
116 gsettings-mapping.c \
120 settings_sources += \
121 gregistrysettingsbackend.h \
122 gregistrysettingsbackend.c
125 application_headers = \
127 gsimpleactiongroup.h \
130 gapplicationcommandline.h \
133 application_sources = \
135 gsimpleactiongroup.c \
138 gapplicationcommandline.c \
140 gapplicationimpl-dbus.c \
144 glocaldirectorymonitor.c \
145 glocaldirectorymonitor.h \
148 glocalfileenumerator.c \
149 glocalfileenumerator.h \
152 glocalfileinputstream.c \
153 glocalfileinputstream.h \
154 glocalfilemonitor.c \
155 glocalfilemonitor.h \
156 glocalfileoutputstream.c \
157 glocalfileoutputstream.h \
158 glocalfileiostream.c \
159 glocalfileiostream.h \
176 platform_libadd += inotify/libinotify.la
177 platform_deps += inotify/libinotify.la
181 AM_CPPFLAGS += -DHAVE_FEN
183 platform_libadd += fen/libfen.la
184 platform_deps += fen/libfen.la
189 platform_libadd += win32/libgiowin32.la
190 platform_deps += win32/libgiowin32.la
200 appinfo_sources += gdesktopappinfo.c
201 platform_libadd += xdgmime/libxdgmime.la $(RESOLVER_LIBADD)
202 platform_deps += xdgmime/libxdgmime.la
204 gfiledescriptorbased.c \
206 gunixcredentialsmessage.c \
212 gunixsocketaddress.c \
215 gunixvolumemonitor.c \
216 gunixvolumemonitor.h \
218 gunixoutputstream.c \
222 giounixincludedir=$(includedir)/gio-unix-2.0/gio
223 giounixinclude_HEADERS = \
225 gfiledescriptorbased.h \
227 gunixcredentialsmessage.h \
232 gunixoutputstream.h \
233 gunixsocketaddress.h \
238 gnetworkmonitornetlink.c \
239 gnetworkmonitornetlink.h \
244 win32_actual_sources = \
247 gwin32volumemonitor.c \
248 gwin32volumemonitor.h \
249 gwin32inputstream.c \
250 gwin32outputstream.c \
251 gwin32outputstream.h \
254 win32_more_sources_for_vcproj = \
256 gregistrysettingsbackend.c \
257 win32/gwin32directorymonitor.c \
258 win32/gwinhttpfile.c \
259 win32/gwinhttpfileinputstream.c \
260 win32/gwinhttpfileoutputstream.c \
264 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
265 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
266 win32_sources = $(win32_actual_sources)
268 giowin32includedir=$(includedir)/gio-win32-2.0/gio
269 giowin32include_HEADERS = \
270 gwin32inputstream.h \
271 gwin32outputstream.h \
278 libgio_2_0_la_SOURCES = \
284 gbufferedinputstream.c \
285 gbufferedoutputstream.c \
288 gcontenttypeprivate.h \
289 gcharsetconverter.c \
291 gconverterinputstream.c \
292 gconverteroutputstream.c \
295 gdataoutputstream.c \
299 gdummyproxyresolver.c \
300 gdummyproxyresolver.h \
309 gfileattribute-priv.h \
316 gfilenamecompleter.c \
317 gfileoutputstream.c \
319 gfilterinputstream.c \
320 gfilteroutputstream.c \
324 ginetsocketaddress.c \
335 gmemoryinputstream.c \
336 gmemoryoutputstream.c \
338 gnativevolumemonitor.c \
339 gnativevolumemonitor.h \
341 gnetworkingprivate.h \
343 gnetworkmonitorbase.c \
344 gnetworkmonitorbase.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 \
382 gtlsclientconnection.c \
388 gtlsserverconnection.c \
389 gunionvolumemonitor.c \
390 gunionvolumemonitor.h \
395 gzlibdecompressor.c \
402 $(application_sources) \
403 $(settings_sources) \
408 EXTRA_DIST += strinfo.c
410 libgio_2_0_la_LIBADD = \
411 $(top_builddir)/glib/libglib-2.0.la \
412 $(top_builddir)/gobject/libgobject-2.0.la \
413 $(top_builddir)/gmodule/libgmodule-2.0.la \
422 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
425 no_undefined = -no-undefined
428 if OS_WIN32_AND_DLL_COMPILATION
429 export_symbols = -export-symbols gio.def
432 gio_win32_res = gio-win32-res.o
433 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
436 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
439 -rm $(DESTDIR)$(libdir)/gio-2.0.def
444 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
447 install-data-local: install-ms-lib install-def-file
448 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
450 uninstall-local: uninstall-ms-lib uninstall-def-file
452 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
453 $(gio_win32_res_ldflag) \
454 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
455 -export-dynamic $(no_undefined) $(export_symbols)
457 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
459 gio-win32-res.o: gio.rc
466 gbufferedinputstream.h \
467 gbufferedoutputstream.h \
470 gcharsetconverter.h \
472 gconverterinputstream.h \
473 gconverteroutputstream.h \
475 gdataoutputstream.h \
486 gfilenamecompleter.h \
487 gfileoutputstream.h \
489 gfilterinputstream.h \
490 gfilteroutputstream.h \
494 ginetsocketaddress.h \
506 gmemoryinputstream.h \
507 gmemoryoutputstream.h \
509 gnativevolumemonitor.h \
515 gpollableinputstream.h \
516 gpollableoutputstream.h \
519 gproxyaddressenumerator.h \
523 gsimpleasyncresult.h \
524 gsimplepermission.h \
527 gsocketaddressenumerator.h \
529 gsocketconnectable.h \
530 gsocketconnection.h \
531 gsocketcontrolmessage.h \
536 gtcpwrapperconnection.h \
537 gthreadedsocketservice.h\
541 gtlsclientconnection.h \
547 gtlsserverconnection.h \
552 gzlibdecompressor.h \
553 $(application_headers) \
554 $(settings_headers) \
558 gioincludedir=$(includedir)/glib-2.0/gio/
559 gioinclude_HEADERS = \
563 # these sources (also mentioned above) are generated.
571 gioenumtypes.h.template \
572 gioenumtypes.c.template \
582 # This is read by gobject-introspection/misc/ and gtk-doc
583 gio-public-headers.txt: Makefile
584 echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
586 CLEANFILES = gio-public-headers.txt
588 all-local: gio-public-headers.txt
590 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
591 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
592 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
593 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
595 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
596 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
597 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
598 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
600 gio-2.0.lib: libgio-2.0.la gio.def
601 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
603 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
605 gio_querymodules_SOURCES = gio-querymodules.c
606 gio_querymodules_LDADD = \
607 $(top_builddir)/glib/libglib-2.0.la \
608 $(top_builddir)/gobject/libgobject-2.0.la \
609 $(top_builddir)/gmodule/libgmodule-2.0.la \
613 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
614 glib_compile_schemas_SOURCES = \
616 gvdb/gvdb-builder.h \
617 gvdb/gvdb-builder.c \
618 glib-compile-schemas.c
621 $(top_builddir)/glib/libglib-2.0.la \
622 $(top_builddir)/gobject/libgobject-2.0.la \
624 gsettings_SOURCES = gsettings-tool.c
626 schemadir = $(datadir)/glib-2.0/schemas
627 dist_schema_DATA = gschema.dtd
629 # ------------------------------------------------------------------------
632 bin_PROGRAMS += gdbus
633 gdbus_SOURCES = gdbus-tool.c
634 gdbus_LDADD = libgio-2.0.la \
635 $(top_builddir)/glib/libglib-2.0.la \
636 $(top_builddir)/gobject/libgobject-2.0.la
638 completiondir = $(sysconfdir)/bash_completion.d
640 gdbus-bash-completion.sh \
641 gsettings-bash-completion.sh
642 EXTRA_DIST += $(completion_DATA)
644 # ------------------------------------------------------------------------
646 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
647 files='$(BUILT_EXTRA_DIST)'; \
648 for f in $$files; do \
649 if test -f $$f; then d=.; else d=$(srcdir); fi; \
650 cp $$d/$$f $(distdir) || exit 1; done
652 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
653 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
655 gunix*.c|gdesktopappinfo.c) ;; \
656 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
659 done | sort -u >libgio.sourcefiles
660 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
661 rm libgio.sourcefiles
663 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
664 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
666 gunix*.c|gdesktopappinfo.c) ;; \
667 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'" />' \
670 done | sort -u >libgio.vs10.sourcefiles
671 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
672 rm libgio.vs10.sourcefiles
674 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
675 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
677 gunix*.c|gdesktopappinfo.c) ;; \
678 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
681 done | sort -u >libgio.vs10.sourcefiles.filters
682 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
683 rm libgio.vs10.sourcefiles.filters
685 if HAVE_GLIB_RUNTIME_LIBDIR
687 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
688 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
689 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
690 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
691 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so