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