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