Makefile.am 22 KB
Newer Older
1
include $(top_srcdir)/glib.mk
2

3
SUBDIRS = gdbus-2.0/codegen
4 5

if OS_UNIX
6
SUBDIRS += xdgmime
7 8
endif

9
if OS_WIN32_AND_DLL_COMPILATION
10
if MS_LIB_AVAILABLE
11
noinst_DATA += gio-2.0.lib
12

13 14 15 16
install_ms_lib_cmd = $(INSTALL) gio-2.0.lib $(DESTDIR)$(libdir)
uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gio-2.0.lib
endif
endif
17 18

install-ms-lib:
19 20
	$(install_ms_lib_cmd)

21
uninstall-ms-lib:
22
	$(uninstall_ms_lib_cmd)
23

24 25
AM_CPPFLAGS = \
	-DG_LOG_DOMAIN=\"GLib-GIO\"			\
26
	$(gmodule_INCLUDES)				\
27
	$(GLIB_DEBUG_FLAGS)				\
28
	-DGIO_COMPILATION				\
29
	-DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"	
30

31 32
AM_CFLAGS = $(GLIB_WARN_CFLAGS)

33 34
lib_LTLIBRARIES = libgio-2.0.la

35 36 37 38 39 40 41 42 43 44 45 46 47 48
gdbus_headers = 			\
	gdbusauthobserver.h		\
	gcredentials.h			\
	gdbusutils.h			\
	gdbuserror.h			\
	gdbusaddress.h			\
	gdbusconnection.h		\
	gdbusmessage.h			\
	gdbusnameowning.h		\
	gdbusnamewatching.h		\
	gdbusproxy.h			\
	gdbusintrospection.h		\
	gdbusmethodinvocation.h		\
	gdbusserver.h			\
49
	gdbusinterface.h		\
50
	gdbusinterfaceskeleton.h	\
51
	gdbusobject.h			\
52
	gdbusobjectskeleton.h		\
53 54 55 56
	gdbusobjectproxy.h		\
	gdbusobjectmanager.h		\
	gdbusobjectmanagerclient.h	\
	gdbusobjectmanagerserver.h	\
Xavier Claessens's avatar
Xavier Claessens committed
57
	gtestdbus.h			\
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
	$(NULL)

gdbus_sources = 							\
	gdbusutils.h			gdbusutils.c			\
	gdbusaddress.h			gdbusaddress.c			\
	gdbusauthobserver.h		gdbusauthobserver.c		\
	gdbusauth.h			gdbusauth.c			\
	gdbusauthmechanism.h		gdbusauthmechanism.c		\
	gdbusauthmechanismanon.h	gdbusauthmechanismanon.c	\
	gdbusauthmechanismexternal.h	gdbusauthmechanismexternal.c	\
	gdbusauthmechanismsha1.h	gdbusauthmechanismsha1.c	\
	gdbuserror.h			gdbuserror.c			\
	gdbusconnection.h		gdbusconnection.c		\
	gdbusmessage.h			gdbusmessage.c			\
	gdbusnameowning.h		gdbusnameowning.c		\
	gdbusnamewatching.h		gdbusnamewatching.c		\
	gdbusproxy.h			gdbusproxy.c			\
	gdbusprivate.h			gdbusprivate.c			\
	gdbusintrospection.h		gdbusintrospection.c		\
	gdbusmethodinvocation.h		gdbusmethodinvocation.c		\
	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 84 85 86
	gdbusobjectproxy.h		gdbusobjectproxy.c		\
	gdbusobjectmanager.h		gdbusobjectmanager.c		\
	gdbusobjectmanagerclient.h	gdbusobjectmanagerclient.c	\
	gdbusobjectmanagerserver.h	gdbusobjectmanagerserver.c	\
Xavier Claessens's avatar
Xavier Claessens committed
87
	gtestdbus.h			gtestdbus.c			\
