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