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