88 89
	$(NULL)

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 95
	$(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
		UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
96
		$(PYTHON) $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in \
97 98 99 100 101 102
		--interface-prefix org. \
		--generate-c-code gdbus-daemon-generated \
		--c-namespace _G \
		$(srcdir)/dbus-daemon.xml \
		$(NULL)

Allison Karlitskaya's avatar
Allison Karlitskaya committed
103 104
settings_headers = \
	gsettingsbackend.h		\
105
	gsettingsschema.h		\
Allison Karlitskaya's avatar
Allison Karlitskaya committed
106 107
	gsettings.h

Allison Karlitskaya's avatar
Allison Karlitskaya committed
108
settings_sources = \
Allison Karlitskaya's avatar
Allison Karlitskaya committed
109 110 111
	gvdb/gvdb-format.h		\
	gvdb/gvdb-reader.h		\
	gvdb/gvdb-reader.c		\
112
	gdelayedsettingsbackend.h	\
Allison Karlitskaya's avatar
Allison Karlitskaya committed
113
	gdelayedsettingsbackend.c	\
114
	gkeyfilesettingsbackend.c	\
115
	gmemorysettingsbackend.c	\
116
	gnullsettingsbackend.c		\
Allison Karlitskaya's avatar
Allison Karlitskaya committed
117
	gsettingsbackendinternal.h	\
Allison Karlitskaya's avatar
Allison Karlitskaya committed
118 119
	gsettingsbackend.c		\
	gsettingsschema.h		\
Matthias Clasen's avatar
Matthias Clasen committed
120
	gsettingsschema-internal.h	\
Allison Karlitskaya's avatar
Allison Karlitskaya committed
121 122 123 124
	gsettingsschema.c		\
	gsettings-mapping.h		\
	gsettings-mapping.c		\
	gsettings.c
Allison Karlitskaya's avatar
Allison Karlitskaya committed
125

126 127 128 129 130 131
if OS_WIN32
settings_sources += \
	gregistrysettingsbackend.h	\
	gregistrysettingsbackend.c
endif

132
if OS_COCOA
133 134 135 136
settings_sources += \
	gnextstepsettingsbackend.c
endif

137
application_headers = \
138 139 140
	gapplication.h			\
	gapplicationcommandline.h	\
					\
141
	gactiongroup.h			\
Allison Karlitskaya's avatar
Allison Karlitskaya committed
142
	gactionmap.h			\
Allison Karlitskaya's avatar
Allison Karlitskaya committed
143
	gsimpleactiongroup.h		\
144
	gremoteactiongroup.h		\
145 146
	gactiongroupexporter.h		\
	gdbusactiongroup.h		\
Allison Karlitskaya's avatar
Allison Karlitskaya committed
147
	gaction.h			\
Allison Karlitskaya's avatar
Allison Karlitskaya committed
148
	gpropertyaction.h		\
149
	gsimpleaction.h			\
150
					\
Matthias Clasen's avatar
Matthias Clasen committed
151
	gmenumodel.h			\
152
	gmenu.h				\
153
	gmenuexporter.h			\
154
	gdbusmenumodel.h		\
Lars Uebernickel's avatar
Lars Uebernickel committed
155
	gnotification.h			\
Matthias Clasen's avatar
Matthias Clasen committed
156
	$(NULL)
157 158

application_sources = \
159 160 161 162 163
	gapplication.c				\
	gapplicationcommandline.c		\
	gapplicationimpl-dbus.c			\
	gapplicationimpl.h			\
						\
164
	gactiongroup.c				\
Allison Karlitskaya's avatar
Allison Karlitskaya committed
165
	gactionmap.c				\
166
	gsimpleactiongroup.c			\
167
	gremoteactiongroup.c			\
168
	gactiongroupexporter.c			\
169
	gdbusactiongroup-private.h		\
170
	gdbusactiongroup.c			\
171
	gaction.c				\
Allison Karlitskaya's avatar
Allison Karlitskaya committed
172
	gpropertyaction.c			\
173
	gsimpleaction.c				\
174
						\
Matthias Clasen's avatar
Matthias Clasen committed
175
	gmenumodel.c				\
176
	gmenu.c					\
177
	gmenuexporter.c				\
178
	gdbusmenumodel.c			\
179 180
	gnotification-private.h			\
	gnotificationbackend.h			\
Lars Uebernickel's avatar
Lars Uebernickel committed
181 182
	gnotification.c				\
	gnotificationbackend.c			\
Matthias Clasen's avatar
Matthias Clasen committed
183
	$(NULL)
184

185
local_sources = \
Paolo Borelli's avatar
Paolo Borelli committed
186 187
	ghttpproxy.c			\
	ghttpproxy.h			\
188 189 190 191 192 193 194 195 196 197 198 199
	glocalfile.c 			\
	glocalfile.h 			\
	glocalfileenumerator.c 		\
	glocalfileenumerator.h 		\
	glocalfileinfo.c 		\
	glocalfileinfo.h 		\
	glocalfileinputstream.c 	\
	glocalfileinputstream.h 	\
	glocalfilemonitor.c 		\
	glocalfilemonitor.h 		\
	glocalfileoutputstream.c 	\
	glocalfileoutputstream.h 	\
200 201
	glocalfileiostream.c		\
	glocalfileiostream.h		\
202 203
	glocalvfs.c 			\
	glocalvfs.h 			\
204 205 206 207
	gsocks4proxy.c			\
	gsocks4proxy.h			\
	gsocks4aproxy.c			\
	gsocks4aproxy.h			\
208 209
	gsocks5proxy.c			\
	gsocks5proxy.h			\
210 211
	thumbnail-verify.h		\
	thumbnail-verify.c		\
212 213 214
	$(NULL)

platform_libadd =
215
platform_deps =
216 217 218 219 220
appinfo_sources =

if HAVE_INOTIFY
SUBDIRS += inotify
platform_libadd += inotify/libinotify.la
221
platform_deps += inotify/libinotify.la
222 223
endif

224 225 226 227 228 229
if HAVE_KQUEUE
SUBDIRS += kqueue
platform_libadd += kqueue/libkqueue.la
platform_deps += kqueue/libkqueue.la
endif

Tor Lillqvist's avatar
Tor Lillqvist committed
230 231 232
if OS_WIN32
SUBDIRS += win32
platform_libadd += win32/libgiowin32.la
233
platform_deps += win32/libgiowin32.la
Tor Lillqvist's avatar
Tor Lillqvist committed
234 235
endif

236
SUBDIRS += . tests
237 238 239 240 241 242

if HAVE_FAM
SUBDIRS += fam
endif

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 253
	gunixmount.c		\
	gunixmount.h		\
254
	gunixmounts.c 		\
255
	gunixsocketaddress.c	\
256 257 258 259 260 261
	gunixvolume.c 		\
	gunixvolume.h 		\
	gunixvolumemonitor.c 	\
	gunixvolumemonitor.h 	\
	gunixinputstream.c 	\
	gunixoutputstream.c 	\
Matthias Clasen's avatar
Matthias Clasen committed
262 263
	gcontenttype.c 		\
	gcontenttypeprivate.h 	\
Lars Uebernickel's avatar
Lars Uebernickel committed
264
	gfdonotificationbackend.c \
265
	ggtknotificationbackend.c \
266 267
	$(NULL)

268 269 270
if OS_COCOA
unix_sources += gcocoanotificationbackend.c
endif
271

272 273
giounixincludedir=$(includedir)/gio-unix-2.0/gio
giounixinclude_HEADERS = \
274
	gdesktopappinfo.h	\
275
	gfiledescriptorbased.h  \
276
	gunixconnection.h	\
277
	gunixcredentialsmessage.h	\
278
	gunixmounts.h 		\
279
	gunixfdlist.h		\
280
	gunixfdmessage.h	\
281 282
	gunixinputstream.h 	\
	gunixoutputstream.h 	\
283
	gunixsocketaddress.h	\
284
	$(NULL)
285 286 287 288 289

if HAVE_NETLINK
unix_sources +=			 \
	gnetworkmonitornetlink.c \
	gnetworkmonitornetlink.h \
290 291
	gnetworkmonitornm.c	 \
	gnetworkmonitornm.h	 \
292 293
	$(NULL)
endif
294 295
endif

296 297 298 299 300 301 302
gdbus_daemon_sources = \
	gdbusdaemon.c \
	gdbusdaemon.h \
	gdbus-daemon-generated.c \
	gdbus-daemon-generated.h \
	$(NULL)

303
win32_actual_sources = \
304
	$(gdbus_daemon_sources) \
LRN's avatar
LRN committed
305 306
	gwin32registrykey.c \
	gwin32registrykey.h \
Matthias Clasen's avatar
Matthias Clasen committed
307
	gcontenttype-win32.c \
308 309 310 311
	gwin32mount.c \
	gwin32mount.h \
	gwin32volumemonitor.c \
	gwin32volumemonitor.h \
312 313 314
	gwin32inputstream.c \
	gwin32outputstream.c \
	gwin32outputstream.h \
315
	gwin32networking.h \
316 317
	$(NULL)

318 319
win32_more_sources_for_vcproj = \
	gwin32appinfo.c \
320
	gregistrysettingsbackend.c \
321 322 323
	win32/gwinhttpfile.c \
	win32/gwinhttpfileinputstream.c \
	win32/gwinhttpfileoutputstream.c \
324 325 326
	win32/gwinhttpvfs.c \
	win32/gwin32fsmonitorutils.c \
	win32/gwin32filemonitor.c
327

328 329
if OS_WIN32
appinfo_sources += gwin32appinfo.c gwin32appinfo.h
330
platform_libadd += -lshlwapi -lws2_32 -ldnsapi -liphlpapi
331 332
win32_sources = $(win32_actual_sources)

333 334 335 336
giowin32includedir=$(includedir)/gio-win32-2.0/gio
giowin32include_HEADERS = \
	gwin32inputstream.h \
	gwin32outputstream.h \
337 338
	$(NULL)

339 340 341 342
endif

libgio_2_0_la_SOURCES =		\
	gappinfo.c 		\
343
	gappinfoprivate.h	\
344 345
	gasynchelper.c 		\
	gasynchelper.h 		\
346
	gasyncinitable.c	\
347 348 349
	gasyncresult.c 		\
	gbufferedinputstream.c 	\
	gbufferedoutputstream.c \
Allison Karlitskaya's avatar
Allison Karlitskaya committed
350
	gbytesicon.c		\
351
	gcancellable.c 		\
Alexander Larsson's avatar
Alexander Larsson committed
352
	gcharsetconverter.c	\
353 354
	gcontextspecificgroup.c	\
	gcontextspecificgroup.h	\
Alexander Larsson's avatar
Alexander Larsson committed
355
	gconverter.c		\
Alexander Larsson's avatar
Alexander Larsson committed
356
	gconverterinputstream.c	\
Alexander Larsson's avatar
Alexander Larsson committed
357
	gconverteroutputstream.c	\
358
	gcredentials.c		\
359
	gcredentialsprivate.h	\
360
	gdatagrambased.c	\
361 362 363
	gdatainputstream.c 	\
	gdataoutputstream.c 	\
	gdrive.c 		\
364
	gdummyfile.h 		\
365
	gdummyfile.c 		\
366 367
	gdummyproxyresolver.c	\
	gdummyproxyresolver.h	\
368 369
	gdummytlsbackend.c	\
	gdummytlsbackend.h	\
Matthias Clasen's avatar
Matthias Clasen committed
370 371
	gemblem.h 		\
	gemblem.c 		\
372 373
	gemblemedicon.h		\
	gemblemedicon.c		\
374 375
	gfile.c 		\
	gfileattribute.c 	\
376
	gfileattribute-priv.h 	\
377 378 379
	gfileenumerator.c 	\
	gfileicon.c 		\
	gfileinfo.c 		\
380
	gfileinfo-priv.h 	\
381 382 383 384
	gfileinputstream.c 	\
	gfilemonitor.c 		\
	gfilenamecompleter.c 	\
	gfileoutputstream.c 	\
Alexander Larsson's avatar
Alexander Larsson committed
385
	gfileiostream.c		\
386 387 388
	gfilterinputstream.c 	\
	gfilteroutputstream.c 	\
	gicon.c 		\
389
	ginetaddress.c		\
390
	ginetaddressmask.c	\
391
	ginetsocketaddress.c	\
392
	ginitable.c		\
393
	ginputstream.c 		\
394
	gio_probes.d		\
395
	gio_trace.h		\
396
	gioenums.h		\
397 398
	gioerror.c 		\
	giomodule.c 		\
Alexander Larsson's avatar
Added.  
Alexander Larsson committed
399
	giomodule-priv.h	\
400
	gioscheduler.c 		\
Alexander Larsson's avatar
Alexander Larsson committed
401
	giostream.c		\
402
	gioprivate.h		\
403
	giowin32-priv.h 	\
404
	gloadableicon.c 	\
405
	gmount.c 		\
406 407 408 409 410
	gmemoryinputstream.c 	\
	gmemoryoutputstream.c 	\
	gmountoperation.c 	\
	gnativevolumemonitor.c 	\
	gnativevolumemonitor.h 	\
411 412
	gnativesocketaddress.c	\
	gnativesocketaddress.h	\
413
	gnetworkaddress.c	\
Dan Winship's avatar
Dan Winship committed
414
	gnetworking.c		\
415
	gnetworkingprivate.h	\
416 417 418
	gnetworkmonitor.c	\
	gnetworkmonitorbase.c	\
	gnetworkmonitorbase.h	\
419
	gnetworkservice.c	\
420
	goutputstream.c 	\
421
	gpermission.c 		\
422 423
	gpollableinputstream.c 	\
	gpollableoutputstream.c \
424
	gpollableutils.c	\
425 426
	gpollfilemonitor.c 	\
	gpollfilemonitor.h 	\
427 428 429
	gproxy.c		\
	gproxyaddress.c         \
	gproxyaddressenumerator.c \
430
	gproxyresolver.c	\
431
	gresolver.c		\
432
	gresource.c		\
Alexander Larsson's avatar
Alexander Larsson committed
433 434
	gresourcefile.c		\
	gresourcefile.h		\
435 436
	gseekable.c 		\
	gsimpleasyncresult.c 	\
437
	gsimpleiostream.c	\
438
	gsimplepermission.c 	\
439
	gsocket.c		\
440
	gsocketaddress.c	\
441
	gsocketaddressenumerator.c \
442
	gsocketclient.c		\
443
	gsocketconnectable.c	\
444 445 446 447 448 449 450
	gsocketconnection.c	\
	gsocketcontrolmessage.c	\
	gsocketinputstream.c	\
	gsocketinputstream.h	\
	gsocketlistener.c	\
	gsocketoutputstream.c	\
	gsocketoutputstream.h	\
451 452 453
	gsubprocesslauncher.c	\
	gsubprocess.c		\
	gsubprocesslauncher-private.h	\
454
	gsocketservice.c	\
455
	gsrvtarget.c		\
456
	gsimpleproxyresolver.c	\
457
	gtask.c			\
458
	gtcpconnection.c	\
459
	gtcpwrapperconnection.c \
460
	gthreadedsocketservice.c\
461
	gthemedicon.c 		\
462 463
	gthreadedresolver.c	\
	gthreadedresolver.h	\
464 465 466 467
	gtlsbackend.c		\
	gtlscertificate.c	\
	gtlsclientconnection.c	\
	gtlsconnection.c	\
Stef Walter's avatar
Stef Walter committed
468 469 470 471
	gtlsdatabase.c		\
	gtlsfiledatabase.c	\
	gtlsinteraction.c	\
	gtlspassword.c		\
472
	gtlsserverconnection.c	\
Philip Withnall's avatar
Philip Withnall committed
473 474 475
	gdtlsconnection.c	\
	gdtlsclientconnection.c	\
	gdtlsserverconnection.c	\
476 477 478 479 480
	gunionvolumemonitor.c 	\
	gunionvolumemonitor.h 	\
	gvfs.c 			\
	gvolume.c 		\
	gvolumemonitor.c 	\
Alexander Larsson's avatar
Alexander Larsson committed
481
	gzlibcompressor.c	\
482
	gzlibdecompressor.c	\
483
	gmountprivate.h 	\
484 485
	gioenumtypes.h		\
	gioenumtypes.c		\
Lars Uebernickel's avatar
Lars Uebernickel committed
486 487
	glistmodel.c 		\
	gliststore.c 		\
488 489
	$(appinfo_sources) 	\
	$(unix_sources) 	\
490
	$(win32_sources) 	\
491
	$(application_sources) 	\
Allison Karlitskaya's avatar
Allison Karlitskaya committed
492
	$(settings_sources) 	\
493
	$(gdbus_sources) 	\
494 495 496
	$(local_sources) 	\
	$(NULL)

497
EXTRA_DIST += strinfo.c
498

499 500 501
libgio_2_0_la_LIBADD = \
	$(top_builddir)/gobject/libgobject-2.0.la 	\
	$(top_builddir)/gmodule/libgmodule-2.0.la 	\
502
	$(top_builddir)/glib/libglib-2.0.la 		\
503
	$(platform_libadd) 				\
Alexander Larsson's avatar
Alexander Larsson committed
504
	$(ZLIB_LIBS)					\
505 506 507
	$(SELINUX_LIBS) 				\
	$(GLIB_LIBS) 					\
	$(XATTR_LIBS) 					\
508
	$(NETWORK_LIBS)					\
509 510
	$(NULL)

511 512
libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)

