Don't needlessly use "echo -e"
[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 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         gcancellable.c          \
290         gcontenttype.c          \
291         gcontenttypeprivate.h   \
292         gcharsetconverter.c     \
293         gconverter.c            \
294         gconverterinputstream.c \
295         gconverteroutputstream.c        \
296         gcredentials.c          \
297         gdatainputstream.c      \
298         gdataoutputstream.c     \
299         gdrive.c                \
300         gdummyfile.h            \
301         gdummyfile.c            \
302         gdummyproxyresolver.c   \
303         gdummyproxyresolver.h   \
304         gdummytlsbackend.c      \
305         gdummytlsbackend.h      \
306         gemblem.h               \
307         gemblem.c               \
308         gemblemedicon.h         \
309         gemblemedicon.c         \
310         gfile.c                 \
311         gfileattribute.c        \
312         gfileattribute-priv.h   \
313         gfileenumerator.c       \
314         gfileicon.c             \
315         gfileinfo.c             \
316         gfileinfo-priv.h        \
317         gfileinputstream.c      \
318         gfilemonitor.c          \
319         gfilenamecompleter.c    \
320         gfileoutputstream.c     \
321         gfileiostream.c         \
322         gfilterinputstream.c    \
323         gfilteroutputstream.c   \
324         gicon.c                 \
325         ginetaddress.c          \
326         ginetsocketaddress.c    \
327         ginitable.c             \
328         ginputstream.c          \
329         gioenums.h              \
330         gioerror.c              \
331         giomodule.c             \
332         giomodule-priv.h        \
333         gioscheduler.c          \
334         giostream.c             \
335         gloadableicon.c         \
336         gmount.c                \
337         gmemoryinputstream.c    \
338         gmemoryoutputstream.c   \
339         gmountoperation.c       \
340         gnativevolumemonitor.c  \
341         gnativevolumemonitor.h  \
342         gnetworkaddress.c       \
343         gnetworkingprivate.h    \
344         gnetworkservice.c       \
345         goutputstream.c         \
346         gpermission.c           \
347         gpollableinputstream.c  \
348         gpollableoutputstream.c \
349         gpollfilemonitor.c      \
350         gpollfilemonitor.h      \
351         gproxyresolver.c        \
352         gresolver.c             \
353         gseekable.c             \
354         gsimpleasyncresult.c    \
355         gsimplepermission.c     \
356         gsocket.c               \
357         gsocketaddress.c        \
358         gsocketaddressenumerator.c \
359         gsocketclient.c         \
360         gsocketconnectable.c    \
361         gsocketconnection.c     \
362         gsocketcontrolmessage.c \
363         gsocketinputstream.c    \
364         gsocketinputstream.h    \
365         gsocketlistener.c       \
366         gsocketoutputstream.c   \
367         gsocketoutputstream.h   \
368         gproxy.c                \
369         gproxyaddress.c         \
370         gproxyaddressenumerator.c \
371         gsocketservice.c        \
372         gsrvtarget.c            \
373         gtcpconnection.c        \
374         gtcpwrapperconnection.c \
375         gthreadedsocketservice.c\
376         gthemedicon.c           \
377         gthreadedresolver.c     \
378         gthreadedresolver.h     \
379         gtimezonemonitor.c      \
380         gtlsbackend.c           \
381         gtlscertificate.c       \
382         gtlsclientconnection.c  \
383         gtlsconnection.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         $(NULL)
416
417 if PLATFORM_WIN32
418 no_undefined = -no-undefined
419 endif
420
421 if OS_WIN32_AND_DLL_COMPILATION
422 export_symbols = -export-symbols gio.def
423 gio_def = gio.def
424
425 gio_win32_res = gio-win32-res.o
426 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
427
428 install-def-file:
429         $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
430
431 uninstall-def-file:
432         -rm $(DESTDIR)$(libdir)/gio-2.0.def
433 else
434 install-def-file:
435 uninstall-def-file:
436
437 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
438 endif
439
440 install-data-local: install-ms-lib install-def-file
441         $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
442
443 uninstall-local: uninstall-ms-lib uninstall-def-file
444
445 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
446         $(gio_win32_res_ldflag) \
447         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
448         -export-dynamic $(no_undefined) $(export_symbols)
449
450 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
451
452 gio-win32-res.o: gio.rc
453         $(WINDRES) gio.rc $@
454
455 gio_headers =                   \
456         gappinfo.h              \
457         gasyncinitable.h        \
458         gasyncresult.h          \
459         gbufferedinputstream.h  \
460         gbufferedoutputstream.h \
461         gcancellable.h          \
462         gcontenttype.h          \
463         gcharsetconverter.h     \
464         gconverter.h            \
465         gconverterinputstream.h \
466         gconverteroutputstream.h        \
467         gdatainputstream.h      \
468         gdataoutputstream.h     \
469         gdrive.h                \
470         gemblem.h               \
471         gemblemedicon.h         \
472         gfile.h                 \
473         gfileattribute.h        \
474         gfileenumerator.h       \
475         gfileicon.h             \
476         gfileinfo.h             \
477         gfileinputstream.h      \
478         gfilemonitor.h          \
479         gfilenamecompleter.h    \
480         gfileoutputstream.h     \
481         gfileiostream.h         \
482         gfilterinputstream.h    \
483         gfilteroutputstream.h   \
484         gicon.h                 \
485         ginetaddress.h          \
486         ginetsocketaddress.h    \
487         ginputstream.h          \
488         ginitable.h             \
489         gio.h                   \
490         giotypes.h              \
491         gioenums.h              \
492         gioerror.h              \
493         giomodule.h             \
494         gioscheduler.h          \
495         giostream.h             \
496         gloadableicon.h         \
497         gmount.h                \
498         gmemoryinputstream.h    \
499         gmemoryoutputstream.h   \
500         gmountoperation.h       \
501         gnativevolumemonitor.h  \
502         gnetworkaddress.h       \
503         gnetworkservice.h       \
504         goutputstream.h         \
505         gpermission.h           \
506         gpollableinputstream.h  \
507         gpollableoutputstream.h \
508         gproxyaddress.h         \
509         gproxy.h                \
510         gproxyaddressenumerator.h \
511         gproxyresolver.h        \
512         gresolver.h             \
513         gseekable.h             \
514         gsimpleasyncresult.h    \
515         gsimplepermission.h     \
516         gsocket.h               \
517         gsocketaddress.h        \
518         gsocketaddressenumerator.h \
519         gsocketclient.h         \
520         gsocketconnectable.h    \
521         gsocketconnection.h     \
522         gsocketcontrolmessage.h \
523         gsocketlistener.h       \
524         gsocketservice.h        \
525         gsrvtarget.h            \
526         gtcpconnection.h        \
527         gtcpwrapperconnection.h \
528         gthreadedsocketservice.h\
529         gthemedicon.h           \
530         gtimezonemonitor.h      \
531         gtlsbackend.h           \
532         gtlscertificate.h       \
533         gtlsclientconnection.h  \
534         gtlsconnection.h        \
535         gtlsserverconnection.h  \
536         gvfs.h                  \
537         gvolume.h               \
538         gvolumemonitor.h        \
539         gzlibcompressor.h       \
540         gzlibdecompressor.h     \
541         $(application_headers)  \
542         $(settings_headers)     \
543         $(gdbus_headers)        \
544         $(NULL)
545
546 gioincludedir=$(includedir)/glib-2.0/gio/
547 gioinclude_HEADERS =            \
548         $(gio_headers)          \
549         gioenumtypes.h
550
551 # these sources (also mentioned above) are generated.
552 BUILT_SOURCES =                 \
553         gioenumtypes.h          \
554         gioenumtypes.c          \
555         $(NULL)
556
557 EXTRA_DIST +=                   \
558         gio.symbols             \
559         gioenumtypes.h.template \
560         gioenumtypes.c.template \
561         makefile.msc            \
562         abicheck.sh             \
563         gio.rc.in               \
564         gschema.dtd             \
565         $(NULL)
566
567 BUILT_EXTRA_DIST =              \
568         gio.rc
569
570 # This is read by gobject-introspection/misc/ and gtk-doc
571 gio-public-headers.txt: Makefile
572         echo $(gioinclude_HEADERS) > $@.tmp && mv $@.tmp $@
573
574 CLEANFILES = gio-public-headers.txt
575
576 all-local: gio-public-headers.txt
577
578 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
579         $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
580           cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
581             gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
582
583 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
584         $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
585           cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
586             gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
587
588 gio-2.0.lib: libgio-2.0.la gio.def
589         lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
590
591 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
592
593 gio_querymodules_SOURCES = gio-querymodules.c
594 gio_querymodules_LDADD   = \
595         $(top_builddir)/glib/libglib-2.0.la             \
596         $(top_builddir)/gobject/libgobject-2.0.la       \
597         $(top_builddir)/gmodule/libgmodule-2.0.la       \
598         libgio-2.0.la                                   \
599         $(NULL)
600
601 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
602 glib_compile_schemas_SOURCES = \
603         gvdb/gvdb-format.h              \
604         gvdb/gvdb-builder.h             \
605         gvdb/gvdb-builder.c             \
606         glib-compile-schemas.c
607
608 gsettings_LDADD = \
609         $(top_builddir)/glib/libglib-2.0.la             \
610         $(top_builddir)/gobject/libgobject-2.0.la       \
611         libgio-2.0.la
612 gsettings_SOURCES = gsettings-tool.c
613
614 schemadir = $(datadir)/glib-2.0/schemas
615 dist_schema_DATA = gschema.dtd
616
617 # ------------------------------------------------------------------------
618 # gdbus(1) tool
619
620 bin_PROGRAMS += gdbus
621 gdbus_SOURCES = gdbus-tool.c
622 gdbus_LDADD = libgio-2.0.la \
623         $(top_builddir)/glib/libglib-2.0.la             \
624         $(top_builddir)/gobject/libgobject-2.0.la
625
626 completiondir = $(sysconfdir)/bash_completion.d
627 completion_DATA = \
628         gdbus-bash-completion.sh                \
629         gsettings-bash-completion.sh
630 EXTRA_DIST += $(completion_DATA)
631
632 # ------------------------------------------------------------------------
633
634 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
635         files='$(BUILT_EXTRA_DIST)'; \
636         for f in $$files; do \
637           if test -f $$f; then d=.; else d=$(srcdir); fi; \
638           cp $$d/$$f $(distdir) || exit 1; done
639
640 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
641         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
642                 case $$F in \
643                 gunix*.c|gdesktopappinfo.c) ;; \
644                 *.c) echo '   <File RelativePath="..\..\..\gio\'$$F'" />' \
645                      ;; \
646                 esac; \
647         done | sort -u >libgio.sourcefiles
648         $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
649         rm libgio.sourcefiles
650
651 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
652         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
653                 case $$F in \
654                 gunix*.c|gdesktopappinfo.c) ;; \
655                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'" />' \
656                      ;; \
657                 esac; \
658         done | sort -u >libgio.vs10.sourcefiles
659         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
660         rm libgio.vs10.sourcefiles
661
662 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
663         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
664                 case $$F in \
665                 gunix*.c|gdesktopappinfo.c) ;; \
666                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
667                      ;; \
668                 esac; \
669         done | sort -u >libgio.vs10.sourcefiles.filters
670         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
671         rm libgio.vs10.sourcefiles.filters
672
673 if HAVE_GLIB_RUNTIME_LIBDIR
674 install-data-hook:
675         mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
676         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
677         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
678         rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
679         ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so
680 endif