Add GDBusActionGroup
[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         gsettingsschema.h               \
101         gsettings.h
102
103 settings_sources = \
104         gvdb/gvdb-format.h              \
105         gvdb/gvdb-reader.h              \
106         gvdb/gvdb-reader.c              \
107         gdelayedsettingsbackend.h       \
108         gdelayedsettingsbackend.c       \
109         gkeyfilesettingsbackend.c       \
110         gmemorysettingsbackend.c        \
111         gnullsettingsbackend.c          \
112         gsettingsbackendinternal.h      \
113         gsettingsbackend.c              \
114         gsettingsschema.h               \
115         gsettingsschema-internal.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         gdbusactiongroup.h              \
133         gactiongroupexporter.h          \
134         gapplicationcommandline.h       \
135         gapplication.h
136
137 application_sources = \
138         gactiongroup.c                          \
139         gsimpleactiongroup.c                    \
140         gaction.c                               \
141         gsimpleaction.c                         \
142         gdbusactiongroup.c                      \
143         gactiongroupexporter.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 += xdgmime/libxdgmime.la $(RESOLVER_LIBADD)
208 platform_deps += 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         gunixsocketaddress.c    \
219         gunixvolume.c           \
220         gunixvolume.h           \
221         gunixvolumemonitor.c    \
222         gunixvolumemonitor.h    \
223         gunixinputstream.c      \
224         gunixoutputstream.c     \
225         $(NULL)
226
227
228 giounixincludedir=$(includedir)/gio-unix-2.0/gio
229 giounixinclude_HEADERS = \
230         gdesktopappinfo.h       \
231         gfiledescriptorbased.h  \
232         gunixconnection.h       \
233         gunixcredentialsmessage.h       \
234         gunixmounts.h           \
235         gunixfdlist.h           \
236         gunixfdmessage.h        \
237         gunixinputstream.h      \
238         gunixoutputstream.h     \
239         gunixsocketaddress.h    \
240         $(NULL)
241
242 if HAVE_NETLINK
243 unix_sources +=                  \
244         gnetworkmonitornetlink.c \
245         gnetworkmonitornetlink.h \
246         $(NULL)
247 endif
248 endif
249
250 win32_actual_sources = \
251         gwin32mount.c \
252         gwin32mount.h \
253         gwin32volumemonitor.c \
254         gwin32volumemonitor.h \
255         gwin32inputstream.c \
256         gwin32outputstream.c \
257         gwin32outputstream.h \
258         $(NULL)
259
260 win32_more_sources_for_vcproj = \
261         gwin32appinfo.c \
262         gregistrysettingsbackend.c \
263         win32/gwin32directorymonitor.c \
264         win32/gwinhttpfile.c \
265         win32/gwinhttpfileinputstream.c \
266         win32/gwinhttpfileoutputstream.c \
267         win32/gwinhttpvfs.c
268
269 if OS_WIN32
270 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
271 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
272 win32_sources = $(win32_actual_sources)
273
274 giowin32includedir=$(includedir)/gio-win32-2.0/gio
275 giowin32include_HEADERS = \
276         gwin32inputstream.h \
277         gwin32outputstream.h \
278         $(NULL)
279
280 endif
281
282 SUBDIRS += tests
283
284 libgio_2_0_la_SOURCES =         \
285         gappinfo.c              \
286         gasynchelper.c          \
287         gasynchelper.h          \
288         gasyncinitable.c        \
289         gasyncresult.c          \
290         gbufferedinputstream.c  \
291         gbufferedoutputstream.c \
292         gcancellable.c          \
293         gcontenttype.c          \
294         gcontenttypeprivate.h   \
295         gcharsetconverter.c     \
296         gconverter.c            \
297         gconverterinputstream.c \
298         gconverteroutputstream.c        \
299         gcredentials.c          \
300         gdatainputstream.c      \
301         gdataoutputstream.c     \
302         gdrive.c                \
303         gdummyfile.h            \
304         gdummyfile.c            \
305         gdummyproxyresolver.c   \
306         gdummyproxyresolver.h   \
307         gdummytlsbackend.c      \
308         gdummytlsbackend.h      \
309         gemblem.h               \
310         gemblem.c               \
311         gemblemedicon.h         \
312         gemblemedicon.c         \
313         gfile.c                 \
314         gfileattribute.c        \
315         gfileattribute-priv.h   \
316         gfileenumerator.c       \
317         gfileicon.c             \
318         gfileinfo.c             \
319         gfileinfo-priv.h        \
320         gfileinputstream.c      \
321         gfilemonitor.c          \
322         gfilenamecompleter.c    \
323         gfileoutputstream.c     \
324         gfileiostream.c         \
325         gfilterinputstream.c    \
326         gfilteroutputstream.c   \
327         gicon.c                 \
328         ginetaddress.c          \
329         ginetaddressmask.c      \
330         ginetsocketaddress.c    \
331         ginitable.c             \
332         ginputstream.c          \
333         gioenums.h              \
334         gioerror.c              \
335         giomodule.c             \
336         giomodule-priv.h        \
337         gioscheduler.c          \
338         giostream.c             \
339         gloadableicon.c         \
340         gmount.c                \
341         gmemoryinputstream.c    \
342         gmemoryoutputstream.c   \
343         gmountoperation.c       \
344         gnativevolumemonitor.c  \
345         gnativevolumemonitor.h  \
346         gnetworkaddress.c       \
347         gnetworkingprivate.h    \
348         gnetworkmonitor.c       \
349         gnetworkmonitorbase.c   \
350         gnetworkmonitorbase.h   \
351         gnetworkservice.c       \
352         goutputstream.c         \
353         gpermission.c           \
354         gpollableinputstream.c  \
355         gpollableoutputstream.c \
356         gpollfilemonitor.c      \
357         gpollfilemonitor.h      \
358         gproxyresolver.c        \
359         gresolver.c             \
360         gseekable.c             \
361         gsimpleasyncresult.c    \
362         gsimplepermission.c     \
363         gsocket.c               \
364         gsocketaddress.c        \
365         gsocketaddressenumerator.c \
366         gsocketclient.c         \
367         gsocketconnectable.c    \
368         gsocketconnection.c     \
369         gsocketcontrolmessage.c \
370         gsocketinputstream.c    \
371         gsocketinputstream.h    \
372         gsocketlistener.c       \
373         gsocketoutputstream.c   \
374         gsocketoutputstream.h   \
375         gproxy.c                \
376         gproxyaddress.c         \
377         gproxyaddressenumerator.c \
378         gsocketservice.c        \
379         gsrvtarget.c            \
380         gtcpconnection.c        \
381         gtcpwrapperconnection.c \
382         gthreadedsocketservice.c\
383         gthemedicon.c           \
384         gthreadedresolver.c     \
385         gthreadedresolver.h     \
386         gtlsbackend.c           \
387         gtlscertificate.c       \
388         gtlsclientconnection.c  \
389         gtlsconnection.c        \
390         gtlsdatabase.c          \
391         gtlsfiledatabase.c      \
392         gtlsinteraction.c       \
393         gtlspassword.c          \
394         gtlsserverconnection.c  \
395         gunionvolumemonitor.c   \
396         gunionvolumemonitor.h   \
397         gvfs.c                  \
398         gvolume.c               \
399         gvolumemonitor.c        \
400         gzlibcompressor.c       \
401         gzlibdecompressor.c     \
402         gmountprivate.h         \
403         gioenumtypes.h          \
404         gioenumtypes.c          \
405         $(appinfo_sources)      \
406         $(unix_sources)         \
407         $(win32_sources)        \
408         $(application_sources)  \
409         $(settings_sources)     \
410         $(gdbus_sources)        \
411         $(local_sources)        \
412         $(NULL)
413
414 EXTRA_DIST += strinfo.c
415
416 libgio_2_0_la_LIBADD = \
417         $(top_builddir)/glib/libglib-2.0.la             \
418         $(top_builddir)/gobject/libgobject-2.0.la       \
419         $(top_builddir)/gmodule/libgmodule-2.0.la       \
420         $(platform_libadd)                              \
421         $(ZLIB_LIBS)                                    \
422         $(SELINUX_LIBS)                                 \
423         $(GLIB_LIBS)                                    \
424         $(XATTR_LIBS)                                   \
425         $(NETWORK_LIBS)                                 \
426         $(NULL)
427
428 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
429
430 if PLATFORM_WIN32
431 no_undefined = -no-undefined
432 endif
433
434 if OS_WIN32_AND_DLL_COMPILATION
435 export_symbols = -export-symbols gio.def
436 gio_def = gio.def
437
438 gio_win32_res = gio-win32-res.o
439 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
440
441 install-def-file:
442         $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
443
444 uninstall-def-file:
445         -rm $(DESTDIR)$(libdir)/gio-2.0.def
446 else
447 install-def-file:
448 uninstall-def-file:
449
450 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
451 endif
452
453 install-data-local: install-ms-lib install-def-file
454         $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
455
456 uninstall-local: uninstall-ms-lib uninstall-def-file
457
458 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
459         $(gio_win32_res_ldflag) \
460         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
461         -export-dynamic $(no_undefined) $(export_symbols)
462
463 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
464
465 gio-win32-res.o: gio.rc
466         $(WINDRES) gio.rc $@
467
468 gio_headers =                   \
469         gappinfo.h              \
470         gasyncinitable.h        \
471         gasyncresult.h          \
472         gbufferedinputstream.h  \
473         gbufferedoutputstream.h \
474         gcancellable.h          \
475         gcontenttype.h          \
476         gcharsetconverter.h     \
477         gconverter.h            \
478         gconverterinputstream.h \
479         gconverteroutputstream.h        \
480         gdatainputstream.h      \
481         gdataoutputstream.h     \
482         gdrive.h                \
483         gemblem.h               \
484         gemblemedicon.h         \
485         gfile.h                 \
486         gfileattribute.h        \
487         gfileenumerator.h       \
488         gfileicon.h             \
489         gfileinfo.h             \
490         gfileinputstream.h      \
491         gfilemonitor.h          \
492         gfilenamecompleter.h    \
493         gfileoutputstream.h     \
494         gfileiostream.h         \
495         gfilterinputstream.h    \
496         gfilteroutputstream.h   \
497         gicon.h                 \
498         ginetaddress.h          \
499         ginetaddressmask.h      \
500         ginetsocketaddress.h    \
501         ginputstream.h          \
502         ginitable.h             \
503         gio.h                   \
504         giotypes.h              \
505         gioenums.h              \
506         gioerror.h              \
507         giomodule.h             \
508         gioscheduler.h          \
509         giostream.h             \
510         gloadableicon.h         \
511         gmount.h                \
512         gmemoryinputstream.h    \
513         gmemoryoutputstream.h   \
514         gmountoperation.h       \
515         gnativevolumemonitor.h  \
516         gnetworkaddress.h       \
517         gnetworkmonitor.h       \
518         gnetworkservice.h       \
519         goutputstream.h         \
520         gpermission.h           \
521         gpollableinputstream.h  \
522         gpollableoutputstream.h \
523         gproxyaddress.h         \
524         gproxy.h                \
525         gproxyaddressenumerator.h \
526         gproxyresolver.h        \
527         gresolver.h             \
528         gseekable.h             \
529         gsimpleasyncresult.h    \
530         gsimplepermission.h     \
531         gsocket.h               \
532         gsocketaddress.h        \
533         gsocketaddressenumerator.h \
534         gsocketclient.h         \
535         gsocketconnectable.h    \
536         gsocketconnection.h     \
537         gsocketcontrolmessage.h \
538         gsocketlistener.h       \
539         gsocketservice.h        \
540         gsrvtarget.h            \
541         gtcpconnection.h        \
542         gtcpwrapperconnection.h \
543         gthreadedsocketservice.h\
544         gthemedicon.h           \
545         gtlsbackend.h           \
546         gtlscertificate.h       \
547         gtlsclientconnection.h  \
548         gtlsconnection.h        \
549         gtlsdatabase.h          \
550         gtlsfiledatabase.h      \
551         gtlsinteraction.h       \
552         gtlspassword.h          \
553         gtlsserverconnection.h  \
554         gvfs.h                  \
555         gvolume.h               \
556         gvolumemonitor.h        \
557         gzlibcompressor.h       \
558         gzlibdecompressor.h     \
559         $(application_headers)  \
560         $(settings_headers)     \
561         $(gdbus_headers)        \
562         $(NULL)
563
564 gioincludedir=$(includedir)/glib-2.0/gio/
565 gioinclude_HEADERS =            \
566         $(gio_headers)          \
567         gioenumtypes.h
568
569 # these sources (also mentioned above) are generated.
570 BUILT_SOURCES =                 \
571         gioenumtypes.h          \
572         gioenumtypes.c          \
573         $(NULL)
574
575 EXTRA_DIST +=                   \
576         gio.symbols             \
577         gioenumtypes.h.template \
578         gioenumtypes.c.template \
579         makefile.msc            \
580         abicheck.sh             \
581         gio.rc.in               \
582         gschema.dtd             \
583         $(NULL)
584
585 BUILT_EXTRA_DIST =              \
586         gio.rc
587
588 # This is read by gobject-introspection/misc/ and gtk-doc
589 gio-public-headers.txt: Makefile
590         echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
591
592 CLEANFILES = gio-public-headers.txt
593
594 all-local: gio-public-headers.txt
595
596 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
597         $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
598           cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
599             gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
600
601 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
602         $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
603           cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
604             gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
605
606 gio-2.0.lib: libgio-2.0.la gio.def
607         lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
608
609 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
610
611 gio_querymodules_SOURCES = gio-querymodules.c
612 gio_querymodules_LDADD   = \
613         $(top_builddir)/glib/libglib-2.0.la             \
614         $(top_builddir)/gobject/libgobject-2.0.la       \
615         $(top_builddir)/gmodule/libgmodule-2.0.la       \
616         libgio-2.0.la                                   \
617         $(NULL)
618
619 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
620 glib_compile_schemas_SOURCES = \
621         gvdb/gvdb-format.h              \
622         gvdb/gvdb-builder.h             \
623         gvdb/gvdb-builder.c             \
624         glib-compile-schemas.c
625
626 gsettings_LDADD = \
627         $(top_builddir)/glib/libglib-2.0.la             \
628         $(top_builddir)/gobject/libgobject-2.0.la       \
629         libgio-2.0.la
630 gsettings_SOURCES = gsettings-tool.c
631
632 schemadir = $(datadir)/glib-2.0/schemas
633 dist_schema_DATA = gschema.dtd
634
635 # ------------------------------------------------------------------------
636 # gdbus(1) tool
637
638 bin_PROGRAMS += gdbus
639 gdbus_SOURCES = gdbus-tool.c
640 gdbus_LDADD = libgio-2.0.la \
641         $(top_builddir)/glib/libglib-2.0.la             \
642         $(top_builddir)/gobject/libgobject-2.0.la
643
644 completiondir = $(sysconfdir)/bash_completion.d
645 completion_DATA = \
646         gdbus-bash-completion.sh                \
647         gsettings-bash-completion.sh
648 EXTRA_DIST += $(completion_DATA)
649
650 # ------------------------------------------------------------------------
651
652 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
653         files='$(BUILT_EXTRA_DIST)'; \
654         for f in $$files; do \
655           if test -f $$f; then d=.; else d=$(srcdir); fi; \
656           cp $$d/$$f $(distdir) || exit 1; done
657
658 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
659         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
660                 case $$F in \
661                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
662                 *.c) echo '   <File RelativePath="..\..\..\gio\'$$F'" />' \
663                      ;; \
664                 esac; \
665         done | sort -u >libgio.sourcefiles
666         $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
667         rm libgio.sourcefiles
668
669 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
670         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
671                 case $$F in \
672                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
673                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'" />' \
674                      ;; \
675                 esac; \
676         done | sort -u >libgio.vs10.sourcefiles
677         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
678         rm libgio.vs10.sourcefiles
679
680 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
681         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
682                 case $$F in \
683                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
684                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
685                      ;; \
686                 esac; \
687         done | sort -u >libgio.vs10.sourcefiles.filters
688         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
689         rm libgio.vs10.sourcefiles.filters
690
691 if HAVE_GLIB_RUNTIME_LIBDIR
692 install-data-hook:
693         mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
694         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
695         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
696         rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
697         ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so
698 endif