513
if PLATFORM_WIN32
514 515 516
no_undefined = -no-undefined
endif

517
if OS_WIN32_AND_DLL_COMPILATION
518 519
gio_win32_res = gio-win32-res.o
gio_win32_res_ldflag = -Wl,$(gio_win32_res)
520 521
endif

522
install-data-local: install-ms-lib
523
	$(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
524

525
uninstall-local: uninstall-ms-lib
526

527
libgio_2_0_la_CFLAGS = $(AM_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
528
libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
529
	$(gio_win32_res_ldflag) \
530
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
531
	-export-dynamic $(no_undefined)
532

533
if OS_COCOA
534
# This is dumb.  The ObjC source file should be properly named .m
535
libgio_2_0_la_CFLAGS += -xobjective-c
536
libgio_2_0_la_LDFLAGS += -Wl,-framework,Foundation -Wl,-framework,AppKit
537 538
endif

539 540 541 542
libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)

gio-win32-res.o: gio.rc
	$(WINDRES) gio.rc $@
543

544
gio_headers =			\
545
	gappinfo.h 		\
546
	gasyncinitable.h	\
547 548 549
	gasyncresult.h 		\
	gbufferedinputstream.h 	\
	gbufferedoutputstream.h \
Allison Karlitskaya's avatar
Allison Karlitskaya committed
550
	gbytesicon.h		\
551 552
	gcancellable.h 		\
	gcontenttype.h 		\
Alexander Larsson's avatar
Alexander Larsson committed
553
	gcharsetconverter.h	\
Alexander Larsson's avatar
Alexander Larsson committed
554
	gconverter.h		\
Alexander Larsson's avatar
Alexander Larsson committed
555
	gconverterinputstream.h	\
Alexander Larsson's avatar
Alexander Larsson committed
556
	gconverteroutputstream.h	\
557
	gdatagrambased.h	\
558 559 560
	gdatainputstream.h 	\
	gdataoutputstream.h 	\
	gdrive.h 		\
Matthias Clasen's avatar
Matthias Clasen committed
561
	gemblem.h 		\
Matthias Clasen's avatar
Matthias Clasen committed
562
	gemblemedicon.h		\
563 564 565 566 567 568 569 570 571
	gfile.h 		\
	gfileattribute.h 	\
	gfileenumerator.h 	\
	gfileicon.h 		\
	gfileinfo.h 		\
	gfileinputstream.h 	\
	gfilemonitor.h 		\
	gfilenamecompleter.h 	\
	gfileoutputstream.h 	\
Alexander Larsson's avatar
Alexander Larsson committed
572
	gfileiostream.h		\
573 574 575
	gfilterinputstream.h 	\
	gfilteroutputstream.h 	\
	gicon.h 		\
576
	ginetaddress.h		\
577
	ginetaddressmask.h	\
578
	ginetsocketaddress.h	\
579
	ginputstream.h 		\
580
	ginitable.h		\
581
	gio.h			\
582
	gio-autocleanups.h	\
583 584
	giotypes.h		\
	gioenums.h		\
585 586 587
	gioerror.h 		\
	giomodule.h 		\
	gioscheduler.h 		\
Alexander Larsson's avatar
Alexander Larsson committed
588
	giostream.h		\
589
	gloadableicon.h 	\
590
	gmount.h 		\
591 592 593
	gmemoryinputstream.h 	\
	gmemoryoutputstream.h 	\
	gmountoperation.h 	\
594
	gnativevolumemonitor.h 	\
595
	gnetworkaddress.h	\
596
	gnetworkmonitor.h	\
597
	gnetworkservice.h	\
598
	goutputstream.h 	\
599
	gpermission.h 		\
600 601
	gpollableinputstream.h 	\
	gpollableoutputstream.h \
602
	gpollableutils.h	\
Nicolas Dufresne's avatar
Nicolas Dufresne committed
603
	gproxyaddress.h         \
604
	gproxy.h		\
605
	gproxyaddressenumerator.h \
606
	gproxyresolver.h	\
607
	gresolver.h		\
608
	gresource.h		\
Alexander Larsson's avatar
Alexander Larsson committed
609
	gseekable.h 		\
610
	gsimpleasyncresult.h 	\
611
	gsimpleiostream.h	\
612
	gsimplepermission.h 	\
613
	gsocket.h		\
614
	gsocketaddress.h	\
615
	gsocketaddressenumerator.h \
616
	gsocketclient.h		\
617
	gsocketconnectable.h	\
618 619 620 621
	gsocketconnection.h	\
	gsocketcontrolmessage.h	\
	gsocketlistener.h	\
	gsocketservice.h	\
622
	gsrvtarget.h		\
623
	gsimpleproxyresolver.h	\
624
	gtask.h			\
625 626
	gsubprocess.h		\
	gsubprocesslauncher.h	\
627
	gtcpconnection.h	\
628
	gtcpwrapperconnection.h \
629
	gthreadedsocketservice.h\
630
	gthemedicon.h 		\
631 632 633 634
	gtlsbackend.h		\
	gtlscertificate.h	\
	gtlsclientconnection.h	\
	gtlsconnection.h	\
Stef Walter's avatar
Stef Walter committed
635 636 637 638
	gtlsdatabase.h		\
	gtlsfiledatabase.h	\
	gtlsinteraction.h	\
	gtlspassword.h		\
639
	gtlsserverconnection.h	\
Philip Withnall's avatar
Philip Withnall committed
640 641 642
	gdtlsconnection.h	\
	gdtlsclientconnection.h	\
	gdtlsserverconnection.h	\
643 644 645
	gvfs.h 			\
	gvolume.h 		\
	gvolumemonitor.h 	\
Alexander Larsson's avatar
Alexander Larsson committed
646
	gzlibcompressor.h	\
647
	gzlibdecompressor.h	\
Lars Uebernickel's avatar
Lars Uebernickel committed
648 649
	glistmodel.h		\
	gliststore.h		\
650
	$(application_headers)	\
Allison Karlitskaya's avatar
Allison Karlitskaya committed
651
	$(settings_headers)	\
652
	$(gdbus_headers)	\
653 654
	$(NULL)

655 656 657 658
gioincludedir=$(includedir)/glib-2.0/gio/
gioinclude_HEADERS = 		\
	$(gio_headers)		\
	gioenumtypes.h
659

Dan Winship's avatar
Dan Winship committed
660 661 662 663
nodist_gioinclude_HEADERS =	\
	gnetworking.h		\
	$(NULL)

664
# these sources (also mentioned above) are generated.
665
BUILT_SOURCES += 		\
666
	gconstructor_as_data.h	\
667 668
	gioenumtypes.h		\
	gioenumtypes.c		\
669 670
	gdbus-daemon-generated.c \
	gdbus-daemon-generated.h \
Dan Winship's avatar
Dan Winship committed
671
	gnetworking.h		\
672
	$(NULL)
673

674
EXTRA_DIST += 			\
675
	data-to-c.pl		\
676 677
	gioenumtypes.h.template	\
	gioenumtypes.c.template	\
Hans Breuer's avatar
Hans Breuer committed
678
	makefile.msc		\
679
	gio.rc.in		\
680
	gschema.dtd		\
Chun-wei Fan's avatar
Chun-wei Fan committed
681
	gconstructor_as_data.h	\
682
	gnetworking.h.win32	\
683 684
	$(NULL)

685
BUILT_EXTRA_DIST += 		\
686 687
	gio.rc

688 689
# This is read by gobject-introspection/misc/ and gtk-doc
gio-public-headers.txt: Makefile
690
	$(AM_V_GEN) echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
691

692
CLEANFILES += gdbus-daemon-generated.c gdbus-daemon-generated.h gio-public-headers.txt gconstructor_as_data.h
693

Matthias Clasen's avatar
Matthias Clasen committed
694

695
DISTCLEANFILES += 		\
Matthias Clasen's avatar
Matthias Clasen committed
696 697 698
	gioenumtypes.h		\
	gioenumtypes.c

699 700
all-local: gio-public-headers.txt

701
gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
702
	$(AM_V_GEN) $(top_builddir)/gobject/glib-mkenums --template $(filter %.template,$^) $(filter-out %.template,$^) > \
703 704
	    gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h

705
gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
706
	$(AM_V_GEN) $(top_builddir)/gobject/glib-mkenums --template $(filter %.template,$^) $(filter-out %.template,$^) > \
707
	    gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
708

709 710 711
gio.def: libgio-2.0.la
	$(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

712
gio-2.0.lib: libgio-2.0.la gio.def
713
	$(AM_V_GEN) lib.exe -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/gio.def -out:$@
714

715 716
bin_PROGRAMS = gio-querymodules glib-compile-schemas glib-compile-resources gsettings

717
glib_compile_resources_LDADD = libgio-2.0.la 		\
718
	$(top_builddir)/gobject/libgobject-2.0.la	\
719
	$(top_builddir)/gmodule/libgmodule-2.0.la 	\
720 721
	$(top_builddir)/glib/libglib-2.0.la 		\
	$(NULL)
722 723 724 725 726 727

glib_compile_resources_SOURCES = \
	gvdb/gvdb-format.h		\
	gvdb/gvdb-builder.h		\
	gvdb/gvdb-builder.c		\
	glib-compile-resources.c
Tor Lillqvist's avatar
Tor Lillqvist committed
728

729
gio_querymodules_SOURCES = gio-querymodules.c
730
gio_querymodules_LDADD	 = libgio-2.0.la 		\
731 732
	$(top_builddir)/gobject/libgobject-2.0.la	\
	$(top_builddir)/gmodule/libgmodule-2.0.la	\
733
	$(top_builddir)/glib/libglib-2.0.la		\
734 735
	$(NULL)

736 737
gconstructor_as_data.h: $(top_srcdir)/glib/gconstructor.h data-to-c.pl
	$(AM_V_GEN) $(srcdir)/data-to-c.pl $(top_srcdir)/glib/gconstructor.h gconstructor_code > $@.tmp && mv $@.tmp $@
738

739 740
glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
glib_compile_schemas_SOURCES = \
741
	gconstructor_as_data.h \
Allison Karlitskaya's avatar
Allison Karlitskaya committed
742 743 744
	gvdb/gvdb-format.h		\
	gvdb/gvdb-builder.h		\
	gvdb/gvdb-builder.c		\
745
	glib-compile-schemas.c
746

747
gsettings_LDADD = libgio-2.0.la 			\
748
	$(top_builddir)/gobject/libgobject-2.0.la	\
749
	$(top_builddir)/gmodule/libgmodule-2.0.la 	\
750 751
	$(top_builddir)/glib/libglib-2.0.la		\
	$(NULL)
752
gsettings_SOURCES = gsettings-tool.c
753

754 755 756
schemadir = $(datadir)/glib-2.0/schemas
dist_schema_DATA = gschema.dtd

757 758 759
itsdir = $(datadir)/gettext/its
dist_its_DATA = gschema.loc gschema.its

760 761 762 763 764 765 766 767 768
# ------------------------------------------------------------------------
# SystemTap and dtrace

if ENABLE_DTRACE
gio_probes.h: gio_probes.d
	$(AM_V_GEN) $(DTRACE) -C -h -s $< -o $@.tmp
	@$(SED) -e "s,define STAP_HAS_SEMAPHORES 1,undef STAP_HAS_SEMAPHORES," < $@.tmp > $@ && rm -f $@.tmp

gio_probes.lo: gio_probes.d
769
	$(AM_V_GEN) $(LIBTOOL) --mode=compile $(AM_V_lt) --tag=CC $(DTRACE) -G -s $< -o $@
770 771 772 773 774 775

BUILT_SOURCES += gio_probes.h gio_probes.lo
CLEANFILES += gio_probes.h gio_probes.h.tmp
libgio_2_0_la_LIBADD += gio_probes.lo
endif

776 777
tapsetdir   = @ABS_TAPSET_DIR@
EXTRA_DIST += gio.stp.in
778 779

if ENABLE_SYSTEMTAP
780 781
tapset_DATA = libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@.stp
CLEANFILES += $(tapset_DATA)
782

783
$(tapset_DATA): gio.stp.in Makefile
784 785 786 787 788 789 790
	$(AM_V_GEN)$(SED) \
		-e 's|[@]ABS_GLIB_RUNTIME_LIBDIR[@]|$(ABS_GLIB_RUNTIME_LIBDIR)|g' \
		-e 's|[@]LT_CURRENT[@]|$(LT_CURRENT)|g' \
		-e 's|[@]LT_REVISION[@]|$(LT_REVISION)|g' \
		$< > $@
endif

791 792 793 794 795
# ------------------------------------------------------------------------
# gdbus(1) tool

bin_PROGRAMS += gdbus
gdbus_SOURCES = gdbus-tool.c
796 797
gdbus_LDADD = libgio-2.0.la 				\
	$(top_builddir)/gobject/libgobject-2.0.la	\