Add GTestDBus object
[platform/upstream/glib.git] / gio / Makefile.am
1 include $(top_srcdir)/Makefile.decl
2
3 NULL =
4
5 DIST_SUBDIRS =
6 SUBDIRS = gdbus-2.0/codegen
7
8 if OS_UNIX
9 SUBDIRS += xdgmime
10 endif
11
12 if OS_WIN32_AND_DLL_COMPILATION
13 if MS_LIB_AVAILABLE
14 noinst_DATA = gio-2.0.lib
15
16 install_ms_lib_cmd = $(INSTALL) gio-2.0.lib $(DESTDIR)$(libdir)
17 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gio-2.0.lib
18 endif
19 endif
20
21 install-ms-lib:
22         $(install_ms_lib_cmd)
23
24 uninstall-ms-lib:
25         $(uninstall_ms_lib_cmd)
26
27 gio.def: gio.symbols
28         $(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) > $(builddir)/gio.def.tmp && \
29           mv $(builddir)/gio.def.tmp $(builddir)/gio.def
30
31 if OS_LINUX
32 if HAVE_GNUC_VISIBILITY
33 TESTS = abicheck.sh
34 endif
35 endif
36
37 AM_CPPFLAGS = \
38         -DG_LOG_DOMAIN=\"GLib-GIO\"                     \
39         $(gmodule_INCLUDES)                             \
40         $(GLIB_DEBUG_FLAGS)                             \
41         -DGIO_COMPILATION                               \
42         -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"  
43
44 lib_LTLIBRARIES = libgio-2.0.la
45
46 gdbus_headers =                         \
47         gdbusauthobserver.h             \
48         gcredentials.h                  \
49         gdbusutils.h                    \
50         gdbuserror.h                    \
51         gdbusaddress.h                  \
52         gdbusconnection.h               \
53         gdbusmessage.h                  \
54         gdbusnameowning.h               \
55         gdbusnamewatching.h             \
56         gdbusproxy.h                    \
57         gdbusintrospection.h            \
58         gdbusmethodinvocation.h         \
59         gdbusserver.h                   \
60         gdbusinterface.h                \
61         gdbusinterfaceskeleton.h        \
62         gdbusobject.h                   \
63         gdbusobjectskeleton.h           \
64         gdbusobjectproxy.h              \
65         gdbusobjectmanager.h            \
66         gdbusobjectmanagerclient.h      \
67         gdbusobjectmanagerserver.h      \
68         gtestdbus.h                     \
69         $(NULL)
70
71 gdbus_sources =                                                         \
72         gdbusutils.h                    gdbusutils.c                    \
73         gdbusaddress.h                  gdbusaddress.c                  \
74         gdbusauthobserver.h             gdbusauthobserver.c             \
75         gdbusauth.h                     gdbusauth.c                     \
76         gdbusauthmechanism.h            gdbusauthmechanism.c            \
77         gdbusauthmechanismanon.h        gdbusauthmechanismanon.c        \
78         gdbusauthmechanismexternal.h    gdbusauthmechanismexternal.c    \
79         gdbusauthmechanismsha1.h        gdbusauthmechanismsha1.c        \
80         gdbuserror.h                    gdbuserror.c                    \
81         gdbusconnection.h               gdbusconnection.c               \
82         gdbusmessage.h                  gdbusmessage.c                  \
83         gdbusnameowning.h               gdbusnameowning.c               \
84         gdbusnamewatching.h             gdbusnamewatching.c             \
85         gdbusproxy.h                    gdbusproxy.c                    \
86         gdbusprivate.h                  gdbusprivate.c                  \
87         gdbusintrospection.h            gdbusintrospection.c            \
88         gdbusmethodinvocation.h         gdbusmethodinvocation.c         \
89         gdbusserver.h                   gdbusserver.c                   \
90         gdbusinterface.h                gdbusinterface.c                \
91         gdbusinterfaceskeleton.h        gdbusinterfaceskeleton.c        \
92         gdbusobject.h                   gdbusobject.c                   \
93         gdbusobjectskeleton.h           gdbusobjectskeleton.c           \
94         gdbusobjectproxy.h              gdbusobjectproxy.c              \
95         gdbusobjectmanager.h            gdbusobjectmanager.c            \
96         gdbusobjectmanagerclient.h      gdbusobjectmanagerclient.c      \
97         gdbusobjectmanagerserver.h      gdbusobjectmanagerserver.c      \
98         gdbus-tests.h                   gdbus-tests.c                   \
99         gtestdbus.h                     gtestdbus.c                     \
100         $(NULL)
101
102 settings_headers = \
103         gsettingsbackend.h              \
104         gsettingsschema.h               \
105         gsettings.h
106
107 settings_sources = \
108         gvdb/gvdb-format.h              \
109         gvdb/gvdb-reader.h              \
110         gvdb/gvdb-reader.c              \
111         gdelayedsettingsbackend.h       \
112         gdelayedsettingsbackend.c       \
113         gkeyfilesettingsbackend.c       \
114         gmemorysettingsbackend.c        \
115         gnullsettingsbackend.c          \
116         gsettingsbackendinternal.h      \
117         gsettingsbackend.c              \
118         gsettingsschema.h               \
119         gsettingsschema-internal.h      \
120         gsettingsschema.c               \
121         gsettings-mapping.h             \
122         gsettings-mapping.c             \
123         gsettings.c
124
125 if OS_WIN32
126 settings_sources += \
127         gregistrysettingsbackend.h      \
128         gregistrysettingsbackend.c
129 endif
130
131 if OS_COCOA
132 settings_sources += \
133         gnextstepsettingsbackend.c
134 endif
135
136 application_headers = \
137         gapplication.h                  \
138         gapplicationcommandline.h       \
139                                         \
140         gactiongroup.h                  \
141         gactionmap.h                    \
142         gsimpleactiongroup.h            \
143         gremoteactiongroup.h            \
144         gactiongroupexporter.h          \
145         gdbusactiongroup.h              \
146         gaction.h                       \
147         gsimpleaction.h                 \
148                                         \
149         gmenumodel.h                    \
150         gmenu.h                         \
151         gmenuexporter.h                 \
152         gdbusmenumodel.h                \
153         $(NULL)
154
155 application_sources = \
156         gapplication.c                          \
157         gapplicationcommandline.c               \
158         gapplicationimpl-dbus.c                 \
159         gapplicationimpl.h                      \
160                                                 \
161         gactiongroup.c                          \
162         gactionmap.c                            \
163         gsimpleactiongroup.c                    \
164         gremoteactiongroup.c                    \
165         gactiongroupexporter.c                  \
166         gdbusactiongroup.c                      \
167         gaction.c                               \
168         gsimpleaction.c                         \
169                                                 \
170         gmenumodel.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 if BUILD_MODULAR_TESTS
310 SUBDIRS += tests 
311 else
312 DIST_SUBDIRS += tests
313 endif
314
315 libgio_2_0_la_SOURCES =         \
316         gappinfo.c              \
317         gasynchelper.c          \
318         gasynchelper.h          \
319         gasyncinitable.c        \
320         gasyncresult.c          \
321         gbufferedinputstream.c  \
322         gbufferedoutputstream.c \
323         gcancellable.c          \
324         gcontenttype.c          \
325         gcontenttypeprivate.h   \
326         gcharsetconverter.c     \
327         gconverter.c            \
328         gconverterinputstream.c \
329         gconverteroutputstream.c        \
330         gcredentials.c          \
331         gdatainputstream.c      \
332         gdataoutputstream.c     \
333         gdrive.c                \
334         gdummyfile.h            \
335         gdummyfile.c            \
336         gdummyproxyresolver.c   \
337         gdummyproxyresolver.h   \
338         gdummytlsbackend.c      \
339         gdummytlsbackend.h      \
340         gemblem.h               \
341         gemblem.c               \
342         gemblemedicon.h         \
343         gemblemedicon.c         \
344         gfile.c                 \
345         gfileattribute.c        \
346         gfileattribute-priv.h   \
347         gfileenumerator.c       \
348         gfileicon.c             \
349         gfileinfo.c             \
350         gfileinfo-priv.h        \
351         gfileinputstream.c      \
352         gfilemonitor.c          \
353         gfilenamecompleter.c    \
354         gfileoutputstream.c     \
355         gfileiostream.c         \
356         gfilterinputstream.c    \
357         gfilteroutputstream.c   \
358         gicon.c                 \
359         ginetaddress.c          \
360         ginetaddressmask.c      \
361         ginetsocketaddress.c    \
362         ginitable.c             \
363         ginputstream.c          \
364         gioenums.h              \
365         gioerror.c              \
366         giomodule.c             \
367         giomodule-priv.h        \
368         gioscheduler.c          \
369         giostream.c             \
370         gloadableicon.c         \
371         gmount.c                \
372         gmemoryinputstream.c    \
373         gmemoryoutputstream.c   \
374         gmountoperation.c       \
375         gnativevolumemonitor.c  \
376         gnativevolumemonitor.h  \
377         gnetworkaddress.c       \
378         gnetworkingprivate.h    \
379         gnetworkmonitor.c       \
380         gnetworkmonitorbase.c   \
381         gnetworkmonitorbase.h   \
382         gnetworkservice.c       \
383         goutputstream.c         \
384         gpermission.c           \
385         gpollableinputstream.c  \
386         gpollableoutputstream.c \
387         gpollableutils.c        \
388         gpollfilemonitor.c      \
389         gpollfilemonitor.h      \
390         gproxyresolver.c        \
391         gresolver.c             \
392         gresource.c             \
393         gresourcefile.c         \
394         gresourcefile.h         \
395         gseekable.c             \
396         gsimpleasyncresult.c    \
397         gsimplepermission.c     \
398         gsocket.c               \
399         gsocketaddress.c        \
400         gsocketaddressenumerator.c \
401         gsocketclient.c         \
402         gsocketconnectable.c    \
403         gsocketconnection.c     \
404         gsocketcontrolmessage.c \
405         gsocketinputstream.c    \
406         gsocketinputstream.h    \
407         gsocketlistener.c       \
408         gsocketoutputstream.c   \
409         gsocketoutputstream.h   \
410         gproxy.c                \
411         gproxyaddress.c         \
412         gproxyaddressenumerator.c \
413         gsocketservice.c        \
414         gsrvtarget.c            \
415         gtcpconnection.c        \
416         gtcpwrapperconnection.c \
417         gthreadedsocketservice.c\
418         gthemedicon.c           \
419         gthreadedresolver.c     \
420         gthreadedresolver.h     \
421         gtlsbackend.c           \
422         gtlscertificate.c       \
423         gtlsclientconnection.c  \
424         gtlsconnection.c        \
425         gtlsdatabase.c          \
426         gtlsfiledatabase.c      \
427         gtlsinteraction.c       \
428         gtlspassword.c          \
429         gtlsserverconnection.c  \
430         gunionvolumemonitor.c   \
431         gunionvolumemonitor.h   \
432         gvfs.c                  \
433         gvolume.c               \
434         gvolumemonitor.c        \
435         gzlibcompressor.c       \
436         gzlibdecompressor.c     \
437         gmountprivate.h         \
438         gioenumtypes.h          \
439         gioenumtypes.c          \
440         $(appinfo_sources)      \
441         $(unix_sources)         \
442         $(win32_sources)        \
443         $(application_sources)  \
444         $(settings_sources)     \
445         $(gdbus_sources)        \
446         $(local_sources)        \
447         $(NULL)
448
449 EXTRA_DIST += strinfo.c
450
451 libgio_2_0_la_LIBADD = \
452         $(top_builddir)/glib/libglib-2.0.la             \
453         $(top_builddir)/gobject/libgobject-2.0.la       \
454         $(top_builddir)/gmodule/libgmodule-2.0.la       \
455         $(platform_libadd)                              \
456         $(ZLIB_LIBS)                                    \
457         $(SELINUX_LIBS)                                 \
458         $(GLIB_LIBS)                                    \
459         $(XATTR_LIBS)                                   \
460         $(NETWORK_LIBS)                                 \
461         $(NULL)
462
463 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
464
465 if PLATFORM_WIN32
466 no_undefined = -no-undefined
467 endif
468
469 if OS_WIN32_AND_DLL_COMPILATION
470 export_symbols = -export-symbols $(builddir)/gio.def
471 gio_def = gio.def
472
473 gio_win32_res = gio-win32-res.o
474 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
475
476 install-def-file:
477         $(INSTALL) $(builddir)/gio.def $(DESTDIR)$(libdir)/gio-2.0.def
478
479 uninstall-def-file:
480         -rm $(DESTDIR)$(libdir)/gio-2.0.def
481 else
482 install-def-file:
483 uninstall-def-file:
484
485 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
486 endif
487
488 install-data-local: install-ms-lib install-def-file
489         $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
490
491 uninstall-local: uninstall-ms-lib uninstall-def-file
492
493 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
494         $(gio_win32_res_ldflag) \
495         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
496         -export-dynamic $(no_undefined) $(export_symbols)
497
498 if OS_COCOA
499 # This is dumb.  The ObjC source file should be properly named .m
500 libgio_2_0_la_CFLAGS = -xobjective-c
501 libgio_2_0_la_LDFLAGS += -framework Foundation
502 endif
503
504 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
505
506 gio-win32-res.o: gio.rc
507         $(WINDRES) gio.rc $@
508
509 gio_headers =                   \
510         gappinfo.h              \
511         gasyncinitable.h        \
512         gasyncresult.h          \
513         gbufferedinputstream.h  \
514         gbufferedoutputstream.h \
515         gcancellable.h          \
516         gcontenttype.h          \
517         gcharsetconverter.h     \
518         gconverter.h            \
519         gconverterinputstream.h \
520         gconverteroutputstream.h        \
521         gdatainputstream.h      \
522         gdataoutputstream.h     \
523         gdrive.h                \
524         gemblem.h               \
525         gemblemedicon.h         \
526         gfile.h                 \
527         gfileattribute.h        \
528         gfileenumerator.h       \
529         gfileicon.h             \
530         gfileinfo.h             \
531         gfileinputstream.h      \
532         gfilemonitor.h          \
533         gfilenamecompleter.h    \
534         gfileoutputstream.h     \
535         gfileiostream.h         \
536         gfilterinputstream.h    \
537         gfilteroutputstream.h   \
538         gicon.h                 \
539         ginetaddress.h          \
540         ginetaddressmask.h      \
541         ginetsocketaddress.h    \
542         ginputstream.h          \
543         ginitable.h             \
544         gio.h                   \
545         giotypes.h              \
546         gioenums.h              \
547         gioerror.h              \
548         giomodule.h             \
549         gioscheduler.h          \
550         giostream.h             \
551         gloadableicon.h         \
552         gmount.h                \
553         gmemoryinputstream.h    \
554         gmemoryoutputstream.h   \
555         gmountoperation.h       \
556         gnativevolumemonitor.h  \
557         gnetworkaddress.h       \
558         gnetworkmonitor.h       \
559         gnetworkservice.h       \
560         goutputstream.h         \
561         gpermission.h           \
562         gpollableinputstream.h  \
563         gpollableoutputstream.h \
564         gpollableutils.h        \
565         gproxyaddress.h         \
566         gproxy.h                \
567         gproxyaddressenumerator.h \
568         gproxyresolver.h        \
569         gresolver.h             \
570         gresource.h             \
571         gseekable.h             \
572         gsimpleasyncresult.h    \
573         gsimplepermission.h     \
574         gsocket.h               \
575         gsocketaddress.h        \
576         gsocketaddressenumerator.h \
577         gsocketclient.h         \
578         gsocketconnectable.h    \
579         gsocketconnection.h     \
580         gsocketcontrolmessage.h \
581         gsocketlistener.h       \
582         gsocketservice.h        \
583         gsrvtarget.h            \
584         gtcpconnection.h        \
585         gtcpwrapperconnection.h \
586         gthreadedsocketservice.h\
587         gthemedicon.h           \
588         gtlsbackend.h           \
589         gtlscertificate.h       \
590         gtlsclientconnection.h  \
591         gtlsconnection.h        \
592         gtlsdatabase.h          \
593         gtlsfiledatabase.h      \
594         gtlsinteraction.h       \
595         gtlspassword.h          \
596         gtlsserverconnection.h  \
597         gvfs.h                  \
598         gvolume.h               \
599         gvolumemonitor.h        \
600         gzlibcompressor.h       \
601         gzlibdecompressor.h     \
602         $(application_headers)  \
603         $(settings_headers)     \
604         $(gdbus_headers)        \
605         $(NULL)
606
607 gioincludedir=$(includedir)/glib-2.0/gio/
608 gioinclude_HEADERS =            \
609         $(gio_headers)          \
610         gioenumtypes.h
611
612 # these sources (also mentioned above) are generated.
613 BUILT_SOURCES =                 \
614         gconstructor_as_data.h  \
615         gioenumtypes.h          \
616         gioenumtypes.c          \
617         $(NULL)
618
619 EXTRA_DIST +=                   \
620         data-to-c.pl            \
621         gio.symbols             \
622         gioenumtypes.h.template \
623         gioenumtypes.c.template \
624         makefile.msc            \
625         abicheck.sh             \
626         gio.rc.in               \
627         gschema.dtd             \
628         gconstructor_as_data.h  \
629         $(NULL)
630
631 BUILT_EXTRA_DIST =              \
632         gio.rc
633
634 # This is read by gobject-introspection/misc/ and gtk-doc
635 gio-public-headers.txt: Makefile
636         echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
637
638 CLEANFILES = gio-public-headers.txt gconstructor_as_data.h
639
640 all-local: gio-public-headers.txt
641
642 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
643         $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
644           cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
645             gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
646
647 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
648         $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
649           cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
650             gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
651
652 gio-2.0.lib: libgio-2.0.la gio.def
653         lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/gio.def -out:$@
654
655 bin_PROGRAMS = gio-querymodules glib-compile-schemas glib-compile-resources gsettings
656
657 glib_compile_resources_LDADD = \
658         $(top_builddir)/glib/libglib-2.0.la \
659         $(top_builddir)/gobject/libgobject-2.0.la       \
660         libgio-2.0.la
661
662 glib_compile_resources_SOURCES = \
663         gvdb/gvdb-format.h              \
664         gvdb/gvdb-builder.h             \
665         gvdb/gvdb-builder.c             \
666         glib-compile-resources.c
667
668 gio_querymodules_SOURCES = gio-querymodules.c
669 gio_querymodules_LDADD   = \
670         $(top_builddir)/glib/libglib-2.0.la             \
671         $(top_builddir)/gobject/libgobject-2.0.la       \
672         $(top_builddir)/gmodule/libgmodule-2.0.la       \
673         libgio-2.0.la                                   \
674         $(NULL)
675
676 gconstructor_as_data.h: $(top_srcdir)/glib/gconstructor.h data-to-c.pl
677         $(AM_V_GEN) $(srcdir)/data-to-c.pl $(top_srcdir)/glib/gconstructor.h gconstructor_code > $@.tmp && mv $@.tmp $@
678
679 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
680 glib_compile_schemas_SOURCES = \
681         gconstructor_as_data.h \
682         gvdb/gvdb-format.h              \
683         gvdb/gvdb-builder.h             \
684         gvdb/gvdb-builder.c             \
685         glib-compile-schemas.c
686
687 gsettings_LDADD = \
688         $(top_builddir)/glib/libglib-2.0.la             \
689         $(top_builddir)/gobject/libgobject-2.0.la       \
690         libgio-2.0.la
691 gsettings_SOURCES = gsettings-tool.c
692
693 schemadir = $(datadir)/glib-2.0/schemas
694 dist_schema_DATA = gschema.dtd
695
696 # ------------------------------------------------------------------------
697 # gdbus(1) tool
698
699 bin_PROGRAMS += gdbus
700 gdbus_SOURCES = gdbus-tool.c
701 gdbus_LDADD = libgio-2.0.la \
702         $(top_builddir)/glib/libglib-2.0.la             \
703         $(top_builddir)/gobject/libgobject-2.0.la
704
705 completiondir = $(sysconfdir)/bash_completion.d
706 completion_DATA = \
707         gdbus-bash-completion.sh                \
708         gsettings-bash-completion.sh            \
709         gresource-bash-completion.sh
710 EXTRA_DIST += $(completion_DATA)
711
712 # ------------------------------------------------------------------------
713 # gresource tool
714
715 bin_PROGRAMS += gresource
716 gresource_SOURCES = gresource-tool.c
717 gresource_CPPFLAGS = $(LIBELF_CFLAGS) $(AM_CPPFLAGS)
718 gresource_LDADD = libgio-2.0.la \
719         $(top_builddir)/glib/libglib-2.0.la             \
720         $(top_builddir)/gobject/libgobject-2.0.la \
721         $(LIBELF_LIBS)
722
723 # ------------------------------------------------------------------------
724
725 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
726         files='$(BUILT_EXTRA_DIST)'; \
727         for f in $$files; do \
728           if test -f $$f; then d=.; else d=$(srcdir); fi; \
729           cp $$d/$$f $(distdir) || exit 1; done
730
731 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
732         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
733                 case $$F in \
734                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
735                 *.c) echo '   <File RelativePath="..\..\..\gio\'$$F'" />' \
736                      ;; \
737                 esac; \
738         done | sort -u >libgio.sourcefiles
739         $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
740         rm libgio.sourcefiles
741
742 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
743         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
744                 case $$F in \
745                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
746                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'" />' \
747                      ;; \
748                 esac; \
749         done | sort -u >libgio.vs10.sourcefiles
750         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
751         rm libgio.vs10.sourcefiles
752
753 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
754         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
755                 case $$F in \
756                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
757                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
758                      ;; \
759                 esac; \
760         done | sort -u >libgio.vs10.sourcefiles.filters
761         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
762         rm libgio.vs10.sourcefiles.filters
763
764 if HAVE_GLIB_RUNTIME_LIBDIR
765 install-data-hook:
766         mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
767         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
768         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
769         rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
770         ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so
771 endif