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 = \
136 application_sources = \
143 glocaldirectorymonitor.c \
144 glocaldirectorymonitor.h \
147 glocalfileenumerator.c \
148 glocalfileenumerator.h \
151 glocalfileinputstream.c \
152 glocalfileinputstream.h \
153 glocalfilemonitor.c \
154 glocalfilemonitor.h \
155 glocalfileoutputstream.c \
156 glocalfileoutputstream.h \
157 glocalfileiostream.c \
158 glocalfileiostream.h \
169 platform_libadd += inotify/libinotify.la
170 platform_deps += inotify/libinotify.la
174 AM_CPPFLAGS += -DHAVE_FEN
176 platform_libadd += fen/libfen.la
177 platform_deps += fen/libfen.la
182 platform_libadd += win32/libgiowin32.la
183 platform_deps += win32/libgiowin32.la
194 appinfo_sources += gdesktopappinfo.c
195 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
196 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
198 gfiledescriptorbased.c \
200 gunixcredentialsmessage.c \
208 gunixsocketaddress.c \
211 gunixvolumemonitor.c \
212 gunixvolumemonitor.h \
214 gunixoutputstream.c \
218 giounixincludedir=$(includedir)/gio-unix-2.0/gio
219 giounixinclude_HEADERS = \
221 gfiledescriptorbased.h \
223 gunixcredentialsmessage.h \
228 gunixoutputstream.h \
229 gunixsocketaddress.h \
233 win32_actual_sources = \
238 gwin32volumemonitor.c \
239 gwin32volumemonitor.h \
240 gwin32inputstream.c \
241 gwin32outputstream.c \
242 gwin32outputstream.h \
245 win32_more_sources_for_vcproj = \
247 win32/gwin32directorymonitor.c \
248 win32/gwinhttpfile.c \
249 win32/gwinhttpfileinputstream.c \
250 win32/gwinhttpfileoutputstream.c \
254 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
255 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
256 win32_sources = $(win32_actual_sources)
258 giowin32includedir=$(includedir)/gio-win32-2.0/gio
259 giowin32include_HEADERS = \
260 gwin32inputstream.h \
261 gwin32outputstream.h \
268 libgio_2_0_la_SOURCES = \
274 gbufferedinputstream.c \
275 gbufferedoutputstream.c \
278 gcontenttypeprivate.h \
279 gcharsetconverter.c \
281 gconverterinputstream.c \
282 gconverteroutputstream.c \
285 gdataoutputstream.c \
295 gfileattribute-priv.h \
302 gfilenamecompleter.c \
303 gfileoutputstream.c \
305 gfilterinputstream.c \
306 gfilteroutputstream.c \
309 ginetsocketaddress.c \
320 gmemoryinputstream.c \
321 gmemoryoutputstream.c \
323 gnativevolumemonitor.c \
324 gnativevolumemonitor.h \
326 gnetworkingprivate.h \
334 gsimpleasyncresult.c \
335 gsimplepermission.c \
338 gsocketaddressenumerator.c \
340 gsocketconnectable.c \
341 gsocketconnection.c \
342 gsocketcontrolmessage.c \
343 gsocketinputstream.c \
344 gsocketinputstream.h \
346 gsocketoutputstream.c \
347 gsocketoutputstream.h \
351 gthreadedsocketservice.c\
353 gthreadedresolver.c \
354 gthreadedresolver.h \
355 gunionvolumemonitor.c \
356 gunionvolumemonitor.h \
361 gzlibdecompressor.c \
368 $(application_sources) \
369 $(settings_sources) \
375 EXTRA_DIST += gnullapplication.c gdbusapplication.c strinfo.c
377 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
379 libgio_2_0_la_LIBADD = \
380 $(top_builddir)/glib/libglib-2.0.la \
381 $(top_builddir)/gobject/libgobject-2.0.la \
382 $(top_builddir)/gmodule/libgmodule-2.0.la \
391 no_undefined = -no-undefined
394 if OS_WIN32_AND_DLL_COMPILATION
395 export_symbols = -export-symbols gio.def
398 gio_win32_res = gio-win32-res.o
399 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
402 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
405 -rm $(DESTDIR)$(libdir)/gio-2.0.def
410 export_symbols = -export-symbols-regex '^g_.*'
413 install-data-local: install-ms-lib install-def-file
414 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
416 uninstall-local: uninstall-ms-lib uninstall-def-file
418 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
419 $(gio_win32_res_ldflag) \
420 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
421 -export-dynamic $(no_undefined) $(export_symbols)
423 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
425 gio-win32-res.o: gio.rc
432 gbufferedinputstream.h \
433 gbufferedoutputstream.h \
436 gcharsetconverter.h \
438 gconverterinputstream.h \
439 gconverteroutputstream.h \
441 gdataoutputstream.h \
452 gfilenamecompleter.h \
453 gfileoutputstream.h \
455 gfilterinputstream.h \
456 gfilteroutputstream.h \
459 ginetsocketaddress.h \
471 gmemoryinputstream.h \
472 gmemoryoutputstream.h \
474 gnativevolumemonitor.h \
481 gsimpleasyncresult.h \
482 gsimplepermission.h \
485 gsocketaddressenumerator.h \
487 gsocketconnectable.h \
488 gsocketconnection.h \
489 gsocketcontrolmessage.h \
494 gthreadedsocketservice.h\
500 gzlibdecompressor.h \
501 $(application_headers) \
502 $(settings_headers) \
506 gioincludedir=$(includedir)/glib-2.0/gio/
507 gioinclude_HEADERS = \
511 # these sources (also mentioned above) are generated.
522 gioenumtypes.h.template \
523 gioenumtypes.c.template \
537 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
538 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
539 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
540 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
542 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
543 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
544 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
545 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
547 gio-2.0.lib: libgio-2.0.la gio.def
548 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
550 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
552 gio_querymodules_SOURCES = gio-querymodules.c
553 gio_querymodules_LDADD = \
554 $(top_builddir)/glib/libglib-2.0.la \
555 $(top_builddir)/gobject/libgobject-2.0.la \
556 $(top_builddir)/gmodule/libgmodule-2.0.la \
560 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
561 glib_compile_schemas_SOURCES = \
563 gvdb/gvdb-builder.h \
564 gvdb/gvdb-builder.c \
568 $(top_builddir)/glib/libglib-2.0.la \
569 $(top_builddir)/gobject/libgobject-2.0.la \
571 gsettings_SOURCES = gsettings-tool.c
573 schemadir = $(datadir)/glib-2.0/schemas
574 dist_schema_DATA = gschema.dtd
576 # ------------------------------------------------------------------------
579 bin_PROGRAMS += gdbus
580 gdbus_SOURCES = gdbus-tool.c
581 gdbus_LDADD = libgio-2.0.la \
582 $(top_builddir)/glib/libglib-2.0.la \
583 $(top_builddir)/gobject/libgobject-2.0.la
585 completiondir = $(sysconfdir)/bash_completion.d
586 completion_SCRIPTS = \
587 gdbus-bash-completion.sh \
588 gsettings-bash-completion.sh
589 EXTRA_DIST += $(completion_SCRIPTS)
591 # ------------------------------------------------------------------------
593 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
594 files='$(BUILT_EXTRA_DIST)'; \
595 for f in $$files; do \
596 if test -f $$f; then d=.; else d=$(srcdir); fi; \
597 cp $$d/$$f $(distdir) || exit 1; done
599 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
600 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
602 gunix*.c|gdesktopappinfo.c) ;; \
603 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
606 done | sort -u >libgio.sourcefiles
607 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
608 rm libgio.sourcefiles
610 if HAVE_GLIB_RUNTIME_LIBDIR
612 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
613 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
614 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
615 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
616 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so