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