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