cbafbf6684737907872bc8a697627737df4e5dce
[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         $(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         gtestdbus.h                     \
68         $(NULL)
69
70 gdbus_sources =                                                         \
71         gdbusutils.h                    gdbusutils.c                    \
72         gdbusaddress.h                  gdbusaddress.c                  \
73         gdbusauthobserver.h             gdbusauthobserver.c             \
74         gdbusauth.h                     gdbusauth.c                     \
75         gdbusauthmechanism.h            gdbusauthmechanism.c            \
76         gdbusauthmechanismanon.h        gdbusauthmechanismanon.c        \
77         gdbusauthmechanismexternal.h    gdbusauthmechanismexternal.c    \
78         gdbusauthmechanismsha1.h        gdbusauthmechanismsha1.c        \
79         gdbuserror.h                    gdbuserror.c                    \
80         gdbusconnection.h               gdbusconnection.c               \
81         gdbusmessage.h                  gdbusmessage.c                  \
82         gdbusnameowning.h               gdbusnameowning.c               \
83         gdbusnamewatching.h             gdbusnamewatching.c             \
84         gdbusproxy.h                    gdbusproxy.c                    \
85         gdbusprivate.h                  gdbusprivate.c                  \
86         gdbusintrospection.h            gdbusintrospection.c            \
87         gdbusmethodinvocation.h         gdbusmethodinvocation.c         \
88         gdbusserver.h                   gdbusserver.c                   \
89         gdbusinterface.h                gdbusinterface.c                \
90         gdbusinterfaceskeleton.h        gdbusinterfaceskeleton.c        \
91         gdbusobject.h                   gdbusobject.c                   \
92         gdbusobjectskeleton.h           gdbusobjectskeleton.c           \
93         gdbusobjectproxy.h              gdbusobjectproxy.c              \
94         gdbusobjectmanager.h            gdbusobjectmanager.c            \
95         gdbusobjectmanagerclient.h      gdbusobjectmanagerclient.c      \
96         gdbusobjectmanagerserver.h      gdbusobjectmanagerserver.c      \
97         gtestdbus.h                     gtestdbus.c                     \
98         $(NULL)
99
100 # These are not built into the library yet
101 EXTRA_DIST += gdbusdaemon.c gdbusdaemon.h dbus-daemon.xml
102
103 gdbus-daemon-generated.h gdbus-daemon-generated.c: $(srcdir)/dbus-daemon.xml $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in
104         $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
105                 UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
106                 $(PYTHON) $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in \
107                 --interface-prefix org. \
108                 --generate-c-code gdbus-daemon-generated \
109                 --c-namespace _G \
110                 $(srcdir)/dbus-daemon.xml \
111                 $(NULL)
112
113 settings_headers = \
114         gsettingsbackend.h              \
115         gsettingsschema.h               \
116         gsettings.h
117
118 settings_sources = \
119         gvdb/gvdb-format.h              \
120         gvdb/gvdb-reader.h              \
121         gvdb/gvdb-reader.c              \
122         gdelayedsettingsbackend.h       \
123         gdelayedsettingsbackend.c       \
124         gkeyfilesettingsbackend.c       \
125         gmemorysettingsbackend.c        \
126         gnullsettingsbackend.c          \
127         gsettingsbackendinternal.h      \
128         gsettingsbackend.c              \
129         gsettingsschema.h               \
130         gsettingsschema-internal.h      \
131         gsettingsschema.c               \
132         gsettings-mapping.h             \
133         gsettings-mapping.c             \
134         gsettings.c
135
136 if OS_WIN32
137 settings_sources += \
138         gregistrysettingsbackend.h      \
139         gregistrysettingsbackend.c
140 endif
141
142 if OS_COCOA
143 settings_sources += \
144         gnextstepsettingsbackend.c
145 endif
146
147 application_headers = \
148         gapplication.h                  \
149         gapplicationcommandline.h       \
150                                         \
151         gactiongroup.h                  \
152         gactionmap.h                    \
153         gsimpleactiongroup.h            \
154         gremoteactiongroup.h            \
155         gactiongroupexporter.h          \
156         gdbusactiongroup.h              \
157         gaction.h                       \
158         gsimpleaction.h                 \
159                                         \
160         gmenumodel.h                    \
161         gmenu.h                         \
162         gmenuexporter.h                 \
163         gdbusmenumodel.h                \
164         $(NULL)
165
166 application_sources = \
167         gapplication.c                          \
168         gapplicationcommandline.c               \
169         gapplicationimpl-dbus.c                 \
170         gapplicationimpl.h                      \
171                                                 \
172         gactiongroup.c                          \
173         gactionmap.c                            \
174         gsimpleactiongroup.c                    \
175         gremoteactiongroup.c                    \
176         gactiongroupexporter.c                  \
177         gdbusactiongroup.c                      \
178         gaction.c                               \
179         gsimpleaction.c                         \
180                                                 \
181         gmenumodel.c                            \
182         gmenu.c                                 \
183         gmenuexporter.c                         \
184         gdbusmenumodel.c                        \
185         $(NULL)
186
187 local_sources = \
188         glocaldirectorymonitor.c        \
189         glocaldirectorymonitor.h        \
190         glocalfile.c                    \
191         glocalfile.h                    \
192         glocalfileenumerator.c          \
193         glocalfileenumerator.h          \
194         glocalfileinfo.c                \
195         glocalfileinfo.h                \
196         glocalfileinputstream.c         \
197         glocalfileinputstream.h         \
198         glocalfilemonitor.c             \
199         glocalfilemonitor.h             \
200         glocalfileoutputstream.c        \
201         glocalfileoutputstream.h        \
202         glocalfileiostream.c            \
203         glocalfileiostream.h            \
204         glocalvfs.c                     \
205         glocalvfs.h                     \
206         gsocks4proxy.c                  \
207         gsocks4proxy.h                  \
208         gsocks4aproxy.c                 \
209         gsocks4aproxy.h                 \
210         gsocks5proxy.c                  \
211         gsocks5proxy.h                  \
212         $(NULL)
213
214 platform_libadd =
215 platform_deps =
216 appinfo_sources =
217
218 if HAVE_INOTIFY
219 SUBDIRS += inotify
220 platform_libadd += inotify/libinotify.la
221 platform_deps += inotify/libinotify.la
222 endif
223
224 if HAVE_FEN
225 AM_CPPFLAGS += -DHAVE_FEN
226 SUBDIRS += fen
227 platform_libadd += fen/libfen.la
228 platform_deps += fen/libfen.la
229 endif
230
231 if OS_WIN32
232 SUBDIRS += win32
233 platform_libadd += win32/libgiowin32.la
234 platform_deps += win32/libgiowin32.la
235 endif
236
237 SUBDIRS += .
238
239 if HAVE_FAM
240 SUBDIRS += fam
241 endif
242
243 if OS_UNIX
244 appinfo_sources += gdesktopappinfo.c
245 platform_libadd += xdgmime/libxdgmime.la $(RESOLVER_LIBADD)
246 platform_deps += xdgmime/libxdgmime.la
247 unix_sources = \
248         gfiledescriptorbased.c  \
249         gunixconnection.c       \
250         gunixcredentialsmessage.c       \
251         gunixfdlist.c           \
252         gunixfdmessage.c        \
253         gunixmount.c            \
254         gunixmount.h            \
255         gunixmounts.c           \
256         gunixsocketaddress.c    \
257         gunixvolume.c           \
258         gunixvolume.h           \
259         gunixvolumemonitor.c    \
260         gunixvolumemonitor.h    \
261         gunixinputstream.c      \
262         gunixoutputstream.c     \
263         gcontenttype.c          \
264         gcontenttypeprivate.h   \
265         $(NULL)
266
267
268 giounixincludedir=$(includedir)/gio-unix-2.0/gio
269 giounixinclude_HEADERS = \
270         gdesktopappinfo.h       \
271         gfiledescriptorbased.h  \
272         gunixconnection.h       \
273         gunixcredentialsmessage.h       \
274         gunixmounts.h           \
275         gunixfdlist.h           \
276         gunixfdmessage.h        \
277         gunixinputstream.h      \
278         gunixoutputstream.h     \
279         gunixsocketaddress.h    \
280         $(NULL)
281
282 if HAVE_NETLINK
283 unix_sources +=                  \
284         gnetworkmonitornetlink.c \
285         gnetworkmonitornetlink.h \
286         $(NULL)
287 endif
288 endif
289
290 gdbus_daemon_sources = \
291         gdbusdaemon.c \
292         gdbusdaemon.h \
293         gdbus-daemon-generated.c \
294         gdbus-daemon-generated.h \
295         $(NULL)
296
297 win32_actual_sources = \
298         $(gdbus_daemon_sources) \
299         gcontenttype-win32.c \
300         gwin32mount.c \
301         gwin32mount.h \
302         gwin32volumemonitor.c \
303         gwin32volumemonitor.h \
304         gwin32inputstream.c \
305         gwin32outputstream.c \
306         gwin32outputstream.h \
307         $(NULL)
308
309 win32_more_sources_for_vcproj = \
310         gwin32appinfo.c \
311         gregistrysettingsbackend.c \
312         win32/gwin32directorymonitor.c \
313         win32/gwinhttpfile.c \
314         win32/gwinhttpfileinputstream.c \
315         win32/gwinhttpfileoutputstream.c \
316         win32/gwinhttpvfs.c
317
318 if OS_WIN32
319 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
320 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
321 win32_sources = $(win32_actual_sources)
322
323 giowin32includedir=$(includedir)/gio-win32-2.0/gio
324 giowin32include_HEADERS = \
325         gwin32inputstream.h \
326         gwin32outputstream.h \
327         $(NULL)
328
329 endif
330
331 if BUILD_MODULAR_TESTS
332 SUBDIRS += tests 
333 endif
334
335 libgio_2_0_la_SOURCES =         \
336         gappinfo.c              \
337         gasynchelper.c          \
338         gasynchelper.h          \
339         gasyncinitable.c        \
340         gasyncresult.c          \
341         gbufferedinputstream.c  \
342         gbufferedoutputstream.c \
343         gcancellable.c          \
344         gcharsetconverter.c     \
345         gconverter.c            \
346         gconverterinputstream.c \
347         gconverteroutputstream.c        \
348         gcredentials.c          \
349         gdatainputstream.c      \
350         gdataoutputstream.c     \
351         gdrive.c                \
352         gdummyfile.h            \
353         gdummyfile.c            \
354         gdummyproxyresolver.c   \
355         gdummyproxyresolver.h   \
356         gdummytlsbackend.c      \
357         gdummytlsbackend.h      \
358         gemblem.h               \
359         gemblem.c               \
360         gemblemedicon.h         \
361         gemblemedicon.c         \
362         gfile.c                 \
363         gfileattribute.c        \
364         gfileattribute-priv.h   \
365         gfileenumerator.c       \
366         gfileicon.c             \
367         gfileinfo.c             \
368         gfileinfo-priv.h        \
369         gfileinputstream.c      \
370         gfilemonitor.c          \
371         gfilenamecompleter.c    \
372         gfileoutputstream.c     \
373         gfileiostream.c         \
374         gfilterinputstream.c    \
375         gfilteroutputstream.c   \
376         gicon.c                 \
377         ginetaddress.c          \
378         ginetaddressmask.c      \
379         ginetsocketaddress.c    \
380         ginitable.c             \
381         ginputstream.c          \
382         gioenums.h              \
383         gioerror.c              \
384         giomodule.c             \
385         giomodule-priv.h        \
386         gioscheduler.c          \
387         giostream.c             \
388         gloadableicon.c         \
389         gmount.c                \
390         gmemoryinputstream.c    \
391         gmemoryoutputstream.c   \
392         gmountoperation.c       \
393         gnativevolumemonitor.c  \
394         gnativevolumemonitor.h  \
395         gnetworkaddress.c       \
396         gnetworkingprivate.h    \
397         gnetworkmonitor.c       \
398         gnetworkmonitorbase.c   \
399         gnetworkmonitorbase.h   \
400         gnetworkservice.c       \
401         goutputstream.c         \
402         gpermission.c           \
403         gpollableinputstream.c  \
404         gpollableoutputstream.c \
405         gpollableutils.c        \
406         gpollfilemonitor.c      \
407         gpollfilemonitor.h      \
408         gproxyresolver.c        \
409         gresolver.c             \
410         gresource.c             \
411         gresourcefile.c         \
412         gresourcefile.h         \
413         gseekable.c             \
414         gsimpleasyncresult.c    \
415         gsimplepermission.c     \
416         gsocket.c               \
417         gsocketaddress.c        \
418         gsocketaddressenumerator.c \
419         gsocketclient.c         \
420         gsocketconnectable.c    \
421         gsocketconnection.c     \
422         gsocketcontrolmessage.c \
423         gsocketinputstream.c    \
424         gsocketinputstream.h    \
425         gsocketlistener.c       \
426         gsocketoutputstream.c   \
427         gsocketoutputstream.h   \
428         gproxy.c                \
429         gproxyaddress.c         \
430         gproxyaddressenumerator.c \
431         gsocketservice.c        \
432         gsrvtarget.c            \
433         gtask.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         gtask.h                 \
604         gtcpconnection.h        \
605         gtcpwrapperconnection.h \
606         gthreadedsocketservice.h\
607         gthemedicon.h           \
608         gtlsbackend.h           \
609         gtlscertificate.h       \
610         gtlsclientconnection.h  \
611         gtlsconnection.h        \
612         gtlsdatabase.h          \
613         gtlsfiledatabase.h      \
614         gtlsinteraction.h       \
615         gtlspassword.h          \
616         gtlsserverconnection.h  \
617         gvfs.h                  \
618         gvolume.h               \
619         gvolumemonitor.h        \
620         gzlibcompressor.h       \
621         gzlibdecompressor.h     \
622         $(application_headers)  \
623         $(settings_headers)     \
624         $(gdbus_headers)        \
625         $(NULL)
626
627 gioincludedir=$(includedir)/glib-2.0/gio/
628 gioinclude_HEADERS =            \
629         $(gio_headers)          \
630         gioenumtypes.h
631
632 # these sources (also mentioned above) are generated.
633 BUILT_SOURCES =                 \
634         gconstructor_as_data.h  \
635         gioenumtypes.h          \
636         gioenumtypes.c          \
637         gdbus-daemon-generated.c \
638         gdbus-daemon-generated.h \
639         $(NULL)
640
641 EXTRA_DIST +=                   \
642         data-to-c.pl            \
643         gio.symbols             \
644         gioenumtypes.h.template \
645         gioenumtypes.c.template \
646         makefile.msc            \
647         abicheck.sh             \
648         gio.rc.in               \
649         gschema.dtd             \
650         gconstructor_as_data.h  \
651         $(NULL)
652
653 BUILT_EXTRA_DIST =              \
654         gio.rc
655
656 # This is read by gobject-introspection/misc/ and gtk-doc
657 gio-public-headers.txt: Makefile
658         $(AM_V_GEN) echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
659
660 CLEANFILES = gdbus-daemon-generated.c gdbus-daemon-generated.h gio-public-headers.txt gconstructor_as_data.h
661
662 all-local: gio-public-headers.txt
663
664 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
665         $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
666           cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
667             gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
668
669 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
670         $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
671           cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
672             gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
673
674 gio-2.0.lib: libgio-2.0.la gio.def
675         lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/gio.def -out:$@
676
677 bin_PROGRAMS = gio-querymodules glib-compile-schemas glib-compile-resources gsettings
678
679 glib_compile_resources_LDADD = \
680         $(top_builddir)/glib/libglib-2.0.la \
681         $(top_builddir)/gobject/libgobject-2.0.la       \
682         libgio-2.0.la
683
684 glib_compile_resources_SOURCES = \
685         gvdb/gvdb-format.h              \
686         gvdb/gvdb-builder.h             \
687         gvdb/gvdb-builder.c             \
688         glib-compile-resources.c
689
690 gio_querymodules_SOURCES = gio-querymodules.c
691 gio_querymodules_LDADD   = \
692         $(top_builddir)/glib/libglib-2.0.la             \
693         $(top_builddir)/gobject/libgobject-2.0.la       \
694         $(top_builddir)/gmodule/libgmodule-2.0.la       \
695         libgio-2.0.la                                   \
696         $(NULL)
697
698 gconstructor_as_data.h: $(top_srcdir)/glib/gconstructor.h data-to-c.pl
699         $(AM_V_GEN) $(srcdir)/data-to-c.pl $(top_srcdir)/glib/gconstructor.h gconstructor_code > $@.tmp && mv $@.tmp $@
700
701 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
702 glib_compile_schemas_SOURCES = \
703         gconstructor_as_data.h \
704         gvdb/gvdb-format.h              \
705         gvdb/gvdb-builder.h             \
706         gvdb/gvdb-builder.c             \
707         glib-compile-schemas.c
708
709 gsettings_LDADD = \
710         $(top_builddir)/glib/libglib-2.0.la             \
711         $(top_builddir)/gobject/libgobject-2.0.la       \
712         libgio-2.0.la
713 gsettings_SOURCES = gsettings-tool.c
714
715 schemadir = $(datadir)/glib-2.0/schemas
716 dist_schema_DATA = gschema.dtd
717
718 # ------------------------------------------------------------------------
719 # gdbus(1) tool
720
721 bin_PROGRAMS += gdbus
722 gdbus_SOURCES = gdbus-tool.c
723 gdbus_LDADD = libgio-2.0.la \
724         $(top_builddir)/glib/libglib-2.0.la             \
725         $(top_builddir)/gobject/libgobject-2.0.la
726
727 completiondir = $(datadir)/bash-completion/completions
728 completion_DATA = \
729         completion/gdbus                                \
730         completion/gsettings                            \
731         completion/gresource
732 EXTRA_DIST += $(completion_DATA)
733
734 # ------------------------------------------------------------------------
735 # gresource tool
736
737 bin_PROGRAMS += gresource
738 gresource_SOURCES = gresource-tool.c
739 gresource_CPPFLAGS = $(LIBELF_CFLAGS) $(AM_CPPFLAGS)
740 gresource_LDADD = libgio-2.0.la \
741         $(top_builddir)/glib/libglib-2.0.la             \
742         $(top_builddir)/gobject/libgobject-2.0.la \
743         $(LIBELF_LIBS)
744
745 # ------------------------------------------------------------------------
746
747 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
748         files='$(BUILT_EXTRA_DIST)'; \
749         for f in $$files; do \
750           if test -f $$f; then d=.; else d=$(srcdir); fi; \
751           cp $$d/$$f $(distdir) || exit 1; done
752
753 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
754         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
755                 case $$F in \
756                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c|gcontenttype.c) ;; \
757                 *.c) echo '   <File RelativePath="..\..\..\gio\'$$F'" />' \
758                      ;; \
759                 esac; \
760         done | sort -u >libgio.sourcefiles
761         $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
762         rm libgio.sourcefiles
763
764 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
765         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
766                 case $$F in \
767                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c|gcontenttype.c) ;; \
768                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'" />' \
769                      ;; \
770                 esac; \
771         done | sort -u >libgio.vs10.sourcefiles
772         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
773         rm libgio.vs10.sourcefiles
774
775 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
776         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
777                 case $$F in \
778                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c|gcontenttype.c) ;; \
779                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
780                      ;; \
781                 esac; \
782         done | sort -u >libgio.vs10.sourcefiles.filters
783         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
784         rm libgio.vs10.sourcefiles.filters
785
786 if HAVE_GLIB_RUNTIME_LIBDIR
787 install-data-hook:
788         mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
789         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
790         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
791         rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
792         ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so
793 endif