Makefile.am 88.5 KB
Newer Older
Lennart Poettering's avatar
Lennart Poettering committed
1
# This file is part of PulseAudio.
Lennart Poettering's avatar
Lennart Poettering committed
2
#
3
4
5
6
# Copyright 2004-2006 Lennart Poettering
# Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
# Copyright 2006 Diego Pettenò
#
Lennart Poettering's avatar
Lennart Poettering committed
7
# PulseAudio is free software; you can redistribute it and/or modify
8
# it under the terms of the GNU Lesser General Public License as published by
Lennart Poettering's avatar
Lennart Poettering committed
9
10
11
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
Lennart Poettering's avatar
Lennart Poettering committed
12
# PulseAudio is distributed in the hope that it will be useful, but
Lennart Poettering's avatar
Lennart Poettering committed
13
14
15
16
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
17
# You should have received a copy of the GNU Lesser General Public License
18
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
Lennart Poettering's avatar
Lennart Poettering committed
19

Lennart Poettering's avatar
Lennart Poettering committed
20
21
22
23
###################################
#       Extra directories         #
###################################

Lennart Poettering's avatar
Lennart Poettering committed
24
25
pulseincludedir=$(includedir)/pulse
pulsecoreincludedir=$(includedir)/pulsecore
26
pulselibexecdir=$(libexecdir)/pulse
27
if HAVE_X11
28
xdgautostartdir=$(sysconfdir)/xdg/autostart
29
30
endif
if HAVE_ALSA
31
32
alsaprofilesetsdir=$(datadir)/pulseaudio/alsa-mixer/profile-sets
alsapathsdir=$(datadir)/pulseaudio/alsa-mixer/paths
33
34
endif
if HAVE_DBUS
35
dbuspolicydir=$(sysconfdir)/dbus-1/system.d
36
endif
37
38
39
if HAVE_GSETTINGS
gsettingsdataconvertdir=$(datadir)/GConf/gsettings
endif
40

Lennart Poettering's avatar
Lennart Poettering committed
41
42
43
44
###################################
#     Compiler/linker flags       #
###################################

45
AM_CPPFLAGS = \
46
	-I$(top_srcdir)/src \
47
	-I$(top_srcdir)/src/modules \
48
	-I$(top_builddir)/src/modules \
49
	-DPA_ALSA_PATHS_DIR=\"$(alsapathsdir)\" \
50
	-DPA_ALSA_PROFILE_SETS_DIR=\"$(alsaprofilesetsdir)\" \
51
	-DPA_SRCDIR=\"$(abs_srcdir)\" \
52
53
	-DPA_BUILDDIR=\"$(abs_builddir)\" \
	-DPULSE_LOCALEDIR=\"$(localedir)\"
54
AM_CFLAGS = -std=gnu11 \
55
	$(PTHREAD_CFLAGS)
56
57
AM_CXXFLAGS = -std=c++11 \
	$(PTHREAD_CFLAGS)
58
SERVER_CFLAGS = -D__INCLUDED_FROM_PULSE_AUDIO
59

60
61
AM_LIBADD = $(PTHREAD_LIBS) $(INTLLIBS)
AM_LDADD = $(PTHREAD_LIBS) $(INTLLIBS)
62
63
64
AM_LDFLAGS =
# Should only be applied to libraries.
AM_LIBLDFLAGS = $(NODELETE_LDFLAGS)
Lennart Poettering's avatar
Lennart Poettering committed
65

66
67
68
69
70
71
if HAVE_GCOV
AM_CFLAGS+=$(GCOV_CFLAGS)
AM_CXXFLAGS+=$(GCOV_CFLAGS)
AM_LDFLAGS+=$(GCOV_LIBS)
endif

Lennart Poettering's avatar
Lennart Poettering committed
72
73
74
75
76
if STATIC_BINS
BINLDFLAGS = -static
endif

if OS_IS_WIN32
77
AM_LDFLAGS+=-Wl,--export-all-symbols,--enable-auto-import -no-undefined
Lennart Poettering's avatar
Lennart Poettering committed
78
79
80
WINSOCK_LIBS=-lwsock32 -lws2_32 -lwininet
endif

81
if OS_IS_DARWIN
82
AM_LDFLAGS+=-Wl,-headerpad_max_install_names -headerpad_max_install_names
83
84
endif

85
FOREIGN_CFLAGS = -w
86

