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