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 \
171 platform_libadd += inotify/libinotify.la
172 platform_deps += inotify/libinotify.la
176 AM_CPPFLAGS += -DHAVE_FEN
178 platform_libadd += fen/libfen.la
179 platform_deps += fen/libfen.la
184 platform_libadd += win32/libgiowin32.la
185 platform_deps += win32/libgiowin32.la
196 appinfo_sources += gdesktopappinfo.c
197 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
198 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
200 gfiledescriptorbased.c \
202 gunixcredentialsmessage.c \
210 gunixsocketaddress.c \
213 gunixvolumemonitor.c \
214 gunixvolumemonitor.h \
216 gunixoutputstream.c \
220 giounixincludedir=$(includedir)/gio-unix-2.0/gio
221 giounixinclude_HEADERS = \
223 gfiledescriptorbased.h \
225 gunixcredentialsmessage.h \
230 gunixoutputstream.h \
231 gunixsocketaddress.h \
235 win32_actual_sources = \
240 gwin32volumemonitor.c \
241 gwin32volumemonitor.h \
242 gwin32inputstream.c \
243 gwin32outputstream.c \
244 gwin32outputstream.h \
247 win32_more_sources_for_vcproj = \
249 win32/gwin32directorymonitor.c \
250 win32/gwinhttpfile.c \
251 win32/gwinhttpfileinputstream.c \
252 win32/gwinhttpfileoutputstream.c \
256 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
257 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
258 win32_sources = $(win32_actual_sources)
260 giowin32includedir=$(includedir)/gio-win32-2.0/gio
261 giowin32include_HEADERS = \
262 gwin32inputstream.h \
263 gwin32outputstream.h \
270 libgio_2_0_la_SOURCES = \
276 gbufferedinputstream.c \
277 gbufferedoutputstream.c \
280 gcontenttypeprivate.h \
281 gcharsetconverter.c \
283 gconverterinputstream.c \
284 gconverteroutputstream.c \
287 gdataoutputstream.c \
291 gdummyproxyresolver.c \
292 gdummyproxyresolver.h \
299 gfileattribute-priv.h \
306 gfilenamecompleter.c \
307 gfileoutputstream.c \
309 gfilterinputstream.c \
310 gfilteroutputstream.c \
313 ginetsocketaddress.c \
324 gmemoryinputstream.c \
325 gmemoryoutputstream.c \
327 gnativevolumemonitor.c \
328 gnativevolumemonitor.h \
330 gnetworkingprivate.h \
339 gsimpleasyncresult.c \
340 gsimplepermission.c \
343 gsocketaddressenumerator.c \
345 gsocketconnectable.c \
346 gsocketconnection.c \
347 gsocketcontrolmessage.c \
348 gsocketinputstream.c \
349 gsocketinputstream.h \
351 gsocketoutputstream.c \
352 gsocketoutputstream.h \
357 gthreadedsocketservice.c\
359 gthreadedresolver.c \
360 gthreadedresolver.h \
361 gunionvolumemonitor.c \
362 gunionvolumemonitor.h \
367 gzlibdecompressor.c \
374 $(application_sources) \
375 $(settings_sources) \
381 EXTRA_DIST += gnullapplication.c gdbusapplication.c strinfo.c
383 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
385 libgio_2_0_la_LIBADD = \
386 $(top_builddir)/glib/libglib-2.0.la \
387 $(top_builddir)/gobject/libgobject-2.0.la \
388 $(top_builddir)/gmodule/libgmodule-2.0.la \
397 no_undefined = -no-undefined
400 if OS_WIN32_AND_DLL_COMPILATION
401 export_symbols = -export-symbols gio.def
404 gio_win32_res = gio-win32-res.o
405 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
408 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
411 -rm $(DESTDIR)$(libdir)/gio-2.0.def
416 export_symbols = -export-symbols-regex '^g_.*'
419 install-data-local: install-ms-lib install-def-file
420 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
422 uninstall-local: uninstall-ms-lib uninstall-def-file
424 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
425 $(gio_win32_res_ldflag) \
426 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
427 -export-dynamic $(no_undefined) $(export_symbols)
429 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
431 gio-win32-res.o: gio.rc
438 gbufferedinputstream.h \
439 gbufferedoutputstream.h \
442 gcharsetconverter.h \
444 gconverterinputstream.h \
445 gconverteroutputstream.h \
447 gdataoutputstream.h \
458 gfilenamecompleter.h \
459 gfileoutputstream.h \
461 gfilterinputstream.h \
462 gfilteroutputstream.h \
465 ginetsocketaddress.h \
477 gmemoryinputstream.h \
478 gmemoryoutputstream.h \
480 gnativevolumemonitor.h \
489 gsimpleasyncresult.h \
490 gsimplepermission.h \
493 gsocketaddressenumerator.h \
495 gsocketconnectable.h \
496 gsocketconnection.h \
497 gsocketcontrolmessage.h \
502 gthreadedsocketservice.h\
508 gzlibdecompressor.h \
509 $(application_headers) \
510 $(settings_headers) \
514 gioincludedir=$(includedir)/glib-2.0/gio/
515 gioinclude_HEADERS = \
519 # these sources (also mentioned above) are generated.
530 gioenumtypes.h.template \
531 gioenumtypes.c.template \
545 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
546 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
547 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
548 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
550 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
551 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
552 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
553 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
555 gio-2.0.lib: libgio-2.0.la gio.def
556 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
558 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
560 gio_querymodules_SOURCES = gio-querymodules.c
561 gio_querymodules_LDADD = \
562 $(top_builddir)/glib/libglib-2.0.la \
563 $(top_builddir)/gobject/libgobject-2.0.la \
564 $(top_builddir)/gmodule/libgmodule-2.0.la \
568 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
569 glib_compile_schemas_SOURCES = \
571 gvdb/gvdb-builder.h \
572 gvdb/gvdb-builder.c \
576 $(top_builddir)/glib/libglib-2.0.la \
577 $(top_builddir)/gobject/libgobject-2.0.la \
579 gsettings_SOURCES = gsettings-tool.c
581 schemadir = $(datadir)/glib-2.0/schemas
582 dist_schema_DATA = gschema.dtd
584 # ------------------------------------------------------------------------
587 bin_PROGRAMS += gdbus
588 gdbus_SOURCES = gdbus-tool.c
589 gdbus_LDADD = libgio-2.0.la \
590 $(top_builddir)/glib/libglib-2.0.la \
591 $(top_builddir)/gobject/libgobject-2.0.la
593 completiondir = $(sysconfdir)/bash_completion.d
594 completion_SCRIPTS = \
595 gdbus-bash-completion.sh \
596 gsettings-bash-completion.sh
597 EXTRA_DIST += $(completion_SCRIPTS)
599 # ------------------------------------------------------------------------
601 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
602 files='$(BUILT_EXTRA_DIST)'; \
603 for f in $$files; do \
604 if test -f $$f; then d=.; else d=$(srcdir); fi; \
605 cp $$d/$$f $(distdir) || exit 1; done
607 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
608 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
610 gunix*.c|gdesktopappinfo.c) ;; \
611 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
614 done | sort -u >libgio.sourcefiles
615 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
616 rm libgio.sourcefiles
618 if HAVE_GLIB_RUNTIME_LIBDIR
620 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
621 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
622 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
623 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
624 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so