87
MODULE_LDFLAGS = $(AM_LDFLAGS) $(AM_LIBLDFLAGS) -module -disable-static -avoid-version $(NOUNDEFINED_LDFLAGS)
88
MODULE_LIBADD = $(AM_LIBADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
89

Lennart Poettering's avatar
Lennart Poettering committed
90
91
92
93
###################################
#          Extra files            #
###################################

94
95
96
EXTRA_DIST = \
		pulse/client.conf.in \
		pulse/version.h.in \
97
		pulsecore/filter/LICENSE.WEBKIT \
98
99
100
101
102
103
		daemon/daemon.conf.in \
		daemon/default.pa.in \
		daemon/system.pa.in \
		depmod.py \
		daemon/esdcompat.in \
		daemon/start-pulseaudio-x11.in \
104
105
		daemon/systemd/user/pulseaudio.service.in \
		daemon/systemd/user/pulseaudio.socket \
106
		utils/padsp.in \
Arun Raghavan's avatar
Arun Raghavan committed
107
		utils/qpaeq \
108
109
		daemon/pulseaudio.desktop.in \
		map-file \
110
		daemon/pulseaudio-system.conf \
111
112
113
		modules/echo-cancel/adrian-license.txt \
		modules/gsettings/org.freedesktop.pulseaudio.gschema.xml \
		modules/gsettings/pulseaudio.convert
114

Lennart Poettering's avatar
Lennart Poettering committed
115
pulseconf_DATA = \
Lennart Poettering's avatar
Lennart Poettering committed
116
		default.pa \
117
		system.pa \
Lennart Poettering's avatar
Lennart Poettering committed
118
119
		daemon.conf \
		client.conf
Lennart Poettering's avatar
Lennart Poettering committed
120

121
if HAVE_DBUS
122
123
dbuspolicy_DATA = \
		daemon/pulseaudio-system.conf
124
endif
125

126
if HAVE_X11
127
xdgautostart_in_files = \
128
		daemon/pulseaudio.desktop.in
129
xdgautostart_DATA = $(xdgautostart_in_files:.desktop.in=.desktop)
130
131
132
$(xdgautostart_DATA): $(xdgautostart_in_files)
	$(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@

133
endif
134

135

136
137
138
139
140
141
142
143
144
###################################
#          Includes               #
###################################

BUILT_SOURCES =
CLEANFILES =
include $(top_srcdir)/orc.mak
ORC_SOURCE =

Lennart Poettering's avatar
Lennart Poettering committed
145
146
147
148
###################################
#          Main daemon            #
###################################

Lennart Poettering's avatar
Lennart Poettering committed
149
bin_PROGRAMS = pulseaudio
Lennart Poettering's avatar
Lennart Poettering committed
150

Lennart Poettering's avatar
Lennart Poettering committed
151
pulseaudio_SOURCES = \
152
		daemon/caps.c daemon/caps.h \
153
154
155
156
		daemon/cmdline.c daemon/cmdline.h \
		daemon/cpulimit.c daemon/cpulimit.h \
		daemon/daemon-conf.c daemon/daemon-conf.h \
		daemon/dumpmodules.c daemon/dumpmodules.h \
157
		daemon/ltdl-bind-now.c daemon/ltdl-bind-now.h \
Daniel Mack's avatar
Daniel Mack committed
158
		daemon/main.c
Lennart Poettering's avatar
Lennart Poettering committed
159

160
161
pulseaudio_CFLAGS = $(AM_CFLAGS) $(CAP_CFLAGS)
pulseaudio_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la $(LIBLTDL) $(CAP_LIBS)
162
# This is needed because automake doesn't properly expand the foreach below
163
pulseaudio_DEPENDENCIES = libpulsecore-@PA_MAJORMINOR@.la libpulsecommon-@PA_MAJORMINOR@.la libpulse.la $(PREOPEN_LIBS)
Lennart Poettering's avatar
Lennart Poettering committed
164

Daniel Mack's avatar
Daniel Mack committed
165
166
167
168
169
170
if HAVE_DBUS
pulseaudio_CFLAGS += $(DBUS_CFLAGS)
pulseaudio_SOURCES += daemon/server-lookup.c daemon/server-lookup.h
pulseaudio_LDADD += $(DBUS_LIBS)
endif

Lennart Poettering's avatar
Lennart Poettering committed
171
172
173
if PREOPEN_MODS
PREOPEN_LIBS = $(PREOPEN_MODS)
else
174
PREOPEN_LIBS = $(modlibexec_LTLIBRARIES)
Lennart Poettering's avatar
Lennart Poettering committed
175
endif
Lennart Poettering's avatar
Lennart Poettering committed
176

177
if FORCE_PREOPEN
178
pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(IMMEDIATE_LDFLAGS) -ffast-math -dlpreopen force $(foreach f,$(PREOPEN_LIBS),-dlpreopen $(f))
179
else
180
pulseaudio_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(IMMEDIATE_LDFLAGS) -ffast-math -dlopen force $(foreach f,$(PREOPEN_LIBS),-dlopen $(f))
181
182
endif

183
184
185
186
187
if HAVE_SYSTEMD_DAEMON
pulseaudio_CFLAGS += $(SYSTEMD_FLAGS) $(SYSTEMDDAEMON_FLAGS)
pulseaudio_LDFLAGS += $(SYSTEMD_LIBS) $(SYSTEMDDAEMON_LIBS)
endif

Lennart Poettering's avatar
Lennart Poettering committed
188
189
190
###################################
#       Utility programs          #
###################################
Lennart Poettering's avatar
Lennart Poettering committed
191

192
193
194
195
196
bin_SCRIPTS =

if HAVE_ESOUND
bin_SCRIPTS += esdcompat
endif
197

Lennart Poettering's avatar
Lennart Poettering committed
198
bin_PROGRAMS += \
Lennart Poettering's avatar
Lennart Poettering committed
199
		pacat \
200
201
202
203
204
		pactl

if !OS_IS_WIN32
bin_PROGRAMS += pasuspender
endif
Lennart Poettering's avatar
Lennart Poettering committed
205
206
207
208
209
210
211

if HAVE_AF_UNIX
bin_PROGRAMS += pacmd
endif

if HAVE_X11
bin_PROGRAMS += pax11publish
212
bin_SCRIPTS += start-pulseaudio-x11
Lennart Poettering's avatar
Lennart Poettering committed
213
214
endif

215
pacat_SOURCES = utils/pacat.c
216
pacat_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la $(LIBSNDFILE_LIBS)
217
pacat_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
Lennart Poettering's avatar
Lennart Poettering committed
218
219
pacat_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)

220
pactl_SOURCES = utils/pactl.c
221
pactl_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la $(LIBSNDFILE_LIBS)
Lennart Poettering's avatar
Lennart Poettering committed
222
223
224
pactl_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
pactl_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)

