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
30 gioalias.h: gio.symbols makegioalias.pl
31 $(AM_V_GEN) $(PERL) $(srcdir)/makegioalias.pl < $(srcdir)/gio.symbols > gioalias.h.tmp && \
32 mv gioalias.h.tmp gioalias.h
34 gioaliasdef.c: gio.symbols makegioalias.pl
35 $(AM_V_GEN) $(PERL) $(srcdir)/makegioalias.pl -def < $(srcdir)/gio.symbols > gioaliasdef.c.tmp && \
36 mv gioaliasdef.c.tmp gioaliasdef.c
39 if HAVE_GNUC_VISIBILITY
40 TESTS = abicheck.sh pltcheck.sh
45 THREAD_FLAGS=-DG_THREADS_MANDATORY
49 -DG_LOG_DOMAIN=\"GLib-GIO\" \
52 -I$(top_srcdir)/glib \
53 -I$(top_srcdir)/gmodule \
56 -DG_DISABLE_DEPRECATED \
58 -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
60 lib_LTLIBRARIES = libgio-2.0.la
68 glib_genmarshal=$(GLIB_GENMARSHAL)
70 glib_genmarshal=../gobject/glib-genmarshal
73 gio-marshal.h: gio-marshal.list
74 $(AM_V_GEN) $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --header --internal > $@.tmp && \
77 gio-marshal.c: gio-marshal.h gio-marshal.list
78 $(AM_V_GEN) (echo "#include \"gio-marshal.h\""; \
79 $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --body --internal) > $@.tmp && \
93 gdbusintrospection.h \
94 gdbusmethodinvocation.h \
99 gdbusutils.h gdbusutils.c \
100 gdbusaddress.h gdbusaddress.c \
101 gdbusauthobserver.h gdbusauthobserver.c \
102 gdbusauth.h gdbusauth.c \
103 gdbusauthmechanism.h gdbusauthmechanism.c \
104 gdbusauthmechanismanon.h gdbusauthmechanismanon.c \
105 gdbusauthmechanismexternal.h gdbusauthmechanismexternal.c \
106 gdbusauthmechanismsha1.h gdbusauthmechanismsha1.c \
107 gdbuserror.h gdbuserror.c \
108 gdbusconnection.h gdbusconnection.c \
109 gdbusmessage.h gdbusmessage.c \
110 gdbusnameowning.h gdbusnameowning.c \
111 gdbusnamewatching.h gdbusnamewatching.c \
112 gdbusproxy.h gdbusproxy.c \
113 gdbusprivate.h gdbusprivate.c \
114 gdbusintrospection.h gdbusintrospection.c \
115 gdbusmethodinvocation.h gdbusmethodinvocation.c \
116 gdbusserver.h gdbusserver.c \
127 gdelayedsettingsbackend.h \
128 gdelayedsettingsbackend.c \
129 gkeyfilesettingsbackend.c \
130 gmemorysettingsbackend.h \
131 gmemorysettingsbackend.c \
132 gnullsettingsbackend.h \
133 gnullsettingsbackend.c \
134 gsettingsbackendinternal.h \
138 gsettings-mapping.h \
139 gsettings-mapping.c \
143 glocaldirectorymonitor.c \
144 glocaldirectorymonitor.h \
147 glocalfileenumerator.c \
148 glocalfileenumerator.h \
151 glocalfileinputstream.c \
152 glocalfileinputstream.h \
153 glocalfilemonitor.c \
154 glocalfilemonitor.h \
155 glocalfileoutputstream.c \
156 glocalfileoutputstream.h \
157 glocalfileiostream.c \
158 glocalfileiostream.h \
169 platform_libadd += inotify/libinotify.la
170 platform_deps += inotify/libinotify.la
174 AM_CPPFLAGS += -DHAVE_FEN
176 platform_libadd += fen/libfen.la
177 platform_deps += fen/libfen.la
182 platform_libadd += win32/libgiowin32.la
183 platform_deps += win32/libgiowin32.la
194 appinfo_sources += gdesktopappinfo.c
195 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
196 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
198 gfiledescriptorbased.c \
200 gunixcredentialsmessage.c \
208 gunixsocketaddress.c \
211 gunixvolumemonitor.c \
212 gunixvolumemonitor.h \
214 gunixoutputstream.c \
218 giounixincludedir=$(includedir)/gio-unix-2.0/gio
219 giounixinclude_HEADERS = \
221 gfiledescriptorbased.h \
223 gunixcredentialsmessage.h \
228 gunixoutputstream.h \
229 gunixsocketaddress.h \
233 win32_actual_sources = \
238 gwin32volumemonitor.c \
239 gwin32volumemonitor.h \
240 gwin32inputstream.c \
241 gwin32outputstream.c \
242 gwin32outputstream.h \
245 win32_more_sources_for_vcproj = \
247 win32/gwin32directorymonitor.c \
248 win32/gwinhttpfile.c \
249 win32/gwinhttpfileinputstream.c \
250 win32/gwinhttpfileoutputstream.c \
254 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
255 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
256 win32_sources = $(win32_actual_sources)
258 giowin32includedir=$(includedir)/gio-win32-2.0/gio
259 giowin32include_HEADERS = \
260 gwin32inputstream.h \
261 gwin32outputstream.h \
268 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 \
297 gfileattribute-priv.h \
304 gfilenamecompleter.c \
305 gfileoutputstream.c \
307 gfilterinputstream.c \
308 gfilteroutputstream.c \
311 ginetsocketaddress.c \
322 gmemoryinputstream.c \
323 gmemoryoutputstream.c \
325 gnativevolumemonitor.c \
326 gnativevolumemonitor.h \
328 gnetworkingprivate.h \
336 gsimpleasyncresult.c \
337 gsimplepermission.c \
340 gsocketaddressenumerator.c \
342 gsocketconnectable.c \
343 gsocketconnection.c \
344 gsocketcontrolmessage.c \
345 gsocketinputstream.c \
346 gsocketinputstream.h \
348 gsocketoutputstream.c \
349 gsocketoutputstream.h \
353 gthreadedsocketservice.c\
355 gthreadedresolver.c \
356 gthreadedresolver.h \
357 gunionvolumemonitor.c \
358 gunionvolumemonitor.h \
363 gzlibdecompressor.c \
372 $(settings_sources) \
378 EXTRA_DIST += gnullapplication.c gdbusapplication.c strinfo.c
380 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
382 libgio_2_0_la_LIBADD = \
383 $(top_builddir)/glib/libglib-2.0.la \
384 $(top_builddir)/gobject/libgobject-2.0.la \
385 $(top_builddir)/gmodule/libgmodule-2.0.la \
394 no_undefined = -no-undefined
397 if OS_WIN32_AND_DLL_COMPILATION
398 export_symbols = -export-symbols gio.def
401 gio_win32_res = gio-win32-res.o
402 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
405 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
408 -rm $(DESTDIR)$(libdir)/gio-2.0.def
413 export_symbols = -export-symbols-regex '^g_.*'
416 install-data-local: install-ms-lib install-def-file
417 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
419 uninstall-local: uninstall-ms-lib uninstall-def-file
421 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
422 $(gio_win32_res_ldflag) \
423 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
424 -export-dynamic $(no_undefined) $(export_symbols)
426 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
428 gio-win32-res.o: gio.rc
436 gbufferedinputstream.h \
437 gbufferedoutputstream.h \
440 gcharsetconverter.h \
442 gconverterinputstream.h \
443 gconverteroutputstream.h \
445 gdataoutputstream.h \
456 gfilenamecompleter.h \
457 gfileoutputstream.h \
459 gfilterinputstream.h \
460 gfilteroutputstream.h \
463 ginetsocketaddress.h \
475 gmemoryinputstream.h \
476 gmemoryoutputstream.h \
478 gnativevolumemonitor.h \
485 gsimpleasyncresult.h \
486 gsimplepermission.h \
489 gsocketaddressenumerator.h \
491 gsocketconnectable.h \
492 gsocketconnection.h \
493 gsocketcontrolmessage.h \
498 gthreadedsocketservice.h\
504 gzlibdecompressor.h \
505 $(settings_headers) \
509 gioincludedir=$(includedir)/glib-2.0/gio/
510 gioinclude_HEADERS = \
514 # these sources (also mentioned above) are generated.
527 gioenumtypes.h.template \
528 gioenumtypes.c.template \
544 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
545 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
546 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
547 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
549 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
550 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
551 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
552 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
554 gio-2.0.lib: libgio-2.0.la gio.def
555 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
557 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
559 gio_querymodules_SOURCES = gio-querymodules.c
560 gio_querymodules_LDADD = \
561 $(top_builddir)/glib/libglib-2.0.la \
562 $(top_builddir)/gobject/libgobject-2.0.la \
563 $(top_builddir)/gmodule/libgmodule-2.0.la \
567 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
568 glib_compile_schemas_SOURCES = \
570 gvdb/gvdb-builder.h \
571 gvdb/gvdb-builder.c \
575 $(top_builddir)/glib/libglib-2.0.la \
576 $(top_builddir)/gobject/libgobject-2.0.la \
578 gsettings_SOURCES = gsettings-tool.c
580 schemadir = $(datadir)/glib-2.0/schemas
581 dist_schema_DATA = gschema.dtd
583 # ------------------------------------------------------------------------
586 bin_PROGRAMS += gdbus
587 gdbus_SOURCES = gdbus-tool.c
588 gdbus_LDADD = libgio-2.0.la \
589 $(top_builddir)/glib/libglib-2.0.la \
590 $(top_builddir)/gobject/libgobject-2.0.la
592 completiondir = $(sysconfdir)/bash_completion.d
593 completion_SCRIPTS = gdbus-bash-completion.sh
594 EXTRA_DIST += $(completion_SCRIPTS)
596 # ------------------------------------------------------------------------
598 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
599 files='$(BUILT_EXTRA_DIST)'; \
600 for f in $$files; do \
601 if test -f $$f; then d=.; else d=$(srcdir); fi; \
602 cp $$d/$$f $(distdir) || exit 1; done
604 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
605 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
607 gunix*.c|gdesktopappinfo.c) ;; \
608 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
611 done | sort -u >libgio.sourcefiles
612 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
613 rm libgio.sourcefiles
615 if HAVE_GLIB_RUNTIME_LIBDIR
617 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
618 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
619 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
620 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
621 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so