a84830b91fe3e4428fd8bd3c26a6f7d68b8623b7
[platform/upstream/glib.git] / gio / Makefile.am
1 include $(top_srcdir)/glib.mk
2
3 SUBDIRS = gdbus-2.0/codegen
4
5 if OS_UNIX
6 SUBDIRS += xdgmime
7 endif
8
9 if OS_WIN32_AND_DLL_COMPILATION
10 if MS_LIB_AVAILABLE
11 noinst_DATA += gio-2.0.lib
12
13 install_ms_lib_cmd = $(INSTALL) gio-2.0.lib $(DESTDIR)$(libdir)
14 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gio-2.0.lib
15 endif
16 endif
17
18 install-ms-lib:
19         $(install_ms_lib_cmd)
20
21 uninstall-ms-lib:
22         $(uninstall_ms_lib_cmd)
23
24 AM_CPPFLAGS = \
25         -DG_LOG_DOMAIN=\"GLib-GIO\"                     \
26         $(gmodule_INCLUDES)                             \
27         $(GLIB_DEBUG_FLAGS)                             \
28         -DGIO_COMPILATION                               \
29         -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"  
30
31 AM_CFLAGS = $(GLIB_WARN_CFLAGS)
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         gpropertyaction.h               \
149         gsimpleaction.h                 \
150                                         \
151         gmenumodel.h                    \
152         gmenu.h                         \
153         gmenuexporter.h                 \
154         gdbusmenumodel.h                \
155         gnotification.h                 \
156         $(NULL)
157
158 application_sources = \
159         gapplication.c                          \
160         gapplicationcommandline.c               \
161         gapplicationimpl-dbus.c                 \
162         gapplicationimpl.h                      \
163                                                 \
164         gactiongroup.c                          \
165         gactionmap.c                            \
166         gsimpleactiongroup.c                    \
167         gremoteactiongroup.c                    \
168         gactiongroupexporter.c                  \
169         gdbusactiongroup-private.h              \
170         gdbusactiongroup.c                      \
171         gaction.c                               \
172         gpropertyaction.c                       \
173         gsimpleaction.c                         \
174                                                 \
175         gmenumodel.c                            \
176         gmenu.c                                 \
177         gmenuexporter.c                         \
178         gdbusmenumodel.c                        \
179         gnotification-private.h                 \
180         gnotificationbackend.h                  \
181         gnotification.c                         \
182         gnotificationbackend.c                  \
183         $(NULL)
184
185 local_sources = \
186         ghttpproxy.c                    \
187         ghttpproxy.h                    \
188         glocalfile.c                    \
189         glocalfile.h                    \
190         glocalfileenumerator.c          \
191         glocalfileenumerator.h          \
192         glocalfileinfo.c                \
193         glocalfileinfo.h                \
194         glocalfileinputstream.c         \
195         glocalfileinputstream.h         \
196         glocalfilemonitor.c             \
197         glocalfilemonitor.h             \
198         glocalfileoutputstream.c        \
199         glocalfileoutputstream.h        \
200         glocalfileiostream.c            \
201         glocalfileiostream.h            \
202         glocalvfs.c                     \
203         glocalvfs.h                     \
204         gsocks4proxy.c                  \
205         gsocks4proxy.h                  \
206         gsocks4aproxy.c                 \
207         gsocks4aproxy.h                 \
208         gsocks5proxy.c                  \
209         gsocks5proxy.h                  \
210         thumbnail-verify.h              \
211         thumbnail-verify.c              \
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_KQUEUE
225 SUBDIRS += kqueue
226 platform_libadd += kqueue/libkqueue.la
227 platform_deps += kqueue/libkqueue.la
228 endif
229
230 if OS_WIN32
231 SUBDIRS += win32
232 platform_libadd += win32/libgiowin32.la
233 platform_deps += win32/libgiowin32.la
234 endif
235
236 SUBDIRS += . tests
237
238 if HAVE_FAM
239 SUBDIRS += fam
240 endif
241
242 if OS_UNIX
243 appinfo_sources += gdesktopappinfo.c
244 platform_libadd += xdgmime/libxdgmime.la
245 platform_deps += xdgmime/libxdgmime.la
246 unix_sources = \
247         gfiledescriptorbased.c  \
248         gunixconnection.c       \
249         gunixcredentialsmessage.c       \
250         gunixfdlist.c           \
251         gunixfdmessage.c        \
252         gunixmount.c            \
253         gunixmount.h            \
254         gunixmounts.c           \
255         gunixsocketaddress.c    \
256         gunixvolume.c           \
257         gunixvolume.h           \
258         gunixvolumemonitor.c    \
259         gunixvolumemonitor.h    \
260         gunixinputstream.c      \
261         gunixoutputstream.c     \
262         gcontenttype.c          \
263         gcontenttypeprivate.h   \
264         gfdonotificationbackend.c \
265         ggtknotificationbackend.c \
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         gnetworkmonitornm.c      \
288         gnetworkmonitornm.h      \
289         $(NULL)
290 endif
291 endif
292
293 gdbus_daemon_sources = \
294         gdbusdaemon.c \
295         gdbusdaemon.h \
296         gdbus-daemon-generated.c \
297         gdbus-daemon-generated.h \
298         $(NULL)
299
300 win32_actual_sources = \
301         $(gdbus_daemon_sources) \
302         gcontenttype-win32.c \
303         gwin32mount.c \
304         gwin32mount.h \
305         gwin32volumemonitor.c \
306         gwin32volumemonitor.h \
307         gwin32inputstream.c \
308         gwin32outputstream.c \
309         gwin32outputstream.h \
310         gwin32networking.h \
311         $(NULL)
312
313 win32_more_sources_for_vcproj = \
314         gwin32appinfo.c \
315         gregistrysettingsbackend.c \
316         win32/gwin32directorymonitor.c \
317         win32/gwinhttpfile.c \
318         win32/gwinhttpfileinputstream.c \
319         win32/gwinhttpfileoutputstream.c \
320         win32/gwinhttpvfs.c
321
322 if OS_WIN32
323 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
324 platform_libadd += -lshlwapi -lws2_32 -ldnsapi -liphlpapi
325 win32_sources = $(win32_actual_sources)
326
327 giowin32includedir=$(includedir)/gio-win32-2.0/gio
328 giowin32include_HEADERS = \
329         gwin32inputstream.h \
330         gwin32outputstream.h \
331         $(NULL)
332
333 endif
334
335 libgio_2_0_la_SOURCES =         \
336         gappinfo.c              \
337         gappinfoprivate.h       \
338         gasynchelper.c          \
339         gasynchelper.h          \
340         gasyncinitable.c        \
341         gasyncresult.c          \
342         gbufferedinputstream.c  \
343         gbufferedoutputstream.c \
344         gbytesicon.c            \
345         gcancellable.c          \
346         gcharsetconverter.c     \
347         gcontextspecificgroup.c \
348         gcontextspecificgroup.h \
349         gconverter.c            \
350         gconverterinputstream.c \
351         gconverteroutputstream.c        \
352         gcredentials.c          \
353         gcredentialsprivate.h   \
354         gdatainputstream.c      \
355         gdataoutputstream.c     \
356         gdrive.c                \
357         gdummyfile.h            \
358         gdummyfile.c            \
359         gdummyproxyresolver.c   \
360         gdummyproxyresolver.h   \
361         gdummytlsbackend.c      \
362         gdummytlsbackend.h      \
363         gemblem.h               \
364         gemblem.c               \
365         gemblemedicon.h         \
366         gemblemedicon.c         \
367         gfile.c                 \
368         gfileattribute.c        \
369         gfileattribute-priv.h   \
370         gfileenumerator.c       \
371         gfileicon.c             \
372         gfileinfo.c             \
373         gfileinfo-priv.h        \
374         gfileinputstream.c      \
375         gfilemonitor.c          \
376         gfilenamecompleter.c    \
377         gfileoutputstream.c     \
378         gfileiostream.c         \
379         gfilterinputstream.c    \
380         gfilteroutputstream.c   \
381         gicon.c                 \
382         ginetaddress.c          \
383         ginetaddressmask.c      \
384         ginetsocketaddress.c    \
385         ginitable.c             \
386         ginputstream.c          \
387         gioenums.h              \
388         gioerror.c              \
389         giomodule.c             \
390         giomodule-priv.h        \
391         gioscheduler.c          \
392         giostream.c             \
393         gioprivate.h            \
394         giowin32-priv.h         \
395         gloadableicon.c         \
396         gmount.c                \
397         gmemoryinputstream.c    \
398         gmemoryoutputstream.c   \
399         gmountoperation.c       \
400         gnativevolumemonitor.c  \
401         gnativevolumemonitor.h  \
402         gnetworkaddress.c       \
403         gnetworking.c           \
404         gnetworkingprivate.h    \
405         gnetworkmonitor.c       \
406         gnetworkmonitorbase.c   \
407         gnetworkmonitorbase.h   \
408         gnetworkservice.c       \
409         goutputstream.c         \
410         gpermission.c           \
411         gpollableinputstream.c  \
412         gpollableoutputstream.c \
413         gpollableutils.c        \
414         gpollfilemonitor.c      \
415         gpollfilemonitor.h      \
416         gproxy.c                \
417         gproxyaddress.c         \
418         gproxyaddressenumerator.c \
419         gproxyresolver.c        \
420         gresolver.c             \
421         gresource.c             \
422         gresourcefile.c         \
423         gresourcefile.h         \
424         gseekable.c             \
425         gsimpleasyncresult.c    \
426         gsimpleiostream.c       \
427         gsimplepermission.c     \
428         gsocket.c               \
429         gsocketaddress.c        \
430         gsocketaddressenumerator.c \
431         gsocketclient.c         \
432         gsocketconnectable.c    \
433         gsocketconnection.c     \
434         gsocketcontrolmessage.c \
435         gsocketinputstream.c    \
436         gsocketinputstream.h    \
437         gsocketlistener.c       \
438         gsocketoutputstream.c   \
439         gsocketoutputstream.h   \
440         gsubprocesslauncher.c   \
441         gsubprocess.c           \
442         gsubprocesslauncher-private.h   \
443         gsocketservice.c        \
444         gsrvtarget.c            \
445         gsimpleproxyresolver.c  \
446         gtask.c                 \
447         gtcpconnection.c        \
448         gtcpwrapperconnection.c \
449         gthreadedsocketservice.c\
450         gthemedicon.c           \
451         gthreadedresolver.c     \
452         gthreadedresolver.h     \
453         gtlsbackend.c           \
454         gtlscertificate.c       \
455         gtlsclientconnection.c  \
456         gtlsconnection.c        \
457         gtlsdatabase.c          \
458         gtlsfiledatabase.c      \
459         gtlsinteraction.c       \
460         gtlspassword.c          \
461         gtlsserverconnection.c  \
462         gunionvolumemonitor.c   \
463         gunionvolumemonitor.h   \
464         gvfs.c                  \
465         gvolume.c               \
466         gvolumemonitor.c        \
467         gzlibcompressor.c       \
468         gzlibdecompressor.c     \
469         gmountprivate.h         \
470         gioenumtypes.h          \
471         gioenumtypes.c          \
472         glistmodel.c            \
473         gliststore.c            \
474         $(appinfo_sources)      \
475         $(unix_sources)         \
476         $(win32_sources)        \
477         $(application_sources)  \
478         $(settings_sources)     \
479         $(gdbus_sources)        \
480         $(local_sources)        \
481         $(NULL)
482
483 EXTRA_DIST += strinfo.c
484
485 libgio_2_0_la_LIBADD = \
486         $(top_builddir)/gobject/libgobject-2.0.la       \
487         $(top_builddir)/gmodule/libgmodule-2.0.la       \
488         $(top_builddir)/glib/libglib-2.0.la             \
489         $(platform_libadd)                              \
490         $(ZLIB_LIBS)                                    \
491         $(SELINUX_LIBS)                                 \
492         $(GLIB_LIBS)                                    \
493         $(XATTR_LIBS)                                   \
494         $(NETWORK_LIBS)                                 \
495         $(NULL)
496
497 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
498
499 if PLATFORM_WIN32
500 no_undefined = -no-undefined
501 endif
502
503 if OS_WIN32_AND_DLL_COMPILATION
504 gio_win32_res = gio-win32-res.o
505 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
506 endif
507
508 install-data-local: install-ms-lib
509         $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
510
511 uninstall-local: uninstall-ms-lib
512
513 libgio_2_0_la_CFLAGS = $(AM_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
514 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
515         $(gio_win32_res_ldflag) \
516         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
517         -export-dynamic $(no_undefined)
518
519 if OS_COCOA
520 # This is dumb.  The ObjC source file should be properly named .m
521 libgio_2_0_la_CFLAGS += -xobjective-c
522 libgio_2_0_la_LDFLAGS += -Wl,-framework,Foundation
523 endif
524
525 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
526
527 gio-win32-res.o: gio.rc
528         $(WINDRES) gio.rc $@
529
530 gio_headers =                   \
531         gappinfo.h              \
532         gasyncinitable.h        \
533         gasyncresult.h          \
534         gbufferedinputstream.h  \
535         gbufferedoutputstream.h \
536         gbytesicon.h            \
537         gcancellable.h          \
538         gcontenttype.h          \
539         gcharsetconverter.h     \
540         gconverter.h            \
541         gconverterinputstream.h \
542         gconverteroutputstream.h        \
543         gdatainputstream.h      \
544         gdataoutputstream.h     \
545         gdrive.h                \
546         gemblem.h               \
547         gemblemedicon.h         \
548         gfile.h                 \
549         gfileattribute.h        \
550         gfileenumerator.h       \
551         gfileicon.h             \
552         gfileinfo.h             \
553         gfileinputstream.h      \
554         gfilemonitor.h          \
555         gfilenamecompleter.h    \
556         gfileoutputstream.h     \
557         gfileiostream.h         \
558         gfilterinputstream.h    \
559         gfilteroutputstream.h   \
560         gicon.h                 \
561         ginetaddress.h          \
562         ginetaddressmask.h      \
563         ginetsocketaddress.h    \
564         ginputstream.h          \
565         ginitable.h             \
566         gio.h                   \
567         gio-autocleanups.h      \
568         giotypes.h              \
569         gioenums.h              \
570         gioerror.h              \
571         giomodule.h             \
572         gioscheduler.h          \
573         giostream.h             \
574         gloadableicon.h         \
575         gmount.h                \
576         gmemoryinputstream.h    \
577         gmemoryoutputstream.h   \
578         gmountoperation.h       \
579         gnativevolumemonitor.h  \
580         gnetworkaddress.h       \
581         gnetworkmonitor.h       \
582         gnetworkservice.h       \
583         goutputstream.h         \
584         gpermission.h           \
585         gpollableinputstream.h  \
586         gpollableoutputstream.h \
587         gpollableutils.h        \
588         gproxyaddress.h         \
589         gproxy.h                \
590         gproxyaddressenumerator.h \
591         gproxyresolver.h        \
592         gresolver.h             \
593         gresource.h             \
594         gseekable.h             \
595         gsimpleasyncresult.h    \
596         gsimpleiostream.h       \
597         gsimplepermission.h     \
598         gsocket.h               \
599         gsocketaddress.h        \
600         gsocketaddressenumerator.h \
601         gsocketclient.h         \
602         gsocketconnectable.h    \
603         gsocketconnection.h     \
604         gsocketcontrolmessage.h \
605         gsocketlistener.h       \
606         gsocketservice.h        \
607         gsrvtarget.h            \
608         gsimpleproxyresolver.h  \
609         gtask.h                 \
610         gsubprocess.h           \
611         gsubprocesslauncher.h   \
612         gtcpconnection.h        \
613         gtcpwrapperconnection.h \
614         gthreadedsocketservice.h\
615         gthemedicon.h           \
616         gtlsbackend.h           \
617         gtlscertificate.h       \
618         gtlsclientconnection.h  \
619         gtlsconnection.h        \
620         gtlsdatabase.h          \
621         gtlsfiledatabase.h      \
622         gtlsinteraction.h       \
623         gtlspassword.h          \
624         gtlsserverconnection.h  \
625         gvfs.h                  \
626         gvolume.h               \
627         gvolumemonitor.h        \
628         gzlibcompressor.h       \
629         gzlibdecompressor.h     \
630         glistmodel.h            \
631         gliststore.h            \
632         $(application_headers)  \
633         $(settings_headers)     \
634         $(gdbus_headers)        \
635         $(NULL)
636
637 gioincludedir=$(includedir)/glib-2.0/gio/
638 gioinclude_HEADERS =            \
639         $(gio_headers)          \
640         gioenumtypes.h
641
642 nodist_gioinclude_HEADERS =     \
643         gnetworking.h           \
644         $(NULL)
645
646 # these sources (also mentioned above) are generated.
647 BUILT_SOURCES +=                \
648         gconstructor_as_data.h  \
649         gioenumtypes.h          \
650         gioenumtypes.c          \
651         gdbus-daemon-generated.c \
652         gdbus-daemon-generated.h \
653         gnetworking.h           \
654         $(NULL)
655
656 EXTRA_DIST +=                   \
657         data-to-c.pl            \
658         gioenumtypes.h.template \
659         gioenumtypes.c.template \
660         makefile.msc            \
661         gio.rc.in               \
662         gschema.dtd             \
663         gconstructor_as_data.h  \
664         gnetworking.h.win32     \
665         $(NULL)
666
667 BUILT_EXTRA_DIST +=             \
668         gio.rc
669
670 # This is read by gobject-introspection/misc/ and gtk-doc
671 gio-public-headers.txt: Makefile
672         $(AM_V_GEN) echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
673
674 CLEANFILES += gdbus-daemon-generated.c gdbus-daemon-generated.h gio-public-headers.txt gconstructor_as_data.h
675
676
677 DISTCLEANFILES +=               \
678         gioenumtypes.h          \
679         gioenumtypes.c
680
681 all-local: gio-public-headers.txt
682
683 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
684         $(AM_V_GEN) $(top_builddir)/gobject/glib-mkenums --template $(filter %.template,$^) $(filter-out %.template,$^) > \
685             gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
686
687 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
688         $(AM_V_GEN) $(top_builddir)/gobject/glib-mkenums --template $(filter %.template,$^) $(filter-out %.template,$^) > \
689             gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
690
691 gio.def: libgio-2.0.la
692         $(AM_V_GEN) dumpbin.exe -exports .libs/libgio-2.0-0.dll | awk 'BEGIN { print "EXPORTS" } / +[[:digit:]]+ +[[:xdigit:]]+ +[[:xdigit:]]+/{ print $$4 }' > gio.def.tmp && mv gio.def.tmp gio.def
693
694 gio-2.0.lib: libgio-2.0.la gio.def
695         $(AM_V_GEN) lib.exe -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/gio.def -out:$@
696
697 bin_PROGRAMS = gio-querymodules glib-compile-schemas glib-compile-resources gsettings
698
699 glib_compile_resources_LDADD = libgio-2.0.la            \
700         $(top_builddir)/gobject/libgobject-2.0.la       \
701         $(top_builddir)/glib/libglib-2.0.la             \
702         $(NULL)
703
704 glib_compile_resources_SOURCES = \
705         gvdb/gvdb-format.h              \
706         gvdb/gvdb-builder.h             \
707         gvdb/gvdb-builder.c             \
708         glib-compile-resources.c
709
710 gio_querymodules_SOURCES = gio-querymodules.c
711 gio_querymodules_LDADD   = libgio-2.0.la                \
712         $(top_builddir)/gobject/libgobject-2.0.la       \
713         $(top_builddir)/gmodule/libgmodule-2.0.la       \
714         $(top_builddir)/glib/libglib-2.0.la             \
715         $(NULL)
716
717 gconstructor_as_data.h: $(top_srcdir)/glib/gconstructor.h data-to-c.pl
718         $(AM_V_GEN) $(srcdir)/data-to-c.pl $(top_srcdir)/glib/gconstructor.h gconstructor_code > $@.tmp && mv $@.tmp $@
719
720 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
721 glib_compile_schemas_SOURCES = \
722         gconstructor_as_data.h \
723         gvdb/gvdb-format.h              \
724         gvdb/gvdb-builder.h             \
725         gvdb/gvdb-builder.c             \
726         glib-compile-schemas.c
727
728 gsettings_LDADD = libgio-2.0.la                         \
729         $(top_builddir)/gobject/libgobject-2.0.la       \
730         $(top_builddir)/glib/libglib-2.0.la             \
731         $(NULL)
732 gsettings_SOURCES = gsettings-tool.c
733
734 schemadir = $(datadir)/glib-2.0/schemas
735 dist_schema_DATA = gschema.dtd
736
737 # ------------------------------------------------------------------------
738 # gdbus(1) tool
739
740 bin_PROGRAMS += gdbus
741 gdbus_SOURCES = gdbus-tool.c
742 gdbus_LDADD = libgio-2.0.la                             \
743         $(top_builddir)/gobject/libgobject-2.0.la       \
744         $(top_builddir)/glib/libglib-2.0.la             \
745         $(NULL)
746
747 if OS_UNIX
748 # ------------------------------------------------------------------------
749 # gapplication(1) tool
750 bin_PROGRAMS += gapplication
751 gapplication_SOURCES = gapplication-tool.c
752 gapplication_LDADD = libgio-2.0.la                      \
753         $(top_builddir)/gobject/libgobject-2.0.la       \
754         $(top_builddir)/glib/libglib-2.0.la             \
755         $(NULL)
756 endif
757
758 completiondir = $(datadir)/bash-completion/completions
759 completion_DATA = \
760         completion/gapplication                         \
761         completion/gdbus                                \
762         completion/gsettings                            \
763         completion/gresource
764 EXTRA_DIST += $(completion_DATA)
765
766 # ------------------------------------------------------------------------
767 # gresource tool
768
769 bin_PROGRAMS += gresource
770 gresource_SOURCES = gresource-tool.c
771 gresource_CPPFLAGS = $(LIBELF_CFLAGS) $(AM_CPPFLAGS)
772 gresource_LDADD = libgio-2.0.la                         \
773         $(top_builddir)/gobject/libgobject-2.0.la       \
774         $(top_builddir)/glib/libglib-2.0.la             \
775         $(LIBELF_LIBS)
776
777 # ------------------------------------------------------------------------
778
779 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
780         files='$(BUILT_EXTRA_DIST)'; \
781         for f in $$files; do \
782           if test -f $$f; then d=.; else d=$(srcdir); fi; \
783           cp $$d/$$f $(distdir) || exit 1; done
784
785 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
786         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
787                 case $$F in \
788                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c|gcontenttype.c|gnetworkmonitornm.c) ;; \
789                 *.c) echo '   <File RelativePath="..\..\..\gio\'$$F'" />' \
790                      ;; \
791                 esac; \
792         done | sort -u >libgio.sourcefiles
793         $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
794         rm libgio.sourcefiles
795
796 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
797         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
798                 case $$F in \
799                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c|gcontenttype.c|gnetworkmonitornm.c) ;; \
800                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'" />' \
801                      ;; \
802                 esac; \
803         done | sort -u >libgio.vs10.sourcefiles
804         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
805         rm libgio.vs10.sourcefiles
806
807 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
808         for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
809                 case $$F in \
810                 gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c|gcontenttype.c|gnetworkmonitornm.c) ;; \
811                 *.c) echo '    <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
812                      ;; \
813                 esac; \
814         done | sort -u >libgio.vs10.sourcefiles.filters
815         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
816         rm libgio.vs10.sourcefiles.filters
817
818 if HAVE_GLIB_RUNTIME_LIBDIR
819 install-data-hook:
820         mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
821         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
822         mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
823         rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
824         ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so
825 endif