Makefile.am 20.4 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

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	\
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
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			\
142
	gactionmap.h			\
143
	gsimpleactiongroup.h		\
144
	gremoteactiongroup.h		\
145 146
	gactiongroupexporter.h		\
	gdbusactiongroup.h		\
147
	gaction.h			\
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				\
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
						\
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

230 231 232
if OS_WIN32
SUBDIRS += win32
platform_libadd += win32/libgiowin32.la
233
platform_deps += win32/libgiowin32.la
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) \
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 \
350
	gbytesicon.c		\
351
	gcancellable.c 		\
352
	gcharsetconverter.c	\
353 354
	gcontextspecificgroup.c	\
	gcontextspecificgroup.h	\
355
	gconverter.c		\
356
	gconverterinputstream.c	\
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 	\
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
	gioenums.h		\
395 396
	gioerror.c 		\
	giomodule.c 		\
Alexander Larsson's avatar
Alexander Larsson committed
397
	giomodule-priv.h	\
398
	gioscheduler.c 		\
399
	giostream.c		\
400
	gioprivate.h		\
401
	giowin32-priv.h 	\
402
	gloadableicon.c 	\
403
	gmount.c 		\
404 405 406 407 408
	gmemoryinputstream.c 	\
	gmemoryoutputstream.c 	\
	gmountoperation.c 	\
	gnativevolumemonitor.c 	\
	gnativevolumemonitor.h 	\
409 410
	gnativesocketaddress.c	\
	gnativesocketaddress.h	\
411
	gnetworkaddress.c	\
Dan Winship's avatar
Dan Winship committed
412
	gnetworking.c		\
413
	gnetworkingprivate.h	\
414 415 416
	gnetworkmonitor.c	\
	gnetworkmonitorbase.c	\
	gnetworkmonitorbase.h	\
417
	gnetworkservice.c	\
418
	goutputstream.c 	\
419
	gpermission.c 		\
420 421
	gpollableinputstream.c 	\
	gpollableoutputstream.c \
422
	gpollableutils.c	\
423 424
	gpollfilemonitor.c 	\
	gpollfilemonitor.h 	\
425 426 427
	gproxy.c		\
	gproxyaddress.c         \
	gproxyaddressenumerator.c \
428
	gproxyresolver.c	\
429
	gresolver.c		\
430
	gresource.c		\
431 432
	gresourcefile.c		\
	gresourcefile.h		\
433 434
	gseekable.c 		\
	gsimpleasyncresult.c 	\
435
	gsimpleiostream.c	\
436
	gsimplepermission.c 	\
437
	gsocket.c		\
438
	gsocketaddress.c	\
439
	gsocketaddressenumerator.c \
440
	gsocketclient.c		\
441
	gsocketconnectable.c	\
442 443 444 445 446 447 448
	gsocketconnection.c	\
	gsocketcontrolmessage.c	\
	gsocketinputstream.c	\
	gsocketinputstream.h	\
	gsocketlistener.c	\
	gsocketoutputstream.c	\
	gsocketoutputstream.h	\
449 450 451
	gsubprocesslauncher.c	\
	gsubprocess.c		\
	gsubprocesslauncher-private.h	\
452
	gsocketservice.c	\
453
	gsrvtarget.c		\
454
	gsimpleproxyresolver.c	\
455
	gtask.c			\
456
	gtcpconnection.c	\
457
	gtcpwrapperconnection.c \
458
	gthreadedsocketservice.c\
459
	gthemedicon.c 		\
460 461
	gthreadedresolver.c	\
	gthreadedresolver.h	\
462 463 464 465
	gtlsbackend.c		\
	gtlscertificate.c	\
	gtlsclientconnection.c	\
	gtlsconnection.c	\
466 467 468 469
	gtlsdatabase.c		\
	gtlsfiledatabase.c	\
	gtlsinteraction.c	\
	gtlspassword.c		\
470
	gtlsserverconnection.c	\
471 472 473
	gdtlsconnection.c	\
	gdtlsclientconnection.c	\
	gdtlsserverconnection.c	\
474 475 476 477 478
	gunionvolumemonitor.c 	\
	gunionvolumemonitor.h 	\
	gvfs.c 			\
	gvolume.c 		\
	gvolumemonitor.c 	\
Alexander Larsson's avatar
Alexander Larsson committed
479
	gzlibcompressor.c	\
480
	gzlibdecompressor.c	\
481
	gmountprivate.h 	\
482 483
	gioenumtypes.h		\
	gioenumtypes.c		\
Lars Uebernickel's avatar
Lars Uebernickel committed
484 485
	glistmodel.c 		\
	gliststore.c 		\
486 487
	$(appinfo_sources) 	\
	$(unix_sources) 	\
488
	$(win32_sources) 	\
489
	$(application_sources) 	\
490
	$(settings_sources) 	\
491
	$(gdbus_sources) 	\
492 493 494
	$(local_sources) 	\
	$(NULL)

495
EXTRA_DIST += strinfo.c
496

497 498 499
libgio_2_0_la_LIBADD = \
	$(top_builddir)/gobject/libgobject-2.0.la 	\
	$(top_builddir)/gmodule/libgmodule-2.0.la 	\
500
	$(top_builddir)/glib/libglib-2.0.la 		\
501
	$(platform_libadd) 				\
502
	$(ZLIB_LIBS)					\
