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 = \
135 application_sources = \
141 glocaldirectorymonitor.c \
142 glocaldirectorymonitor.h \
145 glocalfileenumerator.c \
146 glocalfileenumerator.h \
149 glocalfileinputstream.c \
150 glocalfileinputstream.h \
151 glocalfilemonitor.c \
152 glocalfilemonitor.h \
153 glocalfileoutputstream.c \
154 glocalfileoutputstream.h \
155 glocalfileiostream.c \
156 glocalfileiostream.h \
167 platform_libadd += inotify/libinotify.la
168 platform_deps += inotify/libinotify.la
172 AM_CPPFLAGS += -DHAVE_FEN
174 platform_libadd += fen/libfen.la
175 platform_deps += fen/libfen.la
180 platform_libadd += win32/libgiowin32.la
181 platform_deps += win32/libgiowin32.la
192 appinfo_sources += gdesktopappinfo.c
193 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
194 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
196 gfiledescriptorbased.c \
198 gunixcredentialsmessage.c \
206 gunixsocketaddress.c \
209 gunixvolumemonitor.c \
210 gunixvolumemonitor.h \
212 gunixoutputstream.c \
216 giounixincludedir=$(includedir)/gio-unix-2.0/gio
217 giounixinclude_HEADERS = \
219 gfiledescriptorbased.h \
221 gunixcredentialsmessage.h \
226 gunixoutputstream.h \
227 gunixsocketaddress.h \
231 win32_actual_sources = \
236 gwin32volumemonitor.c \
237 gwin32volumemonitor.h \
238 gwin32inputstream.c \
239 gwin32outputstream.c \
240 gwin32outputstream.h \
243 win32_more_sources_for_vcproj = \
245 win32/gwin32directorymonitor.c \
246 win32/gwinhttpfile.c \
247 win32/gwinhttpfileinputstream.c \
248 win32/gwinhttpfileoutputstream.c \
252 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
253 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
254 win32_sources = $(win32_actual_sources)
256 giowin32includedir=$(includedir)/gio-win32-2.0/gio
257 giowin32include_HEADERS = \
258 gwin32inputstream.h \
259 gwin32outputstream.h \
266 libgio_2_0_la_SOURCES = \
272 gbufferedinputstream.c \
273 gbufferedoutputstream.c \
276 gcontenttypeprivate.h \
277 gcharsetconverter.c \
279 gconverterinputstream.c \
280 gconverteroutputstream.c \
283 gdataoutputstream.c \
293 gfileattribute-priv.h \
300 gfilenamecompleter.c \
301 gfileoutputstream.c \
303 gfilterinputstream.c \
304 gfilteroutputstream.c \
307 ginetsocketaddress.c \
318 gmemoryinputstream.c \
319 gmemoryoutputstream.c \
321 gnativevolumemonitor.c \
322 gnativevolumemonitor.h \
324 gnetworkingprivate.h \
332 gsimpleasyncresult.c \
333 gsimplepermission.c \
336 gsocketaddressenumerator.c \
338 gsocketconnectable.c \
339 gsocketconnection.c \
340 gsocketcontrolmessage.c \
341 gsocketinputstream.c \
342 gsocketinputstream.h \
344 gsocketoutputstream.c \
345 gsocketoutputstream.h \
349 gthreadedsocketservice.c\
351 gthreadedresolver.c \
352 gthreadedresolver.h \
353 gunionvolumemonitor.c \
354 gunionvolumemonitor.h \
359 gzlibdecompressor.c \
366 $(application_sources) \
367 $(settings_sources) \
373 EXTRA_DIST += gnullapplication.c gdbusapplication.c strinfo.c
375 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
377 libgio_2_0_la_LIBADD = \
378 $(top_builddir)/glib/libglib-2.0.la \
379 $(top_builddir)/gobject/libgobject-2.0.la \
380 $(top_builddir)/gmodule/libgmodule-2.0.la \
389 no_undefined = -no-undefined
392 if OS_WIN32_AND_DLL_COMPILATION
393 export_symbols = -export-symbols gio.def
396 gio_win32_res = gio-win32-res.o
397 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
400 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
403 -rm $(DESTDIR)$(libdir)/gio-2.0.def
408 export_symbols = -export-symbols-regex '^g_.*'
411 install-data-local: install-ms-lib install-def-file
412 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
414 uninstall-local: uninstall-ms-lib uninstall-def-file
416 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
417 $(gio_win32_res_ldflag) \
418 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
419 -export-dynamic $(no_undefined) $(export_symbols)
421 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
423 gio-win32-res.o: gio.rc
430 gbufferedinputstream.h \
431 gbufferedoutputstream.h \
434 gcharsetconverter.h \
436 gconverterinputstream.h \
437 gconverteroutputstream.h \
439 gdataoutputstream.h \
450 gfilenamecompleter.h \
451 gfileoutputstream.h \
453 gfilterinputstream.h \
454 gfilteroutputstream.h \
457 ginetsocketaddress.h \
469 gmemoryinputstream.h \
470 gmemoryoutputstream.h \
472 gnativevolumemonitor.h \
479 gsimpleasyncresult.h \
480 gsimplepermission.h \
483 gsocketaddressenumerator.h \
485 gsocketconnectable.h \
486 gsocketconnection.h \
487 gsocketcontrolmessage.h \
492 gthreadedsocketservice.h\
498 gzlibdecompressor.h \
499 $(application_headers) \
500 $(settings_headers) \
504 gioincludedir=$(includedir)/glib-2.0/gio/
505 gioinclude_HEADERS = \
509 # these sources (also mentioned above) are generated.
520 gioenumtypes.h.template \
521 gioenumtypes.c.template \
535 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
536 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
537 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
538 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
540 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
541 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
542 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
543 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
545 gio-2.0.lib: libgio-2.0.la gio.def
546 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
548 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
550 gio_querymodules_SOURCES = gio-querymodules.c
551 gio_querymodules_LDADD = \
552 $(top_builddir)/glib/libglib-2.0.la \
553 $(top_builddir)/gobject/libgobject-2.0.la \
554 $(top_builddir)/gmodule/libgmodule-2.0.la \
558 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
559 glib_compile_schemas_SOURCES = \
561 gvdb/gvdb-builder.h \
562 gvdb/gvdb-builder.c \
566 $(top_builddir)/glib/libglib-2.0.la \
567 $(top_builddir)/gobject/libgobject-2.0.la \
569 gsettings_SOURCES = gsettings-tool.c
571 schemadir = $(datadir)/glib-2.0/schemas
572 dist_schema_DATA = gschema.dtd
574 # ------------------------------------------------------------------------
577 bin_PROGRAMS += gdbus
578 gdbus_SOURCES = gdbus-tool.c
579 gdbus_LDADD = libgio-2.0.la \
580 $(top_builddir)/glib/libglib-2.0.la \
581 $(top_builddir)/gobject/libgobject-2.0.la
583 completiondir = $(sysconfdir)/bash_completion.d
584 completion_SCRIPTS = \
585 gdbus-bash-completion.sh \
586 gsettings-bash-completion.sh
587 EXTRA_DIST += $(completion_SCRIPTS)
589 # ------------------------------------------------------------------------
591 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
592 files='$(BUILT_EXTRA_DIST)'; \
593 for f in $$files; do \
594 if test -f $$f; then d=.; else d=$(srcdir); fi; \
595 cp $$d/$$f $(distdir) || exit 1; done
597 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
598 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
600 gunix*.c|gdesktopappinfo.c) ;; \
601 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
604 done | sort -u >libgio.sourcefiles
605 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
606 rm libgio.sourcefiles
608 if HAVE_GLIB_RUNTIME_LIBDIR
610 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
611 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
612 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
613 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
614 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so