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