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.h \
130 gkeyfilesettingsbackend.c \
131 gmemorysettingsbackend.h \
132 gmemorysettingsbackend.c \
133 gnullsettingsbackend.h \
134 gnullsettingsbackend.c \
135 gsettingsbackendinternal.h \
139 gsettings-mapping.h \
140 gsettings-mapping.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 \
170 platform_libadd += inotify/libinotify.la
171 platform_deps += inotify/libinotify.la
175 AM_CPPFLAGS += -DHAVE_FEN
177 platform_libadd += fen/libfen.la
178 platform_deps += fen/libfen.la
183 platform_libadd += win32/libgiowin32.la
184 platform_deps += win32/libgiowin32.la
195 appinfo_sources += gdesktopappinfo.c
196 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
197 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
199 gfiledescriptorbased.c \
201 gunixcredentialsmessage.c \
209 gunixsocketaddress.c \
212 gunixvolumemonitor.c \
213 gunixvolumemonitor.h \
215 gunixoutputstream.c \
219 giounixincludedir=$(includedir)/gio-unix-2.0/gio
220 giounixinclude_HEADERS = \
222 gfiledescriptorbased.h \
224 gunixcredentialsmessage.h \
229 gunixoutputstream.h \
230 gunixsocketaddress.h \
234 win32_actual_sources = \
239 gwin32volumemonitor.c \
240 gwin32volumemonitor.h \
241 gwin32inputstream.c \
242 gwin32outputstream.c \
243 gwin32outputstream.h \
246 win32_more_sources_for_vcproj = \
248 win32/gwin32directorymonitor.c \
249 win32/gwinhttpfile.c \
250 win32/gwinhttpfileinputstream.c \
251 win32/gwinhttpfileoutputstream.c \
255 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
256 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
257 win32_sources = $(win32_actual_sources)
259 giowin32includedir=$(includedir)/gio-win32-2.0/gio
260 giowin32include_HEADERS = \
261 gwin32inputstream.h \
262 gwin32outputstream.h \
269 libgio_2_0_la_SOURCES = \
277 gbufferedinputstream.c \
278 gbufferedoutputstream.c \
281 gcontenttypeprivate.h \
282 gcharsetconverter.c \
284 gconverterinputstream.c \
285 gconverteroutputstream.c \
288 gdataoutputstream.c \
298 gfileattribute-priv.h \
305 gfilenamecompleter.c \
306 gfileoutputstream.c \
308 gfilterinputstream.c \
309 gfilteroutputstream.c \
312 ginetsocketaddress.c \
323 gmemoryinputstream.c \
324 gmemoryoutputstream.c \
326 gnativevolumemonitor.c \
327 gnativevolumemonitor.h \
329 gnetworkingprivate.h \
337 gsimpleasyncresult.c \
338 gsimplepermission.c \
341 gsocketaddressenumerator.c \
343 gsocketconnectable.c \
344 gsocketconnection.c \
345 gsocketcontrolmessage.c \
346 gsocketinputstream.c \
347 gsocketinputstream.h \
349 gsocketoutputstream.c \
350 gsocketoutputstream.h \
354 gthreadedsocketservice.c\
356 gthreadedresolver.c \
357 gthreadedresolver.h \
358 gunionvolumemonitor.c \
359 gunionvolumemonitor.h \
364 gzlibdecompressor.c \
373 $(settings_sources) \
379 EXTRA_DIST += gnullapplication.c gdbusapplication.c strinfo.c
381 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
383 libgio_2_0_la_LIBADD = \
384 $(top_builddir)/glib/libglib-2.0.la \
385 $(top_builddir)/gobject/libgobject-2.0.la \
386 $(top_builddir)/gmodule/libgmodule-2.0.la \
395 no_undefined = -no-undefined
398 if OS_WIN32_AND_DLL_COMPILATION
399 export_symbols = -export-symbols gio.def
402 gio_win32_res = gio-win32-res.o
403 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
406 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
409 -rm $(DESTDIR)$(libdir)/gio-2.0.def
414 export_symbols = -export-symbols-regex '^g_.*'
417 install-data-local: install-ms-lib install-def-file
418 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
420 uninstall-local: uninstall-ms-lib uninstall-def-file
422 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
423 $(gio_win32_res_ldflag) \
424 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
425 -export-dynamic $(no_undefined) $(export_symbols)
427 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
429 gio-win32-res.o: gio.rc
437 gbufferedinputstream.h \
438 gbufferedoutputstream.h \
441 gcharsetconverter.h \
443 gconverterinputstream.h \
444 gconverteroutputstream.h \
446 gdataoutputstream.h \
457 gfilenamecompleter.h \
458 gfileoutputstream.h \
460 gfilterinputstream.h \
461 gfilteroutputstream.h \
464 ginetsocketaddress.h \
476 gmemoryinputstream.h \
477 gmemoryoutputstream.h \
479 gnativevolumemonitor.h \
486 gsimpleasyncresult.h \
487 gsimplepermission.h \
490 gsocketaddressenumerator.h \
492 gsocketconnectable.h \
493 gsocketconnection.h \
494 gsocketcontrolmessage.h \
499 gthreadedsocketservice.h\
505 gzlibdecompressor.h \
506 $(settings_headers) \
510 gioincludedir=$(includedir)/glib-2.0/gio/
511 gioinclude_HEADERS = \
515 # these sources (also mentioned above) are generated.
528 gioenumtypes.h.template \
529 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 = gdbus-bash-completion.sh
595 EXTRA_DIST += $(completion_SCRIPTS)
597 # ------------------------------------------------------------------------
599 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
600 files='$(BUILT_EXTRA_DIST)'; \
601 for f in $$files; do \
602 if test -f $$f; then d=.; else d=$(srcdir); fi; \
603 cp $$d/$$f $(distdir) || exit 1; done
605 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
606 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
608 gunix*.c|gdesktopappinfo.c) ;; \
609 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
612 done | sort -u >libgio.sourcefiles
613 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
614 rm libgio.sourcefiles
616 if HAVE_GLIB_RUNTIME_LIBDIR
618 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
619 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
620 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
621 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
622 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so