Tizen 2.1 base
[platform/upstream/glib2.0.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 gio.def: gio.symbols
27         $(AM_V_GEN) (echo EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gio.symbols | sed -e '/^$$/d' -e 's/^/        /' -e 's/G_GNUC_[^ ]*//g' | sort) > $(builddir)/gio.def.tmp && \
28           mv $(builddir)/gio.def.tmp $(builddir)/gio.def
29
30 if OS_LINUX
31 if HAVE_GNUC_VISIBILITY
32 TESTS = abicheck.sh
33 endif
34 endif
35
36 AM_CPPFLAGS = \
37         -DG_LOG_DOMAIN=\"GLib-GIO\"                     \
38         $(gmodule_INCLUDES)                             \
39         $(GLIB_DEBUG_FLAGS)                             \
40         -DGIO_COMPILATION                               \
41         -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"  
42
43 lib_LTLIBRARIES = libgio-2.0.la
44
45 gdbus_headers =                         \
46         gdbusauthobserver.h             \
47         gcredentials.h                  \
48         gdbusutils.h                    \
49         gdbuserror.h                    \
50         gdbusaddress.h                  \
51         gdbusconnection.h               \
52         gdbusmessage.h                  \
53         gdbusnameowning.h               \
54         gdbusnamewatching.h             \
55         gdbusproxy.h                    \
56         gdbusintrospection.h            \
57         gdbusmethodinvocation.h         \
58         gdbusserver.h                   \
59         gdbusinterface.h                \
60         gdbusinterfaceskeleton.h        \
61         gdbusobject.h                   \
62         gdbusobjectskeleton.h           \
63         gdbusobjectproxy.h              \
64         gdbusobjectmanager.h            \
65         gdbusobjectmanagerclient.h      \
66         gdbusobjectmanagerserver.h      \
67         $(NULL)
68
69 gdbus_sources =                                                         \
70         gdbusutils.h                    gdbusutils.c                    \
71         gdbusaddress.h                  gdbusaddress.c                  \
72         gdbusauthobserver.h             gdbusauthobserver.c             \
73         gdbusauth.h                     gdbusauth.c                     \
74         gdbusauthmechanism.h            gdbusauthmechanism.c            \
75         gdbusauthmechanismanon.h        gdbusauthmechanismanon.c        \
76         gdbusauthmechanismexternal.h    gdbusauthmechanismexternal.c    \
77         gdbusauthmechanismsha1.h        gdbusauthmechanismsha1.c        \
78         gdbuserror.h                    gdbuserror.c                    \
79         gdbusconnection.h               gdbusconnection.c               \
80         gdbusmessage.h                  gdbusmessage.c                  \
81         gdbusnameowning.h               gdbusnameowning.c               \
82         gdbusnamewatching.h             gdbusnamewatching.c             \
83         gdbusproxy.h                    gdbusproxy.c                    \
84         gdbusprivate.h                  gdbusprivate.c                  \
85         gdbusintrospection.h            gdbusintrospection.c            \
86         gdbusmethodinvocation.h         gdbusmethodinvocation.c         \
87         gdbusserver.h                   gdbusserver.c                   \
88         gdbusinterface.h                gdbusinterface.c                \
89         gdbusinterfaceskeleton.h        gdbusinterfaceskeleton.c        \
90         gdbusobject.h                   gdbusobject.c                   \
91         gdbusobjectskeleton.h           gdbusobjectskeleton.c           \
92         gdbusobjectproxy.h              gdbusobjectproxy.c              \
93         gdbusobjectmanager.h            gdbusobjectmanager.c            \
94         gdbusobjectmanagerclient.h      gdbusobjectmanagerclient.c      \
95         gdbusobjectmanagerserver.h      gdbusobjectmanagerserver.c      \
96         $(NULL)
97
98 # These are not built into the library yet
99 EXTRA_DIST += gdbusdaemon.c gdbusdaemon.h dbus-daemon.xml
100
101 gdbus-daemon-generated.h gdbus-daemon-generated.c: $(srcdir)/dbus-daemon.xml $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in
102         $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
103                 UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
104                 $(PYTHON) $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in \
105                 --interface-prefix org. \
106                 --generate-c-code gdbus-daemon-generated \
107                 --c-namespace _G \
108                 $(srcdir)/dbus-daemon.xml \
109                 $(NULL)
110
111 settings_headers = \
112         gsettingsbackend.h              \
113         gsettingsschema.h               \
114         gsettings.h
115
116 settings_sources = \
117         gvdb/gvdb-format.h              \
118         gvdb/gvdb-reader.h              \
119         gvdb/gvdb-reader.c              \
120         gdelayedsettingsbackend.h       \
121         gdelayedsettingsbackend.c       \
122         gkeyfilesettingsbackend.c       \
123         gmemorysettingsbackend.c        \
124         gnullsettingsbackend.c          \
125         gsettingsbackendinternal.h      \
126         gsettingsbackend.c              \
127         gsettingsschema.h               \
128         gsettingsschema-internal.h      \
129         gsettingsschema.c               \
130         gsettings-mapping.h             \
131         gsettings-mapping.c             \
132         gsettings.c
133
134 if OS_WIN32
135 settings_sources += \
136         gregistrysettingsbackend.h      \
137         gregistrysettingsbackend.c
138 endif
139
140 if OS_COCOA
141 settings_sources += \
142         gnextstepsettingsbackend.c
143 endif
144
145 application_headers = \
146         gapplication.h                  \
147         gapplicationcommandline.h       \
148                                         \
149         gactiongroup.h                  \
150         gactionmap.h                    \
151         gsimpleactiongroup.h            \
152         gremoteactiongroup.h            \
153         gactiongroupexporter.h          \
154         gdbusactiongroup.h              \
155         gaction.h                       \
156         gsimpleaction.h                 \
157                                         \
158         gmenumodel.h                    \
159         gmenu.h                         \
160         gmenuexporter.h                 \
161         gdbusmenumodel.h                \
162         $(NULL)
163
164 application_sources = \
165         gapplication.c                          \
166         gapplicationcommandline.c               \
167         gapplicationimpl-dbus.c                 \
168         gapplicationimpl.h                      \
169                                                 \
170         gactiongroup.c                          \
171         gactionmap.c                            \
172         gsimpleactiongroup.c                    \
173         gremoteactiongroup.c                    \
174         gactiongroupexporter.c                  \
175         gdbusactiongroup.c                      \
176         gaction.c                               \
177         gsimpleaction.c                         \
178                                                 \
179         gmenumodel.c                            \
180         gmenu.c                                 \
181         gmenuexporter.c                         \
182         gdbusmenumodel.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_FEN
223 AM_CPPFLAGS += -DHAVE_FEN
224 SUBDIRS += fen
225 platform_libadd += fen/libfen.la
226 platform_deps += fen/libfen.la
227 endif
228
229 if OS_WIN32
230 SUBDIRS += win32
231 platform_libadd += win32/libgiowin32.la
232 platform_deps += win32/libgiowin32.la
233 endif
234
235 SUBDIRS += .
236
237 if HAVE_FAM
238 SUBDIRS += fam
239 endif
240
241 if OS_UNIX
242 appinfo_sources += gdesktopappinfo.c
243 platform_libadd += xdgmime/libxdgmime.la $(RESOLVER_LIBADD)
244 platform_deps += xdgmime/libxdgmime.la
245 unix_sources = \
246         gfiledescriptorbased.c  \
247         gunixconnection.c       \
248         gunixcredentialsmessage.c       \
249         gunixfdlist.c           \
250         gunixfdmessage.c        \
251         gunixmount.c            \
252         gunixmount.h            \
253         gunixmounts.c           \
254         gunixsocketaddress.c    \
255         gunixvolume.c           \
256         gunixvolume.h           \
257         gunixvolumemonitor.c    \
258         gunixvolumemonitor.h    \
259         gunixinputstream.c      \
260         gunixoutputstream.c     \
261         $(NULL)
262
263
264 giounixincludedir=$(includedir)/gio-unix-2.0/gio
265 giounixinclude_HEADERS = \
266         gdesktopappinfo.h       \
267         gfiledescriptorbased.h  \
268         gunixconnection.h       \
269         gunixcredentialsmessage.h       \
270         gunixmounts.h           \
271         gunixfdlist.h           \
272         gunixfdmessage.h        \
273         gunixinputstream.h      \
274         gunixoutputstream.h     \
275         gunixsocketaddress.h    \
276         $(NULL)
277
278 if HAVE_NETLINK
279 unix_sources +=                  \
280         gnetworkmonitornetlink.c \
281         gnetworkmonitornetlink.h \
282         $(NULL)
283 endif
284 endif
285
286 gdbus_daemon_sources = \
287         gdbusdaemon.c \
288         gdbusdaemon.h \
289         gdbus-daemon-generated.c \
290         gdbus-daemon-generated.h \
291         $(NULL)
292
293 win32_actual_sources = \
294         $(gdbus_daemon_sources) \
295         gwin32mount.c \
296         gwin32mount.h \
297         gwin32volumemonitor.c \
298         gwin32volumemonitor.h \
299         gwin32inputstream.c \
300         gwin32outputstream.c \
301         gwin32outputstream.h \
302         $(NULL)
303
304 win32_more_sources_for_vcproj = \
305         gwin32appinfo.c \
306         gregistrysettingsbackend.c \
307         win32/gwin32directorymonitor.c \
308         win32/gwinhttpfile.c \
309         win32/gwinhttpfileinputstream.c \
310         win32/gwinhttpfileoutputstream.c \
311         win32/gwinhttpvfs.c
312
313 if OS_WIN32
314 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
315 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
316 win32_sources = $(win32_actual_sources)
317
318 giowin32includedir=$(includedir)/gio-win32-2.0/gio
319 giowin32include_HEADERS = \
320         gwin32inputstream.h \
321         gwin32outputstream.h \
322         $(NULL)
323
324 endif
325
326 SUBDIRS += tests
327
328 libgio_2_0_la_SOURCES =         \
329         gappinfo.c              \
330         gasynchelper.c          \
331         gasynchelper.h          \
332         gasyncinitable.c        \
333         gasyncresult.c          \
334         gbufferedinputstream.c  \
335         gbufferedoutputstream.c \
336         gcancellable.c          \
337         gcontenttype.c          \
338         gcontenttypeprivate.h   \
339         gcharsetconverter.c     \
340         gconverter.c            \
341         gconverterinputstream.c \
342         gconverteroutputstream.c        \
343         gcredentials.c          \
344         gdatainputstream.c      \
345         gdataoutputstream.c     \
346         gdrive.c                \
347         gdummyfile.h            \
348         gdummyfile.c            \
349         gdummyproxyresolver.c   \
350         gdummyproxyresolver.h   \
351         gdummytlsbackend.c      \
352         gdummytlsbackend.h      \
353         gemblem.h               \
354         gemblem.c               \
355         gemblemedicon.h         \
356         gemblemedicon.c         \
357         gfile.c                 \
358         gfileattribute.c        \
359         gfileattribute-priv.h   \
360         gfileenumerator.c       \
361         gfileicon.c             \
362         gfileinfo.c             \
363         gfileinfo-priv.h        \
364         gfileinputstream.c      \
365         gfilemonitor.c          \
366         gfilenamecompleter.c    \
367         gfileoutputstream.c     \
368         gfileiostream.c         \
369         gfilterinputstream.c    \
370         gfilteroutputstream.c   \
371         gicon.c                 \
372         ginetaddress.c          \
373         ginetaddressmask.c      \
374         ginetsocketaddress.c    \
375         ginitable.c             \
376         ginputstream.c          \
377         gioenums.h              \
378         gioerror.c              \
379         giomodule.c             \
380         giomodule-priv.h        \
381         gioscheduler.c          \
382         giostream.c             \
383         gloadableicon.c         \
384         gmount.c                \
385         gmemoryinputstream.c    \
386         gmemoryoutputstream.c   \
387         gmountoperation.c       \
388         gnativevolumemonitor.c  \
389         gnativevolumemonitor.h  \
390         gnetworkaddress.c       \
391         gnetworkingprivate.h    \
392         gnetworkmonitor.c       \
393         gnetworkmonitorbase.c   \
394         gnetworkmonitorbase.h   \
395         gnetworkservice.c       \
396         goutputstream.c         \
397         gpermission.c           \
398         gpollableinputstream.c  \
399         gpollableoutputstream.c \
400         gpollfilemonitor.c      \
401         gpollfilemonitor.h      \
402         gproxyresolver.c        \
403         gresolver.c             \
404         gresource.c             \
405         gresourcefile.c         \
406         gresourcefile.h         \
407         gseekable.c             \
408         gsimpleasyncresult.c    \
409         gsimplepermission.c     \
410         gsocket.c               \
411         gsocketaddress.c        \
412         gsocketaddressenumerator.c \
413         gsocketclient.c         \
414         gsocketconnectable.c    \
415         gsocketconnection.c     \
416         gsocketcontrolmessage.c \
417         gsocketinputstream.c    \
418         gsocketinputstream.h    \
419         gsocketlistener.c       \
420         gsocketoutputstream.c   \
421         gsocketoutputstream.h   \
422         gproxy.c                \
423         gproxyaddress.c         \
424         gproxyaddressenumerator.c \
425         gsocketservice.c        \
426         gsrvtarget.c            \
427         gtcpconnection.c        \
428         gtcpwrapperconnection.c \
429         gthreadedsocketservice.c\
430         gthemedicon.c           \
431         gthreadedresolver.c     \
432         gthreadedresolver.h     \
433         gtlsbackend.c           \
434         gtlscertificate.c       \
435         gtlsclientconnection.c  \
436         gtlsconnection.c        \
437         gtlsdatabase.c          \
438         gtlsfiledatabase.c      \
439         gtlsinteraction.c       \
440         gtlspassword.c          \
441         gtlsserverconnection.c  \
442         gunionvolumemonitor.c   \
443         gunionvolumemonitor.h   \
444         gvfs.c                  \
445         gvolume.c               \
446         gvolumemonitor.c        \
447         gzlibcompressor.c       \
448         gzlibdecompressor.c     \
449         gmountprivate.h         \
450         gioenumtypes.h          \
451         gioenumtypes.c          \
452         $(appinfo_sources)      \
453         $(unix_sources)         \
454         $(win32_sources)        \
455         $(application_sources)  \
456         $(settings_sources)     \
457         $(gdbus_sources)        \
458         $(local_sources)        \
459         $(NULL)
460
461 EXTRA_DIST += strinfo.c
462
463 libgio_2_0_la_LIBADD = \
464         $(top_builddir)/glib/libglib-2.0.la             \
465         $(top_builddir)/gobject/libgobject-2.0.la       \
466         $(top_builddir)/gmodule/libgmodule-2.0.la       \
467         $(platform_libadd)                              \
468         $(ZLIB_LIBS)                                    \
469         $(SELINUX_LIBS)                                 \
470         $(GLIB_LIBS)                                    \
471         $(XATTR_LIBS)                                   \
472         $(NETWORK_LIBS)                                 \
473         $(NULL)
474
475 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
476
477 if PLATFORM_WIN32
478 no_undefined = -no-undefined
479 endif
480
481 if OS_WIN32_AND_DLL_COMPILATION
482 export_symbols = -export-symbols $(builddir)/gio.def
483 gio_def = gio.def
484
485 gio_win32_res = gio-win32-res.o
486 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
487
488 install-def-file:
489         $(INSTALL) $(builddir)/gio.def $(DESTDIR)$(libdir)/gio-2.0.def
490
491 uninstall-def-file:
492         -rm $(DESTDIR)$(libdir)/gio-2.0.def
493 else
494 install-def-file:
495 uninstall-def-file:
496
497 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
498 endif
499
500 install-data-local: install-ms-lib install-def-file
501         $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
502
503 uninstall-local: uninstall-ms-lib uninstall-def-file
504
505 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
506         $(gio_win32_res_ldflag) \
507         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
508         -export-dynamic $(no_undefined) $(export_symbols)
509
510 if OS_COCOA
511 # This is dumb.  The ObjC source file should be properly named .m
512 libgio_2_0_la_CFLAGS = -xobjective-c
513 libgio_2_0_la_LDFLAGS += -framework Foundation
514 endif
515
516 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
517
518 gio-win32-res.o: gio.rc
519         $(WINDRES) gio.rc $@
520
521 gio_headers =                   \
522         gappinfo.h              \
523         gasyncinitable.h        \
524         gasyncresult.h          \
525         gbufferedinputstream.h  \
526         gbufferedoutputstream.h \
527         gcancellable.h          \
528         gcontenttype.h          \
529         gcharsetconverter.h     \
530         gconverter.h            \
531         gconverterinputstream.h \
532         gconverteroutputstream.h        \
533         gdatainputstream.h      \
534         gdataoutputstream.h     \
535         gdrive.h                \
536         gemblem.h               \
537         gemblemedicon.h         \
538         gfile.h                 \
539         gfileattribute.h        \
540         gfileenumerator.h       \
541         gfileicon.h             \
542         gfileinfo.h             \
543         gfileinputstream.h      \
544         gfilemonitor.h          \
545         gfilenamecompleter.h    \
546         gfileoutputstream.h     \
547         gfileiostream.h         \
548         gfilterinputstream.h    \
549         gfilteroutputstream.h   \
550         gicon.h                 \
551         ginetaddress.h          \
552         ginetaddressmask.h      \
553         ginetsocketaddress.h    \
554         ginputstream.h          \
555         ginitable.h             \
556         gio.h                   \
557         giotypes.h              \
558         gioenums.h              \
559         gioerror.h              \
560         giomodule.h             \
561         gioscheduler.h          \
562         giostream.h             \
563         gloadableicon.h         \
564         gmount.h                \
565         gmemoryinputstream.h    \
566         gmemoryoutputstream.h   \
567         gmountoperation.h       \
568         gnativevolumemonitor.h  \
569         gnetworkaddress.h       \
570         gnetworkmonitor.h       \
571         gnetworkservice.h       \
572         goutputstream.h         \
573         gpermission.h           \
574         gpollableinputstream.h  \
575         gpollableoutputstream.h \
576         gproxyaddress.h         \
577         gproxy.h                \
578         gproxyaddressenumerator.h \
579         gproxyresolver.h        \
580         gresolver.h             \
581         gresource.h             \
582         gseekable.h             \
583         gsimpleasyncresult.h    \
584         gsimplepermission.h     \
585         gsocket.h               \
586         gsocketaddress.h        \
587         gsocketaddressenumerator.h \
588         gsocketclient.h         \
589         gsocketconnectable.h    \
590         gsocketconnection.h     \
591         gsocketcontrolmessage.h \
592         gsocketlistener.h       \
593         gsocketservice.h        \
594         gsrvtarget.h            \
595         gtcpconnection.h        \
596         gtcpwrapperconnection.h \
597         gthreadedsocketservice.h\
598         gthemedicon.h           \
599         gtlsbackend.h           \
600         gtlscertificate.h       \
601         gtlsclientconnection.h  \
602         gtlsconnection.h        \
603         gtlsdatabase.h          \
604         gtlsfiledatabase.h      \
605         gtlsinteraction.h       \
606         gtlspassword.h          \
607         gtlsserverconnection.h  \
608         gvfs.h                  \
609         gvolume.h               \
610         gvolumemonitor.h        \
611         gzlibcompressor.h       \
612         gzlibdecompressor.h     \
613         $(application_headers)  \
614         $(settings_headers)     \
615         $(gdbus_headers)        \
616         $(NULL)
617
618 gioincludedir=$(includedir)/glib-2.0/gio/
619 gioinclude_HEADERS =            \
620         $(gio_headers)          \
621         gioenumtypes.h
622
623 # these sources (also mentioned above) are generated.
624 BUILT_SOURCES =                 \
625         gconstructor_as_data.h  \
626         gioenumtypes.h          \
627         gioenumtypes.c          \
628         gdbus-daemon-generated.c \
629         gdbus-daemon-generated.h \
630         $(NULL)
631
632 EXTRA_DIST +=                   \
633         data-to-c.pl            \
634         gio.symbols             \
635         gioenumtypes.h.template \
636         gioenumtypes.c.template \
637         makefile.msc            \
638         abicheck.sh             \
639         gio.rc.in               \
640         gschema.dtd             \
641         gconstructor_as_data.h  \
642         $(NULL)
643
644 BUILT_EXTRA_DIST =              \
645         gio.rc
646
647 # This is read by gobject-introspection/misc/ and gtk-doc
648 gio-public-headers.txt: Makefile
649         echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
650
651 CLEANFILES = gdbus-daemon-generated.c gdbus-daemon-generated.h gio-public-headers.txt gconstructor_as_data.h
652
653 all-local: gio-public-headers.txt
654
655 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
656         $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
657           cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
658             gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
659
660 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
661         $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
662           cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
663             gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
664
665 gio-2.0.lib: libgio-2.0.la gio.def
666         lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/gio.def -out:$@
667
668 bin_PROGRAMS = gio-querymodules glib-compile-schemas glib-compile-resources gsettings
669
670 glib_compile_resources_LDADD = \
671         $(top_builddir)/glib/libglib-2.0.la \
672         $(top_builddir)/gobject/libgobject-2.0.la       \
673         libgio-2.0.la
674
675 glib_compile_resources_SOURCES = \
676         gvdb/gvdb-format.h              \
677         gvdb/gvdb-builder.h             \
678         gvdb/gvdb-builder.c             \
679         glib-compile-resources.c
680
681 gio_querymodules_SOURCES = gio-querymodules.c
682 gio_querymodules_LDADD   = \
683         $(top_builddir)/glib/libglib-2.0.la             \
684         $(top_builddir)/gobject/libgobject-2.0.la       \
685         $(top_builddir)/gmodule/libgmodule-2.0.la       \
686         libgio-2.0.la                                   \
687         $(NULL)
688
689 gconstructor_as_data.h: $(top_srcdir)/glib/gconstructor.h data-to-c.pl
690         $(AM_V_GEN) $(srcdir)/data-to-c.pl $(top_srcdir)/glib/gconstructor.h gconstructor_code > $@.tmp && mv $@.tmp $@
691
692 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
693 glib_compile_schemas_SOURCES = \
694         gconstructor_as_data.h \
695         gvdb/gvdb-format.h              \
696         gvdb/gvdb-builder.h             \
697         gvdb/gvdb-builder.c             \
698         glib-compile-schemas.c
699
700 gsettings_LDADD = \
701         $(top_builddir)/glib/libglib-2.0.la             \
702         $(top_builddir)/gobject/libgobject-2.0.la       \
703         libgio-2.0.la
704 gsettings_SOURCES = gsettings-tool.c
705
706 schemadir = $(datadir)/glib-2.0/schemas
707 dist_schema_DATA = gschema.dtd
708
709 # ------------------------------------------------------------------------
710 # gdbus(1) tool
711
712 bin_PROGRAMS += gdbus
713 gdbus_SOURCES = gdbus-tool.c
714 gdbus_LDADD = libgio-2.0.la \
715         $(top_builddir)/glib/libglib-2.0.la             \
716         $(top_builddir)/gobject/libgobject-2.0.la
717
718 completiondir = $(sysconfdir)/bash_completion.d
719 completion_DATA = \
720         gdbus-bash-completion.sh                \
721         gsettings-bash-completion.sh            \
722         gresource-bash-completion.sh
723 EXTRA_DIST += $(completion_DATA)
724
725 # ------------------------------------------------------------------------
726 # gresource tool
727
728 bin_PROGRAMS += gresource
729 gresource_SOURCES = gresource-tool.c
730 gresource_CPPFLAGS = $(LIBELF_CFLAGS) $(AM_CPPFLAGS)
731 gresource_LDADD = libgio-2.0.la \
732         $(top_builddir)/glib/libglib-2.0.la             \
733         $(top_builddir)/gobject/libgobject-2.0.la \
734         $(LIBELF_LIBS)
735
736 # ------------------------------------------------------------------------
737
738 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
739         files='$(BUILT_EXTRA_DIST)'; \
740         for f in $$files; do \
741           if test -f $$f; then d=.; else d=$(srcdir); fi; \
742           cp $$d/$$f $(distdir) || exit 1; done
743
744 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
745         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
746                 case $$F in \
747                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
748                 *.c) echo '   <File RelativePath="..\..\..\gio\'$$F'" />' \
749                      ;; \
750                 esac; \
751         done | sort -u >libgio.sourcefiles
752         $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
753         rm libgio.sourcefiles
754
755 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
756         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
757                 case $$F in \
758                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
759                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'" />' \
760                      ;; \
761                 esac; \
762         done | sort -u >libgio.vs10.sourcefiles
763         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
764         rm libgio.vs10.sourcefiles
765
766 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
767         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
768                 case $$F in \
769                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c) ;; \
770                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
771                      ;; \
772                 esac; \
773         done | sort -u >libgio.vs10.sourcefiles.filters
774         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
775         rm libgio.vs10.sourcefiles.filters
776
777 if HAVE_GLIB_RUNTIME_LIBDIR
778 install-data-hook:
779         mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
780         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
781         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
782         rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
783         ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so
784 endif