Update German translation
[glib.git] / gio / Makefile.am
blob1ca27fcb78949f448e9e6e22b58c1f35bddf5eec
1 include $(top_srcdir)/glib.mk
3 SUBDIRS = gdbus-2.0/codegen
5 if OS_UNIX
6 SUBDIRS += xdgmime
7 endif
9 if OS_WIN32_AND_DLL_COMPILATION
10 if MS_LIB_AVAILABLE
11 noinst_DATA += gio-2.0.lib
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
18 install-ms-lib:
19         $(install_ms_lib_cmd)
21 uninstall-ms-lib:
22         $(uninstall_ms_lib_cmd)
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)\"  
31 AM_CFLAGS = $(GLIB_WARN_CFLAGS)
33 lib_LTLIBRARIES = libgio-2.0.la
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)
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)
90 # These are not built into the library yet
91 EXTRA_DIST += gdbusdaemon.c gdbusdaemon.h dbus-daemon.xml
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)
103 settings_headers = \
104         gsettingsbackend.h              \
105         gsettingsschema.h               \
106         gsettings.h
108 settings_base_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
126 settings_sources = $(settings_base_sources)
128 if OS_WIN32
129 win32_settings_sources = \
130         gregistrysettingsbackend.h      \
131         gregistrysettingsbackend.c
133 settings_sources += $(win32_settings_sources)
134 endif
136 if OS_COCOA
137 cocoa_settings_sources = \
138         gnextstepsettingsbackend.c
140 settings_sources += $(cocoa_settings_sources)
141 endif
143 application_headers = \
144         gapplication.h                  \
145         gapplicationcommandline.h       \
146                                         \
147         gactiongroup.h                  \
148         gactionmap.h                    \
149         gsimpleactiongroup.h            \
150         gremoteactiongroup.h            \
151         gactiongroupexporter.h          \
152         gdbusactiongroup.h              \
153         gaction.h                       \
154         gpropertyaction.h               \
155         gsimpleaction.h                 \
156                                         \
157         gmenumodel.h                    \
158         gmenu.h                         \
159         gmenuexporter.h                 \
160         gdbusmenumodel.h                \
161         gnotification.h                 \
162         $(NULL)
164 application_sources = \
165         gapplication.c                          \
166         gapplicationcommandline.c               \
167         gapplicationimpl-dbus.c                 \
168         gapplicationimpl.h                      \
169                                                 \
170         gactiongroup.c                          \
171         gactionmap.c                            \
172         gsimpleactiongroup.c                    \
173         gremoteactiongroup.c                    \
174         gactiongroupexporter.c                  \
175         gdbusactiongroup-private.h              \
176         gdbusactiongroup.c                      \
177         gaction.c                               \
178         gpropertyaction.c                       \
179         gsimpleaction.c                         \
180                                                 \
181         gmenumodel.c                            \
182         gmenu.c                                 \
183         gmenuexporter.c                         \
184         gdbusmenumodel.c                        \
185         gnotification-private.h                 \
186         gnotificationbackend.h                  \
187         gnotification.c                         \
188         gnotificationbackend.c                  \
189         $(NULL)
191 local_sources = \
192         ghttpproxy.c                    \
193         ghttpproxy.h                    \
194         glocalfile.c                    \
195         glocalfile.h                    \
196         glocalfileprivate.h             \
197         glocalfileenumerator.c          \
198         glocalfileenumerator.h          \
199         glocalfileinfo.c                \
200         glocalfileinfo.h                \
201         glocalfileinputstream.c         \
202         glocalfileinputstream.h         \
203         glocalfilemonitor.c             \
204         glocalfilemonitor.h             \
205         glocalfileoutputstream.c        \
206         glocalfileoutputstream.h        \
207         glocalfileiostream.c            \
208         glocalfileiostream.h            \
209         glocalvfs.c                     \
210         glocalvfs.h                     \
211         gsocks4proxy.c                  \
212         gsocks4proxy.h                  \
213         gsocks4aproxy.c                 \
214         gsocks4aproxy.h                 \
215         gsocks5proxy.c                  \
216         gsocks5proxy.h                  \
217         thumbnail-verify.h              \
218         thumbnail-verify.c              \
219         $(NULL)
221 platform_libadd =
222 platform_deps =
223 appinfo_sources =
225 if HAVE_INOTIFY
226 SUBDIRS += inotify
227 platform_libadd += inotify/libinotify.la
228 platform_deps += inotify/libinotify.la
229 endif
231 if HAVE_KQUEUE
232 SUBDIRS += kqueue
233 platform_libadd += kqueue/libkqueue.la
234 platform_deps += kqueue/libkqueue.la
235 endif
237 if OS_WIN32
238 SUBDIRS += win32
239 platform_libadd += win32/libgiowin32.la
240 platform_deps += win32/libgiowin32.la
241 endif
243 SUBDIRS += . tests
245 if HAVE_FAM
246 SUBDIRS += fam
247 endif
249 if OS_UNIX
250 unix_appinfo_sources = gdesktopappinfo.c
251 platform_libadd += xdgmime/libxdgmime.la
252 platform_deps += xdgmime/libxdgmime.la
253 unix_sources = \
254         gfiledescriptorbased.c  \
255         gunixconnection.c       \
256         gunixcredentialsmessage.c       \
257         gunixfdlist.c           \
258         gunixfdmessage.c        \
259         gunixmount.c            \
260         gunixmount.h            \
261         gunixmounts.c           \
262         gunixsocketaddress.c    \
263         gunixvolume.c           \
264         gunixvolume.h           \
265         gunixvolumemonitor.c    \
266         gunixvolumemonitor.h    \
267         gunixinputstream.c      \
268         gunixoutputstream.c     \
269         gcontenttype.c          \
270         gcontenttypeprivate.h   \
271         gfdonotificationbackend.c \
272         ggtknotificationbackend.c \
273         gportalnotificationbackend.c \
274         gdocumentportal.c       \
275         gdocumentportal.h       \
276         gportalsupport.c        \
277         gportalsupport.h        \
278         $(portal_sources)       \
279         $(NULL)
281 appinfo_sources += $(unix_appinfo_sources)
283 if OS_COCOA
284 unix_sources += gcocoanotificationbackend.c
285 endif
287 giounixincludedir=$(includedir)/gio-unix-2.0/gio
288 giounixinclude_HEADERS = \
289         gdesktopappinfo.h       \
290         gfiledescriptorbased.h  \
291         gunixconnection.h       \
292         gunixcredentialsmessage.h       \
293         gunixmounts.h           \
294         gunixfdlist.h           \
295         gunixfdmessage.h        \
296         gunixinputstream.h      \
297         gunixoutputstream.h     \
298         gunixsocketaddress.h    \
299         $(NULL)
301 if HAVE_NETLINK
302 unix_sources +=                  \
303         gnetworkmonitornetlink.c \
304         gnetworkmonitornetlink.h \
305         gnetworkmonitornm.c      \
306         gnetworkmonitornm.h      \
307         $(NULL)
308 endif
309 endif
311 gdbus_daemon_sources = \
312         gdbusdaemon.c \
313         gdbusdaemon.h \
314         gdbus-daemon-generated.c \
315         gdbus-daemon-generated.h \
316         $(NULL)
318 win32_actual_sources = \
319         $(gdbus_daemon_sources) \
320         gwin32registrykey.c \
321         gwin32registrykey.h \
322         gcontenttype-win32.c \
323         gwin32mount.c \
324         gwin32mount.h \
325         gwin32volumemonitor.c \
326         gwin32volumemonitor.h \
327         gwin32inputstream.c \
328         gwin32outputstream.c \
329         gwin32outputstream.h \
330         gwin32networking.h \
331         $(NULL)
333 win32_more_sources_for_vcproj = \
334         gwin32appinfo.c \
335         gregistrysettingsbackend.c \
336         win32/gwinhttpfile.c \
337         win32/gwinhttpfileinputstream.c \
338         win32/gwinhttpfileoutputstream.c \
339         win32/gwinhttpvfs.c \
340         win32/gwin32fsmonitorutils.c \
341         win32/gwin32filemonitor.c
343 if OS_WIN32
344 win32_appinfo_sources = gwin32appinfo.c gwin32appinfo.h
345 platform_libadd += -lshlwapi -lws2_32 -ldnsapi -liphlpapi
346 win32_sources = $(win32_actual_sources)
347 appinfo_sources += $(win32_appinfo_sources)
349 giowin32includedir=$(includedir)/gio-win32-2.0/gio
350 giowin32include_HEADERS = \
351         gwin32inputstream.h \
352         gwin32outputstream.h \
353         $(NULL)
355 endif
357 xdp_dbus_built_sources = xdp-dbus.c xdp-dbus.h
358 BUILT_SOURCES += $(xdp_dbus_built_sources)
359 CLEANFILES += $(xdp_dbus_built_sources)
361 portal_interfaces = \
362         org.freedesktop.portal.Documents.xml \
363         org.freedesktop.portal.NetworkMonitor.xml \
364         org.freedesktop.portal.ProxyResolver.xml \
365         $(NULL)
367 EXTRA_DIST += $(portal_interfaces)
369 $(xdp_dbus_built_sources) : $(portal_interfaces)
370         $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir)               \
371                 UNINSTALLED_GLIB_BUILDDIR=$(top_builddir)               \
372                 $(PYTHON) $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in  \
373                 --interface-prefix org.freedesktop.portal.              \
374                 --c-namespace GXdp                                      \
375                 --generate-c-code $(builddir)/xdp-dbus                  \
376                 --annotate "org.freedesktop.portal.Documents.Add()" "org.gtk.GDBus.C.UnixFD" "true" \
377                 --annotate "org.freedesktop.portal.Documents.AddNamed()" "org.gtk.GDBus.C.UnixFD" "true" \
378                 $^
380 portal_sources = \
381         gnetworkmonitorportal.c         \
382         gnetworkmonitorportal.h         \
383         gproxyresolverportal.c          \
384         gproxyresolverportal.h          \
385         $(xdp_dbus_built_sources)       \
386         $(NULL)
388 gio_base_sources =              \
389         gappinfo.c              \
390         gappinfoprivate.h       \
391         gasynchelper.c          \
392         gasynchelper.h          \
393         gasyncinitable.c        \
394         gasyncresult.c          \
395         gbufferedinputstream.c  \
396         gbufferedoutputstream.c \
397         gbytesicon.c            \
398         gcancellable.c          \
399         gcharsetconverter.c     \
400         gcontextspecificgroup.c \
401         gcontextspecificgroup.h \
402         gconverter.c            \
403         gconverterinputstream.c \
404         gconverteroutputstream.c        \
405         gcredentials.c          \
406         gcredentialsprivate.h   \
407         gdatagrambased.c        \
408         gdatainputstream.c      \
409         gdataoutputstream.c     \
410         gdrive.c                \
411         gdummyfile.h            \
412         gdummyfile.c            \
413         gdummyproxyresolver.c   \
414         gdummyproxyresolver.h   \
415         gdummytlsbackend.c      \
416         gdummytlsbackend.h      \
417         gemblem.h               \
418         gemblem.c               \
419         gemblemedicon.h         \
420         gemblemedicon.c         \
421         gfile.c                 \
422         gfileattribute.c        \
423         gfileattribute-priv.h   \
424         gfileenumerator.c       \
425         gfileicon.c             \
426         gfileinfo.c             \
427         gfileinfo-priv.h        \
428         gfileinputstream.c      \
429         gfilemonitor.c          \
430         gfilenamecompleter.c    \
431         gfileoutputstream.c     \
432         gfileiostream.c         \
433         gfilterinputstream.c    \
434         gfilteroutputstream.c   \
435         gicon.c                 \
436         ginetaddress.c          \
437         ginetaddressmask.c      \
438         ginetsocketaddress.c    \
439         ginitable.c             \
440         ginputstream.c          \
441         gio_probes.d            \
442         gio_trace.h             \
443         gioenums.h              \
444         gioerror.c              \
445         giomodule.c             \
446         giomodule-priv.h        \
447         gioscheduler.c          \
448         giostream.c             \
449         gioprivate.h            \
450         giowin32-priv.h         \
451         gloadableicon.c         \
452         gmount.c                \
453         gmemoryinputstream.c    \
454         gmemoryoutputstream.c   \
455         gmountoperation.c       \
456         gnativevolumemonitor.c  \
457         gnativevolumemonitor.h  \
458         gnativesocketaddress.c  \
459         gnativesocketaddress.h  \
460         gnetworkaddress.c       \
461         gnetworking.c           \
462         gnetworkingprivate.h    \
463         gnetworkmonitor.c       \
464         gnetworkmonitorbase.c   \
465         gnetworkmonitorbase.h   \
466         gnetworkservice.c       \
467         goutputstream.c         \
468         gpermission.c           \
469         gpollableinputstream.c  \
470         gpollableoutputstream.c \
471         gpollableutils.c        \
472         gpollfilemonitor.c      \
473         gpollfilemonitor.h      \
474         gproxy.c                \
475         gproxyaddress.c         \
476         gproxyaddressenumerator.c \
477         gproxyresolver.c        \
478         gresolver.c             \
479         gresource.c             \
480         gresourcefile.c         \
481         gresourcefile.h         \
482         gseekable.c             \
483         gsimpleasyncresult.c    \
484         gsimpleiostream.c       \
485         gsimplepermission.c     \
486         gsocket.c               \
487         gsocketaddress.c        \
488         gsocketaddressenumerator.c \
489         gsocketclient.c         \
490         gsocketconnectable.c    \
491         gsocketconnection.c     \
492         gsocketcontrolmessage.c \
493         gsocketinputstream.c    \
494         gsocketinputstream.h    \
495         gsocketlistener.c       \
496         gsocketoutputstream.c   \
497         gsocketoutputstream.h   \
498         gsubprocesslauncher.c   \
499         gsubprocess.c           \
500         gsubprocesslauncher-private.h   \
501         gsocketservice.c        \
502         gsrvtarget.c            \
503         gsimpleproxyresolver.c  \
504         gtask.c                 \
505         gtcpconnection.c        \
506         gtcpwrapperconnection.c \
507         gthreadedsocketservice.c\
508         gthemedicon.c           \
509         gthreadedresolver.c     \
510         gthreadedresolver.h     \
511         gtlsbackend.c           \
512         gtlscertificate.c       \
513         gtlsclientconnection.c  \
514         gtlsconnection.c        \
515         gtlsdatabase.c          \
516         gtlsfiledatabase.c      \
517         gtlsinteraction.c       \
518         gtlspassword.c          \
519         gtlsserverconnection.c  \
520         gdtlsconnection.c       \
521         gdtlsclientconnection.c \
522         gdtlsserverconnection.c \
523         gunionvolumemonitor.c   \
524         gunionvolumemonitor.h   \
525         gvfs.c                  \
526         gvolume.c               \
527         gvolumemonitor.c        \
528         gzlibcompressor.c       \
529         gzlibdecompressor.c     \
530         gmountprivate.h         \
531         gioenumtypes.h          \
532         gioenumtypes.c          \
533         glistmodel.c            \
534         gliststore.c            \
535         $(application_sources)  \
536         $(gdbus_sources)        \
537         $(local_sources)        \
538         $(NULL)
540 libgio_2_0_la_SOURCES =         \
541         $(gio_base_sources)     \
542         $(appinfo_sources)      \
543         $(unix_sources)         \
544         $(win32_sources)        \
545         $(settings_sources)     \
546         $(NULL)
548 EXTRA_DIST += strinfo.c
550 libgio_2_0_la_LIBADD = \
551         $(top_builddir)/gobject/libgobject-2.0.la       \
552         $(top_builddir)/gmodule/libgmodule-2.0.la       \
553         $(top_builddir)/glib/libglib-2.0.la             \
554         $(platform_libadd)                              \
555         $(ZLIB_LIBS)                                    \
556         $(SELINUX_LIBS)                                 \
557         $(GLIB_LIBS)                                    \
558         $(XATTR_LIBS)                                   \
559         $(NETWORK_LIBS)                                 \
560         $(NULL)
562 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
564 if PLATFORM_WIN32
565 no_undefined = -no-undefined
566 endif
568 if OS_WIN32_AND_DLL_COMPILATION
569 gio_win32_res = gio-win32-res.o
570 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
571 endif
573 install-data-local: install-ms-lib
574         $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
576 uninstall-local: uninstall-ms-lib
578 libgio_2_0_la_CFLAGS = $(AM_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
579 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
580         $(gio_win32_res_ldflag) \
581         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
582         -export-dynamic $(no_undefined)
584 if OS_COCOA
585 # This is dumb.  The ObjC source file should be properly named .m
586 libgio_2_0_la_CFLAGS += -xobjective-c
587 libgio_2_0_la_LDFLAGS += -Wl,-framework,Foundation -Wl,-framework,AppKit
588 endif
590 if HAVE_LIBMOUNT
591 libgio_2_0_la_CFLAGS += $(LIBMOUNT_CFLAGS)
592 libgio_2_0_la_LIBADD += $(LIBMOUNT_LIBS)
593 endif
595 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
597 gio-win32-res.o: gio.rc
598         $(WINDRES) gio.rc $@
600 gio_headers =                   \
601         gappinfo.h              \
602         gasyncinitable.h        \
603         gasyncresult.h          \
604         gbufferedinputstream.h  \
605         gbufferedoutputstream.h \
606         gbytesicon.h            \
607         gcancellable.h          \
608         gcontenttype.h          \
609         gcharsetconverter.h     \
610         gconverter.h            \
611         gconverterinputstream.h \
612         gconverteroutputstream.h        \
613         gdatagrambased.h        \
614         gdatainputstream.h      \
615         gdataoutputstream.h     \
616         gdrive.h                \
617         gemblem.h               \
618         gemblemedicon.h         \
619         gfile.h                 \
620         gfileattribute.h        \
621         gfileenumerator.h       \
622         gfileicon.h             \
623         gfileinfo.h             \
624         gfileinputstream.h      \
625         gfilemonitor.h          \
626         gfilenamecompleter.h    \
627         gfileoutputstream.h     \
628         gfileiostream.h         \
629         gfilterinputstream.h    \
630         gfilteroutputstream.h   \
631         gicon.h                 \
632         ginetaddress.h          \
633         ginetaddressmask.h      \
634         ginetsocketaddress.h    \
635         ginputstream.h          \
636         ginitable.h             \
637         gio.h                   \
638         gio-autocleanups.h      \
639         giotypes.h              \
640         gioenums.h              \
641         gioerror.h              \
642         giomodule.h             \
643         gioscheduler.h          \
644         giostream.h             \
645         gloadableicon.h         \
646         gmount.h                \
647         gmemoryinputstream.h    \
648         gmemoryoutputstream.h   \
649         gmountoperation.h       \
650         gnativevolumemonitor.h  \
651         gnetworkaddress.h       \
652         gnetworkmonitor.h       \
653         gnetworkservice.h       \
654         goutputstream.h         \
655         gpermission.h           \
656         gpollableinputstream.h  \
657         gpollableoutputstream.h \
658         gpollableutils.h        \
659         gproxyaddress.h         \
660         gproxy.h                \
661         gproxyaddressenumerator.h \
662         gproxyresolver.h        \
663         gresolver.h             \
664         gresource.h             \
665         gseekable.h             \
666         gsimpleasyncresult.h    \
667         gsimpleiostream.h       \
668         gsimplepermission.h     \
669         gsocket.h               \
670         gsocketaddress.h        \
671         gsocketaddressenumerator.h \
672         gsocketclient.h         \
673         gsocketconnectable.h    \
674         gsocketconnection.h     \
675         gsocketcontrolmessage.h \
676         gsocketlistener.h       \
677         gsocketservice.h        \
678         gsrvtarget.h            \
679         gsimpleproxyresolver.h  \
680         gtask.h                 \
681         gsubprocess.h           \
682         gsubprocesslauncher.h   \
683         gtcpconnection.h        \
684         gtcpwrapperconnection.h \
685         gthreadedsocketservice.h\
686         gthemedicon.h           \
687         gtlsbackend.h           \
688         gtlscertificate.h       \
689         gtlsclientconnection.h  \
690         gtlsconnection.h        \
691         gtlsdatabase.h          \
692         gtlsfiledatabase.h      \
693         gtlsinteraction.h       \
694         gtlspassword.h          \
695         gtlsserverconnection.h  \
696         gdtlsconnection.h       \
697         gdtlsclientconnection.h \
698         gdtlsserverconnection.h \
699         gvfs.h                  \
700         gvolume.h               \
701         gvolumemonitor.h        \
702         gzlibcompressor.h       \
703         gzlibdecompressor.h     \
704         glistmodel.h            \
705         gliststore.h            \
706         $(application_headers)  \
707         $(settings_headers)     \
708         $(gdbus_headers)        \
709         $(NULL)
711 gioincludedir=$(includedir)/glib-2.0/gio/
712 gioinclude_HEADERS =            \
713         $(gio_headers)          \
714         gioenumtypes.h
716 nodist_gioinclude_HEADERS =     \
717         gnetworking.h           \
718         $(NULL)
720 # these sources (also mentioned above) are generated.
721 BUILT_SOURCES +=                \
722         gconstructor_as_data.h  \
723         gioenumtypes.h          \
724         gioenumtypes.c          \
725         gdbus-daemon-generated.c \
726         gdbus-daemon-generated.h \
727         gnetworking.h           \
728         $(NULL)
730 EXTRA_DIST +=                   \
731         data-to-c.pl            \
732         gioenumtypes.h.template \
733         gioenumtypes.c.template \
734         makefile.msc            \
735         gio.rc.in               \
736         gschema.dtd             \
737         gconstructor_as_data.h  \
738         gnetworking.h.win32     \
739         $(NULL)
741 BUILT_EXTRA_DIST +=             \
742         gio.rc
744 # This is read by gobject-introspection/misc/ and gtk-doc
745 gio-public-headers.txt: Makefile
746         $(AM_V_GEN) echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
748 CLEANFILES += gdbus-daemon-generated.c gdbus-daemon-generated.h gio-public-headers.txt gconstructor_as_data.h
751 DISTCLEANFILES +=               \
752         gioenumtypes.h          \
753         gioenumtypes.c
755 all-local: gio-public-headers.txt
757 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
758         $(AM_V_GEN) $(top_builddir)/gobject/glib-mkenums --template $(filter %.template,$^) $(filter-out %.template,$^) > \
759             gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
761 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
762         $(AM_V_GEN) $(top_builddir)/gobject/glib-mkenums --template $(filter %.template,$^) $(filter-out %.template,$^) > \
763             gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
765 gio.def: libgio-2.0.la
766         $(AM_V_GEN) dumpbin.exe -exports .libs/libgio-2.0-0.dll | awk 'BEGIN { print "EXPORTS" } / +[[:digit:]]+ +[[:xdigit:]]+ +[[:xdigit:]]+/{ print $$4 }' > gio.def.tmp && mv gio.def.tmp gio.def
768 gio-2.0.lib: libgio-2.0.la gio.def
769         $(AM_V_GEN) lib.exe -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/gio.def -out:$@
771 bin_PROGRAMS = gio-querymodules glib-compile-schemas glib-compile-resources gsettings
773 glib_compile_resources_LDADD = libgio-2.0.la            \
774         $(top_builddir)/gobject/libgobject-2.0.la       \
775         $(top_builddir)/gmodule/libgmodule-2.0.la       \
776         $(top_builddir)/glib/libglib-2.0.la             \
777         $(NULL)
779 glib_compile_resources_SOURCES = \
780         gvdb/gvdb-format.h              \
781         gvdb/gvdb-builder.h             \
782         gvdb/gvdb-builder.c             \
783         glib-compile-resources.c
785 gio_querymodules_SOURCES = gio-querymodules.c
786 gio_querymodules_LDADD   = libgio-2.0.la                \
787         $(top_builddir)/gobject/libgobject-2.0.la       \
788         $(top_builddir)/gmodule/libgmodule-2.0.la       \
789         $(top_builddir)/glib/libglib-2.0.la             \
790         $(NULL)
792 gconstructor_as_data.h: $(top_srcdir)/glib/gconstructor.h data-to-c.pl
793         $(AM_V_GEN) $(srcdir)/data-to-c.pl $(top_srcdir)/glib/gconstructor.h gconstructor_code > $@.tmp && mv $@.tmp $@
795 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
796 glib_compile_schemas_SOURCES = \
797         gconstructor_as_data.h \
798         gvdb/gvdb-format.h              \
799         gvdb/gvdb-builder.h             \
800         gvdb/gvdb-builder.c             \
801         glib-compile-schemas.c
803 gsettings_LDADD = libgio-2.0.la                         \
804         $(top_builddir)/gobject/libgobject-2.0.la       \
805         $(top_builddir)/gmodule/libgmodule-2.0.la       \
806         $(top_builddir)/glib/libglib-2.0.la             \
807         $(NULL)
808 gsettings_SOURCES = gsettings-tool.c
810 schemadir = $(datadir)/glib-2.0/schemas
811 dist_schema_DATA = gschema.dtd
813 itsdir = $(datadir)/gettext/its
814 dist_its_DATA = gschema.loc gschema.its
816 # ------------------------------------------------------------------------
817 # SystemTap and dtrace
819 if ENABLE_DTRACE
820 gio_probes.h: gio_probes.d
821         $(AM_V_GEN) $(DTRACE) -C -h -s $< -o $@.tmp
822         @$(SED) \
823                 -e "s,define STAP_HAS_SEMAPHORES 1,undef STAP_HAS_SEMAPHORES," \
824                 -e "s,define _SDT_HAS_SEMAPHORES 1,undef _SDT_HAS_SEMAPHORES," \
825                 < $@.tmp > $@ && rm -f $@.tmp
827 gio_probes.lo: gio_probes.d
828         $(AM_V_GEN) $(LIBTOOL) --mode=compile $(AM_V_lt) --tag=CC $(DTRACE) -G -s $< -o $@
830 BUILT_SOURCES += gio_probes.h gio_probes.lo
831 CLEANFILES += gio_probes.h gio_probes.h.tmp
832 libgio_2_0_la_LIBADD += gio_probes.lo
833 endif
835 tapsetdir   = @ABS_TAPSET_DIR@
836 EXTRA_DIST += gio.stp.in
838 if ENABLE_SYSTEMTAP
839 tapset_DATA = libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@.stp
840 CLEANFILES += $(tapset_DATA)
842 $(tapset_DATA): gio.stp.in Makefile
843         $(AM_V_GEN)$(SED) \
844                 -e 's|[@]ABS_GLIB_RUNTIME_LIBDIR[@]|$(ABS_GLIB_RUNTIME_LIBDIR)|g' \
845                 -e 's|[@]LT_CURRENT[@]|$(LT_CURRENT)|g' \
846                 -e 's|[@]LT_REVISION[@]|$(LT_REVISION)|g' \
847                 $< > $@
848 endif
850 # ------------------------------------------------------------------------
851 # gdbus(1) tool
853 bin_PROGRAMS += gdbus
854 gdbus_SOURCES = gdbus-tool.c
855 gdbus_LDADD = libgio-2.0.la                             \
856         $(top_builddir)/gobject/libgobject-2.0.la       \
857         $(top_builddir)/gmodule/libgmodule-2.0.la       \
858         $(top_builddir)/glib/libglib-2.0.la             \
859         $(NULL)
861 if OS_UNIX
862 # ------------------------------------------------------------------------
863 # gapplication(1) tool
864 bin_PROGRAMS += gapplication
865 gapplication_SOURCES = gapplication-tool.c
866 gapplication_LDADD = libgio-2.0.la                      \
867         $(top_builddir)/gobject/libgobject-2.0.la       \
868         $(top_builddir)/gmodule/libgmodule-2.0.la       \
869         $(top_builddir)/glib/libglib-2.0.la             \
870         $(NULL)
871 endif
873 completiondir = $(datadir)/bash-completion/completions
874 completion_DATA = \
875         completion/gapplication                         \
876         completion/gdbus                                \
877         completion/gsettings                            \
878         completion/gresource
879 EXTRA_DIST += $(completion_DATA)
881 # ------------------------------------------------------------------------
882 # gresource tool
884 bin_PROGRAMS += gresource
885 gresource_SOURCES = gresource-tool.c
886 gresource_CPPFLAGS = $(LIBELF_CFLAGS) $(AM_CPPFLAGS)
887 gresource_LDADD = libgio-2.0.la                         \
888         $(top_builddir)/gobject/libgobject-2.0.la       \
889         $(top_builddir)/gmodule/libgmodule-2.0.la       \
890         $(top_builddir)/glib/libglib-2.0.la             \
891         $(LIBELF_LIBS)
893 # ------------------------------------------------------------------------
894 # gio tool
896 bin_PROGRAMS += gio
897 gio_SOURCES = \
898         gio-tool.c                                      \
899         gio-tool.h                                      \
900         gio-tool-cat.c                                  \
901         gio-tool-copy.c                                 \
902         gio-tool-info.c                                 \
903         gio-tool-list.c                                 \
904         gio-tool-mime.c                                 \
905         gio-tool-mkdir.c                                \
906         gio-tool-monitor.c                              \
907         gio-tool-mount.c                                \
908         gio-tool-move.c                                 \
909         gio-tool-open.c                                 \
910         gio-tool-rename.c                               \
911         gio-tool-remove.c                               \
912         gio-tool-save.c                                 \
913         gio-tool-set.c                                  \
914         gio-tool-trash.c                                \
915         gio-tool-tree.c                                 \
916         $(NULL)
917 gio_LDADD = libgio-2.0.la                               \
918         $(top_builddir)/gobject/libgobject-2.0.la       \
919         $(top_builddir)/glib/libglib-2.0.la             \
920         $(NULL)
922 # ------------------------------------------------------------------------
923 # ------ MSVC Project File Generation ------
924 # ------------------------------------------------------------------------
926 MSVCPROJS = gio glib-compile-resources glib-compile-schemas gio-tool
928 gio_FILES =     \
929         $(gio_base_sources)                     \
930         $(win32_actual_sources)                 \
931         $(win32_more_sources_for_vcproj)        \
932         $(settings_base_sources)                \
933         $(win32_settings_sources)
935 gio_EXCLUDES = dummy
937 gio_HEADERS_DIR = $(includedir)/glib-2.0/gio
938 gio_HEADERS_INST = $(gioinclude_HEADERS) $(nodist_gioinclude_HEADERS)
939 gio_HEADERS_EXCLUDES = dummy
941 glib_compile_resources_FILES = $(glib_compile_resources_SOURCES)
942 glib_compile_resources_EXCLUDES = dummy
944 glib_compile_schemas_FILES = $(glib_compile_schemas_SOURCES)
945 glib_compile_schemas_EXCLUDES = dummy
947 gio_tool_FILES = $(gio_SOURCES)
948 gio_tool_EXCLUDES = dummy
950 include $(top_srcdir)/win32/Makefile.msvcproj
952 dist-hook: \
953         $(BUILT_EXTRA_DIST)                                             \
954         $(top_builddir)/win32/vs9/gio.vcproj                    \
955         $(top_builddir)/win32/vs9/gio.headers                   \
956         $(top_builddir)/win32/vs9/glib-compile-schemas.vcproj   \
957         $(top_builddir)/win32/vs9/glib-compile-resources.vcproj \
958         $(top_builddir)/win32/vs9/gio-tool.vcproj
959         files='$(BUILT_EXTRA_DIST)'; \
960         for f in $$files; do \
961           if test -f $$f; then d=.; else d=$(srcdir); fi; \
962           cp $$d/$$f $(distdir) || exit 1; done
964 if HAVE_GLIB_RUNTIME_LIBDIR
965 ABS_GLIB_RUNTIME_LIBDIR = $(realpath $(libdir)/$(GLIB_RUNTIME_LIBDIR))
966 else
967 ABS_GLIB_RUNTIME_LIBDIR = $(libdir)
968 endif
970 if HAVE_GLIB_RUNTIME_LIBDIR
971 install-data-hook:
972         mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
973         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
974         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
975         rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
976         ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so
977 endif