Remove regexp-based export control
[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 if OS_LINUX
27 if HAVE_GNUC_VISIBILITY
28 TESTS = abicheck.sh
29 endif
30 endif
31
32 AM_CPPFLAGS = \
33         -DG_LOG_DOMAIN=\"GLib-GIO\"                     \
34         $(gmodule_INCLUDES)                             \
35         $(GLIB_DEBUG_FLAGS)                             \
36         -DGIO_COMPILATION                               \
37         -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"  
38
39 lib_LTLIBRARIES = libgio-2.0.la
40
41 gdbus_headers =                         \
42         gdbusauthobserver.h             \
43         gcredentials.h                  \
44         gdbusutils.h                    \
45         gdbuserror.h                    \
46         gdbusaddress.h                  \
47         gdbusconnection.h               \
48         gdbusmessage.h                  \
49         gdbusnameowning.h               \
50         gdbusnamewatching.h             \
51         gdbusproxy.h                    \
52         gdbusintrospection.h            \
53         gdbusmethodinvocation.h         \
54         gdbusserver.h                   \
55         gdbusinterface.h                \
56         gdbusinterfaceskeleton.h        \
57         gdbusobject.h                   \
58         gdbusobjectskeleton.h           \
59         gdbusobjectproxy.h              \
60         gdbusobjectmanager.h            \
61         gdbusobjectmanagerclient.h      \
62         gdbusobjectmanagerserver.h      \
63         gtestdbus.h                     \
64         $(NULL)
65
66 gdbus_sources =                                                         \
67         gdbusutils.h                    gdbusutils.c                    \
68         gdbusaddress.h                  gdbusaddress.c                  \
69         gdbusauthobserver.h             gdbusauthobserver.c             \
70         gdbusauth.h                     gdbusauth.c                     \
71         gdbusauthmechanism.h            gdbusauthmechanism.c            \
72         gdbusauthmechanismanon.h        gdbusauthmechanismanon.c        \
73         gdbusauthmechanismexternal.h    gdbusauthmechanismexternal.c    \
74         gdbusauthmechanismsha1.h        gdbusauthmechanismsha1.c        \
75         gdbuserror.h                    gdbuserror.c                    \
76         gdbusconnection.h               gdbusconnection.c               \
77         gdbusmessage.h                  gdbusmessage.c                  \
78         gdbusnameowning.h               gdbusnameowning.c               \
79         gdbusnamewatching.h             gdbusnamewatching.c             \
80         gdbusproxy.h                    gdbusproxy.c                    \
81         gdbusprivate.h                  gdbusprivate.c                  \
82         gdbusintrospection.h            gdbusintrospection.c            \
83         gdbusmethodinvocation.h         gdbusmethodinvocation.c         \
84         gdbusserver.h                   gdbusserver.c                   \
85         gdbusinterface.h                gdbusinterface.c                \
86         gdbusinterfaceskeleton.h        gdbusinterfaceskeleton.c        \
87         gdbusobject.h                   gdbusobject.c                   \
88         gdbusobjectskeleton.h           gdbusobjectskeleton.c           \
89         gdbusobjectproxy.h              gdbusobjectproxy.c              \
90         gdbusobjectmanager.h            gdbusobjectmanager.c            \
91         gdbusobjectmanagerclient.h      gdbusobjectmanagerclient.c      \
92         gdbusobjectmanagerserver.h      gdbusobjectmanagerserver.c      \
93         gtestdbus.h                     gtestdbus.c                     \
94         $(NULL)
95
96 # These are not built into the library yet
97 EXTRA_DIST += gdbusdaemon.c gdbusdaemon.h dbus-daemon.xml
98
99 gdbus-daemon-generated.h gdbus-daemon-generated.c: $(srcdir)/dbus-daemon.xml $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in
100         $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
101                 UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
102                 $(PYTHON) $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in \
103                 --interface-prefix org. \
104                 --generate-c-code gdbus-daemon-generated \
105                 --c-namespace _G \
106                 $(srcdir)/dbus-daemon.xml \
107                 $(NULL)
108
109 settings_headers = \
110         gsettingsbackend.h              \
111         gsettingsschema.h               \
112         gsettings.h
113
114 settings_sources = \
115         gvdb/gvdb-format.h              \
116         gvdb/gvdb-reader.h              \
117         gvdb/gvdb-reader.c              \
118         gdelayedsettingsbackend.h       \
119         gdelayedsettingsbackend.c       \
120         gkeyfilesettingsbackend.c       \
121         gmemorysettingsbackend.c        \
122         gnullsettingsbackend.c          \
123         gsettingsbackendinternal.h      \
124         gsettingsbackend.c              \
125         gsettingsschema.h               \
126         gsettingsschema-internal.h      \
127         gsettingsschema.c               \
128         gsettings-mapping.h             \
129         gsettings-mapping.c             \
130         gsettings.c
131
132 if OS_WIN32
133 settings_sources += \
134         gregistrysettingsbackend.h      \
135         gregistrysettingsbackend.c
136 endif
137
138 if OS_COCOA
139 settings_sources += \
140         gnextstepsettingsbackend.c
141 endif
142
143 application_headers = \
144         gapplication.h                  \
145         gapplicationcommandline.h       \
146                                         \
147         gactiongroup.h                  \
148         gactionmap.h                    \
149         gsimpleactiongroup.h            \
150         gremoteactiongroup.h            \
151         gactiongroupexporter.h          \
152         gdbusactiongroup.h              \
153         gaction.h                       \
154         gsimpleaction.h                 \
155                                         \
156         gmenumodel.h                    \
157         gmenu.h                         \
158         gmenuexporter.h                 \
159         gdbusmenumodel.h                \
160         $(NULL)
161
162 application_sources = \
163         gapplication.c                          \
164         gapplicationcommandline.c               \
165         gapplicationimpl-dbus.c                 \
166         gapplicationimpl.h                      \
167                                                 \
168         gactiongroup.c                          \
169         gactionmap.c                            \
170         gsimpleactiongroup.c                    \
171         gremoteactiongroup.c                    \
172         gactiongroupexporter.c                  \
173         gdbusactiongroup-private.h              \
174         gdbusactiongroup.c                      \
175         gaction.c                               \
176         gsimpleaction.c                         \
177                                                 \
178         gmenumodel.c                            \
179         gmenu.c                                 \
180         gmenuexporter.c                         \
181         gdbusmenumodel.c                        \
182         $(NULL)
183
184 local_sources = \
185         glocaldirectorymonitor.c        \
186         glocaldirectorymonitor.h        \
187         glocalfile.c                    \
188         glocalfile.h                    \
189         glocalfileenumerator.c          \
190         glocalfileenumerator.h          \
191         glocalfileinfo.c                \
192         glocalfileinfo.h                \
193         glocalfileinputstream.c         \
194         glocalfileinputstream.h         \
195         glocalfilemonitor.c             \
196         glocalfilemonitor.h             \
197         glocalfileoutputstream.c        \
198         glocalfileoutputstream.h        \
199         glocalfileiostream.c            \
200         glocalfileiostream.h            \
201         glocalvfs.c                     \
202         glocalvfs.h                     \
203         gsocks4proxy.c                  \
204         gsocks4proxy.h                  \
205         gsocks4aproxy.c                 \
206         gsocks4aproxy.h                 \
207         gsocks5proxy.c                  \
208         gsocks5proxy.h                  \
209         $(NULL)
210
211 platform_libadd =
212 platform_deps =
213 appinfo_sources =
214
215 if HAVE_INOTIFY
216 SUBDIRS += inotify
217 platform_libadd += inotify/libinotify.la
218 platform_deps += inotify/libinotify.la
219 endif
220
221 if HAVE_KQUEUE
222 SUBDIRS += kqueue
223 platform_libadd += kqueue/libkqueue.la
224 platform_deps += kqueue/libkqueue.la
225 endif
226
227 if HAVE_FEN
228 AM_CPPFLAGS += -DHAVE_FEN
229 SUBDIRS += fen
230 platform_libadd += fen/libfen.la
231 platform_deps += fen/libfen.la
232 endif
233
234 if OS_WIN32
235 SUBDIRS += win32
236 platform_libadd += win32/libgiowin32.la
237 platform_deps += win32/libgiowin32.la
238 endif
239
240 SUBDIRS += .
241
242 if HAVE_FAM
243 SUBDIRS += fam
244 endif
245
246 if OS_UNIX
247 appinfo_sources += gdesktopappinfo.c
248 platform_libadd += xdgmime/libxdgmime.la $(RESOLVER_LIBADD)
249 platform_deps += xdgmime/libxdgmime.la
250 unix_sources = \
251         gfiledescriptorbased.c  \
252         gunixconnection.c       \
253         gunixcredentialsmessage.c       \
254         gunixfdlist.c           \
255         gunixfdmessage.c        \
256         gunixmount.c            \
257         gunixmount.h            \
258         gunixmounts.c           \
259         gunixsocketaddress.c    \
260         gunixvolume.c           \
261         gunixvolume.h           \
262         gunixvolumemonitor.c    \
263         gunixvolumemonitor.h    \
264         gunixinputstream.c      \
265         gunixoutputstream.c     \
266         gcontenttype.c          \
267         gcontenttypeprivate.h   \
268         $(NULL)
269
270
271 giounixincludedir=$(includedir)/gio-unix-2.0/gio
272 giounixinclude_HEADERS = \
273         gdesktopappinfo.h       \
274         gfiledescriptorbased.h  \
275         gunixconnection.h       \
276         gunixcredentialsmessage.h       \
277         gunixmounts.h           \
278         gunixfdlist.h           \
279         gunixfdmessage.h        \
280         gunixinputstream.h      \
281         gunixoutputstream.h     \
282         gunixsocketaddress.h    \
283         $(NULL)
284
285 if HAVE_NETLINK
286 unix_sources +=                  \
287         gnetworkmonitornetlink.c \
288         gnetworkmonitornetlink.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         $(NULL)
311
312 win32_more_sources_for_vcproj = \
313         gwin32appinfo.c \
314         gregistrysettingsbackend.c \
315         win32/gwin32directorymonitor.c \
316         win32/gwinhttpfile.c \
317         win32/gwinhttpfileinputstream.c \
318         win32/gwinhttpfileoutputstream.c \
319         win32/gwinhttpvfs.c
320
321 if OS_WIN32
322 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
323 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
324 win32_sources = $(win32_actual_sources)
325
326 giowin32includedir=$(includedir)/gio-win32-2.0/gio
327 giowin32include_HEADERS = \
328         gwin32inputstream.h \
329         gwin32outputstream.h \
330         $(NULL)
331
332 endif
333
334 if BUILD_MODULAR_TESTS
335 SUBDIRS += tests 
336 endif
337
338 libgio_2_0_la_SOURCES =         \
339         gappinfo.c              \
340         gasynchelper.c          \
341         gasynchelper.h          \
342         gasyncinitable.c        \
343         gasyncresult.c          \
344         gbufferedinputstream.c  \
345         gbufferedoutputstream.c \
346         gcancellable.c          \
347         gcharsetconverter.c     \
348         gconverter.c            \
349         gconverterinputstream.c \
350         gconverteroutputstream.c        \
351         gcredentials.c          \
352         gdatainputstream.c      \
353         gdataoutputstream.c     \
354         gdrive.c                \
355         gdummyfile.h            \
356         gdummyfile.c            \
357         gdummyproxyresolver.c   \
358         gdummyproxyresolver.h   \
359         gdummytlsbackend.c      \
360         gdummytlsbackend.h      \
361         gemblem.h               \
362         gemblem.c               \
363         gemblemedicon.h         \
364         gemblemedicon.c         \
365         gfile.c                 \
366         gfileattribute.c        \
367         gfileattribute-priv.h   \
368         gfileenumerator.c       \
369         gfileicon.c             \
370         gfileinfo.c             \
371         gfileinfo-priv.h        \
372         gfileinputstream.c      \
373         gfilemonitor.c          \
374         gfilenamecompleter.c    \
375         gfileoutputstream.c     \
376         gfileiostream.c         \
377         gfilterinputstream.c    \
378         gfilteroutputstream.c   \
379         gicon.c                 \
380         ginetaddress.c          \
381         ginetaddressmask.c      \
382         ginetsocketaddress.c    \
383         ginitable.c             \
384         ginputstream.c          \
385         gioenums.h              \
386         gioerror.c              \
387         giomodule.c             \
388         giomodule-priv.h        \
389         gioscheduler.c          \
390         giostream.c             \
391         gloadableicon.c         \
392         gmount.c                \
393         gmemoryinputstream.c    \
394         gmemoryoutputstream.c   \
395         gmountoperation.c       \
396         gnativevolumemonitor.c  \
397         gnativevolumemonitor.h  \
398         gnetworkaddress.c       \
399         gnetworking.c           \
400         gnetworkingprivate.h    \
401         gnetworkmonitor.c       \
402         gnetworkmonitorbase.c   \
403         gnetworkmonitorbase.h   \
404         gnetworkservice.c       \
405         goutputstream.c         \
406         gpermission.c           \
407         gpollableinputstream.c  \
408         gpollableoutputstream.c \
409         gpollableutils.c        \
410         gpollfilemonitor.c      \
411         gpollfilemonitor.h      \
412         gproxyresolver.c        \
413         gresolver.c             \
414         gresource.c             \
415         gresourcefile.c         \
416         gresourcefile.h         \
417         gseekable.c             \
418         gsimpleasyncresult.c    \
419         gsimplepermission.c     \
420         gsocket.c               \
421         gsocketaddress.c        \
422         gsocketaddressenumerator.c \
423         gsocketclient.c         \
424         gsocketconnectable.c    \
425         gsocketconnection.c     \
426         gsocketcontrolmessage.c \
427         gsocketinputstream.c    \
428         gsocketinputstream.h    \
429         gsocketlistener.c       \
430         gsocketoutputstream.c   \
431         gsocketoutputstream.h   \
432         gproxy.c                \
433         gproxyaddress.c         \
434         gproxyaddressenumerator.c \
435         gsocketservice.c        \
436         gsrvtarget.c            \
437         gtask.c                 \
438         gtcpconnection.c        \
439         gtcpwrapperconnection.c \
440         gthreadedsocketservice.c\
441         gthemedicon.c           \
442         gthreadedresolver.c     \
443         gthreadedresolver.h     \
444         gtlsbackend.c           \
445         gtlscertificate.c       \
446         gtlsclientconnection.c  \
447         gtlsconnection.c        \
448         gtlsdatabase.c          \
449         gtlsfiledatabase.c      \
450         gtlsinteraction.c       \
451         gtlspassword.c          \
452         gtlsserverconnection.c  \
453         gunionvolumemonitor.c   \
454         gunionvolumemonitor.h   \
455         gvfs.c                  \
456         gvolume.c               \
457         gvolumemonitor.c        \
458         gzlibcompressor.c       \
459         gzlibdecompressor.c     \
460         gmountprivate.h         \
461         gioenumtypes.h          \
462         gioenumtypes.c          \
463         $(appinfo_sources)      \
464         $(unix_sources)         \
465         $(win32_sources)        \
466         $(application_sources)  \
467         $(settings_sources)     \
468         $(gdbus_sources)        \
469         $(local_sources)        \
470         $(NULL)
471
472 EXTRA_DIST += strinfo.c
473
474 libgio_2_0_la_LIBADD = \
475         $(top_builddir)/glib/libglib-2.0.la             \
476         $(top_builddir)/gobject/libgobject-2.0.la       \
477         $(top_builddir)/gmodule/libgmodule-2.0.la       \
478         $(platform_libadd)                              \
479         $(ZLIB_LIBS)                                    \
480         $(SELINUX_LIBS)                                 \
481         $(GLIB_LIBS)                                    \
482         $(XATTR_LIBS)                                   \
483         $(NETWORK_LIBS)                                 \
484         $(NULL)
485
486 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
487
488 if PLATFORM_WIN32
489 no_undefined = -no-undefined
490 endif
491
492 if OS_WIN32_AND_DLL_COMPILATION
493 gio_win32_res = gio-win32-res.o
494 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
495 endif
496
497 install-data-local: install-ms-lib
498         $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
499
500 uninstall-local: uninstall-ms-lib
501
502 libgio_2_0_la_CFLAGS = $(AM_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
503 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
504         $(gio_win32_res_ldflag) \
505         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
506         -export-dynamic $(no_undefined)
507
508 if OS_COCOA
509 # This is dumb.  The ObjC source file should be properly named .m
510 libgio_2_0_la_CFLAGS += -xobjective-c
511 libgio_2_0_la_LDFLAGS += -Wl,-framework,Foundation
512 endif
513
514 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
515
516 gio-win32-res.o: gio.rc
517         $(WINDRES) gio.rc $@
518
519 gio_headers =                   \
520         gappinfo.h              \
521         gasyncinitable.h        \
522         gasyncresult.h          \
523         gbufferedinputstream.h  \
524         gbufferedoutputstream.h \
525         gcancellable.h          \
526         gcontenttype.h          \
527         gcharsetconverter.h     \
528         gconverter.h            \
529         gconverterinputstream.h \
530         gconverteroutputstream.h        \
531         gdatainputstream.h      \
532         gdataoutputstream.h     \
533         gdrive.h                \
534         gemblem.h               \
535         gemblemedicon.h         \
536         gfile.h                 \
537         gfileattribute.h        \
538         gfileenumerator.h       \
539         gfileicon.h             \
540         gfileinfo.h             \
541         gfileinputstream.h      \
542         gfilemonitor.h          \
543         gfilenamecompleter.h    \
544         gfileoutputstream.h     \
545         gfileiostream.h         \
546         gfilterinputstream.h    \
547         gfilteroutputstream.h   \
548         gicon.h                 \
549         ginetaddress.h          \
550         ginetaddressmask.h      \
551         ginetsocketaddress.h    \
552         ginputstream.h          \
553         ginitable.h             \
554         gio.h                   \
555         giotypes.h              \
556         gioenums.h              \
557         gioerror.h              \
558         giomodule.h             \
559         gioscheduler.h          \
560         giostream.h             \
561         gloadableicon.h         \
562         gmount.h                \
563         gmemoryinputstream.h    \
564         gmemoryoutputstream.h   \
565         gmountoperation.h       \
566         gnativevolumemonitor.h  \
567         gnetworkaddress.h       \
568         gnetworking.h           \
569         gnetworkmonitor.h       \
570         gnetworkservice.h       \
571         goutputstream.h         \
572         gpermission.h           \
573         gpollableinputstream.h  \
574         gpollableoutputstream.h \
575         gpollableutils.h        \
576         gproxyaddress.h         \
577         gproxy.h                \
578         gproxyaddressenumerator.h \
579         gproxyresolver.h        \
580         gresolver.h             \
581         gresource.h             \
582         gseekable.h             \
583         gsimpleasyncresult.h    \
584         gsimplepermission.h     \
585         gsocket.h               \
586         gsocketaddress.h        \
587         gsocketaddressenumerator.h \
588         gsocketclient.h         \
589         gsocketconnectable.h    \
590         gsocketconnection.h     \
591         gsocketcontrolmessage.h \
592         gsocketlistener.h       \
593         gsocketservice.h        \
594         gsrvtarget.h            \
595         gtask.h                 \
596         gtcpconnection.h        \
597         gtcpwrapperconnection.h \
598         gthreadedsocketservice.h\
599         gthemedicon.h           \
600         gtlsbackend.h           \
601         gtlscertificate.h       \
602         gtlsclientconnection.h  \
603         gtlsconnection.h        \
604         gtlsdatabase.h          \
605         gtlsfiledatabase.h      \
606         gtlsinteraction.h       \
607         gtlspassword.h          \
608         gtlsserverconnection.h  \
609         gvfs.h                  \
610         gvolume.h               \
611         gvolumemonitor.h        \
612         gzlibcompressor.h       \
613         gzlibdecompressor.h     \
614         $(application_headers)  \
615         $(settings_headers)     \
616         $(gdbus_headers)        \
617         $(NULL)
618
619 gioincludedir=$(includedir)/glib-2.0/gio/
620 gioinclude_HEADERS =            \
621         $(gio_headers)          \
622         gioenumtypes.h
623
624 # these sources (also mentioned above) are generated.
625 BUILT_SOURCES =                 \
626         gconstructor_as_data.h  \
627         gioenumtypes.h          \
628         gioenumtypes.c          \
629         gdbus-daemon-generated.c \
630         gdbus-daemon-generated.h \
631         gnetworking.h           \
632         $(NULL)
633
634 EXTRA_DIST +=                   \
635         data-to-c.pl            \
636         gio.symbols             \
637         gioenumtypes.h.template \
638         gioenumtypes.c.template \
639         makefile.msc            \
640         abicheck.sh             \
641         gio.rc.in               \
642         gschema.dtd             \
643         gconstructor_as_data.h  \
644         gnetworking.h.win32     \
645         $(NULL)
646
647 BUILT_EXTRA_DIST =              \
648         gio.rc
649
650 # This is read by gobject-introspection/misc/ and gtk-doc
651 gio-public-headers.txt: Makefile
652         $(AM_V_GEN) echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
653
654 CLEANFILES = gdbus-daemon-generated.c gdbus-daemon-generated.h gio-public-headers.txt gconstructor_as_data.h
655
656
657 DISTCLEANFILES =                \
658         gioenumtypes.h          \
659         gioenumtypes.c
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