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\" \
44 -I$(top_srcdir)/glib \
45 -I$(top_srcdir)/gmodule \
46 -I$(top_builddir)/glib \
49 -DG_DISABLE_DEPRECATED \
51 -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
53 lib_LTLIBRARIES = libgio-2.0.la
61 glib_genmarshal=$(GLIB_GENMARSHAL)
63 glib_genmarshal=../gobject/glib-genmarshal
66 gio-marshal.h: gio-marshal.list
67 $(AM_V_GEN) $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --header --internal > $@.tmp && \
70 gio-marshal.c: gio-marshal.h gio-marshal.list
71 $(AM_V_GEN) (echo "#include \"gio-marshal.h\""; \
72 $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --body --internal) > $@.tmp && \
86 gdbusintrospection.h \
87 gdbusmethodinvocation.h \
92 gdbusutils.h gdbusutils.c \
93 gdbusaddress.h gdbusaddress.c \
94 gdbusauthobserver.h gdbusauthobserver.c \
95 gdbusauth.h gdbusauth.c \
96 gdbusauthmechanism.h gdbusauthmechanism.c \
97 gdbusauthmechanismanon.h gdbusauthmechanismanon.c \
98 gdbusauthmechanismexternal.h gdbusauthmechanismexternal.c \
99 gdbusauthmechanismsha1.h gdbusauthmechanismsha1.c \
100 gdbuserror.h gdbuserror.c \
101 gdbusconnection.h gdbusconnection.c \
102 gdbusmessage.h gdbusmessage.c \
103 gdbusnameowning.h gdbusnameowning.c \
104 gdbusnamewatching.h gdbusnamewatching.c \
105 gdbusproxy.h gdbusproxy.c \
106 gdbusprivate.h gdbusprivate.c \
107 gdbusintrospection.h gdbusintrospection.c \
108 gdbusmethodinvocation.h gdbusmethodinvocation.c \
109 gdbusserver.h gdbusserver.c \
120 gdelayedsettingsbackend.h \
121 gdelayedsettingsbackend.c \
122 gkeyfilesettingsbackend.c \
123 gmemorysettingsbackend.h \
124 gmemorysettingsbackend.c \
125 gnullsettingsbackend.h \
126 gnullsettingsbackend.c \
127 gsettingsbackendinternal.h \
131 gsettings-mapping.h \
132 gsettings-mapping.c \
136 glocaldirectorymonitor.c \
137 glocaldirectorymonitor.h \
140 glocalfileenumerator.c \
141 glocalfileenumerator.h \
144 glocalfileinputstream.c \
145 glocalfileinputstream.h \
146 glocalfilemonitor.c \
147 glocalfilemonitor.h \
148 glocalfileoutputstream.c \
149 glocalfileoutputstream.h \
150 glocalfileiostream.c \
151 glocalfileiostream.h \
162 platform_libadd += inotify/libinotify.la
163 platform_deps += inotify/libinotify.la
167 AM_CPPFLAGS += -DHAVE_FEN
169 platform_libadd += fen/libfen.la
170 platform_deps += fen/libfen.la
175 platform_libadd += win32/libgiowin32.la
176 platform_deps += win32/libgiowin32.la
187 appinfo_sources += gdesktopappinfo.c
188 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
189 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
191 gfiledescriptorbased.c \
193 gunixcredentialsmessage.c \
201 gunixsocketaddress.c \
204 gunixvolumemonitor.c \
205 gunixvolumemonitor.h \
207 gunixoutputstream.c \
211 giounixincludedir=$(includedir)/gio-unix-2.0/gio
212 giounixinclude_HEADERS = \
214 gfiledescriptorbased.h \
216 gunixcredentialsmessage.h \
221 gunixoutputstream.h \
222 gunixsocketaddress.h \
226 win32_actual_sources = \
231 gwin32volumemonitor.c \
232 gwin32volumemonitor.h \
233 gwin32inputstream.c \
234 gwin32outputstream.c \
235 gwin32outputstream.h \
238 win32_more_sources_for_vcproj = \
240 win32/gwin32directorymonitor.c \
241 win32/gwinhttpfile.c \
242 win32/gwinhttpfileinputstream.c \
243 win32/gwinhttpfileoutputstream.c \
247 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
248 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
249 win32_sources = $(win32_actual_sources)
251 giowin32includedir=$(includedir)/gio-win32-2.0/gio
252 giowin32include_HEADERS = \
253 gwin32inputstream.h \
254 gwin32outputstream.h \
261 libgio_2_0_la_SOURCES = \
269 gbufferedinputstream.c \
270 gbufferedoutputstream.c \
273 gcontenttypeprivate.h \
274 gcharsetconverter.c \
276 gconverterinputstream.c \
277 gconverteroutputstream.c \
280 gdataoutputstream.c \
290 gfileattribute-priv.h \
297 gfilenamecompleter.c \
298 gfileoutputstream.c \
300 gfilterinputstream.c \
301 gfilteroutputstream.c \
304 ginetsocketaddress.c \
315 gmemoryinputstream.c \
316 gmemoryoutputstream.c \
318 gnativevolumemonitor.c \
319 gnativevolumemonitor.h \
321 gnetworkingprivate.h \
329 gsimpleasyncresult.c \
330 gsimplepermission.c \
333 gsocketaddressenumerator.c \
335 gsocketconnectable.c \
336 gsocketconnection.c \
337 gsocketcontrolmessage.c \
338 gsocketinputstream.c \
339 gsocketinputstream.h \
341 gsocketoutputstream.c \
342 gsocketoutputstream.h \
346 gthreadedsocketservice.c\
348 gthreadedresolver.c \
349 gthreadedresolver.h \
350 gunionvolumemonitor.c \
351 gunionvolumemonitor.h \
356 gzlibdecompressor.c \
363 $(settings_sources) \
369 EXTRA_DIST += gnullapplication.c gdbusapplication.c strinfo.c
371 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
373 libgio_2_0_la_LIBADD = \
374 $(top_builddir)/glib/libglib-2.0.la \
375 $(top_builddir)/gobject/libgobject-2.0.la \
376 $(top_builddir)/gmodule/libgmodule-2.0.la \
385 no_undefined = -no-undefined
388 if OS_WIN32_AND_DLL_COMPILATION
389 export_symbols = -export-symbols gio.def
392 gio_win32_res = gio-win32-res.o
393 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
396 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
399 -rm $(DESTDIR)$(libdir)/gio-2.0.def
404 export_symbols = -export-symbols-regex '^g_.*'
407 install-data-local: install-ms-lib install-def-file
408 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
410 uninstall-local: uninstall-ms-lib uninstall-def-file
412 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
413 $(gio_win32_res_ldflag) \
414 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
415 -export-dynamic $(no_undefined) $(export_symbols)
417 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
419 gio-win32-res.o: gio.rc
427 gbufferedinputstream.h \
428 gbufferedoutputstream.h \
431 gcharsetconverter.h \
433 gconverterinputstream.h \
434 gconverteroutputstream.h \
436 gdataoutputstream.h \
447 gfilenamecompleter.h \
448 gfileoutputstream.h \
450 gfilterinputstream.h \
451 gfilteroutputstream.h \
454 ginetsocketaddress.h \
466 gmemoryinputstream.h \
467 gmemoryoutputstream.h \
469 gnativevolumemonitor.h \
476 gsimpleasyncresult.h \
477 gsimplepermission.h \
480 gsocketaddressenumerator.h \
482 gsocketconnectable.h \
483 gsocketconnection.h \
484 gsocketcontrolmessage.h \
489 gthreadedsocketservice.h\
495 gzlibdecompressor.h \
496 $(settings_headers) \
500 gioincludedir=$(includedir)/glib-2.0/gio/
501 gioinclude_HEADERS = \
505 # these sources (also mentioned above) are generated.
516 gioenumtypes.h.template \
517 gioenumtypes.c.template \
531 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
532 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
533 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
534 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
536 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
537 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
538 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
539 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
541 gio-2.0.lib: libgio-2.0.la gio.def
542 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
544 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
546 gio_querymodules_SOURCES = gio-querymodules.c
547 gio_querymodules_LDADD = \
548 $(top_builddir)/glib/libglib-2.0.la \
549 $(top_builddir)/gobject/libgobject-2.0.la \
550 $(top_builddir)/gmodule/libgmodule-2.0.la \
554 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
555 glib_compile_schemas_SOURCES = \
557 gvdb/gvdb-builder.h \
558 gvdb/gvdb-builder.c \
562 $(top_builddir)/glib/libglib-2.0.la \
563 $(top_builddir)/gobject/libgobject-2.0.la \
565 gsettings_SOURCES = gsettings-tool.c
567 schemadir = $(datadir)/glib-2.0/schemas
568 dist_schema_DATA = gschema.dtd
570 # ------------------------------------------------------------------------
573 bin_PROGRAMS += gdbus
574 gdbus_SOURCES = gdbus-tool.c
575 gdbus_LDADD = libgio-2.0.la \
576 $(top_builddir)/glib/libglib-2.0.la \
577 $(top_builddir)/gobject/libgobject-2.0.la
579 completiondir = $(sysconfdir)/bash_completion.d
580 completion_SCRIPTS = \
581 gdbus-bash-completion.sh \
582 gsettings-bash-completion.sh
583 EXTRA_DIST += $(completion_SCRIPTS)
585 # ------------------------------------------------------------------------
587 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
588 files='$(BUILT_EXTRA_DIST)'; \
589 for f in $$files; do \
590 if test -f $$f; then d=.; else d=$(srcdir); fi; \
591 cp $$d/$$f $(distdir) || exit 1; done
593 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
594 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
596 gunix*.c|gdesktopappinfo.c) ;; \
597 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
600 done | sort -u >libgio.sourcefiles
601 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
602 rm libgio.sourcefiles
604 if HAVE_GLIB_RUNTIME_LIBDIR
606 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
607 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
608 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
609 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
610 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so