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