225
pasuspender_SOURCES = utils/pasuspender.c
226
pasuspender_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
227
pasuspender_CFLAGS = $(AM_CFLAGS)
228
229
pasuspender_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)

230
pacmd_SOURCES = utils/pacmd.c
Lennart Poettering's avatar
Lennart Poettering committed
231
pacmd_CFLAGS = $(AM_CFLAGS)
232
pacmd_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
Lennart Poettering's avatar
Lennart Poettering committed
233
234
pacmd_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)

235
pax11publish_SOURCES = utils/pax11publish.c
236
pax11publish_CFLAGS = $(AM_CFLAGS) $(X11_CFLAGS)
237
pax11publish_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la $(X11_LIBS)
Lennart Poettering's avatar
Lennart Poettering committed
238
239
pax11publish_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)

240
241
242
243
244
245
246
247
if HAVE_SYSTEMD_DAEMON

systemduserunit_DATA = \
    pulseaudio.service \
    daemon/systemd/user/pulseaudio.socket

endif

Lennart Poettering's avatar
Lennart Poettering committed
248
249
250
###################################
#         Test programs           #
###################################
251
noinst_LTLIBRARIES =
Lennart Poettering's avatar
Lennart Poettering committed
252

253
TESTS_default = \
254
		core-util-test \
255
256
257
258
259
260
261
		mainloop-test \
		strlist-test \
		close-test \
		memblockq-test \
		channelmap-test \
		thread-mainloop-test \
		utf8-test \
262
		format-test \
263
		json-test \
264
265
266
267
268
269
270
271
272
		get-binary-name-test \
		hook-list-test \
		memblock-test \
		asyncq-test \
		asyncmsgq-test \
		queue-test \
		rtpoll-test \
		resampler-test \
		smoother-test \
273
		thread-test \
274
		volume-test \
275
276
		mix-test \
		proplist-test \
277
278
279
280
		cpu-mix-test \
		cpu-remap-test \
		cpu-sconv-test \
		cpu-volume-test \
Peter Meerwald's avatar
Peter Meerwald committed
281
		lock-autospawn-test \
Hui Wang's avatar
Hui Wang committed
282
283
		mult-s16-test \
		lfe-filter-test
284

285
TESTS_norun = \
286
		ipacl-test \
Lennart Poettering's avatar
Lennart Poettering committed
287
		mcalign-test \
Lennart Poettering's avatar
Lennart Poettering committed
288
289
		pacat-simple \
		parec-simple \
290
		flist-test \
291
		remix-test \
292
		rtstutter \
293
		sig2str-test \
294
		stripnul \
295
		echo-cancel-test \
296
297
		lo-latency-test \
		atomic-test
298

299
300
# These tests need a running pulseaudio daemon
TESTS_daemon = \
301
		extended-test \
302
		passthrough-test \
303
		sync-playback
304

305
306
307
308
309
# These tests need a running daemon and take a while to complete
TESTS_daemon_long = \
		connect-stress \
		interpol-test

310
if !OS_IS_WIN32
311
TESTS_default += \
312
313
		sigbus-test \
		usergroup-test
314
endif
Lennart Poettering's avatar
Lennart Poettering committed
315

316
317
318
319
320
if HAVE_SYS_EVENTFD_H
TESTS_default += \
		srbchannel-test
endif

321
if !OS_IS_DARWIN
322
TESTS_default += \
323
324
325
		once-test
endif

Lennart Poettering's avatar
Lennart Poettering committed
326
if HAVE_SIGXCPU
327
TESTS_norun += \
Lennart Poettering's avatar
Lennart Poettering committed
328
329
330
331
332
		cpulimit-test \
		cpulimit-test2
