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