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