endif

if HAVE_GLIB20
333
TESTS_default += \
334
		mainloop-test-glib
Lennart Poettering's avatar
Lennart Poettering committed
335

Marc-Antoine Perennou's avatar
Marc-Antoine Perennou committed
336
if HAVE_GTK30
337
# gtk-test depends on both glib and gtk
338
TESTS_norun += \
339
340
		gtk-test
endif
341
endif
342

343
if HAVE_ALSA
344
TESTS_norun += \
345
		alsa-time-test
346
347
TESTS_default += \
		alsa-mixer-path-test
348
349
endif

Deng Zhengrong's avatar
Deng Zhengrong committed
350
if HAVE_TESTS
351
TESTS_ENVIRONMENT=MAKE_CHECK=1
352
TESTS = $(TESTS_default)
353

354
if BUILD_TESTS_DEFAULT
355
noinst_PROGRAMS = $(TESTS_default) $(TESTS_norun) $(TESTS_daemon) $(TESTS_daemon_long)
356
else
357
check_PROGRAMS = $(TESTS_default) $(TESTS_norun)
358
359
endif

360
361
check-daemon: $(TESTS_daemon)
	PATH=$(builddir):${PATH} $(top_srcdir)/src/tests/test-daemon.sh $(TESTS_daemon)
362

363
364
365
check-daemon-long: $(TESTS_daemon_long)
	PATH=$(builddir):${PATH} $(top_srcdir)/src/tests/test-daemon.sh $(TESTS_daemon_long)

Deng Zhengrong's avatar
Deng Zhengrong committed
366
367
368
369
370
371
372
373
374
375
376
else
TESTS_ENVIRONMENT=
TESTS =
noinst_PROGRAMS =
check_PROGRAMS =

check-daemon:
	@echo "Tests are disabled!"
	@echo "Pass option \"--enable-tests\" to configure and install \"check\" library properly!"
	false

377
378
check-daemon-long: check-daemon

Deng Zhengrong's avatar
Deng Zhengrong committed
379
380
endif

381
382
383
384
385
core_util_test_SOURCES = tests/core-util-test.c
core_util_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
core_util_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
core_util_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)

386
mainloop_test_SOURCES = tests/mainloop-test.c
387
mainloop_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
388
mainloop_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
389
mainloop_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
Lennart Poettering's avatar
Lennart Poettering committed
390

391
thread_mainloop_test_SOURCES = tests/thread-mainloop-test.c
392
thread_mainloop_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
393
thread_mainloop_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
394
thread_mainloop_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
395

396
utf8_test_SOURCES = tests/utf8-test.c
397
utf8_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
398
utf8_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
399
utf8_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
400

401
format_test_SOURCES = tests/format-test.c
402
format_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
403
format_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
404
format_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
405

406
407
408
409
410
json_test_SOURCES = tests/json-test.c
json_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
json_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
json_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)

411
412
413
414
415
srbchannel_test_SOURCES = tests/srbchannel-test.c
srbchannel_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
srbchannel_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
srbchannel_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)

416
417
418
419
420
atomic_test_SOURCES = tests/atomic-test.c
atomic_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
atomic_test_LDADD = $(AM_LDADD) libpulsecommon-@PA_MAJORMINOR@.la libpulse.la
atomic_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)

Lennart Poettering's avatar
Lennart Poettering committed
421
get_binary_name_test_SOURCES = tests/get-binary-name-test.c
422
get_binary_name_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
423
get_binary_name_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
424
get_binary_name_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
425

426
ipacl_test_SOURCES = tests/ipacl-test.c
427
ipacl_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
428
ipacl_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
429
ipacl_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
430

431
hook_list_test_SOURCES = tests/hook-list-test.c
432
hook_list_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
433
hook_list_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
434
hook_list_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
435

Lennart Poettering's avatar
Lennart Poettering committed
436
memblock_test_SOURCES = tests/memblock-test.c
437
memblock_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
438
memblock_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
439
memblock_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
440

441
thread_test_SOURCES = tests/thread-test.c
442
thread_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
443
thread_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
444
thread_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
445

446
once_test_SOURCES = tests/once-test.c
447
once_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
448
once_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
449
once_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
450

451
flist_test_SOURCES = tests/flist-test.c
Lennart Poettering's avatar
Lennart Poettering committed
452
flist_test_CFLAGS = $(AM_CFLAGS)
453
flist_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
Lennart Poettering's avatar
Lennart Poettering committed
454
flist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
Lennart Poettering's avatar
Lennart Poettering committed
455

456
asyncq_test_SOURCES = tests/asyncq-test.c
457
asyncq_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
458
asyncq_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
459
asyncq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
460
461

asyncmsgq_test_SOURCES = tests/asyncmsgq-test.c
462
asyncmsgq_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
463
asyncmsgq_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
464
asyncmsgq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
465
466

