Install completion scripts as DATA, not SCRIPTS
[platform/upstream/glib.git] / gio / Makefile.am
1 include $(top_srcdir)/Makefile.decl
2
3 NULL =
4
5 SUBDIRS = gdbus-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 -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
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         win32/gwin32directorymonitor.c \
260         win32/gwinhttpfile.c \
261         win32/gwinhttpfileinputstream.c \
262         win32/gwinhttpfileoutputstream.c \
263         win32/gwinhttpvfs.c
264
265 if OS_WIN32
266 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
267 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
268 win32_sources = $(win32_actual_sources)
269
270 giowin32includedir=$(includedir)/gio-win32-2.0/gio
271 giowin32include_HEADERS = \
272         gwin32inputstream.h \
273         gwin32outputstream.h \
274         $(NULL)
275
276 endif
277
278 SUBDIRS += tests
279
280 libgio_2_0_la_SOURCES =         \
281         gappinfo.c              \
282         gasynchelper.c          \
283         gasynchelper.h          \
284         gasyncinitable.c        \
285         gasyncresult.c          \
286         gbufferedinputstream.c  \
287         gbufferedoutputstream.c \
288         gcancellable.c          \
289         gcontenttype.c          \
290         gcontenttypeprivate.h   \
291         gcharsetconverter.c     \
292         gconverter.c            \
293         gconverterinputstream.c \
294         gconverteroutputstream.c        \
295         gcredentials.c          \
296         gdatainputstream.c      \
297         gdataoutputstream.c     \
298         gdrive.c                \
299         gdummyfile.h            \
300         gdummyfile.c            \
301         gdummyproxyresolver.c   \
302         gdummyproxyresolver.h   \
303         gdummytlsbackend.c      \
304         gdummytlsbackend.h      \
305         gemblem.h               \
306         gemblem.c               \
307         gemblemedicon.h         \
308         gemblemedicon.c         \
309         gfile.c                 \
310         gfileattribute.c        \
311         gfileattribute-priv.h   \
312         gfileenumerator.c       \
313         gfileicon.c             \
314         gfileinfo.c             \
315         gfileinfo-priv.h        \
316         gfileinputstream.c      \
317         gfilemonitor.c          \
318         gfilenamecompleter.c    \
319         gfileoutputstream.c     \
320         gfileiostream.c         \
321         gfilterinputstream.c    \
322         gfilteroutputstream.c   \
323         gicon.c                 \
324         ginetaddress.c          \
325         ginetsocketaddress.c    \
326         ginitable.c             \
327         ginputstream.c          \
328         gioenums.h              \
329         gioerror.c              \
330         giomodule.c             \
331         giomodule-priv.h        \
332         gioscheduler.c          \
333         giostream.c             \
334         gloadableicon.c         \
335         gmount.c                \
336         gmemoryinputstream.c    \
337         gmemoryoutputstream.c   \
338         gmountoperation.c       \
339         gnativevolumemonitor.c  \
340         gnativevolumemonitor.h  \
341         gnetworkaddress.c       \
342         gnetworkingprivate.h    \
343         gnetworkservice.c       \
344         goutputstream.c         \
345         gpermission.c           \
346         gpollableinputstream.c  \
347         gpollableoutputstream.c \
348         gpollfilemonitor.c      \
349         gpollfilemonitor.h      \
350         gproxyresolver.c        \
351         gresolver.c             \
352         gseekable.c             \
353         gsimpleasyncresult.c    \
354         gsimplepermission.c     \
355         gsocket.c               \
356         gsocketaddress.c        \
357         gsocketaddressenumerator.c \
358         gsocketclient.c         \
359         gsocketconnectable.c    \
360         gsocketconnection.c     \
361         gsocketcontrolmessage.c \
362         gsocketinputstream.c    \
363         gsocketinputstream.h    \
364         gsocketlistener.c       \
365         gsocketoutputstream.c   \
366         gsocketoutputstream.h   \
367         gproxy.c                \
368         gproxyaddress.c         \
369         gproxyaddressenumerator.c \
370         gsocketservice.c        \
371         gsrvtarget.c            \
372         gtcpconnection.c        \
373         gtcpwrapperconnection.c \
374         gthreadedsocketservice.c\
375         gthemedicon.c           \
376         gthreadedresolver.c     \
377         gthreadedresolver.h     \
378         gtimezonemonitor.c      \
379         gtlsbackend.c           \
380         gtlscertificate.c       \
381         gtlsclientconnection.c  \
382         gtlsconnection.c        \
383         gtlsserverconnection.c  \
384         gunionvolumemonitor.c   \
385         gunionvolumemonitor.h   \
386         gvfs.c                  \
387         gvolume.c               \
388         gvolumemonitor.c        \
389         gzlibcompressor.c       \
390         gzlibdecompressor.c     \
391         gmountprivate.h         \
392         gioenumtypes.h          \
393         gioenumtypes.c          \
394         $(appinfo_sources)      \
395         $(unix_sources)         \
396         $(win32_sources)        \
397         $(application_sources)  \
398         $(settings_sources)     \
399         $(gdbus_sources)        \
400         $(local_sources)        \
401         $(NULL)
402
403 EXTRA_DIST += strinfo.c
404
405 libgio_2_0_la_LIBADD = \
406         $(top_builddir)/glib/libglib-2.0.la             \
407         $(top_builddir)/gobject/libgobject-2.0.la       \
408         $(top_builddir)/gmodule/libgmodule-2.0.la       \
409         $(platform_libadd)                              \
410         $(ZLIB_LIBS)                                    \
411         $(SELINUX_LIBS)                                 \
412         $(GLIB_LIBS)                                    \
413         $(XATTR_LIBS)                                   \
414         $(NULL)
415
416 if PLATFORM_WIN32
417 no_undefined = -no-undefined
418 endif
419
420 if OS_WIN32_AND_DLL_COMPILATION
421 export_symbols = -export-symbols gio.def
422 gio_def = gio.def
423
424 gio_win32_res = gio-win32-res.o
425 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
426
427 install-def-file:
428         $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
429
430 uninstall-def-file:
431         -rm $(DESTDIR)$(libdir)/gio-2.0.def
432 else
433 install-def-file:
434 uninstall-def-file:
435
436 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
437 endif
438
439 install-data-local: install-ms-lib install-def-file
440         $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
441
442 uninstall-local: uninstall-ms-lib uninstall-def-file
443
444 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
445         $(gio_win32_res_ldflag) \
446         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
447         -export-dynamic $(no_undefined) $(export_symbols)
448
449 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
450
451 gio-win32-res.o: gio.rc
452         $(WINDRES) gio.rc $@
453
454 gio_headers =                   \
455         gappinfo.h              \
456         gasyncinitable.h        \
457         gasyncresult.h          \
458         gbufferedinputstream.h  \
459         gbufferedoutputstream.h \
460         gcancellable.h          \
461         gcontenttype.h          \
462         gcharsetconverter.h     \
463         gconverter.h            \
464         gconverterinputstream.h \
465         gconverteroutputstream.h        \
466         gdatainputstream.h      \
467         gdataoutputstream.h     \
468         gdrive.h                \
469         gemblem.h               \
470         gemblemedicon.h         \
471         gfile.h                 \
472         gfileattribute.h        \
473         gfileenumerator.h       \
474         gfileicon.h             \
475         gfileinfo.h             \
476         gfileinputstream.h      \
477         gfilemonitor.h          \
478         gfilenamecompleter.h    \
479         gfileoutputstream.h     \
480         gfileiostream.h         \
481         gfilterinputstream.h    \
482         gfilteroutputstream.h   \
483         gicon.h                 \
484         ginetaddress.h          \
485         ginetsocketaddress.h    \
486         ginputstream.h          \
487         ginitable.h             \
488         gio.h                   \
489         giotypes.h              \
490         gioenums.h              \
491         gioerror.h              \
492         giomodule.h             \
493         gioscheduler.h          \
494         giostream.h             \
495         gloadableicon.h         \
496         gmount.h                \
497         gmemoryinputstream.h    \
498         gmemoryoutputstream.h   \
499         gmountoperation.h       \
500         gnativevolumemonitor.h  \
501         gnetworkaddress.h       \
502         gnetworkservice.h       \
503         goutputstream.h         \
504         gpermission.h           \
505         gpollableinputstream.h  \
506         gpollableoutputstream.h \
507         gproxyaddress.h         \
508         gproxy.h                \
509         gproxyaddressenumerator.h \
510         gproxyresolver.h        \
511         gresolver.h             \
512         gseekable.h             \
513         gsimpleasyncresult.h    \
514         gsimplepermission.h     \
515         gsocket.h               \
516         gsocketaddress.h        \
517         gsocketaddressenumerator.h \
518         gsocketclient.h         \
519         gsocketconnectable.h    \
520         gsocketconnection.h     \
521         gsocketcontrolmessage.h \
522         gsocketlistener.h       \
523         gsocketservice.h        \
524         gsrvtarget.h            \
525         gtcpconnection.h        \
526         gtcpwrapperconnection.h \
527         gthreadedsocketservice.h\
528         gthemedicon.h           \
529         gtimezonemonitor.h      \
530         gtlsbackend.h           \
531         gtlscertificate.h       \
532         gtlsclientconnection.h  \
533         gtlsconnection.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) > $@.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_SCRIPTS)
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_actual_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_actual_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_actual_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