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 \
177 platform_libadd += inotify/libinotify.la
178 platform_deps += inotify/libinotify.la
182 AM_CPPFLAGS += -DHAVE_FEN
184 platform_libadd += fen/libfen.la
185 platform_deps += fen/libfen.la
190 platform_libadd += win32/libgiowin32.la
191 platform_deps += win32/libgiowin32.la
202 appinfo_sources += gdesktopappinfo.c
203 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
204 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
206 gfiledescriptorbased.c \
208 gunixcredentialsmessage.c \
216 gunixsocketaddress.c \
219 gunixvolumemonitor.c \
220 gunixvolumemonitor.h \
222 gunixoutputstream.c \
226 giounixincludedir=$(includedir)/gio-unix-2.0/gio
227 giounixinclude_HEADERS = \
229 gfiledescriptorbased.h \
231 gunixcredentialsmessage.h \
236 gunixoutputstream.h \
237 gunixsocketaddress.h \
241 win32_actual_sources = \
246 gwin32volumemonitor.c \
247 gwin32volumemonitor.h \
248 gwin32inputstream.c \
249 gwin32outputstream.c \
250 gwin32outputstream.h \
253 win32_more_sources_for_vcproj = \
255 win32/gwin32directorymonitor.c \
256 win32/gwinhttpfile.c \
257 win32/gwinhttpfileinputstream.c \
258 win32/gwinhttpfileoutputstream.c \
262 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
263 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
264 win32_sources = $(win32_actual_sources)
266 giowin32includedir=$(includedir)/gio-win32-2.0/gio
267 giowin32include_HEADERS = \
268 gwin32inputstream.h \
269 gwin32outputstream.h \
276 libgio_2_0_la_SOURCES = \
282 gbufferedinputstream.c \
283 gbufferedoutputstream.c \
286 gcontenttypeprivate.h \
287 gcharsetconverter.c \
289 gconverterinputstream.c \
290 gconverteroutputstream.c \
293 gdataoutputstream.c \
297 gdummyproxyresolver.c \
298 gdummyproxyresolver.h \
305 gfileattribute-priv.h \
312 gfilenamecompleter.c \
313 gfileoutputstream.c \
315 gfilterinputstream.c \
316 gfilteroutputstream.c \
319 ginetsocketaddress.c \
330 gmemoryinputstream.c \
331 gmemoryoutputstream.c \
333 gnativevolumemonitor.c \
334 gnativevolumemonitor.h \
336 gnetworkingprivate.h \
345 gsimpleasyncresult.c \
346 gsimplepermission.c \
349 gsocketaddressenumerator.c \
351 gsocketconnectable.c \
352 gsocketconnection.c \
353 gsocketcontrolmessage.c \
354 gsocketinputstream.c \
355 gsocketinputstream.h \
357 gsocketoutputstream.c \
358 gsocketoutputstream.h \
361 gproxyaddressenumerator.c \
367 gthreadedsocketservice.c\
369 gthreadedresolver.c \
370 gthreadedresolver.h \
371 gunionvolumemonitor.c \
372 gunionvolumemonitor.h \
377 gzlibdecompressor.c \
384 $(application_sources) \
385 $(settings_sources) \
391 EXTRA_DIST += gnullapplication.c gdbusapplication.c strinfo.c
393 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
395 libgio_2_0_la_LIBADD = \
396 $(top_builddir)/glib/libglib-2.0.la \
397 $(top_builddir)/gobject/libgobject-2.0.la \
398 $(top_builddir)/gmodule/libgmodule-2.0.la \
407 no_undefined = -no-undefined
410 if OS_WIN32_AND_DLL_COMPILATION
411 export_symbols = -export-symbols gio.def
414 gio_win32_res = gio-win32-res.o
415 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
418 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
421 -rm $(DESTDIR)$(libdir)/gio-2.0.def
426 export_symbols = -export-symbols-regex '^g_.*'
429 install-data-local: install-ms-lib install-def-file
430 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
432 uninstall-local: uninstall-ms-lib uninstall-def-file
434 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
435 $(gio_win32_res_ldflag) \
436 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
437 -export-dynamic $(no_undefined) $(export_symbols)
439 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
441 gio-win32-res.o: gio.rc
448 gbufferedinputstream.h \
449 gbufferedoutputstream.h \
452 gcharsetconverter.h \
454 gconverterinputstream.h \
455 gconverteroutputstream.h \
457 gdataoutputstream.h \
468 gfilenamecompleter.h \
469 gfileoutputstream.h \
471 gfilterinputstream.h \
472 gfilteroutputstream.h \
475 ginetsocketaddress.h \
487 gmemoryinputstream.h \
488 gmemoryoutputstream.h \
490 gnativevolumemonitor.h \
497 gproxyaddressenumerator.h \
501 gsimpleasyncresult.h \
502 gsimplepermission.h \
505 gsocketaddressenumerator.h \
507 gsocketconnectable.h \
508 gsocketconnection.h \
509 gsocketcontrolmessage.h \
514 gthreadedsocketservice.h\
520 gzlibdecompressor.h \
521 $(application_headers) \
522 $(settings_headers) \
526 gioincludedir=$(includedir)/glib-2.0/gio/
527 gioinclude_HEADERS = \
531 # these sources (also mentioned above) are generated.
542 gioenumtypes.h.template \
543 gioenumtypes.c.template \
557 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
558 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
559 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
560 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
562 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
563 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
564 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
565 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
567 gio-2.0.lib: libgio-2.0.la gio.def
568 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
570 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
572 gio_querymodules_SOURCES = gio-querymodules.c
573 gio_querymodules_LDADD = \
574 $(top_builddir)/glib/libglib-2.0.la \
575 $(top_builddir)/gobject/libgobject-2.0.la \
576 $(top_builddir)/gmodule/libgmodule-2.0.la \
580 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
581 glib_compile_schemas_SOURCES = \
583 gvdb/gvdb-builder.h \
584 gvdb/gvdb-builder.c \
588 $(top_builddir)/glib/libglib-2.0.la \
589 $(top_builddir)/gobject/libgobject-2.0.la \
591 gsettings_SOURCES = gsettings-tool.c
593 schemadir = $(datadir)/glib-2.0/schemas
594 dist_schema_DATA = gschema.dtd
596 # ------------------------------------------------------------------------
599 bin_PROGRAMS += gdbus
600 gdbus_SOURCES = gdbus-tool.c
601 gdbus_LDADD = libgio-2.0.la \
602 $(top_builddir)/glib/libglib-2.0.la \
603 $(top_builddir)/gobject/libgobject-2.0.la
605 completiondir = $(sysconfdir)/bash_completion.d
606 completion_SCRIPTS = \
607 gdbus-bash-completion.sh \
608 gsettings-bash-completion.sh
609 EXTRA_DIST += $(completion_SCRIPTS)
611 # ------------------------------------------------------------------------
613 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
614 files='$(BUILT_EXTRA_DIST)'; \
615 for f in $$files; do \
616 if test -f $$f; then d=.; else d=$(srcdir); fi; \
617 cp $$d/$$f $(distdir) || exit 1; done
619 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
620 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
622 gunix*.c|gdesktopappinfo.c) ;; \
623 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
626 done | sort -u >libgio.sourcefiles
627 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
628 rm libgio.sourcefiles
630 if HAVE_GLIB_RUNTIME_LIBDIR
632 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
633 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
634 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
635 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
636 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so