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