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