queue_test_SOURCES = tests/queue-test.c
467
queue_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
468
queue_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
469
queue_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
470
471

rtpoll_test_SOURCES = tests/rtpoll-test.c
472
rtpoll_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
473
rtpoll_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
474
rtpoll_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
475

476
mcalign_test_SOURCES = tests/mcalign-test.c
Lennart Poettering's avatar
Lennart Poettering committed
477
mcalign_test_CFLAGS = $(AM_CFLAGS)
478
mcalign_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
Lennart Poettering's avatar
Lennart Poettering committed
479
480
mcalign_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)

481
pacat_simple_SOURCES = tests/pacat-simple.c
482
pacat_simple_LDADD = $(AM_LDADD) libpulse.la libpulse-simple.la
Lennart Poettering's avatar
Lennart Poettering committed
483
484
485
pacat_simple_CFLAGS = $(AM_CFLAGS)
pacat_simple_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)

486
parec_simple_SOURCES = tests/parec-simple.c
487
parec_simple_LDADD = $(AM_LDADD) libpulse.la libpulse-simple.la
Lennart Poettering's avatar
Lennart Poettering committed
488
489
490
parec_simple_CFLAGS = $(AM_CFLAGS)
parec_simple_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)

491
extended_test_SOURCES = tests/extended-test.c
492
extended_test_LDADD = $(AM_LDADD) libpulse.la
493
494
extended_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
extended_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
495

496
497
498
499
500
passthrough_test_SOURCES = tests/passthrough-test.c
passthrough_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
passthrough_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
passthrough_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)

501
strlist_test_SOURCES = tests/strlist-test.c
502
strlist_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
503
strlist_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
504
strlist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
Lennart Poettering's avatar
Lennart Poettering committed
505

506
507
close_test_SOURCES = tests/close-test.c
close_test_CFLAGS = $(AM_CFLAGS)
508
close_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
509
510
close_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)

511
volume_test_SOURCES = tests/volume-test.c
512
volume_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
513
volume_test_LDADD = $(AM_LDADD) libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
514
volume_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
Lennart Poettering's avatar
Lennart Poettering committed
515

516
channelmap_test_SOURCES = tests/channelmap-test.c
517
channelmap_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
518
channelmap_test_LDADD = $(AM_LDADD) libpulse.la
519
channelmap_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
520

521
cpulimit_test_SOURCES = tests/cpulimit-test.c daemon/cpulimit.c daemon/cpulimit.h
522
cpulimit_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
523
cpulimit_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
524
cpulimit_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
Lennart Poettering's avatar
Lennart Poettering committed
525

526
cpulimit_test2_SOURCES = tests/cpulimit-test.c daemon/cpulimit.c daemon/cpulimit.h
527
cpulimit_test2_CFLAGS = $(AM_CFLAGS) -DTEST2 $(LIBCHECK_CFLAGS)
528
cpulimit_test2_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
529
cpulimit_test2_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
Lennart Poettering's avatar
Lennart Poettering committed
530
531

mainloop_test_glib_SOURCES = $(mainloop_test_SOURCES)
532
mainloop_test_glib_CFLAGS = $(mainloop_test_CFLAGS) $(LIBCHECK_CFLAGS) $(GLIB20_CFLAGS) -DGLIB_MAIN_LOOP
Lennart Poettering's avatar
Lennart Poettering committed
533
mainloop_test_glib_LDADD = $(mainloop_test_LDADD) $(GLIB20_LIBS) libpulse-mainloop-glib.la
534
mainloop_test_glib_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
Lennart Poettering's avatar
Lennart Poettering committed
535

536
memblockq_test_SOURCES = tests/memblockq-test.c
537
memblockq_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
538
memblockq_test_LDADD = $(AM_LDADD) $(WINSOCK_LIBS) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
539
memblockq_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
540
541

sync_playback_SOURCES = tests/sync-playback.c
542
sync_playback_LDADD = $(AM_LDADD) libpulse.la
543
544
sync_playback_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
sync_playback_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
545

546
interpol_test_SOURCES = tests/interpol-test.c
547
interpol_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
548
549
interpol_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
interpol_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
550

551
sig2str_test_SOURCES = tests/sig2str-test.c
552
sig2str_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
553
554
sig2str_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
sig2str_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
555
556

resampler_test_SOURCES = tests/resampler-test.c
557
resampler_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
558
559
resampler_test_CFLAGS = $(AM_CFLAGS)
resampler_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
560

561
mix_test_SOURCES = tests/mix-test.c
562
mix_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
563
564
mix_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
mix_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
565

566
remix_test_SOURCES = tests/remix-test.c
567
remix_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
568
569
remix_test_CFLAGS = $(AM_CFLAGS)
remix_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
570

571
smoother_test_SOURCES = tests/smoother-test.c
572
smoother_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
573
574
smoother_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
smoother_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
575

