Fix export_symbols variable in gio/Makefile.am
[platform/upstream/glib.git] / gio / Makefile.am
1 include $(top_srcdir)/Makefile.decl
2
3 NULL =
4
5 SUBDIRS = gdbus-codegen
6
7 if OS_UNIX
8 SUBDIRS += libasyncns xdgmime
9 endif
10
11 if OS_WIN32_AND_DLL_COMPILATION
12 if MS_LIB_AVAILABLE
13 noinst_DATA = gio-2.0.lib
14
15 install_ms_lib_cmd = $(INSTALL) gio-2.0.lib $(DESTDIR)$(libdir)
16 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gio-2.0.lib
17 endif
18 endif
19
20 install-ms-lib:
21         $(install_ms_lib_cmd)
22
23 uninstall-ms-lib:
24         $(uninstall_ms_lib_cmd)
25
26 gio.def: gio.symbols
27         $(AM_V_GEN) (echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gio.symbols | sed -e '/^$$/d' -e 's/^/     /' -e 's/G_GNUC_[^ ]*//g' | sort) > gio.def.tmp && \
28           mv gio.def.tmp gio.def
29
30 if OS_LINUX
31 if HAVE_GNUC_VISIBILITY
32 TESTS = abicheck.sh
33 endif
34 endif
35
36 if HAVE_THREADS
37 THREAD_FLAGS=-DG_THREADS_MANDATORY
38 endif
39
40 AM_CPPFLAGS = \
41         -DG_LOG_DOMAIN=\"GLib-GIO\"                     \
42         $(gmodule_INCLUDES)                             \
43         $(GLIB_DEBUG_FLAGS)                             \
44         $(THREAD_FLAGS)                                 \
45         -DG_DISABLE_DEPRECATED                          \
46         -DGIO_COMPILATION                               \
47         -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"  
48
49 lib_LTLIBRARIES = libgio-2.0.la
50
51 marshal_sources = \
52         gio-marshal.h   \
53         gio-marshal.c   \
54         $(NULL)
55
56 if CROSS_COMPILING
57   glib_genmarshal=$(GLIB_GENMARSHAL)
58 else
59   glib_genmarshal=../gobject/glib-genmarshal
60 endif
61
62 gio-marshal.h: gio-marshal.list
63         $(AM_V_GEN) $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --header --internal > $@.tmp && \
64           mv $@.tmp $@
65
66 gio-marshal.c: gio-marshal.h gio-marshal.list
67         $(AM_V_GEN) (echo "#include \"gio-marshal.h\""; \
68         $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --body --internal) > $@.tmp && \
69           mv $@.tmp $@
70
71 gdbus_headers =                         \
72         gdbusauthobserver.h             \
73         gcredentials.h                  \
74         gdbusutils.h                    \
75         gdbuserror.h                    \
76         gdbusaddress.h                  \
77         gdbusconnection.h               \
78         gdbusmessage.h                  \
79         gdbusnameowning.h               \
80         gdbusnamewatching.h             \
81         gdbusproxy.h                    \
82         gdbusintrospection.h            \
83         gdbusmethodinvocation.h         \
84         gdbusserver.h                   \
85         gdbusinterface.h                \
86         gdbusinterfaceskeleton.h        \
87         gdbusobject.h                   \
88         gdbusobjectskeleton.h           \
89         gdbusobjectproxy.h              \
90         gdbusobjectmanager.h            \
91         gdbusobjectmanagerclient.h      \
92         gdbusobjectmanagerserver.h      \
93         $(NULL)
94
95 gdbus_sources =                                                         \
96         gdbusutils.h                    gdbusutils.c                    \
97         gdbusaddress.h                  gdbusaddress.c                  \
98         gdbusauthobserver.h             gdbusauthobserver.c             \
99         gdbusauth.h                     gdbusauth.c                     \
100         gdbusauthmechanism.h            gdbusauthmechanism.c            \
101         gdbusauthmechanismanon.h        gdbusauthmechanismanon.c        \
102         gdbusauthmechanismexternal.h    gdbusauthmechanismexternal.c    \
103         gdbusauthmechanismsha1.h        gdbusauthmechanismsha1.c        \
104         gdbuserror.h                    gdbuserror.c                    \
105         gdbusconnection.h               gdbusconnection.c               \
106         gdbusmessage.h                  gdbusmessage.c                  \
107         gdbusnameowning.h               gdbusnameowning.c               \
108         gdbusnamewatching.h             gdbusnamewatching.c             \
109         gdbusproxy.h                    gdbusproxy.c                    \
110         gdbusprivate.h                  gdbusprivate.c                  \
111         gdbusintrospection.h            gdbusintrospection.c            \
112         gdbusmethodinvocation.h         gdbusmethodinvocation.c         \
113         gdbusserver.h                   gdbusserver.c                   \
114         gdbusinterface.h                gdbusinterface.c                \
115         gdbusinterfaceskeleton.h        gdbusinterfaceskeleton.c        \
116         gdbusobject.h                   gdbusobject.c                   \
117         gdbusobjectskeleton.h           gdbusobjectskeleton.c           \
118         gdbusobjectproxy.h              gdbusobjectproxy.c              \
119         gdbusobjectmanager.h            gdbusobjectmanager.c            \
120         gdbusobjectmanagerclient.h      gdbusobjectmanagerclient.c      \
121         gdbusobjectmanagerserver.h      gdbusobjectmanagerserver.c      \
122         $(NULL)
123
124 settings_headers = \
125         gsettingsbackend.h              \
126         gsettings.h
127
128 settings_sources = \
129         gvdb/gvdb-format.h              \
130         gvdb/gvdb-reader.h              \
131         gvdb/gvdb-reader.c              \
132         gdelayedsettingsbackend.h       \
133         gdelayedsettingsbackend.c       \
134         gkeyfilesettingsbackend.c       \
135         gmemorysettingsbackend.c        \
136         gnullsettingsbackend.c          \
137         gsettingsbackendinternal.h      \
138         gsettingsbackend.c              \
139         gsettingsschema.h               \
140         gsettingsschema.c               \
141         gsettings-mapping.h             \
142         gsettings-mapping.c             \
143         gsettings.c
144
145 if OS_WIN32
146 settings_sources += \
147         gregistrysettingsbackend.h      \
148         gregistrysettingsbackend.c
149 endif
150
151 application_headers = \
152         gactiongroup.h                  \
153         gsimpleactiongroup.h            \
154         gaction.h                       \
155         gsimpleaction.h                 \
156         gapplicationcommandline.h       \
157         gapplication.h
158
159 application_sources = \
160         gactiongroup.c                          \
161         gsimpleactiongroup.c                    \
162         gaction.c                               \
163         gsimpleaction.c                         \
164         gapplicationcommandline.c               \
165         gapplicationimpl.h                      \
166         gapplicationimpl-dbus.c                 \
167         gapplication.c
168
169 local_sources = \
170         glocaldirectorymonitor.c        \
171         glocaldirectorymonitor.h        \
172         glocalfile.c                    \
173         glocalfile.h                    \
174         glocalfileenumerator.c          \
175         glocalfileenumerator.h          \
176         glocalfileinfo.c                \
177         glocalfileinfo.h                \
178         glocalfileinputstream.c         \
179         glocalfileinputstream.h         \
180         glocalfilemonitor.c             \
181         glocalfilemonitor.h             \
182         glocalfileoutputstream.c        \
183         glocalfileoutputstream.h        \
184         glocalfileiostream.c            \
185         glocalfileiostream.h            \
186         glocalvfs.c                     \
187         glocalvfs.h                     \
188         gsocks4proxy.c                  \
189         gsocks4proxy.h                  \
190         gsocks4aproxy.c                 \
191         gsocks4aproxy.h                 \
192         gsocks5proxy.c                  \
193         gsocks5proxy.h                  \
194         $(NULL)
195
196 platform_libadd =
197 platform_deps =
198 appinfo_sources =
199
200 if HAVE_INOTIFY
201 SUBDIRS += inotify
202 platform_libadd += inotify/libinotify.la
203 platform_deps += inotify/libinotify.la
204 endif
205
206 if HAVE_FEN
207 AM_CPPFLAGS += -DHAVE_FEN
208 SUBDIRS += fen
209 platform_libadd += fen/libfen.la
210 platform_deps += fen/libfen.la
211 endif
212
213 if OS_WIN32
214 SUBDIRS += win32
215 platform_libadd += win32/libgiowin32.la
216 platform_deps += win32/libgiowin32.la
217 endif
218
219 SUBDIRS += .
220
221 if HAVE_FAM
222 SUBDIRS += fam
223 endif
224
225 if OS_UNIX
226 appinfo_sources += gdesktopappinfo.c
227 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
228 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
229 unix_sources = \
230         gfiledescriptorbased.c  \
231         gunixconnection.c       \
232         gunixcredentialsmessage.c       \
233         gunixfdlist.c           \
234         gunixfdmessage.c        \
235         gunixmount.c            \
236         gunixmount.h            \
237         gunixmounts.c           \
238         gunixresolver.c         \
239         gunixresolver.h         \
240         gunixsocketaddress.c    \
241         gunixvolume.c           \
242         gunixvolume.h           \
243         gunixvolumemonitor.c    \
244         gunixvolumemonitor.h    \
245         gunixinputstream.c      \
246         gunixoutputstream.c     \
247         $(NULL)
248
249
250 giounixincludedir=$(includedir)/gio-unix-2.0/gio
251 giounixinclude_HEADERS = \
252         gdesktopappinfo.h       \
253         gfiledescriptorbased.h  \
254         gunixconnection.h       \
255         gunixcredentialsmessage.h       \
256         gunixmounts.h           \
257         gunixfdlist.h           \
258         gunixfdmessage.h        \
259         gunixinputstream.h      \
260         gunixoutputstream.h     \
261         gunixsocketaddress.h    \
262         $(NULL)
263 endif
264
265 win32_actual_sources = \
266         gwin32mount.c \
267         gwin32mount.h \
268         gwin32resolver.c \
269         gwin32resolver.h \
270         gwin32volumemonitor.c \
271         gwin32volumemonitor.h \
272         gwin32inputstream.c \
273         gwin32outputstream.c \
274         gwin32outputstream.h \
275         $(NULL)
276
277 win32_more_sources_for_vcproj = \
278         gwin32appinfo.c \
279         win32/gwin32directorymonitor.c \
280         win32/gwinhttpfile.c \
281         win32/gwinhttpfileinputstream.c \
282         win32/gwinhttpfileoutputstream.c \
283         win32/gwinhttpvfs.c
284
285 if OS_WIN32
286 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
287 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
288 win32_sources = $(win32_actual_sources)
289
290 giowin32includedir=$(includedir)/gio-win32-2.0/gio
291 giowin32include_HEADERS = \
292         gwin32inputstream.h \
293         gwin32outputstream.h \
294         $(NULL)
295
296 endif
297
298 SUBDIRS += tests
299
300 libgio_2_0_la_SOURCES =         \
301         gappinfo.c              \
302         gasynchelper.c          \
303         gasynchelper.h          \
304         gasyncinitable.c        \
305         gasyncresult.c          \
306         gbufferedinputstream.c  \
307         gbufferedoutputstream.c \
308         gcancellable.c          \
309         gcontenttype.c          \
310         gcontenttypeprivate.h   \
311         gcharsetconverter.c     \
312         gconverter.c            \
313         gconverterinputstream.c \
314         gconverteroutputstream.c        \
315         gcredentials.c          \
316         gdatainputstream.c      \
317         gdataoutputstream.c     \
318         gdrive.c                \
319         gdummyfile.h            \
320         gdummyfile.c            \
321         gdummyproxyresolver.c   \
322         gdummyproxyresolver.h   \
323         gdummytlsbackend.c      \
324         gdummytlsbackend.h      \
325         gemblem.h               \
326         gemblem.c               \
327         gemblemedicon.h         \
328         gemblemedicon.c         \
329         gfile.c                 \
330         gfileattribute.c        \
331         gfileattribute-priv.h   \
332         gfileenumerator.c       \
333         gfileicon.c             \
334         gfileinfo.c             \
335         gfileinfo-priv.h        \
336         gfileinputstream.c      \
337         gfilemonitor.c          \
338         gfilenamecompleter.c    \
339         gfileoutputstream.c     \
340         gfileiostream.c         \
341         gfilterinputstream.c    \
342         gfilteroutputstream.c   \
343         gicon.c                 \
344         ginetaddress.c          \
345         ginetsocketaddress.c    \
346         ginitable.c             \
347         ginputstream.c          \
348         gioenums.h              \
349         gioerror.c              \
350         giomodule.c             \
351         giomodule-priv.h        \
352         gioscheduler.c          \
353         giostream.c             \
354         gloadableicon.c         \
355         gmount.c                \
356         gmemoryinputstream.c    \
357         gmemoryoutputstream.c   \
358         gmountoperation.c       \
359         gnativevolumemonitor.c  \
360         gnativevolumemonitor.h  \
361         gnetworkaddress.c       \
362         gnetworkingprivate.h    \
363         gnetworkservice.c       \
364         goutputstream.c         \
365         gpermission.c           \
366         gpollableinputstream.c  \
367         gpollableoutputstream.c \
368         gpollfilemonitor.c      \
369         gpollfilemonitor.h      \
370         gproxyresolver.c        \
371         gresolver.c             \
372         gseekable.c             \
373         gsimpleasyncresult.c    \
374         gsimplepermission.c     \
375         gsocket.c               \
376         gsocketaddress.c        \
377         gsocketaddressenumerator.c \
378         gsocketclient.c         \
379         gsocketconnectable.c    \
380         gsocketconnection.c     \
381         gsocketcontrolmessage.c \
382         gsocketinputstream.c    \
383         gsocketinputstream.h    \
384         gsocketlistener.c       \
385         gsocketoutputstream.c   \
386         gsocketoutputstream.h   \
387         gproxy.c                \
388         gproxyaddress.c         \
389         gproxyaddressenumerator.c \
390         gsocketservice.c        \
391         gsrvtarget.c            \
392         gtcpconnection.c        \
393         gtcpwrapperconnection.c \
394         gthreadedsocketservice.c\
395         gthemedicon.c           \
396         gthreadedresolver.c     \
397         gthreadedresolver.h     \
398         gtimezonemonitor.c      \
399         gtlsbackend.c           \
400         gtlscertificate.c       \
401         gtlsclientconnection.c  \
402         gtlsconnection.c        \
403         gtlsserverconnection.c  \
404         gunionvolumemonitor.c   \
405         gunionvolumemonitor.h   \
406         gvfs.c                  \
407         gvolume.c               \
408         gvolumemonitor.c        \
409         gzlibcompressor.c       \
410         gzlibdecompressor.c     \
411         gmountprivate.h         \
412         gioenumtypes.h          \
413         gioenumtypes.c          \
414         $(appinfo_sources)      \
415         $(unix_sources)         \
416         $(win32_sources)        \
417         $(application_sources)  \
418         $(settings_sources)     \
419         $(gdbus_sources)        \
420         $(local_sources)        \
421         $(marshal_sources)      \
422         $(NULL)
423
424 EXTRA_DIST += strinfo.c
425
426 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
427
428 libgio_2_0_la_LIBADD = \
429         $(top_builddir)/glib/libglib-2.0.la             \
430         $(top_builddir)/gobject/libgobject-2.0.la       \
431         $(top_builddir)/gmodule/libgmodule-2.0.la       \
432         $(platform_libadd)                              \
433         $(ZLIB_LIBS)                                    \
434         $(SELINUX_LIBS)                                 \
435         $(GLIB_LIBS)                                    \
436         $(XATTR_LIBS)                                   \
437         $(NULL)
438
439 if PLATFORM_WIN32
440 no_undefined = -no-undefined
441 endif
442
443 if OS_WIN32_AND_DLL_COMPILATION
444 export_symbols = -export-symbols gio.def
445 gio_def = gio.def
446
447 gio_win32_res = gio-win32-res.o
448 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
449
450 install-def-file:
451         $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
452
453 uninstall-def-file:
454         -rm $(DESTDIR)$(libdir)/gio-2.0.def
455 else
456 install-def-file:
457 uninstall-def-file:
458
459 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
460 endif
461
462 install-data-local: install-ms-lib install-def-file
463         $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
464
465 uninstall-local: uninstall-ms-lib uninstall-def-file
466
467 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
468         $(gio_win32_res_ldflag) \
469         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
470         -export-dynamic $(no_undefined) $(export_symbols)
471
472 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
473
474 gio-win32-res.o: gio.rc
475         $(WINDRES) gio.rc $@
476
477 gio_headers =                   \
478         gappinfo.h              \
479         gasyncinitable.h        \
480         gasyncresult.h          \
481         gbufferedinputstream.h  \
482         gbufferedoutputstream.h \
483         gcancellable.h          \
484         gcontenttype.h          \
485         gcharsetconverter.h     \
486         gconverter.h            \
487         gconverterinputstream.h \
488         gconverteroutputstream.h        \
489         gdatainputstream.h      \
490         gdataoutputstream.h     \
491         gdrive.h                \
492         gemblem.h               \
493         gemblemedicon.h         \
494         gfile.h                 \
495         gfileattribute.h        \
496         gfileenumerator.h       \
497         gfileicon.h             \
498         gfileinfo.h             \
499         gfileinputstream.h      \
500         gfilemonitor.h          \
501         gfilenamecompleter.h    \
502         gfileoutputstream.h     \
503         gfileiostream.h         \
504         gfilterinputstream.h    \
505         gfilteroutputstream.h   \
506         gicon.h                 \
507         ginetaddress.h          \
508         ginetsocketaddress.h    \
509         ginputstream.h          \
510         ginitable.h             \
511         gio.h                   \
512         giotypes.h              \
513         gioenums.h              \
514         gioerror.h              \
515         giomodule.h             \
516         gioscheduler.h          \
517         giostream.h             \
518         gloadableicon.h         \
519         gmount.h                \
520         gmemoryinputstream.h    \
521         gmemoryoutputstream.h   \
522         gmountoperation.h       \
523         gnativevolumemonitor.h  \
524         gnetworkaddress.h       \
525         gnetworkservice.h       \
526         goutputstream.h         \
527         gpermission.h           \
528         gpollableinputstream.h  \
529         gpollableoutputstream.h \
530         gproxyaddress.h         \
531         gproxy.h                \
532         gproxyaddressenumerator.h \
533         gproxyresolver.h        \
534         gresolver.h             \
535         gseekable.h             \
536         gsimpleasyncresult.h    \
537         gsimplepermission.h     \
538         gsocket.h               \
539         gsocketaddress.h        \
540         gsocketaddressenumerator.h \
541         gsocketclient.h         \
542         gsocketconnectable.h    \
543         gsocketconnection.h     \
544         gsocketcontrolmessage.h \
545         gsocketlistener.h       \
546         gsocketservice.h        \
547         gsrvtarget.h            \
548         gtcpconnection.h        \
549         gtcpwrapperconnection.h \
550         gthreadedsocketservice.h\
551         gthemedicon.h           \
552         gtimezonemonitor.h      \
553         gtlsbackend.h           \
554         gtlscertificate.h       \
555         gtlsclientconnection.h  \
556         gtlsconnection.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         gio-marshal.h           \
576         gio-marshal.c           \
577         gioenumtypes.h          \
578         gioenumtypes.c          \
579         $(NULL)
580
581 EXTRA_DIST +=                   \
582         gio-marshal.list        \
583         gio.symbols             \
584         gioenumtypes.h.template \
585         gioenumtypes.c.template \
586         makefile.msc            \
587         abicheck.sh             \
588         gio.rc.in               \
589         gschema.dtd             \
590         $(NULL)
591
592 BUILT_EXTRA_DIST =              \
593         gio.rc
594
595 CLEANFILES =                    \
596         $(marshal_sources)      \
597         $(NULL)
598
599 # This is read by gobject-introspection/misc/ and gtk-doc
600 gio-public-headers.txt: Makefile
601         echo $(gioinclude_HEADERS) > $@.tmp && mv $@.tmp $@
602
603 CLEANFILES += gio-public-headers.txt
604
605 all-local: gio-public-headers.txt
606
607 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
608         $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
609           cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
610             gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
611
612 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
613         $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
614           cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
615             gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
616
617 gio-2.0.lib: libgio-2.0.la gio.def
618         lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
619
620 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
621
622 gio_querymodules_SOURCES = gio-querymodules.c
623 gio_querymodules_LDADD   = \
624         $(top_builddir)/glib/libglib-2.0.la             \
625         $(top_builddir)/gobject/libgobject-2.0.la       \
626         $(top_builddir)/gmodule/libgmodule-2.0.la       \
627         libgio-2.0.la                                   \
628         $(NULL)
629
630 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
631 glib_compile_schemas_SOURCES = \
632         gvdb/gvdb-format.h              \
633         gvdb/gvdb-builder.h             \
634         gvdb/gvdb-builder.c             \
635         glib-compile-schemas.c
636
637 gsettings_LDADD = \
638         $(top_builddir)/glib/libglib-2.0.la             \
639         $(top_builddir)/gobject/libgobject-2.0.la       \
640         libgio-2.0.la
641 gsettings_SOURCES = gsettings-tool.c
642
643 schemadir = $(datadir)/glib-2.0/schemas
644 dist_schema_DATA = gschema.dtd
645
646 # ------------------------------------------------------------------------
647 # gdbus(1) tool
648
649 bin_PROGRAMS += gdbus
650 gdbus_SOURCES = gdbus-tool.c
651 gdbus_LDADD = libgio-2.0.la \
652         $(top_builddir)/glib/libglib-2.0.la             \
653         $(top_builddir)/gobject/libgobject-2.0.la
654
655 completiondir = $(sysconfdir)/bash_completion.d
656 completion_SCRIPTS = \
657         gdbus-bash-completion.sh                \
658         gsettings-bash-completion.sh
659 EXTRA_DIST += $(completion_SCRIPTS)
660
661 # ------------------------------------------------------------------------
662
663 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
664         files='$(BUILT_EXTRA_DIST)'; \
665         for f in $$files; do \
666           if test -f $$f; then d=.; else d=$(srcdir); fi; \
667           cp $$d/$$f $(distdir) || exit 1; done
668
669 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
670         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
671                 case $$F in \
672                 gunix*.c|gdesktopappinfo.c) ;; \
673                 *.c) echo '   <File RelativePath="..\..\..\gio\'$$F'" />' \
674                      ;; \
675                 esac; \
676         done | sort -u >libgio.sourcefiles
677         $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
678         rm libgio.sourcefiles
679
680 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
681         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
682                 case $$F in \
683                 gunix*.c|gdesktopappinfo.c) ;; \
684                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'" />' \
685                      ;; \
686                 esac; \
687         done | sort -u >libgio.vs10.sourcefiles
688         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
689         rm libgio.vs10.sourcefiles
690
691 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
692         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_actual_more_sources_for_vcproj) | tr '/' '\\'`; do \
693                 case $$F in \
694                 gunix*.c|gdesktopappinfo.c) ;; \
695                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
696                      ;; \
697                 esac; \
698         done | sort -u >libgio.vs10.sourcefiles.filters
699         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
700         rm libgio.vs10.sourcefiles.filters
701
702 if HAVE_GLIB_RUNTIME_LIBDIR
703 install-data-hook:
704         mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
705         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
706         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
707         rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
708         ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so
709 endif