Introduce GBytesIcon
[platform/upstream/glib.git] / gio / Makefile.am
1 include $(top_srcdir)/Makefile.decl
2
3 NULL =
4
5 SUBDIRS = gdbus-2.0/codegen
6
7 if OS_UNIX
8 SUBDIRS += xdgmime
9 endif
10
11 if OS_WIN32_AND_DLL_COMPILATION
12 if MS_LIB_AVAILABLE
13 noinst_DATA = gio-2.0.lib
14
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
19
20 install-ms-lib:
21         $(install_ms_lib_cmd)
22
23 uninstall-ms-lib:
24         $(uninstall_ms_lib_cmd)
25
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)\"  
32
33 AM_CFLAGS = $(GLIB_WARN_CFLAGS)
34
35 lib_LTLIBRARIES = libgio-2.0.la
36
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)
61
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)
91
92 # These are not built into the library yet
93 EXTRA_DIST += gdbusdaemon.c gdbusdaemon.h dbus-daemon.xml
94
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)
104
105 settings_headers = \
106         gsettingsbackend.h              \
107         gsettingsschema.h               \
108         gsettings.h
109
110 settings_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
127
128 if OS_WIN32
129 settings_sources += \
130         gregistrysettingsbackend.h      \
131         gregistrysettingsbackend.c
132 endif
133
134 if OS_COCOA
135 settings_sources += \
136         gnextstepsettingsbackend.c
137 endif
138
139 application_headers = \
140         gapplication.h                  \
141         gapplicationcommandline.h       \
142                                         \
143         gactiongroup.h                  \
144         gactionmap.h                    \
145         gsimpleactiongroup.h            \
146         gremoteactiongroup.h            \
147         gactiongroupexporter.h          \
148         gdbusactiongroup.h              \
149         gaction.h                       \
150         gsimpleaction.h                 \
151                                         \
152         gmenumodel.h                    \
153         gmenu.h                         \
154         gmenuexporter.h                 \
155         gdbusmenumodel.h                \
156         $(NULL)
157
158 application_sources = \
159         gapplication.c                          \
160         gapplicationcommandline.c               \
161         gapplicationimpl-dbus.c                 \
162         gapplicationimpl.h                      \
163                                                 \
164         gactiongroup.c                          \
165         gactionmap.c                            \
166         gsimpleactiongroup.c                    \
167         gremoteactiongroup.c                    \
168         gactiongroupexporter.c                  \
169         gdbusactiongroup-private.h              \
170         gdbusactiongroup.c                      \
171         gaction.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 += .
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
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 if BUILD_MODULAR_TESTS
331 SUBDIRS += tests 
332 endif
333
334 libgio_2_0_la_SOURCES =         \
335         gappinfo.c              \
336         gasynchelper.c          \
337         gasynchelper.h          \
338         gasyncinitable.c        \
339         gasyncresult.c          \
340         gbufferedinputstream.c  \
341         gbufferedoutputstream.c \
342         gbytesicon.c            \
343         gcancellable.c          \
344         gcharsetconverter.c     \
345         gconverter.c            \
346         gconverterinputstream.c \
347         gconverteroutputstream.c        \
348         gcredentials.c          \
349         gdatainputstream.c      \
350         gdataoutputstream.c     \
351         gdrive.c                \
352         gdummyfile.h            \
353         gdummyfile.c            \
354         gdummyproxyresolver.c   \
355         gdummyproxyresolver.h   \
356         gdummytlsbackend.c      \
357         gdummytlsbackend.h      \
358         gemblem.h               \
359         gemblem.c               \
360         gemblemedicon.h         \
361         gemblemedicon.c         \
362         gfile.c                 \
363         gfileattribute.c        \
364         gfileattribute-priv.h   \
365         gfileenumerator.c       \
366         gfileicon.c             \
367         gfileinfo.c             \
368         gfileinfo-priv.h        \
369         gfileinputstream.c      \
370         gfilemonitor.c          \
371         gfilenamecompleter.c    \
372         gfileoutputstream.c     \
373         gfileiostream.c         \
374         gfilterinputstream.c    \
375         gfilteroutputstream.c   \
376         gicon.c                 \
377         ginetaddress.c          \
378         ginetaddressmask.c      \
379         ginetsocketaddress.c    \
380         ginitable.c             \
381         ginputstream.c          \
382         gioenums.h              \
383         gioerror.c              \
384         giomodule.c             \
385         giomodule-priv.h        \
386         gioscheduler.c          \
387         giostream.c             \
388         gloadableicon.c         \
389         gmount.c                \
390         gmemoryinputstream.c    \
391         gmemoryoutputstream.c   \
392         gmountoperation.c       \
393         gnativevolumemonitor.c  \
394         gnativevolumemonitor.h  \
395         gnetworkaddress.c       \
396         gnetworking.c           \
397         gnetworkingprivate.h    \
398         gnetworkmonitor.c       \
399         gnetworkmonitorbase.c   \
400         gnetworkmonitorbase.h   \
401         gnetworkservice.c       \
402         goutputstream.c         \
403         gpermission.c           \
404         gpollableinputstream.c  \
405         gpollableoutputstream.c \
406         gpollableutils.c        \
407         gpollfilemonitor.c      \
408         gpollfilemonitor.h      \
409         gproxy.c                \
410         gproxyaddress.c         \
411         gproxyaddressenumerator.c \
412         gproxyresolver.c        \
413         gresolver.c             \
414         gresource.c             \
415         gresourcefile.c         \
416         gresourcefile.h         \
417         gseekable.c             \
418         gsimpleasyncresult.c    \
419         gsimplepermission.c     \
420         gsocket.c               \
421         gsocketaddress.c        \
422         gsocketaddressenumerator.c \
423         gsocketclient.c         \
424         gsocketconnectable.c    \
425         gsocketconnection.c     \
426         gsocketcontrolmessage.c \
427         gsocketinputstream.c    \
428         gsocketinputstream.h    \
429         gsocketlistener.c       \
430         gsocketoutputstream.c   \
431         gsocketoutputstream.h   \
432         gsocketservice.c        \
433         gsrvtarget.c            \
434         gsimpleproxyresolver.c  \
435         gtask.c                 \
436         gtcpconnection.c        \
437         gtcpwrapperconnection.c \
438         gthreadedsocketservice.c\
439         gthemedicon.c           \
440         gthreadedresolver.c     \
441         gthreadedresolver.h     \
442         gtlsbackend.c           \
443         gtlscertificate.c       \
444         gtlsclientconnection.c  \
445         gtlsconnection.c        \
446         gtlsdatabase.c          \
447         gtlsfiledatabase.c      \
448         gtlsinteraction.c       \
449         gtlspassword.c          \
450         gtlsserverconnection.c  \
451         gunionvolumemonitor.c   \
452         gunionvolumemonitor.h   \
453         gvfs.c                  \
454         gvolume.c               \
455         gvolumemonitor.c        \
456         gzlibcompressor.c       \
457         gzlibdecompressor.c     \
458         gmountprivate.h         \
459         gioenumtypes.h          \
460         gioenumtypes.c          \
461         $(appinfo_sources)      \
462         $(unix_sources)         \
463         $(win32_sources)        \
464         $(application_sources)  \
465         $(settings_sources)     \
466         $(gdbus_sources)        \
467         $(local_sources)        \
468         $(NULL)
469
470 EXTRA_DIST += strinfo.c
471
472 libgio_2_0_la_LIBADD = \
473         $(top_builddir)/glib/libglib-2.0.la             \
474         $(top_builddir)/gobject/libgobject-2.0.la       \
475         $(top_builddir)/gmodule/libgmodule-2.0.la       \
476         $(platform_libadd)                              \
477         $(ZLIB_LIBS)                                    \
478         $(SELINUX_LIBS)                                 \
479         $(GLIB_LIBS)                                    \
480         $(XATTR_LIBS)                                   \
481         $(NETWORK_LIBS)                                 \
482         $(NULL)
483
484 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
485
486 if PLATFORM_WIN32
487 no_undefined = -no-undefined
488 endif
489
490 if OS_WIN32_AND_DLL_COMPILATION
491 gio_win32_res = gio-win32-res.o
492 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
493 endif
494
495 install-data-local: install-ms-lib
496         $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
497
498 uninstall-local: uninstall-ms-lib
499
500 libgio_2_0_la_CFLAGS = $(AM_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
501 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
502         $(gio_win32_res_ldflag) \
503         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
504         -export-dynamic $(no_undefined)
505
506 if OS_COCOA
507 # This is dumb.  The ObjC source file should be properly named .m
508 libgio_2_0_la_CFLAGS += -xobjective-c
509 libgio_2_0_la_LDFLAGS += -Wl,-framework,Foundation
510 endif
511
512 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
513
514 gio-win32-res.o: gio.rc
515         $(WINDRES) gio.rc $@
516
517 gio_headers =                   \
518         gappinfo.h              \
519         gasyncinitable.h        \
520         gasyncresult.h          \
521         gbufferedinputstream.h  \
522         gbufferedoutputstream.h \
523         gbytesicon.h            \
524         gcancellable.h          \
525         gcontenttype.h          \
526         gcharsetconverter.h     \
527         gconverter.h            \
528         gconverterinputstream.h \
529         gconverteroutputstream.h        \
530         gdatainputstream.h      \
531         gdataoutputstream.h     \
532         gdrive.h                \
533         gemblem.h               \
534         gemblemedicon.h         \
535         gfile.h                 \
536         gfileattribute.h        \
537         gfileenumerator.h       \
538         gfileicon.h             \
539         gfileinfo.h             \
540         gfileinputstream.h      \
541         gfilemonitor.h          \
542         gfilenamecompleter.h    \
543         gfileoutputstream.h     \
544         gfileiostream.h         \
545         gfilterinputstream.h    \
546         gfilteroutputstream.h   \
547         gicon.h                 \
548         ginetaddress.h          \
549         ginetaddressmask.h      \
550         ginetsocketaddress.h    \
551         ginputstream.h          \
552         ginitable.h             \
553         gio.h                   \
554         giotypes.h              \
555         gioenums.h              \
556         gioerror.h              \
557         giomodule.h             \
558         gioscheduler.h          \
559         giostream.h             \
560         gloadableicon.h         \
561         gmount.h                \
562         gmemoryinputstream.h    \
563         gmemoryoutputstream.h   \
564         gmountoperation.h       \
565         gnativevolumemonitor.h  \
566         gnetworkaddress.h       \
567         gnetworking.h           \
568         gnetworkmonitor.h       \
569         gnetworkservice.h       \
570         goutputstream.h         \
571         gpermission.h           \
572         gpollableinputstream.h  \
573         gpollableoutputstream.h \
574         gpollableutils.h        \
575         gproxyaddress.h         \
576         gproxy.h                \
577         gproxyaddressenumerator.h \
578         gproxyresolver.h        \
579         gresolver.h             \
580         gresource.h             \
581         gseekable.h             \
582         gsimpleasyncresult.h    \
583         gsimplepermission.h     \
584         gsocket.h               \
585         gsocketaddress.h        \
586         gsocketaddressenumerator.h \
587         gsocketclient.h         \
588         gsocketconnectable.h    \
589         gsocketconnection.h     \
590         gsocketcontrolmessage.h \
591         gsocketlistener.h       \
592         gsocketservice.h        \
593         gsrvtarget.h            \
594         gsimpleproxyresolver.h  \
595         gtask.h                 \
596         gtcpconnection.h        \
597         gtcpwrapperconnection.h \
598         gthreadedsocketservice.h\
599         gthemedicon.h           \
600         gtlsbackend.h           \
601         gtlscertificate.h       \
602         gtlsclientconnection.h  \
603         gtlsconnection.h        \
604         gtlsdatabase.h          \
605         gtlsfiledatabase.h      \
606         gtlsinteraction.h       \
607         gtlspassword.h          \
608         gtlsserverconnection.h  \
609         gvfs.h                  \
610         gvolume.h               \
611         gvolumemonitor.h        \
612         gzlibcompressor.h       \
613         gzlibdecompressor.h     \
614         $(application_headers)  \
615         $(settings_headers)     \
616         $(gdbus_headers)        \
617         $(NULL)
618
619 gioincludedir=$(includedir)/glib-2.0/gio/
620 gioinclude_HEADERS =            \
621         $(gio_headers)          \
622         gioenumtypes.h
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