503 504 505
	$(SELINUX_LIBS) 				\
	$(GLIB_LIBS) 					\
	$(XATTR_LIBS) 					\
506
	$(NETWORK_LIBS)					\
507 508
	$(NULL)

509 510
libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)

511
if PLATFORM_WIN32
512 513 514
no_undefined = -no-undefined
endif

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

520
install-data-local: install-ms-lib
521
	$(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
522

523
uninstall-local: uninstall-ms-lib
524

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

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

537 538 539 540
libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)

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

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

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

658 659 660 661
nodist_gioinclude_HEADERS =	\
	gnetworking.h		\
	$(NULL)

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

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

683
BUILT_EXTRA_DIST += 		\
684 685
	gio.rc

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

690
CLEANFILES += gdbus-daemon-generated.c gdbus-daemon-generated.h gio-public-headers.txt gconstructor_as_data.h
691

Matthias Clasen's avatar
Matthias Clasen committed
692

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

697 698
all-local: gio-public-headers.txt

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

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

707 708 709
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

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

713 714
bin_PROGRAMS = gio-querymodules glib-compile-schemas glib-compile-resources gsettings

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

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
726

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

734 735
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 $@
736

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

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

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

755 756 757
itsdir = $(datadir)/gettext/its
dist_its_DATA = gschema.loc gschema.its

758 759 760 761 762
# ------------------------------------------------------------------------
# gdbus(1) tool

bin_PROGRAMS += gdbus
gdbus_SOURCES = gdbus-tool.c
763 764
gdbus_LDADD = libgio-2.0.la 				\
	$(top_builddir)/gobject/libgobject-2.0.la	\
765
	$(top_builddir)/gmodule/libgmodule-2.0.la 	\
766 767
	$(top_builddir)/glib/libglib-2.0.la		\
	$(NULL)
768

769
if OS_UNIX
770 771 772 773
# ------------------------------------------------------------------------
# gapplication(1) tool
bin_PROGRAMS += gapplication
gapplication_SOURCES = gapplication-tool.c
774 775
gapplication_LDADD = libgio-2.0.la 			\
	$(top_builddir)/gobject/libgobject-2.0.la	\
776
	$(top_builddir)/gmodule/libgmodule-2.0.la 	\
777
	$(top_builddir)/glib/libglib-2.0.la		\
778
	$(NULL)
779
endif
780

781
completiondir = $(datadir)/bash-completion/completions
782
completion_DATA = \
783
	completion/gapplication				\
784 785 786
	completion/gdbus				\
	completion/gsettings				\
	completion/gresource
Matthias Clasen's avatar
Matthias Clasen committed
787
EXTRA_DIST += $(completion_DATA)
788

Matthias Clasen's avatar
Matthias Clasen committed
789 790 791 792 793
# ------------------------------------------------------------------------
# gresource tool

bin_PROGRAMS += gresource
gresource_SOURCES = gresource-tool.c
794
gresource_CPPFLAGS = $(LIBELF_CFLAGS) $(AM_CPPFLAGS)
795 796
gresource_LDADD = libgio-2.0.la				\
	$(top_builddir)/gobject/libgobject-2.0.la	\
797
	$(top_builddir)/gmodule/libgmodule-2.0.la 	\
798
	$(top_builddir)/glib/libglib-2.0.la		\
799
	$(LIBELF_LIBS)
Matthias Clasen's avatar
Matthias Clasen committed
800

801
# ------------------------------------------------------------------------
802 803
# ------ MSVC Project File Generation ------
MSVCPROJS = gio glib-compile-resources glib-compile-schemas
804

805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825
gio_FILES = $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj)
gio_EXCLUDES = gunix*.c|gdesktopappinfo.c|gnetworkmonitornetlink.c|gcontenttype.c|gnetworkmonitornm.c

gio_HEADERS_DIR = $(includedir)/glib-2.0/gio
gio_HEADERS_INST = $(gioinclude_HEADERS) $(nodist_gioinclude_HEADERS)
gio_HEADERS_EXCLUDES = dummy

glib_compile_resources_FILES = $(glib_compile_resources_SOURCES)
glib_compile_resources_EXCLUDES = dummy

glib_compile_schemas_FILES = $(glib_compile_schemas_SOURCES)
glib_compile_schemas_EXCLUDES = dummy

include $(top_srcdir)/build/Makefile.msvcproj

dist-hook: \
	$(BUILT_EXTRA_DIST)	\
	$(top_builddir)/build/win32/vs9/gio.vcproj	\
	$(top_builddir)/build/win32/vs9/gio.headers	\
	$(top_builddir)/build/win32/vs9/glib-compile-schemas.vcproj	\
	$(top_builddir)/build/win32/vs9/glib-compile-resources.vcproj
826 827 828 829
	files='$(BUILT_EXTRA_DIST)'; \
	for f in $$files; do \
	  if test -f $$f; then d=.; else d=$(srcdir); fi; \
	  cp $$d/$$f $(distdir) || exit 1; done
830

831 832 833 834 835 836
if HAVE_GLIB_RUNTIME_LIBDIR
ABS_GLIB_RUNTIME_LIBDIR = $(realpath $(libdir)/$(GLIB_RUNTIME_LIBDIR))
else
ABS_GLIB_RUNTIME_LIBDIR = $(libdir)
endif

837 838 839 840
if HAVE_GLIB_RUNTIME_LIBDIR
install-data-hook:
	mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
	mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
841
	mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
842
	rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
843
	ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so
844
endif