Avoid using - (hyphen) in gdbus-codegen directory name
[platform/upstream/glib.git] / gio / Makefile.am
1 include $(top_srcdir)/Makefile.decl
2
3 NULL =
4
5 SUBDIRS = gdbus-2.0/codegen
6
7 if OS_UNIX
8 SUBDIRS += libasyncns xdgmime
9 endif
10
11 if OS_WIN32_AND_DLL_COMPILATION
12 if MS_LIB_AVAILABLE
13 noinst_DATA = gio-2.0.lib
14
15 install_ms_lib_cmd = $(INSTALL) gio-2.0.lib $(DESTDIR)$(libdir)
16 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gio-2.0.lib
17 endif
18 endif
19
20 install-ms-lib:
21         $(install_ms_lib_cmd)
22
23 uninstall-ms-lib:
24         $(uninstall_ms_lib_cmd)
25
26 gio.def: gio.symbols
27         $(AM_V_GEN) (echo 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
29
30 if OS_LINUX
31 if HAVE_GNUC_VISIBILITY
32 TESTS = abicheck.sh
33 endif
34 endif
35
36 if HAVE_THREADS
37 THREAD_FLAGS=-DG_THREADS_MANDATORY
38 endif
39
40 AM_CPPFLAGS = \
41         -DG_LOG_DOMAIN=\"GLib-GIO\"                     \
42         $(gmodule_INCLUDES)                             \
43         $(GLIB_DEBUG_FLAGS)                             \
44         $(THREAD_FLAGS)                                 \
45         -DG_DISABLE_DEPRECATED                          \
46         -DGIO_COMPILATION                               \
47         -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"  
48
49 lib_LTLIBRARIES = libgio-2.0.la
50
51 gdbus_headers =                         \
52         gdbusauthobserver.h             \
53         gcredentials.h                  \
54         gdbusutils.h                    \
55         gdbuserror.h                    \
56         gdbusaddress.h                  \
57         gdbusconnection.h               \
58         gdbusmessage.h                  \
59         gdbusnameowning.h               \
60         gdbusnamewatching.h             \
61         gdbusproxy.h                    \
62         gdbusintrospection.h            \
63         gdbusmethodinvocation.h         \
64         gdbusserver.h                   \
65         gdbusinterface.h                \
66         gdbusinterfaceskeleton.h        \
67         gdbusobject.h                   \
68         gdbusobjectskeleton.h           \
69         gdbusobjectproxy.h              \
70         gdbusobjectmanager.h            \
71         gdbusobjectmanagerclient.h      \
72         gdbusobjectmanagerserver.h      \
73         $(NULL)
74
75 gdbus_sources =                                                         \
76         gdbusutils.h                    gdbusutils.c                    \
77         gdbusaddress.h                  gdbusaddress.c                  \
78         gdbusauthobserver.h             gdbusauthobserver.c             \
79         gdbusauth.h                     gdbusauth.c                     \
80         gdbusauthmechanism.h            gdbusauthmechanism.c            \
81         gdbusauthmechanismanon.h        gdbusauthmechanismanon.c        \
82         gdbusauthmechanismexternal.h    gdbusauthmechanismexternal.c    \
83         gdbusauthmechanismsha1.h        gdbusauthmechanismsha1.c        \
84         gdbuserror.h                    gdbuserror.c                    \
85         gdbusconnection.h               gdbusconnection.c               \
86         gdbusmessage.h                  gdbusmessage.c                  \
87         gdbusnameowning.h               gdbusnameowning.c               \
88         gdbusnamewatching.h             gdbusnamewatching.c             \
89         gdbusproxy.h                    gdbusproxy.c                    \
90         gdbusprivate.h                  gdbusprivate.c                  \
91         gdbusintrospection.h            gdbusintrospection.c            \
92         gdbusmethodinvocation.h         gdbusmethodinvocation.c         \
93         gdbusserver.h                   gdbusserver.c                   \
94         gdbusinterface.h                gdbusinterface.c                \
95         gdbusinterfaceskeleton.h        gdbusinterfaceskeleton.c        \
96         gdbusobject.h                   gdbusobject.c                   \
97         gdbusobjectskeleton.h           gdbusobjectskeleton.c           \
98         gdbusobjectproxy.h              gdbusobjectproxy.c              \
99         gdbusobjectmanager.h            gdbusobjectmanager.c            \
100         gdbusobjectmanagerclient.h      gdbusobjectmanagerclient.c      \
101         gdbusobjectmanagerserver.h      gdbusobjectmanagerserver.c      \
102         $(NULL)
103
104 settings_headers = \
105         gsettingsbackend.h              \
106         gsettings.h
107
108 settings_sources = \
109         gvdb/gvdb-format.h              \
110         gvdb/gvdb-reader.h              \
111         gvdb/gvdb-reader.c              \
112         gdelayedsettingsbackend.h       \
113         gdelayedsettingsbackend.c       \
114         gkeyfilesettingsbackend.c       \
115         gmemorysettingsbackend.c        \
116         gnullsettingsbackend.c          \
117         gsettingsbackendinternal.h      \
118         gsettingsbackend.c              \
119         gsettingsschema.h               \
120         gsettingsschema.c               \
121         gsettings-mapping.h             \
122         gsettings-mapping.c             \
123         gsettings.c
124
125 if OS_WIN32
126 settings_sources += \
127         gregistrysettingsbackend.h      \
128         gregistrysettingsbackend.c
129 endif
130
131 application_headers = \
132         gactiongroup.h                  \
133         gsimpleactiongroup.h            \
134         gaction.h                       \
135         gsimpleaction.h                 \
136         gapplicationcommandline.h       \
137         gapplication.h
138
139 application_sources = \
140         gactiongroup.c                          \
141         gsimpleactiongroup.c                    \
142         gaction.c                               \
143         gsimpleaction.c                         \
144         gapplicationcommandline.c               \
145         gapplicationimpl.h                      \
146         gapplicationimpl-dbus.c                 \
147         gapplication.c
148
149 local_sources = \
150         glocaldirectorymonitor.c        \
151         glocaldirectorymonitor.h        \
152         glocalfile.c                    \
153         glocalfile.h                    \
154         glocalfileenumerator.c          \
155         glocalfileenumerator.h          \
156         glocalfileinfo.c                \
157         glocalfileinfo.h                \
158         glocalfileinputstream.c         \
159         glocalfileinputstream.h         \
160         glocalfilemonitor.c             \
161         glocalfilemonitor.h             \
162         glocalfileoutputstream.c        \
163         glocalfileoutputstream.h        \
164         glocalfileiostream.c            \
165         glocalfileiostream.h            \
166         glocalvfs.c                     \
167         glocalvfs.h                     \
168         gsocks4proxy.c                  \
169         gsocks4proxy.h                  \
170         gsocks4aproxy.c                 \
171         gsocks4aproxy.h                 \
172         gsocks5proxy.c                  \
173         gsocks5proxy.h                  \
174         $(NULL)
175
176 platform_libadd =
177 platform_deps =
178 appinfo_sources =
179
180 if HAVE_INOTIFY
181 SUBDIRS += inotify
182 platform_libadd += inotify/libinotify.la
183 platform_deps += inotify/libinotify.la
184 endif
185
186 if HAVE_FEN
187 AM_CPPFLAGS += -DHAVE_FEN
188 SUBDIRS += fen
189 platform_libadd += fen/libfen.la
190 platform_deps += fen/libfen.la
191 endif
192
193 if OS_WIN32
194 SUBDIRS += win32
195 platform_libadd += win32/libgiowin32.la
196 platform_deps += win32/libgiowin32.la
197 endif
198
199 SUBDIRS += .
200
201 if HAVE_FAM
202 SUBDIRS += fam
203 endif
204
205 if OS_UNIX
206 appinfo_sources += gdesktopappinfo.c
207 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
208 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
209 unix_sources = \
210         gfiledescriptorbased.c  \
211         gunixconnection.c       \
212         gunixcredentialsmessage.c       \
213         gunixfdlist.c           \
214         gunixfdmessage.c        \
215         gunixmount.c            \
216         gunixmount.h            \
217         gunixmounts.c           \
218         gunixresolver.c         \
219         gunixresolver.h         \
220         gunixsocketaddress.c    \
221         gunixvolume.c           \
222         gunixvolume.h           \
223         gunixvolumemonitor.c    \
224         gunixvolumemonitor.h    \
225         gunixinputstream.c      \
226         gunixoutputstream.c     \
227         $(NULL)
228
229
230 giounixincludedir=$(includedir)/gio-unix-2.0/gio
231 giounixinclude_HEADERS = \
232         gdesktopappinfo.h       \
233         gfiledescriptorbased.h  \
234         gunixconnection.h       \
235         gunixcredentialsmessage.h       \
236         gunixmounts.h           \
237         gunixfdlist.h           \
238         gunixfdmessage.h        \
239         gunixinputstream.h      \
240         gunixoutputstream.h     \
241         gunixsocketaddress.h    \
242         $(NULL)
243 endif
244
245 win32_actual_sources = \
246         gwin32mount.c \
247         gwin32mount.h \
248         gwin32resolver.c \
249         gwin32resolver.h \
250         gwin32volumemonitor.c \
251         gwin32volumemonitor.h \
252         gwin32inputstream.c \
253         gwin32outputstream.c \
254         gwin32outputstream.h \
255         $(NULL)
256
257 win32_more_sources_for_vcproj = \
258         gwin32appinfo.c \
259         gregistrysettingsbackend.c \
260         win32/gwin32directorymonitor.c \
261         win32/gwinhttpfile.c \
262         win32/gwinhttpfileinputstream.c \
263         win32/gwinhttpfileoutputstream.c \
264         win32/gwinhttpvfs.c
265
266 if OS_WIN32
267 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
268 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
269 win32_sources = $(win32_actual_sources)
270
271 giowin32includedir=$(includedir)/gio-win32-2.0/gio
272 giowin32include_HEADERS = \
273         gwin32inputstream.h \
274         gwin32outputstream.h \
275         $(NULL)
276
277 endif
278
279 SUBDIRS += tests
280
281 libgio_2_0_la_SOURCES =         \
282         gappinfo.c              \
283         gasynchelper.c          \
284         gasynchelper.h          \
285         gasyncinitable.c        \
286         gasyncresult.c          \
287         gbufferedinputstream.c  \
288         gbufferedoutputstream.c \
289         ../glib/gwakeup.c       \
290         gcancellable.c          \
291         gcontenttype.c          \
292         gcontenttypeprivate.h   \
293         gcharsetconverter.c     \
294         gconverter.c            \
295         gconverterinputstream.c \
296         gconverteroutputstream.c        \
297         gcredentials.c          \
298         gdatainputstream.c      \
299         gdataoutputstream.c     \
300         gdrive.c                \
301         gdummyfile.h            \
302         gdummyfile.c            \
303         gdummyproxyresolver.c   \
304         gdummyproxyresolver.h   \
305         gdummytlsbackend.c      \
306         gdummytlsbackend.h      \
307         gemblem.h               \
308         gemblem.c               \
309         gemblemedicon.h         \
310         gemblemedicon.c         \
311         gfile.c                 \
312         gfileattribute.c        \
313         gfileattribute-priv.h   \
314         gfileenumerator.c       \
315         gfileicon.c             \
316         gfileinfo.c             \
317         gfileinfo-priv.h        \
318         gfileinputstream.c      \
319         gfilemonitor.c          \
320         gfilenamecompleter.c    \
321         gfileoutputstream.c     \
322         gfileiostream.c         \
323         gfilterinputstream.c    \
324         gfilteroutputstream.c   \
325         gicon.c                 \
326         ginetaddress.c          \
327         ginetsocketaddress.c    \
328         ginitable.c             \
329         ginputstream.c          \
330         gioenums.h              \
331         gioerror.c              \
332         giomodule.c             \
333         giomodule-priv.h        \
334         gioscheduler.c          \
335         giostream.c             \
336         gloadableicon.c         \
337         gmount.c                \
338         gmemoryinputstream.c    \
339         gmemoryoutputstream.c   \
340         gmountoperation.c       \
341         gnativevolumemonitor.c  \
342         gnativevolumemonitor.h  \
343         gnetworkaddress.c       \
344         gnetworkingprivate.h    \
345         gnetworkservice.c       \
346         goutputstream.c         \
347         gpermission.c           \
348         gpollableinputstream.c  \
349         gpollableoutputstream.c \
350         gpollfilemonitor.c      \
351         gpollfilemonitor.h      \
352         gproxyresolver.c        \
353         gresolver.c             \
354         gseekable.c             \
355         gsimpleasyncresult.c    \
356         gsimplepermission.c     \
357         gsocket.c               \
358         gsocketaddress.c        \
359         gsocketaddressenumerator.c \
360         gsocketclient.c         \
361         gsocketconnectable.c    \
362         gsocketconnection.c     \
363         gsocketcontrolmessage.c \
364         gsocketinputstream.c    \
365         gsocketinputstream.h    \
366         gsocketlistener.c       \
367         gsocketoutputstream.c   \
368         gsocketoutputstream.h   \
369         gproxy.c                \
370         gproxyaddress.c         \
371         gproxyaddressenumerator.c \
372         gsocketservice.c        \
373         gsrvtarget.c            \
374         gtcpconnection.c        \
375         gtcpwrapperconnection.c \
376         gthreadedsocketservice.c\
377         gthemedicon.c           \
378         gthreadedresolver.c     \
379         gthreadedresolver.h     \
380         gtlsbackend.c           \
381         gtlscertificate.c       \
382         gtlsclientconnection.c  \
383         gtlsconnection.c        \
384         gtlsdatabase.c          \
385         gtlsfiledatabase.c      \
386         gtlsinteraction.c       \
387         gtlspassword.c          \
388         gtlsserverconnection.c  \
389         gunionvolumemonitor.c   \
390         gunionvolumemonitor.h   \
391         gvfs.c                  \
392         gvolume.c               \
393         gvolumemonitor.c        \
394         gzlibcompressor.c       \
395         gzlibdecompressor.c     \
396         gmountprivate.h         \
397         gioenumtypes.h          \
398         gioenumtypes.c          \
399         $(appinfo_sources)      \
400         $(unix_sources)         \
401         $(win32_sources)        \
402         $(application_sources)  \
403         $(settings_sources)     \
404         $(gdbus_sources)        \
405         $(local_sources)        \
406         $(NULL)
407
408 EXTRA_DIST += strinfo.c
409
410 libgio_2_0_la_LIBADD = \
411         $(top_builddir)/glib/libglib-2.0.la             \
412         $(top_builddir)/gobject/libgobject-2.0.la       \
413         $(top_builddir)/gmodule/libgmodule-2.0.la       \
414         $(platform_libadd)                              \
415         $(ZLIB_LIBS)                                    \
416         $(SELINUX_LIBS)                                 \
417         $(GLIB_LIBS)                                    \
418         $(XATTR_LIBS)                                   \
419         $(NULL)
420
421 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
422
423 if PLATFORM_WIN32
424 no_undefined = -no-undefined
425 endif
426
427 if OS_WIN32_AND_DLL_COMPILATION
428 export_symbols = -export-symbols gio.def
429 gio_def = gio.def
430
431 gio_win32_res = gio-win32-res.o
432 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
433
434 install-def-file:
435         $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
436
437 uninstall-def-file:
438         -rm $(DESTDIR)$(libdir)/gio-2.0.def
439 else
440 install-def-file:
441 uninstall-def-file:
442
443 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
444 endif
445
446 install-data-local: install-ms-lib install-def-file
447         $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
448
449 uninstall-local: uninstall-ms-lib uninstall-def-file
450
451 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
452         $(gio_win32_res_ldflag) \
453         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
454         -export-dynamic $(no_undefined) $(export_symbols)
455
456 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
457
458 gio-win32-res.o: gio.rc
459         $(WINDRES) gio.rc $@
460
461 gio_headers =                   \
462         gappinfo.h              \
463         gasyncinitable.h        \
464         gasyncresult.h          \
465         gbufferedinputstream.h  \
466         gbufferedoutputstream.h \
467         gcancellable.h          \
468         gcontenttype.h          \
469         gcharsetconverter.h     \
470         gconverter.h            \
471         gconverterinputstream.h \
472         gconverteroutputstream.h        \
473         gdatainputstream.h      \
474         gdataoutputstream.h     \
475         gdrive.h                \
476         gemblem.h               \
477         gemblemedicon.h         \
478         gfile.h                 \
479         gfileattribute.h        \
480         gfileenumerator.h       \
481         gfileicon.h             \
482         gfileinfo.h             \
483         gfileinputstream.h      \
484         gfilemonitor.h          \
485         gfilenamecompleter.h    \
486         gfileoutputstream.h     \
487         gfileiostream.h         \
488         gfilterinputstream.h    \
489         gfilteroutputstream.h   \
490         gicon.h                 \
491         ginetaddress.h          \
492         ginetsocketaddress.h    \
493         ginputstream.h          \
494         ginitable.h             \
495         gio.h                   \
496         giotypes.h              \
497         gioenums.h              \
498         gioerror.h              \
499         giomodule.h             \
500         gioscheduler.h          \
501         giostream.h             \
502         gloadableicon.h         \
503         gmount.h                \
504         gmemoryinputstream.h    \
505         gmemoryoutputstream.h   \
506         gmountoperation.h       \
507         gnativevolumemonitor.h  \
508         gnetworkaddress.h       \
509         gnetworkservice.h       \
510         goutputstream.h         \
511         gpermission.h           \
512         gpollableinputstream.h  \
513         gpollableoutputstream.h \
514         gproxyaddress.h         \
515         gproxy.h                \
516         gproxyaddressenumerator.h \
517         gproxyresolver.h        \
518         gresolver.h             \
519         gseekable.h             \
520         gsimpleasyncresult.h    \
521         gsimplepermission.h     \
522         gsocket.h               \
523         gsocketaddress.h        \
524         gsocketaddressenumerator.h \
525         gsocketclient.h         \
526         gsocketconnectable.h    \
527         gsocketconnection.h     \
528         gsocketcontrolmessage.h \
529         gsocketlistener.h       \
530         gsocketservice.h        \
531         gsrvtarget.h            \
532         gtcpconnection.h        \
533         gtcpwrapperconnection.h \
534         gthreadedsocketservice.h\
535         gthemedicon.h           \
536         gtlsbackend.h           \
537         gtlscertificate.h       \
538         gtlsclientconnection.h  \
539         gtlsconnection.h        \
540         gtlsdatabase.h          \
541         gtlsfiledatabase.h      \
542         gtlsinteraction.h       \
543         gtlspassword.h          \
544         gtlsserverconnection.h  \
545         gvfs.h                  \
546         gvolume.h               \
547         gvolumemonitor.h        \
548         gzlibcompressor.h       \
549         gzlibdecompressor.h     \
550         $(application_headers)  \
551         $(settings_headers)     \
552         $(gdbus_headers)        \
553         $(NULL)
554
555 gioincludedir=$(includedir)/glib-2.0/gio/
556 gioinclude_HEADERS =            \
557         $(gio_headers)          \
558         gioenumtypes.h
559
560 # these sources (also mentioned above) are generated.
561 BUILT_SOURCES =                 \
562         gioenumtypes.h          \
563         gioenumtypes.c          \
564         $(NULL)
565
566 EXTRA_DIST +=                   \
567         gio.symbols             \
568         gioenumtypes.h.template \
569         gioenumtypes.c.template \
570         makefile.msc            \
571         abicheck.sh             \
572         gio.rc.in               \
573         gschema.dtd             \
574         $(NULL)
575
576 BUILT_EXTRA_DIST =              \
577         gio.rc
578
579 # This is read by gobject-introspection/misc/ and gtk-doc
580 gio-public-headers.txt: Makefile
581         echo $(gioinclude_HEADERS) > $@.tmp && mv $@.tmp $@
582
583 CLEANFILES = gio-public-headers.txt
584
585 all-local: gio-public-headers.txt
586
587 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
588         $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
589           cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
590             gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
591
592 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
593         $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
594           cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
595             gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
596
597 gio-2.0.lib: libgio-2.0.la gio.def
598         lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
599
600 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
601
602 gio_querymodules_SOURCES = gio-querymodules.c
603 gio_querymodules_LDADD   = \
604         $(top_builddir)/glib/libglib-2.0.la             \
605         $(top_builddir)/gobject/libgobject-2.0.la       \
606         $(top_builddir)/gmodule/libgmodule-2.0.la       \
607         libgio-2.0.la                                   \
608         $(NULL)
609
610 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
611 glib_compile_schemas_SOURCES = \
612         gvdb/gvdb-format.h              \
613         gvdb/gvdb-builder.h             \
614         gvdb/gvdb-builder.c             \
615         glib-compile-schemas.c
616
617 gsettings_LDADD = \
618         $(top_builddir)/glib/libglib-2.0.la             \
619         $(top_builddir)/gobject/libgobject-2.0.la       \
620         libgio-2.0.la
621 gsettings_SOURCES = gsettings-tool.c
622
623 schemadir = $(datadir)/glib-2.0/schemas
624 dist_schema_DATA = gschema.dtd
625
626 # ------------------------------------------------------------------------
627 # gdbus(1) tool
628
629 bin_PROGRAMS += gdbus
630 gdbus_SOURCES = gdbus-tool.c
631 gdbus_LDADD = libgio-2.0.la \
632         $(top_builddir)/glib/libglib-2.0.la             \
633         $(top_builddir)/gobject/libgobject-2.0.la
634
635 completiondir = $(sysconfdir)/bash_completion.d
636 completion_DATA = \
637         gdbus-bash-completion.sh                \
638         gsettings-bash-completion.sh
639 EXTRA_DIST += $(completion_DATA)
640
641 # ------------------------------------------------------------------------
642
643 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
644         files='$(BUILT_EXTRA_DIST)'; \
645         for f in $$files; do \
646           if test -f $$f; then d=.; else d=$(srcdir); fi; \
647           cp $$d/$$f $(distdir) || exit 1; done
648
649 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
650         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
651                 case $$F in \
652                 gunix*.c|gdesktopappinfo.c) ;; \
653                 *.c) echo '   <File RelativePath="..\..\..\gio\'$$F'" />' \
654                      ;; \
655                 esac; \
656         done | sort -u >libgio.sourcefiles
657         $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
658         rm libgio.sourcefiles
659
660 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
661         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
662                 case $$F in \
663                 gunix*.c|gdesktopappinfo.c) ;; \
664                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'" />' \
665                      ;; \
666                 esac; \
667         done | sort -u >libgio.vs10.sourcefiles
668         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
669         rm libgio.vs10.sourcefiles
670
671 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
672         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
673                 case $$F in \
674                 gunix*.c|gdesktopappinfo.c) ;; \
675                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
676                      ;; \
677                 esac; \
678         done | sort -u >libgio.vs10.sourcefiles.filters
679         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
680         rm libgio.vs10.sourcefiles.filters
681
682 if HAVE_GLIB_RUNTIME_LIBDIR
683 install-data-hook:
684         mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
685         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
686         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
687         rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
688         ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so
689 endif