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