Update Friulian translation
[glib.git] / gio / Makefile.am
blob67db1b740ea0bc8d79f04469f142fd3ae73e1f20
1 include $(top_srcdir)/glib.mk
3 SUBDIRS = gdbus-2.0/codegen
5 if OS_UNIX
6 if !OS_COCOA
7 SUBDIRS += xdgmime
8 endif
9 endif
11 if OS_WIN32_AND_DLL_COMPILATION
12 if MS_LIB_AVAILABLE
13 noinst_DATA += gio-2.0.lib
15 install_ms_lib_cmd = $(INSTALL) gio-2.0.lib $(DESTDIR)$(libdir)
16 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gio-2.0.lib
17 endif
18 endif
20 install-ms-lib:
21         $(install_ms_lib_cmd)
23 uninstall-ms-lib:
24         $(uninstall_ms_lib_cmd)
26 AM_CPPFLAGS = \
27         -DG_LOG_DOMAIN=\"GLib-GIO\"                     \
28         $(gmodule_INCLUDES)                             \
29         $(GLIB_DEBUG_FLAGS)                             \
30         -DGIO_COMPILATION                               \
31         -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"  
33 AM_CFLAGS = $(GLIB_WARN_CFLAGS)
35 lib_LTLIBRARIES = libgio-2.0.la
37 gdbus_headers =                         \
38         gdbusauthobserver.h             \
39         gcredentials.h                  \
40         gdbusutils.h                    \
41         gdbuserror.h                    \
42         gdbusaddress.h                  \
43         gdbusconnection.h               \
44         gdbusmessage.h                  \
45         gdbusnameowning.h               \
46         gdbusnamewatching.h             \
47         gdbusproxy.h                    \
48         gdbusintrospection.h            \
49         gdbusmethodinvocation.h         \
50         gdbusserver.h                   \
51         gdbusinterface.h                \
52         gdbusinterfaceskeleton.h        \
53         gdbusobject.h                   \
54         gdbusobjectskeleton.h           \
55         gdbusobjectproxy.h              \
56         gdbusobjectmanager.h            \
57         gdbusobjectmanagerclient.h      \
58         gdbusobjectmanagerserver.h      \
59         gtestdbus.h                     \
60         $(NULL)
62 gdbus_sources =                                                         \
63         gdbusutils.h                    gdbusutils.c                    \
64         gdbusaddress.h                  gdbusaddress.c                  \
65         gdbusauthobserver.h             gdbusauthobserver.c             \
66         gdbusauth.h                     gdbusauth.c                     \
67         gdbusauthmechanism.h            gdbusauthmechanism.c            \
68         gdbusauthmechanismanon.h        gdbusauthmechanismanon.c        \
69         gdbusauthmechanismexternal.h    gdbusauthmechanismexternal.c    \
70         gdbusauthmechanismsha1.h        gdbusauthmechanismsha1.c        \
71         gdbuserror.h                    gdbuserror.c                    \
72         gdbusconnection.h               gdbusconnection.c               \
73         gdbusmessage.h                  gdbusmessage.c                  \
74         gdbusnameowning.h               gdbusnameowning.c               \
75         gdbusnamewatching.h             gdbusnamewatching.c             \
76         gdbusproxy.h                    gdbusproxy.c                    \
77         gdbusprivate.h                  gdbusprivate.c                  \
78         gdbusintrospection.h            gdbusintrospection.c            \
79         gdbusmethodinvocation.h         gdbusmethodinvocation.c         \
80         gdbusserver.h                   gdbusserver.c                   \
81         gdbusinterface.h                gdbusinterface.c                \
82         gdbusinterfaceskeleton.h        gdbusinterfaceskeleton.c        \
83         gdbusobject.h                   gdbusobject.c                   \
84         gdbusobjectskeleton.h           gdbusobjectskeleton.c           \
85         gdbusobjectproxy.h              gdbusobjectproxy.c              \
86         gdbusobjectmanager.h            gdbusobjectmanager.c            \
87         gdbusobjectmanagerclient.h      gdbusobjectmanagerclient.c      \
88         gdbusobjectmanagerserver.h      gdbusobjectmanagerserver.c      \
89         gtestdbus.h                     gtestdbus.c                     \
90         $(NULL)
92 # These are not built into the library yet
93 EXTRA_DIST += gdbusdaemon.c gdbusdaemon.h dbus-daemon.xml
95 gdbus-daemon-generated.h gdbus-daemon-generated.c: $(srcdir)/dbus-daemon.xml $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in
96         $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
97                 UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
98                 $(PYTHON) $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in \
99                 --interface-prefix org. \
100                 --generate-c-code gdbus-daemon-generated \
101                 --c-namespace _G \
102                 $(srcdir)/dbus-daemon.xml \
103                 $(NULL)
105 settings_headers = \
106         gsettingsbackend.h              \
107         gsettingsschema.h               \
108         gsettings.h
110 settings_base_sources = \
111         gvdb/gvdb-format.h              \
112         gvdb/gvdb-reader.h              \
113         gvdb/gvdb-reader.c              \
114         gdelayedsettingsbackend.h       \
115         gdelayedsettingsbackend.c       \
116         gkeyfilesettingsbackend.c       \
117         gmemorysettingsbackend.c        \
118         gnullsettingsbackend.c          \
119         gsettingsbackendinternal.h      \
120         gsettingsbackend.c              \
121         gsettingsschema.h               \
122         gsettingsschema-internal.h      \
123         gsettingsschema.c               \
124         gsettings-mapping.h             \
125         gsettings-mapping.c             \
126         gsettings.c
128 settings_sources = $(settings_base_sources)
130 if OS_WIN32
131 win32_settings_sources = \
132         gregistrysettingsbackend.h      \
133         gregistrysettingsbackend.c
135 settings_sources += $(win32_settings_sources)
136 endif
138 if OS_COCOA
139 cocoa_settings_sources = \
140         gnextstepsettingsbackend.c
142 settings_sources += $(cocoa_settings_sources)
143 endif
145 application_headers = \
146         gapplication.h                  \
147         gapplicationcommandline.h       \
148                                         \
149         gactiongroup.h                  \
150         gactionmap.h                    \
151         gsimpleactiongroup.h            \
152         gremoteactiongroup.h            \
153         gactiongroupexporter.h          \
154         gdbusactiongroup.h              \
155         gaction.h                       \
156         gpropertyaction.h               \
157         gsimpleaction.h                 \
158                                         \
159         gmenumodel.h                    \
160         gmenu.h                         \
161         gmenuexporter.h                 \
162         gdbusmenumodel.h                \
163         gnotification.h                 \
164         $(NULL)
166 application_sources = \
167         gapplication.c                          \
168         gapplicationcommandline.c               \
169         gapplicationimpl-dbus.c                 \
170         gapplicationimpl.h                      \
171                                                 \
172         gactiongroup.c                          \
173         gactionmap.c                            \
174         gsimpleactiongroup.c                    \
175         gremoteactiongroup.c                    \
176         gactiongroupexporter.c                  \
177         gdbusactiongroup-private.h              \
178         gdbusactiongroup.c                      \
179         gaction.c                               \
180         gpropertyaction.c                       \
181         gsimpleaction.c                         \
182                                                 \
183         gmenumodel.c                            \
184         gmenu.c                                 \
185         gmenuexporter.c                         \
186         gdbusmenumodel.c                        \
187         gnotification-private.h                 \
188         gnotificationbackend.h                  \
189         gnotification.c                         \
190         gnotificationbackend.c                  \
191         $(NULL)
193 local_sources = \
194         ghttpproxy.c                    \
195         ghttpproxy.h                    \
196         glocalfile.c                    \
197         glocalfile.h                    \
198         glocalfileprivate.h             \
199         glocalfileenumerator.c          \
200         glocalfileenumerator.h          \
201         glocalfileinfo.c                \
202         glocalfileinfo.h                \
203         glocalfileinputstream.c         \
204         glocalfileinputstream.h         \
205         glocalfilemonitor.c             \
206         glocalfilemonitor.h             \
207         glocalfileoutputstream.c        \
208         glocalfileoutputstream.h        \
209         glocalfileiostream.c            \
210         glocalfileiostream.h            \
211         glocalvfs.c                     \
212         glocalvfs.h                     \
213         gsocks4proxy.c                  \
214         gsocks4proxy.h                  \
215         gsocks4aproxy.c                 \
216         gsocks4aproxy.h                 \
217         gsocks5proxy.c                  \
218         gsocks5proxy.h                  \
219         thumbnail-verify.h              \
220         thumbnail-verify.c              \
221         $(NULL)
223 platform_libadd =
224 platform_deps =
225 appinfo_sources =
226 appinfo_headers =
227 contenttype_sources =
229 if HAVE_INOTIFY
230 SUBDIRS += inotify
231 platform_libadd += inotify/libinotify.la
232 platform_deps += inotify/libinotify.la
233 endif
235 if HAVE_KQUEUE
236 SUBDIRS += kqueue
237 platform_libadd += kqueue/libkqueue.la
238 platform_deps += kqueue/libkqueue.la
239 endif
241 if OS_WIN32
242 SUBDIRS += win32
243 platform_libadd += win32/libgiowin32.la
244 platform_deps += win32/libgiowin32.la
245 endif
247 SUBDIRS += . tests
249 if HAVE_FAM
250 SUBDIRS += fam
251 endif
253 if OS_UNIX
254 if !OS_COCOA
255 platform_libadd += xdgmime/libxdgmime.la
256 platform_deps += xdgmime/libxdgmime.la
258 appinfo_headers += gdesktopappinfo.h
259 endif
262 unix_sources = \
263         gfiledescriptorbased.c  \
264         gunixconnection.c       \
265         gunixcredentialsmessage.c       \
266         gunixfdlist.c           \
267         gunixfdmessage.c        \
268         gunixmount.c            \
269         gunixmount.h            \
270         gunixmounts.c           \
271         gunixsocketaddress.c    \
272         gunixvolume.c           \
273         gunixvolume.h           \
274         gunixvolumemonitor.c    \
275         gunixvolumemonitor.h    \
276         gunixinputstream.c      \
277         gunixoutputstream.c     \
278         gcontenttypeprivate.h   \
279         gfdonotificationbackend.c \
280         ggtknotificationbackend.c \
281         gportalnotificationbackend.c \
282         gdocumentportal.c       \
283         gdocumentportal.h       \
284         gportalsupport.c        \
285         gportalsupport.h        \
286         $(portal_sources)       \
287         $(NULL)
289 if OS_COCOA
290 if MAC_OS_X_9
291 unix_sources += gcocoanotificationbackend.c
292 endif
293 endif
295 giounixincludedir=$(includedir)/gio-unix-2.0/gio
296 giounixinclude_HEADERS = \
297         gfiledescriptorbased.h  \
298         gunixconnection.h       \
299         gunixcredentialsmessage.h       \
300         gunixmounts.h           \
301         gunixfdlist.h           \
302         gunixfdmessage.h        \
303         gunixinputstream.h      \
304         gunixoutputstream.h     \
305         gunixsocketaddress.h    \
306         $(appinfo_headers) \
307         $(NULL)
309 if HAVE_NETLINK
310 unix_sources +=                  \
311         gnetworkmonitornetlink.c \
312         gnetworkmonitornetlink.h \
313         gnetworkmonitornm.c      \
314         gnetworkmonitornm.h      \
315         $(NULL)
316 endif
317 endif
319 gdbus_daemon_sources = \
320         gdbusdaemon.c \
321         gdbusdaemon.h \
322         gdbus-daemon-generated.c \
323         gdbus-daemon-generated.h \
324         $(NULL)
326 win32_actual_sources = \
327         $(gdbus_daemon_sources) \
328         gwin32registrykey.c \
329         gwin32registrykey.h \
330         gwin32mount.c \
331         gwin32mount.h \
332         gwin32volumemonitor.c \
333         gwin32volumemonitor.h \
334         gwin32inputstream.c \
335         gwin32outputstream.c \
336         gwin32outputstream.h \
337         gwin32networking.h \
338         $(NULL)
340 win32_more_sources_for_vcproj = \
341         gwin32appinfo.c \
342         gcontenttype-win32.c \
343         gregistrysettingsbackend.c \
344         win32/gwinhttpfile.c \
345         win32/gwinhttpfileinputstream.c \
346         win32/gwinhttpfileoutputstream.c \
347         win32/gwinhttpvfs.c \
348         win32/gwin32fsmonitorutils.c \
349         win32/gwin32filemonitor.c
351 if OS_WIN32
352 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
353 contenttype_sources += gcontenttype-win32.c
354 platform_libadd += -lshlwapi -lws2_32 -ldnsapi -liphlpapi
355 win32_sources = $(win32_actual_sources)
357 giowin32includedir=$(includedir)/gio-win32-2.0/gio
358 giowin32include_HEADERS = \
359         gwin32inputstream.h \
360         gwin32outputstream.h \
361         $(NULL)
363 endif
365 xdp_dbus_built_sources = xdp-dbus.c xdp-dbus.h
366 BUILT_SOURCES += $(xdp_dbus_built_sources)
367 CLEANFILES += $(xdp_dbus_built_sources)
369 portal_interfaces = \
370         org.freedesktop.portal.Documents.xml \
371         org.freedesktop.portal.NetworkMonitor.xml \
372         org.freedesktop.portal.ProxyResolver.xml \
373         $(NULL)
375 EXTRA_DIST += $(portal_interfaces)
377 $(xdp_dbus_built_sources) : $(portal_interfaces)
378         $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir)               \
379                 UNINSTALLED_GLIB_BUILDDIR=$(top_builddir)               \
380                 $(PYTHON) $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in  \
381                 --interface-prefix org.freedesktop.portal.              \
382                 --c-namespace GXdp                                      \
383                 --generate-c-code $(builddir)/xdp-dbus                  \
384                 --annotate "org.freedesktop.portal.Documents.Add()" "org.gtk.GDBus.C.UnixFD" "true" \
385                 --annotate "org.freedesktop.portal.Documents.AddNamed()" "org.gtk.GDBus.C.UnixFD" "true" \
386                 $^
388 portal_sources = \
389         gnetworkmonitorportal.c         \
390         gnetworkmonitorportal.h         \
391         gproxyresolverportal.c          \
392         gproxyresolverportal.h          \
393         $(xdp_dbus_built_sources)       \
394         $(NULL)
396 if OS_COCOA
397 contenttype_sources += gosxcontenttype.c
398 appinfo_sources += gosxappinfo.c gosxappinfo.h
399 endif
401 if OS_UNIX
402 if !OS_COCOA
403 contenttype_sources += gcontenttype.c
404 appinfo_sources += gdesktopappinfo.c
405 endif
406 endif
408 gio_base_sources =              \
409         gappinfo.c              \
410         gappinfoprivate.h       \
411         gasynchelper.c          \
412         gasynchelper.h          \
413         gasyncinitable.c        \
414         gasyncresult.c          \
415         gbufferedinputstream.c  \
416         gbufferedoutputstream.c \
417         gbytesicon.c            \
418         gcancellable.c          \
419         gcharsetconverter.c     \
420         gcontextspecificgroup.c \
421         gcontextspecificgroup.h \
422         gconverter.c            \
423         gconverterinputstream.c \
424         gconverteroutputstream.c        \
425         gcredentials.c          \
426         gcredentialsprivate.h   \
427         gdatagrambased.c        \
428         gdatainputstream.c      \
429         gdataoutputstream.c     \
430         gdrive.c                \
431         gdummyfile.h            \
432         gdummyfile.c            \
433         gdummyproxyresolver.c   \
434         gdummyproxyresolver.h   \
435         gdummytlsbackend.c      \
436         gdummytlsbackend.h      \
437         gemblem.h               \
438         gemblem.c               \
439         gemblemedicon.h         \
440         gemblemedicon.c         \
441         gfile.c                 \
442         gfileattribute.c        \
443         gfileattribute-priv.h   \
444         gfileenumerator.c       \
445         gfileicon.c             \
446         gfileinfo.c             \
447         gfileinfo-priv.h        \
448         gfileinputstream.c      \
449         gfilemonitor.c          \
450         gfilenamecompleter.c    \
451         gfileoutputstream.c     \
452         gfileiostream.c         \
453         gfilterinputstream.c    \
454         gfilteroutputstream.c   \
455         gicon.c                 \
456         ginetaddress.c          \
457         ginetaddressmask.c      \
458         ginetsocketaddress.c    \
459         ginitable.c             \
460         ginputstream.c          \
461         gio_probes.d            \
462         gio_trace.h             \
463         gioenums.h              \
464         gioerror.c              \
465         giomodule.c             \
466         giomodule-priv.h        \
467         gioscheduler.c          \
468         giostream.c             \
469         gioprivate.h            \
470         giowin32-priv.h         \
471         gloadableicon.c         \
472         gmount.c                \
473         gmemoryinputstream.c    \
474         gmemoryoutputstream.c   \
475         gmountoperation.c       \
476         gnativevolumemonitor.c  \
477         gnativevolumemonitor.h  \
478         gnativesocketaddress.c  \
479         gnativesocketaddress.h  \
480         gnetworkaddress.c       \
481         gnetworking.c           \
482         gnetworkingprivate.h    \
483         gnetworkmonitor.c       \
484         gnetworkmonitorbase.c   \
485         gnetworkmonitorbase.h   \
486         gnetworkservice.c       \
487         goutputstream.c         \
488         gpermission.c           \
489         gpollableinputstream.c  \
490         gpollableoutputstream.c \
491         gpollableutils.c        \
492         gpollfilemonitor.c      \
493         gpollfilemonitor.h      \
494         gproxy.c                \
495         gproxyaddress.c         \
496         gproxyaddressenumerator.c \
497         gproxyresolver.c        \
498         gresolver.c             \
499         gresource.c             \
500         gresourcefile.c         \
501         gresourcefile.h         \
502         gseekable.c             \
503         gsimpleasyncresult.c    \
504         gsimpleiostream.c       \
505         gsimplepermission.c     \
506         gsocket.c               \
507         gsocketaddress.c        \
508         gsocketaddressenumerator.c \
509         gsocketclient.c         \
510         gsocketconnectable.c    \
511         gsocketconnection.c     \
512         gsocketcontrolmessage.c \
513         gsocketinputstream.c    \
514         gsocketinputstream.h    \
515         gsocketlistener.c       \
516         gsocketoutputstream.c   \
517         gsocketoutputstream.h   \
518         gsubprocesslauncher.c   \
519         gsubprocess.c           \
520         gsubprocesslauncher-private.h   \
521         gsocketservice.c        \
522         gsrvtarget.c            \
523         gsimpleproxyresolver.c  \
524         gtask.c                 \
525         gtcpconnection.c        \
526         gtcpwrapperconnection.c \
527         gthreadedsocketservice.c\
528         gthemedicon.c           \
529         gthreadedresolver.c     \
530         gthreadedresolver.h     \
531         gtlsbackend.c           \
532         gtlscertificate.c       \
533         gtlsclientconnection.c  \
534         gtlsconnection.c        \
535         gtlsdatabase.c          \
536         gtlsfiledatabase.c      \
537         gtlsinteraction.c       \
538         gtlspassword.c          \
539         gtlsserverconnection.c  \
540         gdtlsconnection.c       \
541         gdtlsclientconnection.c \
542         gdtlsserverconnection.c \
543         gunionvolumemonitor.c   \
544         gunionvolumemonitor.h   \
545         gvfs.c                  \
546         gvolume.c               \
547         gvolumemonitor.c        \
548         gzlibcompressor.c       \
549         gzlibdecompressor.c     \
550         gmountprivate.h         \
551         gioenumtypes.h          \
552         gioenumtypes.c          \
553         glistmodel.c            \
554         gliststore.c            \
555         $(application_sources)  \
556         $(gdbus_sources)        \
557         $(local_sources)        \
558         $(NULL)
560 libgio_2_0_la_SOURCES =         \
561         $(gio_base_sources)     \
562         $(appinfo_sources)      \
563         $(contenttype_sources) \
564         $(unix_sources)         \
565         $(win32_sources)        \
566         $(settings_sources)     \
567         $(NULL)
569 EXTRA_DIST += strinfo.c
571 libgio_2_0_la_LIBADD = \
572         $(top_builddir)/gobject/libgobject-2.0.la       \
573         $(top_builddir)/gmodule/libgmodule-2.0.la       \
574         $(top_builddir)/glib/libglib-2.0.la             \
575         $(platform_libadd)                              \
576         $(ZLIB_LIBS)                                    \
577         $(SELINUX_LIBS)                                 \
578         $(GLIB_LIBS)                                    \
579         $(XATTR_LIBS)                                   \
580         $(NETWORK_LIBS)                                 \
581         $(NULL)
583 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
585 if PLATFORM_WIN32
586 no_undefined = -no-undefined
587 endif
589 if OS_WIN32_AND_DLL_COMPILATION
590 gio_win32_res = gio-win32-res.o
591 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
592 endif
594 install-data-local: install-ms-lib
595         $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
597 uninstall-local: uninstall-ms-lib
599 libgio_2_0_la_CFLAGS = $(AM_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
600 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
601         $(gio_win32_res_ldflag) \
602         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
603         -export-dynamic $(no_undefined)
605 if OS_COCOA
606 # This is dumb.  The ObjC source file should be properly named .m
607 libgio_2_0_la_CFLAGS += -xobjective-c
608 libgio_2_0_la_LDFLAGS += -Wl,-framework,Foundation -Wl,-framework,AppKit
609 endif
611 if HAVE_LIBMOUNT
612 libgio_2_0_la_CFLAGS += $(LIBMOUNT_CFLAGS)
613 libgio_2_0_la_LIBADD += $(LIBMOUNT_LIBS)
614 endif
616 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
618 gio-win32-res.o: gio.rc
619         $(WINDRES) gio.rc $@
621 gio_headers =                   \
622         gappinfo.h              \
623         gasyncinitable.h        \
624         gasyncresult.h          \
625         gbufferedinputstream.h  \
626         gbufferedoutputstream.h \
627         gbytesicon.h            \
628         gcancellable.h          \
629         gcontenttype.h          \
630         gcharsetconverter.h     \
631         gconverter.h            \
632         gconverterinputstream.h \
633         gconverteroutputstream.h        \
634         gdatagrambased.h        \
635         gdatainputstream.h      \
636         gdataoutputstream.h     \
637         gdrive.h                \
638         gemblem.h               \
639         gemblemedicon.h         \
640         gfile.h                 \
641         gfileattribute.h        \
642         gfileenumerator.h       \
643         gfileicon.h             \
644         gfileinfo.h             \
645         gfileinputstream.h      \
646         gfilemonitor.h          \
647         gfilenamecompleter.h    \
648         gfileoutputstream.h     \
649         gfileiostream.h         \
650         gfilterinputstream.h    \
651         gfilteroutputstream.h   \
652         gicon.h                 \
653         ginetaddress.h          \
654         ginetaddressmask.h      \
655         ginetsocketaddress.h    \
656         ginputstream.h          \
657         ginitable.h             \
658         gio.h                   \
659         gio-autocleanups.h      \
660         giotypes.h              \
661         gioenums.h              \
662         gioerror.h              \
663         giomodule.h             \
664         gioscheduler.h          \
665         giostream.h             \
666         gloadableicon.h         \
667         gmount.h                \
668         gmemoryinputstream.h    \
669         gmemoryoutputstream.h   \
670         gmountoperation.h       \
671         gnativevolumemonitor.h  \
672         gnetworkaddress.h       \
673         gnetworkmonitor.h       \
674         gnetworkservice.h       \
675         goutputstream.h         \
676         gpermission.h           \
677         gpollableinputstream.h  \
678         gpollableoutputstream.h \
679         gpollableutils.h        \
680         gproxyaddress.h         \
681         gproxy.h                \
682         gproxyaddressenumerator.h \
683         gproxyresolver.h        \
684         gresolver.h             \
685         gresource.h             \
686         gseekable.h             \
687         gsimpleasyncresult.h    \
688         gsimpleiostream.h       \
689         gsimplepermission.h     \
690         gsocket.h               \
691         gsocketaddress.h        \
692         gsocketaddressenumerator.h \
693         gsocketclient.h         \
694         gsocketconnectable.h    \
695         gsocketconnection.h     \
696         gsocketcontrolmessage.h \
697         gsocketlistener.h       \
698         gsocketservice.h        \
699         gsrvtarget.h            \
700         gsimpleproxyresolver.h  \
701         gtask.h                 \
702         gsubprocess.h           \
703         gsubprocesslauncher.h   \
704         gtcpconnection.h        \
705         gtcpwrapperconnection.h \
706         gthreadedsocketservice.h\
707         gthemedicon.h           \
708         gtlsbackend.h           \
709         gtlscertificate.h       \
710         gtlsclientconnection.h  \
711         gtlsconnection.h        \
712         gtlsdatabase.h          \
713         gtlsfiledatabase.h      \
714         gtlsinteraction.h       \
715         gtlspassword.h          \
716         gtlsserverconnection.h  \
717         gdtlsconnection.h       \
718         gdtlsclientconnection.h \
719         gdtlsserverconnection.h \
720         gvfs.h                  \
721         gvolume.h               \
722         gvolumemonitor.h        \
723         gzlibcompressor.h       \
724         gzlibdecompressor.h     \
725         glistmodel.h            \
726         gliststore.h            \
727         $(application_headers)  \
728         $(settings_headers)     \
729         $(gdbus_headers)        \
730         $(NULL)
732 gioincludedir=$(includedir)/glib-2.0/gio/
733 gioinclude_HEADERS =            \
734         $(gio_headers)          \
735         gioenumtypes.h
737 nodist_gioinclude_HEADERS =     \
738         gnetworking.h           \
739         $(NULL)
741 # these sources (also mentioned above) are generated.
742 BUILT_SOURCES +=                \
743         gconstructor_as_data.h  \
744         gioenumtypes.h          \
745         gioenumtypes.c          \
746         gdbus-daemon-generated.c \
747         gdbus-daemon-generated.h \
748         gnetworking.h           \
749         $(NULL)
751 EXTRA_DIST +=                   \
752         data-to-c.pl            \
753         gioenumtypes.h.template \
754         gioenumtypes.c.template \
755         makefile.msc            \
756         gio.rc.in               \
757         gschema.dtd             \
758         gconstructor_as_data.h  \
759         gnetworking.h.win32     \
760         $(NULL)
762 BUILT_EXTRA_DIST +=             \
763         gio.rc
765 # This is read by gobject-introspection/misc/ and gtk-doc
766 gio-public-headers.txt: Makefile
767         $(AM_V_GEN) echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
769 CLEANFILES += gdbus-daemon-generated.c gdbus-daemon-generated.h gio-public-headers.txt gconstructor_as_data.h
772 DISTCLEANFILES +=               \
773         gioenumtypes.h          \
774         gioenumtypes.c
776 all-local: gio-public-headers.txt
778 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
779         $(AM_V_GEN) $(top_builddir)/gobject/glib-mkenums --template $(filter %.template,$^) $(filter-out %.template,$^) > \
780             gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
782 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
783         $(AM_V_GEN) $(top_builddir)/gobject/glib-mkenums --template $(filter %.template,$^) $(filter-out %.template,$^) > \
784             gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
786 gio.def: libgio-2.0.la
787         $(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
789 gio-2.0.lib: libgio-2.0.la gio.def
790         $(AM_V_GEN) lib.exe -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/gio.def -out:$@
792 bin_PROGRAMS = gio-querymodules glib-compile-schemas glib-compile-resources gsettings
794 glib_compile_resources_LDADD = libgio-2.0.la            \
795         $(top_builddir)/gobject/libgobject-2.0.la       \
796         $(top_builddir)/gmodule/libgmodule-2.0.la       \
797         $(top_builddir)/glib/libglib-2.0.la             \
798         $(NULL)
800 glib_compile_resources_SOURCES = \
801         gvdb/gvdb-format.h              \
802         gvdb/gvdb-builder.h             \
803         gvdb/gvdb-builder.c             \
804         glib-compile-resources.c
806 gio_querymodules_SOURCES = gio-querymodules.c
807 gio_querymodules_LDADD   = libgio-2.0.la                \
808         $(top_builddir)/gobject/libgobject-2.0.la       \
809         $(top_builddir)/gmodule/libgmodule-2.0.la       \
810         $(top_builddir)/glib/libglib-2.0.la             \
811         $(NULL)
813 gconstructor_as_data.h: $(top_srcdir)/glib/gconstructor.h data-to-c.pl
814         $(AM_V_GEN) $(srcdir)/data-to-c.pl $(top_srcdir)/glib/gconstructor.h gconstructor_code > $@.tmp && mv $@.tmp $@
816 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
817 glib_compile_schemas_SOURCES = \
818         gconstructor_as_data.h \
819         gvdb/gvdb-format.h              \
820         gvdb/gvdb-builder.h             \
821         gvdb/gvdb-builder.c             \
822         glib-compile-schemas.c
824 gsettings_LDADD = libgio-2.0.la                         \
825         $(top_builddir)/gobject/libgobject-2.0.la       \
826         $(top_builddir)/gmodule/libgmodule-2.0.la       \
827         $(top_builddir)/glib/libglib-2.0.la             \
828         $(NULL)
829 gsettings_SOURCES = gsettings-tool.c
831 schemadir = $(datadir)/glib-2.0/schemas
832 dist_schema_DATA = gschema.dtd
834 itsdir = $(datadir)/gettext/its
835 dist_its_DATA = gschema.loc gschema.its
837 # ------------------------------------------------------------------------
838 # SystemTap and dtrace
840 if ENABLE_DTRACE
841 gio_probes.h: gio_probes.d
842         $(AM_V_GEN) $(DTRACE) -C -h -s $< -o $@.tmp
843         @$(SED) \
844                 -e "s,define STAP_HAS_SEMAPHORES 1,undef STAP_HAS_SEMAPHORES," \
845                 -e "s,define _SDT_HAS_SEMAPHORES 1,undef _SDT_HAS_SEMAPHORES," \
846                 < $@.tmp > $@ && rm -f $@.tmp
848 gio_probes.lo: gio_probes.d
849         $(AM_V_GEN) $(LIBTOOL) --mode=compile $(AM_V_lt) --tag=CC $(DTRACE) -G -s $< -o $@
851 BUILT_SOURCES += gio_probes.h gio_probes.lo
852 CLEANFILES += gio_probes.h gio_probes.h.tmp
853 libgio_2_0_la_LIBADD += gio_probes.lo
854 endif
856 tapsetdir   = @ABS_TAPSET_DIR@
857 EXTRA_DIST += gio.stp.in
859 if ENABLE_SYSTEMTAP
860 tapset_DATA = libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@.stp
861 CLEANFILES += $(tapset_DATA)
863 $(tapset_DATA): gio.stp.in Makefile
864         $(AM_V_GEN)$(SED) \
865                 -e 's|[@]ABS_GLIB_RUNTIME_LIBDIR[@]|$(ABS_GLIB_RUNTIME_LIBDIR)|g' \
866                 -e 's|[@]LT_CURRENT[@]|$(LT_CURRENT)|g' \
867                 -e 's|[@]LT_REVISION[@]|$(LT_REVISION)|g' \
868                 $< > $@
869 endif
871 # ------------------------------------------------------------------------
872 # gdbus(1) tool
874 bin_PROGRAMS += gdbus
875 gdbus_SOURCES = gdbus-tool.c
876 gdbus_LDADD = libgio-2.0.la                             \
877         $(top_builddir)/gobject/libgobject-2.0.la       \
878         $(top_builddir)/gmodule/libgmodule-2.0.la       \
879         $(top_builddir)/glib/libglib-2.0.la             \
880         $(NULL)
882 if OS_UNIX
883 if !OS_COCOA
884 # ------------------------------------------------------------------------
885 # gapplication(1) tool
886 bin_PROGRAMS += gapplication
887 gapplication_SOURCES = gapplication-tool.c
888 gapplication_LDADD = libgio-2.0.la                      \
889         $(top_builddir)/gobject/libgobject-2.0.la       \
890         $(top_builddir)/gmodule/libgmodule-2.0.la       \
891         $(top_builddir)/glib/libglib-2.0.la             \
892         $(NULL)
893 endif
894 endif
896 completiondir = $(datadir)/bash-completion/completions
897 completion_DATA = \
898         completion/gapplication                         \
899         completion/gdbus                                \
900         completion/gsettings                            \
901         completion/gresource
902 EXTRA_DIST += $(completion_DATA)
904 # ------------------------------------------------------------------------
905 # gresource tool
907 bin_PROGRAMS += gresource
908 gresource_SOURCES = gresource-tool.c
909 gresource_CPPFLAGS = $(LIBELF_CFLAGS) $(AM_CPPFLAGS)
910 gresource_LDADD = libgio-2.0.la                         \
911         $(top_builddir)/gobject/libgobject-2.0.la       \
912         $(top_builddir)/gmodule/libgmodule-2.0.la       \
913         $(top_builddir)/glib/libglib-2.0.la             \
914         $(LIBELF_LIBS)
916 # ------------------------------------------------------------------------
917 # gio tool
919 bin_PROGRAMS += gio
920 gio_SOURCES = \
921         gio-tool.c                                      \
922         gio-tool.h                                      \
923         gio-tool-cat.c                                  \
924         gio-tool-copy.c                                 \
925         gio-tool-info.c                                 \
926         gio-tool-list.c                                 \
927         gio-tool-mime.c                                 \
928         gio-tool-mkdir.c                                \
929         gio-tool-monitor.c                              \
930         gio-tool-mount.c                                \
931         gio-tool-move.c                                 \
932         gio-tool-open.c                                 \
933         gio-tool-rename.c                               \
934         gio-tool-remove.c                               \
935         gio-tool-save.c                                 \
936         gio-tool-set.c                                  \
937         gio-tool-trash.c                                \
938         gio-tool-tree.c                                 \
939         $(NULL)
940 gio_LDADD = libgio-2.0.la                               \
941         $(top_builddir)/gobject/libgobject-2.0.la       \
942         $(top_builddir)/glib/libglib-2.0.la             \
943         $(NULL)
945 # ------------------------------------------------------------------------
946 # ------ MSVC Project File Generation ------
947 # ------------------------------------------------------------------------
949 MSVCPROJS = gio glib-compile-resources glib-compile-schemas gio-tool
951 gio_FILES =     \
952         $(gio_base_sources)                     \
953         $(win32_actual_sources)                 \
954         $(win32_more_sources_for_vcproj)        \
955         $(settings_base_sources)                \
956         $(win32_settings_sources)
958 gio_EXCLUDES = dummy
960 gio_HEADERS_DIR = $(includedir)/glib-2.0/gio
961 gio_HEADERS_INST = $(gioinclude_HEADERS) $(nodist_gioinclude_HEADERS)
962 gio_HEADERS_EXCLUDES = dummy
964 glib_compile_resources_FILES = $(glib_compile_resources_SOURCES)
965 glib_compile_resources_EXCLUDES = dummy
967 glib_compile_schemas_FILES = $(glib_compile_schemas_SOURCES)
968 glib_compile_schemas_EXCLUDES = dummy
970 gio_tool_FILES = $(gio_SOURCES)
971 gio_tool_EXCLUDES = dummy
973 include $(top_srcdir)/win32/Makefile.msvcproj
975 dist-hook: \
976         $(BUILT_EXTRA_DIST)                                             \
977         $(top_builddir)/win32/vs9/gio.vcproj                    \
978         $(top_builddir)/win32/vs9/gio.headers                   \
979         $(top_builddir)/win32/vs9/glib-compile-schemas.vcproj   \
980         $(top_builddir)/win32/vs9/glib-compile-resources.vcproj \
981         $(top_builddir)/win32/vs9/gio-tool.vcproj
982         files='$(BUILT_EXTRA_DIST)'; \
983         for f in $$files; do \
984           if test -f $$f; then d=.; else d=$(srcdir); fi; \
985           cp $$d/$$f $(distdir) || exit 1; done
987 if HAVE_GLIB_RUNTIME_LIBDIR
988 ABS_GLIB_RUNTIME_LIBDIR = $(realpath $(libdir)/$(GLIB_RUNTIME_LIBDIR))
989 else
990 ABS_GLIB_RUNTIME_LIBDIR = $(libdir)
991 endif
993 if HAVE_GLIB_RUNTIME_LIBDIR
994 install-data-hook:
995         mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
996         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
997         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
998         rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
999         ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so
1000 endif