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 \
138 application_sources = \
140 gsimpleactiongroup.c \
147 glocaldirectorymonitor.c \
148 glocaldirectorymonitor.h \
151 glocalfileenumerator.c \
152 glocalfileenumerator.h \
155 glocalfileinputstream.c \
156 glocalfileinputstream.h \
157 glocalfilemonitor.c \
158 glocalfilemonitor.h \
159 glocalfileoutputstream.c \
160 glocalfileoutputstream.h \
161 glocalfileiostream.c \
162 glocalfileiostream.h \
179 platform_libadd += inotify/libinotify.la
180 platform_deps += inotify/libinotify.la
184 AM_CPPFLAGS += -DHAVE_FEN
186 platform_libadd += fen/libfen.la
187 platform_deps += fen/libfen.la
192 platform_libadd += win32/libgiowin32.la
193 platform_deps += win32/libgiowin32.la
204 appinfo_sources += gdesktopappinfo.c
205 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
206 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
208 gfiledescriptorbased.c \
210 gunixcredentialsmessage.c \
218 gunixsocketaddress.c \
221 gunixvolumemonitor.c \
222 gunixvolumemonitor.h \
224 gunixoutputstream.c \
228 giounixincludedir=$(includedir)/gio-unix-2.0/gio
229 giounixinclude_HEADERS = \
231 gfiledescriptorbased.h \
233 gunixcredentialsmessage.h \
238 gunixoutputstream.h \
239 gunixsocketaddress.h \
243 win32_actual_sources = \
248 gwin32volumemonitor.c \
249 gwin32volumemonitor.h \
250 gwin32inputstream.c \
251 gwin32outputstream.c \
252 gwin32outputstream.h \
255 win32_more_sources_for_vcproj = \
257 win32/gwin32directorymonitor.c \
258 win32/gwinhttpfile.c \
259 win32/gwinhttpfileinputstream.c \
260 win32/gwinhttpfileoutputstream.c \
264 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
265 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
266 win32_sources = $(win32_actual_sources)
268 giowin32includedir=$(includedir)/gio-win32-2.0/gio
269 giowin32include_HEADERS = \
270 gwin32inputstream.h \
271 gwin32outputstream.h \
278 libgio_2_0_la_SOURCES = \
284 gbufferedinputstream.c \
285 gbufferedoutputstream.c \
288 gcontenttypeprivate.h \
289 gcharsetconverter.c \
291 gconverterinputstream.c \
292 gconverteroutputstream.c \
295 gdataoutputstream.c \
299 gdummyproxyresolver.c \
300 gdummyproxyresolver.h \
307 gfileattribute-priv.h \
314 gfilenamecompleter.c \
315 gfileoutputstream.c \
317 gfilterinputstream.c \
318 gfilteroutputstream.c \
321 ginetsocketaddress.c \
332 gmemoryinputstream.c \
333 gmemoryoutputstream.c \
335 gnativevolumemonitor.c \
336 gnativevolumemonitor.h \
338 gnetworkingprivate.h \
347 gsimpleasyncresult.c \
348 gsimplepermission.c \
351 gsocketaddressenumerator.c \
353 gsocketconnectable.c \
354 gsocketconnection.c \
355 gsocketcontrolmessage.c \
356 gsocketinputstream.c \
357 gsocketinputstream.h \
359 gsocketoutputstream.c \
360 gsocketoutputstream.h \
363 gproxyaddressenumerator.c \
369 gthreadedsocketservice.c\
371 gthreadedresolver.c \
372 gthreadedresolver.h \
373 gunionvolumemonitor.c \
374 gunionvolumemonitor.h \
379 gzlibdecompressor.c \
386 $(application_sources) \
387 $(settings_sources) \
393 EXTRA_DIST += gnullapplication.c gdbusapplication.c strinfo.c
395 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
397 libgio_2_0_la_LIBADD = \
398 $(top_builddir)/glib/libglib-2.0.la \
399 $(top_builddir)/gobject/libgobject-2.0.la \
400 $(top_builddir)/gmodule/libgmodule-2.0.la \
409 no_undefined = -no-undefined
412 if OS_WIN32_AND_DLL_COMPILATION
413 export_symbols = -export-symbols gio.def
416 gio_win32_res = gio-win32-res.o
417 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
420 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
423 -rm $(DESTDIR)$(libdir)/gio-2.0.def
428 export_symbols = -export-symbols-regex '^g_.*'
431 install-data-local: install-ms-lib install-def-file
432 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
434 uninstall-local: uninstall-ms-lib uninstall-def-file
436 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
437 $(gio_win32_res_ldflag) \
438 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
439 -export-dynamic $(no_undefined) $(export_symbols)
441 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
443 gio-win32-res.o: gio.rc
450 gbufferedinputstream.h \
451 gbufferedoutputstream.h \
454 gcharsetconverter.h \
456 gconverterinputstream.h \
457 gconverteroutputstream.h \
459 gdataoutputstream.h \
470 gfilenamecompleter.h \
471 gfileoutputstream.h \
473 gfilterinputstream.h \
474 gfilteroutputstream.h \
477 ginetsocketaddress.h \
489 gmemoryinputstream.h \
490 gmemoryoutputstream.h \
492 gnativevolumemonitor.h \
499 gproxyaddressenumerator.h \
503 gsimpleasyncresult.h \
504 gsimplepermission.h \
507 gsocketaddressenumerator.h \
509 gsocketconnectable.h \
510 gsocketconnection.h \
511 gsocketcontrolmessage.h \
516 gthreadedsocketservice.h\
522 gzlibdecompressor.h \
523 $(application_headers) \
524 $(settings_headers) \
528 gioincludedir=$(includedir)/glib-2.0/gio/
529 gioinclude_HEADERS = \
533 # these sources (also mentioned above) are generated.
544 gioenumtypes.h.template \
545 gioenumtypes.c.template \
559 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
560 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
561 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
562 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
564 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
565 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
566 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
567 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
569 gio-2.0.lib: libgio-2.0.la gio.def
570 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
572 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
574 gio_querymodules_SOURCES = gio-querymodules.c
575 gio_querymodules_LDADD = \
576 $(top_builddir)/glib/libglib-2.0.la \
577 $(top_builddir)/gobject/libgobject-2.0.la \
578 $(top_builddir)/gmodule/libgmodule-2.0.la \
582 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
583 glib_compile_schemas_SOURCES = \
585 gvdb/gvdb-builder.h \
586 gvdb/gvdb-builder.c \
590 $(top_builddir)/glib/libglib-2.0.la \
591 $(top_builddir)/gobject/libgobject-2.0.la \
593 gsettings_SOURCES = gsettings-tool.c
595 schemadir = $(datadir)/glib-2.0/schemas
596 dist_schema_DATA = gschema.dtd
598 # ------------------------------------------------------------------------
601 bin_PROGRAMS += gdbus
602 gdbus_SOURCES = gdbus-tool.c
603 gdbus_LDADD = libgio-2.0.la \
604 $(top_builddir)/glib/libglib-2.0.la \
605 $(top_builddir)/gobject/libgobject-2.0.la
607 completiondir = $(sysconfdir)/bash_completion.d
608 completion_SCRIPTS = \
609 gdbus-bash-completion.sh \
610 gsettings-bash-completion.sh
611 EXTRA_DIST += $(completion_SCRIPTS)
613 # ------------------------------------------------------------------------
615 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
616 files='$(BUILT_EXTRA_DIST)'; \
617 for f in $$files; do \
618 if test -f $$f; then d=.; else d=$(srcdir); fi; \
619 cp $$d/$$f $(distdir) || exit 1; done
621 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
622 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
624 gunix*.c|gdesktopappinfo.c) ;; \
625 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
628 done | sort -u >libgio.sourcefiles
629 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
630 rm libgio.sourcefiles
632 if HAVE_GLIB_RUNTIME_LIBDIR
634 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
635 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
636 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
637 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
638 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so