Add GNotification
[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         $(NULL)
271
272
273 giounixincludedir=$(includedir)/gio-unix-2.0/gio
274 giounixinclude_HEADERS = \
275         gdesktopappinfo.h       \
276         gfiledescriptorbased.h  \
277         gunixconnection.h       \
278         gunixcredentialsmessage.h       \
279         gunixmounts.h           \
280         gunixfdlist.h           \
281         gunixfdmessage.h        \
282         gunixinputstream.h      \
283         gunixoutputstream.h     \
284         gunixsocketaddress.h    \
285         $(NULL)
286
287 if HAVE_NETLINK
288 unix_sources +=                  \
289         gnetworkmonitornetlink.c \
290         gnetworkmonitornetlink.h \
291         $(NULL)
292 endif
293 endif
294
295 gdbus_daemon_sources = \
296         gdbusdaemon.c \
297         gdbusdaemon.h \
298         gdbus-daemon-generated.c \
299         gdbus-daemon-generated.h \
300         $(NULL)
301
302 win32_actual_sources = \
303         $(gdbus_daemon_sources) \
304         gcontenttype-win32.c \
305         gwin32mount.c \
306         gwin32mount.h \
307         gwin32volumemonitor.c \
308         gwin32volumemonitor.h \
309         gwin32inputstream.c \
310         gwin32outputstream.c \
311         gwin32outputstream.h \
312         $(NULL)
313
314 win32_more_sources_for_vcproj = \
315         gwin32appinfo.c \
316         gregistrysettingsbackend.c \
317         win32/gwin32directorymonitor.c \
318         win32/gwinhttpfile.c \
319         win32/gwinhttpfileinputstream.c \
320         win32/gwinhttpfileoutputstream.c \
321         win32/gwinhttpvfs.c
322
323 if OS_WIN32
324 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
325 platform_libadd += -lshlwapi -lws2_32 -ldnsapi -liphlpapi
326 win32_sources = $(win32_actual_sources)
327
328 giowin32includedir=$(includedir)/gio-win32-2.0/gio
329 giowin32include_HEADERS = \
330         gwin32inputstream.h \
331         gwin32outputstream.h \
332         $(NULL)
333
334 endif
335
336 libgio_2_0_la_SOURCES =         \
337         gappinfo.c              \
338         gasynchelper.c          \
339         gasynchelper.h          \
340         gasyncinitable.c        \
341         gasyncresult.c          \
342         gbufferedinputstream.c  \
343         gbufferedoutputstream.c \
344         gbytesicon.c            \
345         gcancellable.c          \
346         gcharsetconverter.c     \
347         gconverter.c            \
348         gconverterinputstream.c \
349         gconverteroutputstream.c        \
350         gcredentials.c          \
351         gcredentialsprivate.h   \
352         gdatainputstream.c      \
353         gdataoutputstream.c     \
354         gdrive.c                \
355         gdummyfile.h            \
356         gdummyfile.c            \
357         gdummyproxyresolver.c   \
358         gdummyproxyresolver.h   \
359         gdummytlsbackend.c      \
360         gdummytlsbackend.h      \
361         gemblem.h               \
362         gemblem.c               \
363         gemblemedicon.h         \
364         gemblemedicon.c         \
365         gfile.c                 \
366         gfileattribute.c        \
367         gfileattribute-priv.h   \
368         gfileenumerator.c       \
369         gfileicon.c             \
370         gfileinfo.c             \
371         gfileinfo-priv.h        \
372         gfileinputstream.c      \
373         gfilemonitor.c          \
374         gfilenamecompleter.c    \
375         gfileoutputstream.c     \
376         gfileiostream.c         \
377         gfilterinputstream.c    \
378         gfilteroutputstream.c   \
379         gicon.c                 \
380         ginetaddress.c          \
381         ginetaddressmask.c      \
382         ginetsocketaddress.c    \
383         ginitable.c             \
384         ginputstream.c          \
385         gioenums.h              \
386         gioerror.c              \
387         giomodule.c             \
388         giomodule-priv.h        \
389         gioscheduler.c          \
390         giostream.c             \
391         gioprivate.h            \
392         giowin32-priv.h         \
393         gloadableicon.c         \
394         gmount.c                \
395         gmemoryinputstream.c    \
396         gmemoryoutputstream.c   \
397         gmountoperation.c       \
398         gnativevolumemonitor.c  \
399         gnativevolumemonitor.h  \
400         gnetworkaddress.c       \
401         gnetworking.c           \
402         gnetworkingprivate.h    \
403         gnetworkmonitor.c       \
404         gnetworkmonitorbase.c   \
405         gnetworkmonitorbase.h   \
406         gnetworkservice.c       \
407         goutputstream.c         \
408         gpermission.c           \
409         gpollableinputstream.c  \
410         gpollableoutputstream.c \
411         gpollableutils.c        \
412         gpollfilemonitor.c      \
413         gpollfilemonitor.h      \
414         gproxy.c                \
415         gproxyaddress.c         \
416         gproxyaddressenumerator.c \
417         gproxyresolver.c        \
418         gresolver.c             \
419         gresource.c             \
420         gresourcefile.c         \
421         gresourcefile.h         \
422         gseekable.c             \
423         gsimpleasyncresult.c    \
424         gsimplepermission.c     \
425         gsocket.c               \
426         gsocketaddress.c        \
427         gsocketaddressenumerator.c \
428         gsocketclient.c         \
429         gsocketconnectable.c    \
430         gsocketconnection.c     \
431         gsocketcontrolmessage.c \
432         gsocketinputstream.c    \
433         gsocketinputstream.h    \
434         gsocketlistener.c       \
435         gsocketoutputstream.c   \
436         gsocketoutputstream.h   \
437         gsubprocesslauncher.c   \
438         gsubprocess.c           \
439         gsubprocesslauncher-private.h   \
440         gsocketservice.c        \
441         gsrvtarget.c            \
442         gsimpleproxyresolver.c  \
443         gtask.c                 \
444         gtcpconnection.c        \
445         gtcpwrapperconnection.c \
446         gthreadedsocketservice.c\
447         gthemedicon.c           \
448         gthreadedresolver.c     \
449         gthreadedresolver.h     \
450         gtlsbackend.c           \
451         gtlscertificate.c       \
452         gtlsclientconnection.c  \
453         gtlsconnection.c        \
454         gtlsdatabase.c          \
455         gtlsfiledatabase.c      \
456         gtlsinteraction.c       \
457         gtlspassword.c          \
458         gtlsserverconnection.c  \
459         gunionvolumemonitor.c   \
460         gunionvolumemonitor.h   \
461         gvfs.c                  \
462         gvolume.c               \
463         gvolumemonitor.c        \
464         gzlibcompressor.c       \
465         gzlibdecompressor.c     \
466         gmountprivate.h         \
467         gioenumtypes.h          \
468         gioenumtypes.c          \
469         $(appinfo_sources)      \
470         $(unix_sources)         \
471         $(win32_sources)        \
472         $(application_sources)  \
473         $(settings_sources)     \
474         $(gdbus_sources)        \
475         $(local_sources)        \
476         $(NULL)
477
478 EXTRA_DIST += strinfo.c
479
480 libgio_2_0_la_LIBADD = \
481         $(top_builddir)/glib/libglib-2.0.la             \
482         $(top_builddir)/gobject/libgobject-2.0.la       \
483         $(top_builddir)/gmodule/libgmodule-2.0.la       \
484         $(platform_libadd)                              \
485         $(ZLIB_LIBS)                                    \
486         $(SELINUX_LIBS)                                 \
487         $(GLIB_LIBS)                                    \
488         $(XATTR_LIBS)                                   \
489         $(NETWORK_LIBS)                                 \
490         $(NULL)
491
492 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
493
494 if PLATFORM_WIN32
495 no_undefined = -no-undefined
496 endif
497
498 if OS_WIN32_AND_DLL_COMPILATION
499 gio_win32_res = gio-win32-res.o
500 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
501 endif
502
503 install-data-local: install-ms-lib
504         $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
505
506 uninstall-local: uninstall-ms-lib
507
508 libgio_2_0_la_CFLAGS = $(AM_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
509 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
510         $(gio_win32_res_ldflag) \
511         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
512         -export-dynamic $(no_undefined)
513
514 if OS_COCOA
515 # This is dumb.  The ObjC source file should be properly named .m
516 libgio_2_0_la_CFLAGS += -xobjective-c
517 libgio_2_0_la_LDFLAGS += -Wl,-framework,Foundation
518 endif
519
520 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
521
522 gio-win32-res.o: gio.rc
523         $(WINDRES) gio.rc $@
524
525 gio_headers =                   \
526         gappinfo.h              \
527         gasyncinitable.h        \
528         gasyncresult.h          \
529         gbufferedinputstream.h  \
530         gbufferedoutputstream.h \
531         gbytesicon.h            \
532         gcancellable.h          \
533         gcontenttype.h          \
534         gcharsetconverter.h     \
535         gconverter.h            \
536         gconverterinputstream.h \
537         gconverteroutputstream.h        \
538         gdatainputstream.h      \
539         gdataoutputstream.h     \
540         gdrive.h                \
541         gemblem.h               \
542         gemblemedicon.h         \
543         gfile.h                 \
544         gfileattribute.h        \
545         gfileenumerator.h       \
546         gfileicon.h             \
547         gfileinfo.h             \
548         gfileinputstream.h      \
549         gfilemonitor.h          \
550         gfilenamecompleter.h    \
551         gfileoutputstream.h     \
552         gfileiostream.h         \
553         gfilterinputstream.h    \
554         gfilteroutputstream.h   \
555         gicon.h                 \
556         ginetaddress.h          \
557         ginetaddressmask.h      \
558         ginetsocketaddress.h    \
559         ginputstream.h          \
560         ginitable.h             \
561         gio.h                   \
562         giotypes.h              \
563         gioenums.h              \
564         gioerror.h              \
565         giomodule.h             \
566         gioscheduler.h          \
567         giostream.h             \
568         gloadableicon.h         \
569         gmount.h                \
570         gmemoryinputstream.h    \
571         gmemoryoutputstream.h   \
572         gmountoperation.h       \
573         gnativevolumemonitor.h  \
574         gnetworkaddress.h       \
575         gnetworkmonitor.h       \
576         gnetworkservice.h       \
577         goutputstream.h         \
578         gpermission.h           \
579         gpollableinputstream.h  \
580         gpollableoutputstream.h \
581         gpollableutils.h        \
582         gproxyaddress.h         \
583         gproxy.h                \
584         gproxyaddressenumerator.h \
585         gproxyresolver.h        \
586         gresolver.h             \
587         gresource.h             \
588         gseekable.h             \
589         gsimpleasyncresult.h    \
590         gsimplepermission.h     \
591         gsocket.h               \
592         gsocketaddress.h        \
593         gsocketaddressenumerator.h \
594         gsocketclient.h         \
595         gsocketconnectable.h    \
596         gsocketconnection.h     \
597         gsocketcontrolmessage.h \
598         gsocketlistener.h       \
599         gsocketservice.h        \
600         gsrvtarget.h            \
601         gsimpleproxyresolver.h  \
602         gtask.h                 \
603         gsubprocess.h           \
604         gsubprocesslauncher.h   \
605         gtcpconnection.h        \
606         gtcpwrapperconnection.h \
607         gthreadedsocketservice.h\
608         gthemedicon.h           \
609         gtlsbackend.h           \
610         gtlscertificate.h       \
611         gtlsclientconnection.h  \
612         gtlsconnection.h        \
613         gtlsdatabase.h          \
614         gtlsfiledatabase.h      \
615         gtlsinteraction.h       \
616         gtlspassword.h          \
617         gtlsserverconnection.h  \
618         gvfs.h                  \
619         gvolume.h               \
620         gvolumemonitor.h        \
621         gzlibcompressor.h       \
622         gzlibdecompressor.h     \
623         $(application_headers)  \
624         $(settings_headers)     \
625         $(gdbus_headers)        \
626         $(NULL)
627
628 gioincludedir=$(includedir)/glib-2.0/gio/
629 gioinclude_HEADERS =            \
630         $(gio_headers)          \
631         gioenumtypes.h
632
633 nodist_gioinclude_HEADERS =     \
634         gnetworking.h           \
635         $(NULL)
636
637 # these sources (also mentioned above) are generated.
638 BUILT_SOURCES +=                \
639         gconstructor_as_data.h  \
640         gioenumtypes.h          \
641         gioenumtypes.c          \
642         gdbus-daemon-generated.c \
643         gdbus-daemon-generated.h \
644         gnetworking.h           \
645         $(NULL)
646
647 EXTRA_DIST +=                   \
648         data-to-c.pl            \
649         gioenumtypes.h.template \
650         gioenumtypes.c.template \
651         makefile.msc            \
652         gio.rc.in               \
653         gschema.dtd             \
654         gconstructor_as_data.h  \
655         gnetworking.h.win32     \
656         $(NULL)
657
658 BUILT_EXTRA_DIST +=             \
659         gio.rc
660
661 # This is read by gobject-introspection/misc/ and gtk-doc
662 gio-public-headers.txt: Makefile
663         $(AM_V_GEN) echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
664
665 CLEANFILES += gdbus-daemon-generated.c gdbus-daemon-generated.h gio-public-headers.txt gconstructor_as_data.h
666
667
668 DISTCLEANFILES +=               \
669         gioenumtypes.h          \
670         gioenumtypes.c
671
672 all-local: gio-public-headers.txt
673
674 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
675         $(AM_V_GEN) $(top_builddir)/gobject/glib-mkenums --template $(filter %.template,$^) $(filter-out %.template,$^) > \
676             gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
677
678 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
679         $(AM_V_GEN) $(top_builddir)/gobject/glib-mkenums --template $(filter %.template,$^) $(filter-out %.template,$^) > \
680             gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
681
682 gio-2.0.lib: libgio-2.0.la gio.def
683         lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/gio.def -out:$@
684
685 bin_PROGRAMS = gio-querymodules glib-compile-schemas glib-compile-resources gsettings
686
687 glib_compile_resources_LDADD = \
688         $(top_builddir)/glib/libglib-2.0.la \
689         $(top_builddir)/gobject/libgobject-2.0.la       \
690         libgio-2.0.la
691
692 glib_compile_resources_SOURCES = \
693         gvdb/gvdb-format.h              \
694         gvdb/gvdb-builder.h             \
695         gvdb/gvdb-builder.c             \
696         glib-compile-resources.c
697
698 gio_querymodules_SOURCES = gio-querymodules.c
699 gio_querymodules_LDADD   = \
700         $(top_builddir)/glib/libglib-2.0.la             \
701         $(top_builddir)/gobject/libgobject-2.0.la       \
702         $(top_builddir)/gmodule/libgmodule-2.0.la       \
703         libgio-2.0.la                                   \
704         $(NULL)
705
706 gconstructor_as_data.h: $(top_srcdir)/glib/gconstructor.h data-to-c.pl
707         $(AM_V_GEN) $(srcdir)/data-to-c.pl $(top_srcdir)/glib/gconstructor.h gconstructor_code > $@.tmp && mv $@.tmp $@
708
709 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
710 glib_compile_schemas_SOURCES = \
711         gconstructor_as_data.h \
712         gvdb/gvdb-format.h              \
713         gvdb/gvdb-builder.h             \
714         gvdb/gvdb-builder.c             \
715         glib-compile-schemas.c
716
717 gsettings_LDADD = \
718         $(top_builddir)/glib/libglib-2.0.la             \
719         $(top_builddir)/gobject/libgobject-2.0.la       \
720         libgio-2.0.la
721 gsettings_SOURCES = gsettings-tool.c
722
723 schemadir = $(datadir)/glib-2.0/schemas
724 dist_schema_DATA = gschema.dtd
725
726 # ------------------------------------------------------------------------
727 # gdbus(1) tool
728
729 bin_PROGRAMS += gdbus
730 gdbus_SOURCES = gdbus-tool.c
731 gdbus_LDADD = libgio-2.0.la \
732         $(top_builddir)/glib/libglib-2.0.la             \
733         $(top_builddir)/gobject/libgobject-2.0.la
734
735 # ------------------------------------------------------------------------
736 # gapplication(1) tool
737 bin_PROGRAMS += gapplication
738 gapplication_SOURCES = gapplication-tool.c
739 gapplication_LDADD = libgio-2.0.la \
740         $(top_builddir)/glib/libglib-2.0.la             \
741         $(top_builddir)/gobject/libgobject-2.0.la
742
743 completiondir = $(datadir)/bash-completion/completions
744 completion_DATA = \
745         completion/gapplication                         \
746         completion/gdbus                                \
747         completion/gsettings                            \
748         completion/gresource
749 EXTRA_DIST += $(completion_DATA)
750
751 # ------------------------------------------------------------------------
752 # gresource tool
753
754 bin_PROGRAMS += gresource
755 gresource_SOURCES = gresource-tool.c
756 gresource_CPPFLAGS = $(LIBELF_CFLAGS) $(AM_CPPFLAGS)
757 gresource_LDADD = libgio-2.0.la \
758         $(top_builddir)/glib/libglib-2.0.la             \
759         $(top_builddir)/gobject/libgobject-2.0.la \
760         $(LIBELF_LIBS)
761
762 # ------------------------------------------------------------------------
763
764 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
765         files='$(BUILT_EXTRA_DIST)'; \
766         for f in $$files; do \
767           if test -f $$f; then d=.; else d=$(srcdir); fi; \
768           cp $$d/$$f $(distdir) || exit 1; done
769
770 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
771         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
772                 case $$F in \
773                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c|gcontenttype.c) ;; \
774                 *.c) echo '   <File RelativePath="..\..\..\gio\'$$F'" />' \
775                      ;; \
776                 esac; \
777         done | sort -u >libgio.sourcefiles
778         $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
779         rm libgio.sourcefiles
780
781 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
782         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
783                 case $$F in \
784                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c|gcontenttype.c) ;; \
785                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'" />' \
786                      ;; \
787                 esac; \
788         done | sort -u >libgio.vs10.sourcefiles
789         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
790         rm libgio.vs10.sourcefiles
791
792 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
793         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
794                 case $$F in \
795                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c|gcontenttype.c) ;; \
796                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
797                      ;; \
798                 esac; \
799         done | sort -u >libgio.vs10.sourcefiles.filters
800         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
801         rm libgio.vs10.sourcefiles.filters
802
803 if HAVE_GLIB_RUNTIME_LIBDIR
804 install-data-hook:
805         mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
806         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
807         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
808         rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
809         ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so
810 endif