576
proplist_test_SOURCES = tests/proplist-test.c
577
proplist_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
578
579
proplist_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
proplist_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
580

581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
cpu_mix_test_SOURCES = tests/cpu-mix-test.c tests/runtime-test-util.h
cpu_mix_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
cpu_mix_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
cpu_mix_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)

cpu_remap_test_SOURCES = tests/cpu-remap-test.c tests/runtime-test-util.h
cpu_remap_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
cpu_remap_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
cpu_remap_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)

cpu_sconv_test_SOURCES = tests/cpu-sconv-test.c tests/runtime-test-util.h
cpu_sconv_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
cpu_sconv_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
cpu_sconv_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)

cpu_volume_test_SOURCES = tests/cpu-volume-test.c tests/runtime-test-util.h
cpu_volume_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
cpu_volume_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
cpu_volume_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
Deng Zhengrong's avatar
Deng Zhengrong committed
600

601
mult_s16_test_SOURCES = tests/mult-s16-test.c tests/runtime-test-util.h
Peter Meerwald's avatar
Peter Meerwald committed
602
603
604
mult_s16_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
mult_s16_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
mult_s16_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
605

Hui Wang's avatar
Hui Wang committed
606
607
608
609
610
lfe_filter_test_SOURCES = tests/lfe-filter-test.c
lfe_filter_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
lfe_filter_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
lfe_filter_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)

611
rtstutter_SOURCES = tests/rtstutter.c
612
rtstutter_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
613
614
rtstutter_CFLAGS = $(AM_CFLAGS)
rtstutter_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
615
616

stripnul_SOURCES = tests/stripnul.c
617
stripnul_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
618
619
stripnul_CFLAGS = $(AM_CFLAGS)
stripnul_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
620

621
lock_autospawn_test_SOURCES = tests/lock-autospawn-test.c
622
lock_autospawn_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
623
624
lock_autospawn_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
lock_autospawn_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
625

626
sigbus_test_SOURCES = tests/sigbus-test.c
627
sigbus_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
628
629
sigbus_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
sigbus_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
630

631
gtk_test_SOURCES = tests/gtk-test.c
Marc-Antoine Perennou's avatar
Marc-Antoine Perennou committed
632
633
gtk_test_LDADD = $(AM_LDADD) $(GTK30_LIBS) libpulse-mainloop-glib.la libpulse.la
gtk_test_CFLAGS = $(AM_CFLAGS) $(GTK30_CFLAGS)
634
gtk_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
635

636
alsa_time_test_SOURCES = tests/alsa-time-test.c
637
alsa_time_test_LDADD = $(AM_LDADD) $(ASOUNDLIB_LIBS)
638
639
alsa_time_test_CFLAGS = $(AM_CFLAGS) $(ASOUNDLIB_CFLAGS)
alsa_time_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
640

641
642
643
644
645
alsa_mixer_path_test_SOURCES = tests/alsa-mixer-path-test.c
alsa_mixer_path_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS) $(ASOUNDLIB_CFLAGS)
alsa_mixer_path_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la libalsa-util.la
alsa_mixer_path_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)

646
usergroup_test_SOURCES = tests/usergroup-test.c
647
usergroup_test_LDADD = $(AM_LDADD) libpulsecore-@PA_MAJORMINOR@.la libpulse.la libpulsecommon-@PA_MAJORMINOR@.la
648
649
usergroup_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
usergroup_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
650

651
connect_stress_SOURCES = tests/connect-stress.c
652
connect_stress_LDADD = $(AM_LDADD) libpulse.la
653
654
connect_stress_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
connect_stress_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)
655

656
657
658
659
echo_cancel_test_SOURCES = $(module_echo_cancel_la_SOURCES)
nodist_echo_cancel_test_SOURCES = $(nodist_module_echo_cancel_la_SOURCES)
echo_cancel_test_LDADD = $(module_echo_cancel_la_LIBADD)
echo_cancel_test_CFLAGS = $(module_echo_cancel_la_CFLAGS) -DECHO_CANCEL_TEST=1
Arun Raghavan's avatar
Arun Raghavan committed
660
if HAVE_WEBRTC
661
echo_cancel_test_CXXFLAGS = $(module_echo_cancel_la_CXXFLAGS) -DECHO_CANCEL_TEST=1
Arun Raghavan's avatar
Arun Raghavan committed
662
endif
663
echo_cancel_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
664

665
666
667
668
669
liblo_test_util_la_SOURCES = tests/lo-test-util.h tests/lo-test-util.c
liblo_test_util_la_LIBADD = libpulsecore-@PA_MAJORMINOR@.la
liblo_test_util_la_LDFLAGS = -avoid-version
noinst_LTLIBRARIES += liblo-test-util.la

670
lo_latency_test_SOURCES = tests/lo-latency-test.c
671
lo_latency_test_LDADD = $(AM_LDADD) libpulse.la liblo-test-util.la
672
673
674
lo_latency_test_CFLAGS = $(AM_CFLAGS) $(LIBCHECK_CFLAGS)
lo_latency_test_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS) $(LIBCHECK_LIBS)

