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 \
131 application_headers = \
133 gsimpleactiongroup.h \
137 application_sources = \
139 gsimpleactiongroup.c \
145 glocaldirectorymonitor.c \
146 glocaldirectorymonitor.h \
149 glocalfileenumerator.c \
150 glocalfileenumerator.h \
153 glocalfileinputstream.c \
154 glocalfileinputstream.h \
155 glocalfilemonitor.c \
156 glocalfilemonitor.h \
157 glocalfileoutputstream.c \
158 glocalfileoutputstream.h \
159 glocalfileiostream.c \
160 glocalfileiostream.h \
173 platform_libadd += inotify/libinotify.la
174 platform_deps += inotify/libinotify.la
178 AM_CPPFLAGS += -DHAVE_FEN
180 platform_libadd += fen/libfen.la
181 platform_deps += fen/libfen.la
186 platform_libadd += win32/libgiowin32.la
187 platform_deps += win32/libgiowin32.la
198 appinfo_sources += gdesktopappinfo.c
199 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
200 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
202 gfiledescriptorbased.c \
204 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 \
237 win32_actual_sources = \
242 gwin32volumemonitor.c \
243 gwin32volumemonitor.h \
244 gwin32inputstream.c \
245 gwin32outputstream.c \
246 gwin32outputstream.h \
249 win32_more_sources_for_vcproj = \
251 win32/gwin32directorymonitor.c \
252 win32/gwinhttpfile.c \
253 win32/gwinhttpfileinputstream.c \
254 win32/gwinhttpfileoutputstream.c \
258 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
259 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
260 win32_sources = $(win32_actual_sources)
262 giowin32includedir=$(includedir)/gio-win32-2.0/gio
263 giowin32include_HEADERS = \
264 gwin32inputstream.h \
265 gwin32outputstream.h \
272 libgio_2_0_la_SOURCES = \
278 gbufferedinputstream.c \
279 gbufferedoutputstream.c \
282 gcontenttypeprivate.h \
283 gcharsetconverter.c \
285 gconverterinputstream.c \
286 gconverteroutputstream.c \
289 gdataoutputstream.c \
293 gdummyproxyresolver.c \
294 gdummyproxyresolver.h \
301 gfileattribute-priv.h \
308 gfilenamecompleter.c \
309 gfileoutputstream.c \
311 gfilterinputstream.c \
312 gfilteroutputstream.c \
315 ginetsocketaddress.c \
326 gmemoryinputstream.c \
327 gmemoryoutputstream.c \
329 gnativevolumemonitor.c \
330 gnativevolumemonitor.h \
332 gnetworkingprivate.h \
341 gsimpleasyncresult.c \
342 gsimplepermission.c \
345 gsocketaddressenumerator.c \
347 gsocketconnectable.c \
348 gsocketconnection.c \
349 gsocketcontrolmessage.c \
350 gsocketinputstream.c \
351 gsocketinputstream.h \
353 gsocketoutputstream.c \
354 gsocketoutputstream.h \
357 gproxyaddressenumerator.c \
361 gthreadedsocketservice.c\
363 gthreadedresolver.c \
364 gthreadedresolver.h \
365 gunionvolumemonitor.c \
366 gunionvolumemonitor.h \
371 gzlibdecompressor.c \
378 $(application_sources) \
379 $(settings_sources) \
385 EXTRA_DIST += gnullapplication.c gdbusapplication.c strinfo.c
387 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
389 libgio_2_0_la_LIBADD = \
390 $(top_builddir)/glib/libglib-2.0.la \
391 $(top_builddir)/gobject/libgobject-2.0.la \
392 $(top_builddir)/gmodule/libgmodule-2.0.la \
401 no_undefined = -no-undefined
404 if OS_WIN32_AND_DLL_COMPILATION
405 export_symbols = -export-symbols gio.def
408 gio_win32_res = gio-win32-res.o
409 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
412 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
415 -rm $(DESTDIR)$(libdir)/gio-2.0.def
420 export_symbols = -export-symbols-regex '^g_.*'
423 install-data-local: install-ms-lib install-def-file
424 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
426 uninstall-local: uninstall-ms-lib uninstall-def-file
428 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
429 $(gio_win32_res_ldflag) \
430 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
431 -export-dynamic $(no_undefined) $(export_symbols)
433 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
435 gio-win32-res.o: gio.rc
442 gbufferedinputstream.h \
443 gbufferedoutputstream.h \
446 gcharsetconverter.h \
448 gconverterinputstream.h \
449 gconverteroutputstream.h \
451 gdataoutputstream.h \
462 gfilenamecompleter.h \
463 gfileoutputstream.h \
465 gfilterinputstream.h \
466 gfilteroutputstream.h \
469 ginetsocketaddress.h \
481 gmemoryinputstream.h \
482 gmemoryoutputstream.h \
484 gnativevolumemonitor.h \
491 gproxyaddressenumerator.h \
495 gsimpleasyncresult.h \
496 gsimplepermission.h \
499 gsocketaddressenumerator.h \
501 gsocketconnectable.h \
502 gsocketconnection.h \
503 gsocketcontrolmessage.h \
508 gthreadedsocketservice.h\
514 gzlibdecompressor.h \
515 $(application_headers) \
516 $(settings_headers) \
520 gioincludedir=$(includedir)/glib-2.0/gio/
521 gioinclude_HEADERS = \
525 # these sources (also mentioned above) are generated.
536 gioenumtypes.h.template \
537 gioenumtypes.c.template \
551 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
552 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
553 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
554 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
556 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
557 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
558 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
559 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
561 gio-2.0.lib: libgio-2.0.la gio.def
562 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
564 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
566 gio_querymodules_SOURCES = gio-querymodules.c
567 gio_querymodules_LDADD = \
568 $(top_builddir)/glib/libglib-2.0.la \
569 $(top_builddir)/gobject/libgobject-2.0.la \
570 $(top_builddir)/gmodule/libgmodule-2.0.la \
574 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
575 glib_compile_schemas_SOURCES = \
577 gvdb/gvdb-builder.h \
578 gvdb/gvdb-builder.c \
582 $(top_builddir)/glib/libglib-2.0.la \
583 $(top_builddir)/gobject/libgobject-2.0.la \
585 gsettings_SOURCES = gsettings-tool.c
587 schemadir = $(datadir)/glib-2.0/schemas
588 dist_schema_DATA = gschema.dtd
590 # ------------------------------------------------------------------------
593 bin_PROGRAMS += gdbus
594 gdbus_SOURCES = gdbus-tool.c
595 gdbus_LDADD = libgio-2.0.la \
596 $(top_builddir)/glib/libglib-2.0.la \
597 $(top_builddir)/gobject/libgobject-2.0.la
599 completiondir = $(sysconfdir)/bash_completion.d
600 completion_SCRIPTS = \
601 gdbus-bash-completion.sh \
602 gsettings-bash-completion.sh
603 EXTRA_DIST += $(completion_SCRIPTS)
605 # ------------------------------------------------------------------------
607 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
608 files='$(BUILT_EXTRA_DIST)'; \
609 for f in $$files; do \
610 if test -f $$f; then d=.; else d=$(srcdir); fi; \
611 cp $$d/$$f $(distdir) || exit 1; done
613 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
614 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
616 gunix*.c|gdesktopappinfo.c) ;; \
617 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
620 done | sort -u >libgio.sourcefiles
621 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
622 rm libgio.sourcefiles
624 if HAVE_GLIB_RUNTIME_LIBDIR
626 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
627 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
628 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
629 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
630 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so