GSimpleProxyResolver: new simple GProxyResolver class
[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 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         gsimpleaction.h                 \
149                                         \
150         gmenumodel.h                    \
151         gmenu.h                         \
152         gmenuexporter.h                 \
153         gdbusmenumodel.h                \
154         $(NULL)
155
156 application_sources = \
157         gapplication.c                          \
158         gapplicationcommandline.c               \
159         gapplicationimpl-dbus.c                 \
160         gapplicationimpl.h                      \
161                                                 \
162         gactiongroup.c                          \
163         gactionmap.c                            \
164         gsimpleactiongroup.c                    \
165         gremoteactiongroup.c                    \
166         gactiongroupexporter.c                  \
167         gdbusactiongroup-private.h              \
168         gdbusactiongroup.c                      \
169         gaction.c                               \
170         gsimpleaction.c                         \
171                                                 \
172         gmenumodel.c                            \
173         gmenu.c                                 \
174         gmenuexporter.c                         \
175         gdbusmenumodel.c                        \
176         $(NULL)
177
178 local_sources = \
179         glocaldirectorymonitor.c        \
180         glocaldirectorymonitor.h        \
181         glocalfile.c                    \
182         glocalfile.h                    \
183         glocalfileenumerator.c          \
184         glocalfileenumerator.h          \
185         glocalfileinfo.c                \
186         glocalfileinfo.h                \
187         glocalfileinputstream.c         \
188         glocalfileinputstream.h         \
189         glocalfilemonitor.c             \
190         glocalfilemonitor.h             \
191         glocalfileoutputstream.c        \
192         glocalfileoutputstream.h        \
193         glocalfileiostream.c            \
194         glocalfileiostream.h            \
195         glocalvfs.c                     \
196         glocalvfs.h                     \
197         gsocks4proxy.c                  \
198         gsocks4proxy.h                  \
199         gsocks4aproxy.c                 \
200         gsocks4aproxy.h                 \
201         gsocks5proxy.c                  \
202         gsocks5proxy.h                  \
203         $(NULL)
204
205 platform_libadd =
206 platform_deps =
207 appinfo_sources =
208
209 if HAVE_INOTIFY
210 SUBDIRS += inotify
211 platform_libadd += inotify/libinotify.la
212 platform_deps += inotify/libinotify.la
213 endif
214
215 if HAVE_KQUEUE
216 SUBDIRS += kqueue
217 platform_libadd += kqueue/libkqueue.la
218 platform_deps += kqueue/libkqueue.la
219 endif
220
221 if HAVE_FEN
222 AM_CPPFLAGS += -DHAVE_FEN
223 SUBDIRS += fen
224 platform_libadd += fen/libfen.la
225 platform_deps += fen/libfen.la
226 endif
227
228 if OS_WIN32
229 SUBDIRS += win32
230 platform_libadd += win32/libgiowin32.la
231 platform_deps += win32/libgiowin32.la
232 endif
233
234 SUBDIRS += .
235
236 if HAVE_FAM
237 SUBDIRS += fam
238 endif
239
240 if OS_UNIX
241 appinfo_sources += gdesktopappinfo.c
242 platform_libadd += xdgmime/libxdgmime.la $(RESOLVER_LIBADD)
243 platform_deps += xdgmime/libxdgmime.la
244 unix_sources = \
245         gfiledescriptorbased.c  \
246         gunixconnection.c       \
247         gunixcredentialsmessage.c       \
248         gunixfdlist.c           \
249         gunixfdmessage.c        \
250         gunixmount.c            \
251         gunixmount.h            \
252         gunixmounts.c           \
253         gunixsocketaddress.c    \
254         gunixvolume.c           \
255         gunixvolume.h           \
256         gunixvolumemonitor.c    \
257         gunixvolumemonitor.h    \
258         gunixinputstream.c      \
259         gunixoutputstream.c     \
260         gcontenttype.c          \
261         gcontenttypeprivate.h   \
262         $(NULL)
263
264
265 giounixincludedir=$(includedir)/gio-unix-2.0/gio
266 giounixinclude_HEADERS = \
267         gdesktopappinfo.h       \
268         gfiledescriptorbased.h  \
269         gunixconnection.h       \
270         gunixcredentialsmessage.h       \
271         gunixmounts.h           \
272         gunixfdlist.h           \
273         gunixfdmessage.h        \
274         gunixinputstream.h      \
275         gunixoutputstream.h     \
276         gunixsocketaddress.h    \
277         $(NULL)
278
279 if HAVE_NETLINK
280 unix_sources +=                  \
281         gnetworkmonitornetlink.c \
282         gnetworkmonitornetlink.h \
283         $(NULL)
284 endif
285 endif
286
287 gdbus_daemon_sources = \
288         gdbusdaemon.c \
289         gdbusdaemon.h \
290         gdbus-daemon-generated.c \
291         gdbus-daemon-generated.h \
292         $(NULL)
293
294 win32_actual_sources = \
295         $(gdbus_daemon_sources) \
296         gcontenttype-win32.c \
297         gwin32mount.c \
298         gwin32mount.h \
299         gwin32volumemonitor.c \
300         gwin32volumemonitor.h \
301         gwin32inputstream.c \
302         gwin32outputstream.c \
303         gwin32outputstream.h \
304         $(NULL)
305
306 win32_more_sources_for_vcproj = \
307         gwin32appinfo.c \
308         gregistrysettingsbackend.c \
309         win32/gwin32directorymonitor.c \
310         win32/gwinhttpfile.c \
311         win32/gwinhttpfileinputstream.c \
312         win32/gwinhttpfileoutputstream.c \
313         win32/gwinhttpvfs.c
314
315 if OS_WIN32
316 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
317 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
318 win32_sources = $(win32_actual_sources)
319
320 giowin32includedir=$(includedir)/gio-win32-2.0/gio
321 giowin32include_HEADERS = \
322         gwin32inputstream.h \
323         gwin32outputstream.h \
324         $(NULL)
325
326 endif
327
328 if BUILD_MODULAR_TESTS
329 SUBDIRS += tests 
330 endif
331
332 libgio_2_0_la_SOURCES =         \
333         gappinfo.c              \
334         gasynchelper.c          \
335         gasynchelper.h          \
336         gasyncinitable.c        \
337         gasyncresult.c          \
338         gbufferedinputstream.c  \
339         gbufferedoutputstream.c \
340         gcancellable.c          \
341         gcharsetconverter.c     \
342         gconverter.c            \
343         gconverterinputstream.c \
344         gconverteroutputstream.c        \
345         gcredentials.c          \
346         gdatainputstream.c      \
347         gdataoutputstream.c     \
348         gdrive.c                \
349         gdummyfile.h            \
350         gdummyfile.c            \
351         gdummyproxyresolver.c   \
352         gdummyproxyresolver.h   \
353         gdummytlsbackend.c      \
354         gdummytlsbackend.h      \
355         gemblem.h               \
356         gemblem.c               \
357         gemblemedicon.h         \
358         gemblemedicon.c         \
359         gfile.c                 \
360         gfileattribute.c        \
361         gfileattribute-priv.h   \
362         gfileenumerator.c       \
363         gfileicon.c             \
364         gfileinfo.c             \
365         gfileinfo-priv.h        \
366         gfileinputstream.c      \
367         gfilemonitor.c          \
368         gfilenamecompleter.c    \
369         gfileoutputstream.c     \
370         gfileiostream.c         \
371         gfilterinputstream.c    \
372         gfilteroutputstream.c   \
373         gicon.c                 \
374         ginetaddress.c          \
375         ginetaddressmask.c      \
376         ginetsocketaddress.c    \
377         ginitable.c             \
378         ginputstream.c          \
379         gioenums.h              \
380         gioerror.c              \
381         giomodule.c             \
382         giomodule-priv.h        \
383         gioscheduler.c          \
384         giostream.c             \
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         gcancellable.h          \
521         gcontenttype.h          \
522         gcharsetconverter.h     \
523         gconverter.h            \
524         gconverterinputstream.h \
525         gconverteroutputstream.h        \
526         gdatainputstream.h      \
527         gdataoutputstream.h     \
528         gdrive.h                \
529         gemblem.h               \
530         gemblemedicon.h         \
531         gfile.h                 \
532         gfileattribute.h        \
533         gfileenumerator.h       \
534         gfileicon.h             \
535         gfileinfo.h             \
536         gfileinputstream.h      \
537         gfilemonitor.h          \
538         gfilenamecompleter.h    \
539         gfileoutputstream.h     \
540         gfileiostream.h         \
541         gfilterinputstream.h    \
542         gfilteroutputstream.h   \
543         gicon.h                 \
544         ginetaddress.h          \
545         ginetaddressmask.h      \
546         ginetsocketaddress.h    \
547         ginputstream.h          \
548         ginitable.h             \
549         gio.h                   \
550         giotypes.h              \
551         gioenums.h              \
552         gioerror.h              \
553         giomodule.h             \
554         gioscheduler.h          \
555         giostream.h             \
556         gloadableicon.h         \
557         gmount.h                \
558         gmemoryinputstream.h    \
559         gmemoryoutputstream.h   \
560         gmountoperation.h       \
561         gnativevolumemonitor.h  \
562         gnetworkaddress.h       \
563         gnetworking.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 # these sources (also mentioned above) are generated.
621 BUILT_SOURCES =                 \
622         gconstructor_as_data.h  \
623         gioenumtypes.h          \
624         gioenumtypes.c          \
625         gdbus-daemon-generated.c \
626         gdbus-daemon-generated.h \
627         gnetworking.h           \
628         $(NULL)
629
630 EXTRA_DIST +=                   \
631         data-to-c.pl            \
632         gioenumtypes.h.template \
633         gioenumtypes.c.template \
634         makefile.msc            \
635         gio.rc.in               \
636         gschema.dtd             \
637         gconstructor_as_data.h  \
638         gnetworking.h.win32     \
639         $(NULL)
640
641 BUILT_EXTRA_DIST =              \
642         gio.rc
643
644 # This is read by gobject-introspection/misc/ and gtk-doc
645 gio-public-headers.txt: Makefile
646         $(AM_V_GEN) echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
647
648 CLEANFILES = gdbus-daemon-generated.c gdbus-daemon-generated.h gio-public-headers.txt gconstructor_as_data.h
649
650
651 DISTCLEANFILES =                \
652         gioenumtypes.h          \
653         gioenumtypes.c
654
655 all-local: gio-public-headers.txt
656
657 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
658         $(AM_V_GEN) $(top_builddir)/gobject/glib-mkenums --template $(filter %.template,$^) $(filter-out %.template,$^) > \
659             gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
660
661 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
662         $(AM_V_GEN) $(top_builddir)/gobject/glib-mkenums --template $(filter %.template,$^) $(filter-out %.template,$^) > \
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 = $(datadir)/bash-completion/completions
719 completion_DATA = \
720         completion/gdbus                                \
721         completion/gsettings                            \
722         completion/gresource
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|gcontenttype.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|gcontenttype.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|gcontenttype.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