675
676
677
678
###################################
#         Common library          #
###################################

679
680
commonlibdir = $(pkglibdir)
commonlib_LTLIBRARIES = \
681
		libpulsecommon-@PA_MAJORMINOR@.la
682

683
684
685
686
687
# We duplicate files from pulse/ in this to allow as-needed linking. If we did
# not do this, in situations where code in libpulsecommon uses code in
# libpulse, we would then need to link libpulsecommon to libpulse (in addition
# to the existing libpulse being linked to libpulsecommon). Duplicating the
# code allows us to prevent this circular linking.
688
libpulsecommon_@PA_MAJORMINOR@_la_SOURCES = \
689
		pulse/client-conf.c pulse/client-conf.h \
690
		pulse/fork-detect.c pulse/fork-detect.h \
691
		pulse/format.c pulse/format.h \
692
		pulse/json.c pulse/json.h \
693
694
695
696
697
698
699
700
		pulse/xmalloc.c pulse/xmalloc.h \
		pulse/proplist.c pulse/proplist.h \
		pulse/utf8.c pulse/utf8.h \
		pulse/channelmap.c pulse/channelmap.h \
		pulse/sample.c pulse/sample.h \
		pulse/util.c pulse/util.h \
		pulse/timeval.c pulse/timeval.h \
		pulse/rtclock.c pulse/rtclock.h \
701
		pulse/volume.c pulse/volume.h \
702
		pulsecore/atomic.h \
703
704
705
		pulsecore/authkey.c pulsecore/authkey.h \
		pulsecore/conf-parser.c pulsecore/conf-parser.h \
		pulsecore/core-error.c pulsecore/core-error.h \
706
		pulsecore/core-format.c pulsecore/core-format.h \
707
		pulsecore/core-rtclock.c pulsecore/core-rtclock.h \
708
		pulsecore/core-util.c pulsecore/core-util.h \
709
		pulsecore/creds.h \
710
711
		pulsecore/dynarray.c pulsecore/dynarray.h \
		pulsecore/endianmacros.h \
712
		pulsecore/fdsem.c pulsecore/fdsem.h \
713
		pulsecore/flist.c pulsecore/flist.h \
714
		pulsecore/g711.c pulsecore/g711.h \
715
		pulsecore/hashmap.c pulsecore/hashmap.h \
716
		pulsecore/i18n.c pulsecore/i18n.h \
717
		pulsecore/idxset.c pulsecore/idxset.h \
718
		pulsecore/arpa-inet.c pulsecore/arpa-inet.h \
719
720
		pulsecore/iochannel.c pulsecore/iochannel.h \
		pulsecore/ioline.c pulsecore/ioline.h \
721
		pulsecore/ipacl.c pulsecore/ipacl.h \
722
723
724
		pulsecore/llist.h \
		pulsecore/lock-autospawn.c pulsecore/lock-autospawn.h \
		pulsecore/log.c pulsecore/log.h \
725
		pulsecore/ratelimit.c pulsecore/ratelimit.h \
726
		pulsecore/macro.h \
727
728
729
730
		pulsecore/mcalign.c pulsecore/mcalign.h \
		pulsecore/memblock.c pulsecore/memblock.h \
		pulsecore/memblockq.c pulsecore/memblockq.h \
		pulsecore/memchunk.c pulsecore/memchunk.h \
731
		pulsecore/native-common.c pulsecore/native-common.h \
732
733
734
735
736
737
		pulsecore/once.c pulsecore/once.h \
		pulsecore/packet.c pulsecore/packet.h \
		pulsecore/parseaddr.c pulsecore/parseaddr.h \
		pulsecore/pdispatch.c pulsecore/pdispatch.h \
		pulsecore/pid.c pulsecore/pid.h \
		pulsecore/pipe.c pulsecore/pipe.h \
738
		pulsecore/memtrap.c pulsecore/memtrap.h \
739
		pulsecore/aupdate.c pulsecore/aupdate.h \
740
741
742
743
744
		pulsecore/proplist-util.c pulsecore/proplist-util.h \
		pulsecore/pstream-util.c pulsecore/pstream-util.h \
		pulsecore/pstream.c pulsecore/pstream.h \
		pulsecore/queue.c pulsecore/queue.h \
		pulsecore/random.c pulsecore/random.h \
745
		pulsecore/refcnt.h \
746
		pulsecore/srbchannel.c pulsecore/srbchannel.h \
747
		pulsecore/sample-util.c pulsecore/sample-util.h \
748
		pulsecore/mem.h \
749
		pulsecore/shm.c pulsecore/shm.h \
750
		pulsecore/bitset.c pulsecore/bitset.h \
