1 include $(top_srcdir)/Makefile.decl
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
57 glib_genmarshal=$(GLIB_GENMARSHAL)
59 glib_genmarshal=../gobject/glib-genmarshal
62 gio-marshal.h: gio-marshal.list
63 $(AM_V_GEN) $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --header --internal > $@.tmp && \
66 gio-marshal.c: gio-marshal.h gio-marshal.list
67 $(AM_V_GEN) (echo "#include \"gio-marshal.h\""; \
68 $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --body --internal) > $@.tmp && \
82 gdbusintrospection.h \
83 gdbusmethodinvocation.h \
88 gdbusutils.h gdbusutils.c \
89 gdbusaddress.h gdbusaddress.c \
90 gdbusauthobserver.h gdbusauthobserver.c \
91 gdbusauth.h gdbusauth.c \
92 gdbusauthmechanism.h gdbusauthmechanism.c \
93 gdbusauthmechanismanon.h gdbusauthmechanismanon.c \
94 gdbusauthmechanismexternal.h gdbusauthmechanismexternal.c \
95 gdbusauthmechanismsha1.h gdbusauthmechanismsha1.c \
96 gdbuserror.h gdbuserror.c \
97 gdbusconnection.h gdbusconnection.c \
98 gdbusmessage.h gdbusmessage.c \
99 gdbusnameowning.h gdbusnameowning.c \
100 gdbusnamewatching.h gdbusnamewatching.c \
101 gdbusproxy.h gdbusproxy.c \
102 gdbusprivate.h gdbusprivate.c \
103 gdbusintrospection.h gdbusintrospection.c \
104 gdbusmethodinvocation.h gdbusmethodinvocation.c \
105 gdbusserver.h gdbusserver.c \
116 gdelayedsettingsbackend.h \
117 gdelayedsettingsbackend.c \
118 gkeyfilesettingsbackend.c \
119 gmemorysettingsbackend.h \
120 gmemorysettingsbackend.c \
121 gnullsettingsbackend.h \
122 gnullsettingsbackend.c \
123 gsettingsbackendinternal.h \
127 gsettings-mapping.h \
128 gsettings-mapping.c \
132 settings_sources += \
133 gregistrysettingsbackend.h \
134 gregistrysettingsbackend.c
137 application_headers = \
139 gsimpleactiongroup.h \
142 gapplicationcommandline.h \
145 application_sources = \
147 gsimpleactiongroup.c \
150 gapplicationcommandline.c \
152 gapplicationimpl-dbus.c \
156 glocaldirectorymonitor.c \
157 glocaldirectorymonitor.h \
160 glocalfileenumerator.c \
161 glocalfileenumerator.h \
164 glocalfileinputstream.c \
165 glocalfileinputstream.h \
166 glocalfilemonitor.c \
167 glocalfilemonitor.h \
168 glocalfileoutputstream.c \
169 glocalfileoutputstream.h \
170 glocalfileiostream.c \
171 glocalfileiostream.h \
188 platform_libadd += inotify/libinotify.la
189 platform_deps += inotify/libinotify.la
193 AM_CPPFLAGS += -DHAVE_FEN
195 platform_libadd += fen/libfen.la
196 platform_deps += fen/libfen.la
201 platform_libadd += win32/libgiowin32.la
202 platform_deps += win32/libgiowin32.la
212 appinfo_sources += gdesktopappinfo.c
213 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
214 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
216 gfiledescriptorbased.c \
218 gunixcredentialsmessage.c \
226 gunixsocketaddress.c \
229 gunixvolumemonitor.c \
230 gunixvolumemonitor.h \
232 gunixoutputstream.c \
236 giounixincludedir=$(includedir)/gio-unix-2.0/gio
237 giounixinclude_HEADERS = \
239 gfiledescriptorbased.h \
241 gunixcredentialsmessage.h \
246 gunixoutputstream.h \
247 gunixsocketaddress.h \
251 win32_actual_sources = \
256 gwin32volumemonitor.c \
257 gwin32volumemonitor.h \
258 gwin32inputstream.c \
259 gwin32outputstream.c \
260 gwin32outputstream.h \
263 win32_more_sources_for_vcproj = \
265 win32/gwin32directorymonitor.c \
266 win32/gwinhttpfile.c \
267 win32/gwinhttpfileinputstream.c \
268 win32/gwinhttpfileoutputstream.c \
272 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
273 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
274 win32_sources = $(win32_actual_sources)
276 giowin32includedir=$(includedir)/gio-win32-2.0/gio
277 giowin32include_HEADERS = \
278 gwin32inputstream.h \
279 gwin32outputstream.h \
286 libgio_2_0_la_SOURCES = \
292 gbufferedinputstream.c \
293 gbufferedoutputstream.c \
296 gcontenttypeprivate.h \
297 gcharsetconverter.c \
299 gconverterinputstream.c \
300 gconverteroutputstream.c \
303 gdataoutputstream.c \
307 gdummyproxyresolver.c \
308 gdummyproxyresolver.h \
317 gfileattribute-priv.h \
324 gfilenamecompleter.c \
325 gfileoutputstream.c \
327 gfilterinputstream.c \
328 gfilteroutputstream.c \
331 ginetsocketaddress.c \
342 gmemoryinputstream.c \
343 gmemoryoutputstream.c \
345 gnativevolumemonitor.c \
346 gnativevolumemonitor.h \
348 gnetworkingprivate.h \
352 gpollableinputstream.c \
353 gpollableoutputstream.c \
359 gsimpleasyncresult.c \
360 gsimplepermission.c \
363 gsocketaddressenumerator.c \
365 gsocketconnectable.c \
366 gsocketconnection.c \
367 gsocketcontrolmessage.c \
368 gsocketinputstream.c \
369 gsocketinputstream.h \
371 gsocketoutputstream.c \
372 gsocketoutputstream.h \
375 gproxyaddressenumerator.c \
379 gtcpwrapperconnection.c \
380 gthreadedsocketservice.c\
382 gthreadedresolver.c \
383 gthreadedresolver.h \
386 gtlsclientconnection.c \
388 gtlsserverconnection.c \
389 gunionvolumemonitor.c \
390 gunionvolumemonitor.h \
395 gzlibdecompressor.c \
402 $(application_sources) \
403 $(settings_sources) \
409 EXTRA_DIST += strinfo.c
411 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
413 libgio_2_0_la_LIBADD = \
414 $(top_builddir)/glib/libglib-2.0.la \
415 $(top_builddir)/gobject/libgobject-2.0.la \
416 $(top_builddir)/gmodule/libgmodule-2.0.la \
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 = -export-symbols-regex '^g_.*'
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 \
493 ginetsocketaddress.h \
505 gmemoryinputstream.h \
506 gmemoryoutputstream.h \
508 gnativevolumemonitor.h \
513 gpollableinputstream.h \
514 gpollableoutputstream.h \
517 gproxyaddressenumerator.h \
521 gsimpleasyncresult.h \
522 gsimplepermission.h \
525 gsocketaddressenumerator.h \
527 gsocketconnectable.h \
528 gsocketconnection.h \
529 gsocketcontrolmessage.h \
534 gtcpwrapperconnection.h \
535 gthreadedsocketservice.h\
539 gtlsclientconnection.h \
541 gtlsserverconnection.h \
546 gzlibdecompressor.h \
547 $(application_headers) \
548 $(settings_headers) \
552 gioincludedir=$(includedir)/glib-2.0/gio/
553 gioinclude_HEADERS = \
557 # these sources (also mentioned above) are generated.
568 gioenumtypes.h.template \
569 gioenumtypes.c.template \
583 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
584 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
585 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
586 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
588 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
589 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
590 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
591 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
593 gio-2.0.lib: libgio-2.0.la gio.def
594 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
596 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
598 gio_querymodules_SOURCES = gio-querymodules.c
599 gio_querymodules_LDADD = \
600 $(top_builddir)/glib/libglib-2.0.la \
601 $(top_builddir)/gobject/libgobject-2.0.la \
602 $(top_builddir)/gmodule/libgmodule-2.0.la \
606 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
607 glib_compile_schemas_SOURCES = \
609 gvdb/gvdb-builder.h \
610 gvdb/gvdb-builder.c \
611 glib-compile-schemas.c
614 $(top_builddir)/glib/libglib-2.0.la \
615 $(top_builddir)/gobject/libgobject-2.0.la \
617 gsettings_SOURCES = gsettings-tool.c
619 schemadir = $(datadir)/glib-2.0/schemas
620 dist_schema_DATA = gschema.dtd
622 # ------------------------------------------------------------------------
625 bin_PROGRAMS += gdbus
626 gdbus_SOURCES = gdbus-tool.c
627 gdbus_LDADD = libgio-2.0.la \
628 $(top_builddir)/glib/libglib-2.0.la \
629 $(top_builddir)/gobject/libgobject-2.0.la
631 completiondir = $(sysconfdir)/bash_completion.d
632 completion_SCRIPTS = \
633 gdbus-bash-completion.sh \
634 gsettings-bash-completion.sh
635 EXTRA_DIST += $(completion_SCRIPTS)
637 # ------------------------------------------------------------------------
639 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
640 files='$(BUILT_EXTRA_DIST)'; \
641 for f in $$files; do \
642 if test -f $$f; then d=.; else d=$(srcdir); fi; \
643 cp $$d/$$f $(distdir) || exit 1; done
645 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
646 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
648 gunix*.c|gdesktopappinfo.c) ;; \
649 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
652 done | sort -u >libgio.sourcefiles
653 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
654 rm libgio.sourcefiles
656 if HAVE_GLIB_RUNTIME_LIBDIR
658 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
659 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
660 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
661 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
662 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so