751
752
753
754
755
756
757
758
		pulsecore/socket-client.c pulsecore/socket-client.h \
		pulsecore/socket-server.c pulsecore/socket-server.h \
		pulsecore/socket-util.c pulsecore/socket-util.h \
		pulsecore/strbuf.c pulsecore/strbuf.h \
		pulsecore/strlist.c pulsecore/strlist.h \
		pulsecore/tagstruct.c pulsecore/tagstruct.h \
		pulsecore/time-smoother.c pulsecore/time-smoother.h \
		pulsecore/tokenizer.c pulsecore/tokenizer.h \
759
		pulsecore/usergroup.c pulsecore/usergroup.h \
760
		pulsecore/sndfile-util.c pulsecore/sndfile-util.h \
761
		pulsecore/socket.h
762

763
if OS_IS_WIN32
764
765
766
libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
		pulsecore/poll-win32.c pulsecore/poll.h \
		pulsecore/winerrno.h
767
768
769
770
else
libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += pulsecore/poll-posix.c pulsecore/poll.h
endif

771
libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS = $(AM_CFLAGS) $(LIBSNDFILE_CFLAGS)
772
libpulsecommon_@PA_MAJORMINOR@_la_LDFLAGS = $(AM_LDFLAGS) $(AM_LIBLDFLAGS) -avoid-version
773
libpulsecommon_@PA_MAJORMINOR@_la_LIBADD = $(AM_LIBADD) $(LIBWRAP_LIBS) $(WINSOCK_LIBS) $(LTLIBICONV) $(LIBSNDFILE_LIBS)
774

775
776
777
778
779
if HAVE_MEMFD
libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
		pulsecore/memfd-wrappers.h
endif

780
if HAVE_X11
781
782
783
libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
		pulse/client-conf-x11.c pulse/client-conf-x11.h \
		pulsecore/x11prop.c pulsecore/x11prop.h
784
785
libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(X11_CFLAGS)
libpulsecommon_@PA_MAJORMINOR@_la_LDFLAGS += $(X11_LIBS)
786
787
endif

788
789
790
791
if HAVE_SYSTEMD_DAEMON
libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(SYSTEMD_FLAGS) $(SYSTEMDDAEMON_FLAGS)
libpulsecommon_@PA_MAJORMINOR@_la_LDFLAGS += $(SYSTEMD_LIBS) $(SYSTEMDDAEMON_LIBS)
endif
792
if HAVE_SYSTEMD_JOURNAL
793
794
libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(SYSTEMD_FLAGS) $(SYSTEMDJOURNAL_FLAGS)
libpulsecommon_@PA_MAJORMINOR@_la_LDFLAGS += $(SYSTEMD_LIBS) $(SYSTEMDJOURNAL_LIBS)
795
796
endif

797
# proplist-util.h uses these header files, but not the library itself!
Marc-Antoine Perennou's avatar
Marc-Antoine Perennou committed
798
libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(GLIB20_CFLAGS) $(GTK30_CFLAGS)
799

800
## Please note that libpulsecommon implicitly also depends on<
801
## libpulse! i.e. we have a cyclic dependency here. Which is intended
802
803
## since libpulse only includes stable, official APIs, while
## libpulsecommon only includes unofficial APIs.
804

805
if OS_IS_WIN32
806
libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
807
808
809
		pulsecore/mutex-win32.c pulsecore/mutex.h \
		pulsecore/thread-win32.c pulsecore/thread.h \
		pulsecore/semaphore-win32.c pulsecore/semaphore.h
810
811
else !OS_IS_WIN32
if OS_IS_DARWIN
812
libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
813
814
815
816
		pulsecore/mutex-posix.c pulsecore/mutex.h \
		pulsecore/thread-posix.c pulsecore/thread.h \
		pulsecore/semaphore-osx.c pulsecore/semaphore.h
else !OS_IS_DARWIN
817
libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
818
819
820
		pulsecore/mutex-posix.c pulsecore/mutex.h \
		pulsecore/thread-posix.c pulsecore/thread.h \
		pulsecore/semaphore-posix.c pulsecore/semaphore.h
821
822
endif !OS_IS_DARWIN
endif !OS_IS_WIN32
823

824
if HAVE_LIBASYNCNS
825
826
libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(LIBASYNCNS_CFLAGS)
libpulsecommon_@PA_MAJORMINOR@_la_LIBADD += $(LIBASYNCNS_LIBS)
827
828
829
endif

if OS_IS_WIN32
830
libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += pulsecore/dllmain.c
831
832
endif

833
if HAVE_DBUS
834
libpulsecommon_@PA_MAJORMINOR@_la_SOURCES += \
835
836
		pulsecore/dbus-util.c pulsecore/dbus-util.h \
		pulsecore/rtkit.c pulsecore/rtkit.h
837
838
libpulsecommon_@PA_MAJORMINOR@_la_CFLAGS += $(DBUS_CFLAGS)
libpulsecommon_@PA_MAJORMINOR@_la_LIBADD += $(DBUS_LIBS)
839
840
endif