File: Makefile.am

package info (click to toggle)
spice 0.14.3-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 9,880 kB
  • sloc: ansic: 74,618; sh: 4,571; python: 3,070; makefile: 760
file content (168 lines) | stat: -rw-r--r-- 3,630 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
NULL =

@VALGRIND_CHECK_RULES@
VALGRIND_SUPPRESSIONS_FILES = $(srcdir)/valgrind/glib.supp $(srcdir)/valgrind/spice.supp
EXTRA_DIST =				\
	$(VALGRIND_SUPPRESSIONS_FILES)	\
	meson.build			\
	pki/ca-cert.pem			\
	pki/server-cert.pem		\
	pki/server-key.pem		\
	$(NULL)

AM_CPPFLAGS =					\
	-DSPICE_TOP_SRCDIR=\"$(abs_top_srcdir)\"\
	-I$(top_srcdir)				\
	-I$(top_srcdir)/server			\
	-I$(top_builddir)/server		\
	-I$(top_srcdir)/server/tests		\
	$(COMMON_CFLAGS)			\
	$(GIO_UNIX_CFLAGS)			\
	$(GLIB2_CFLAGS)				\
	$(GOBJECT2_CFLAGS)			\
	$(SMARTCARD_CFLAGS)			\
	$(SPICE_NONPKGCONFIG_CFLAGS)		\
	$(SPICE_PROTOCOL_CFLAGS)		\
	$(WARN_CFLAGS)				\
	$(NULL)

noinst_LIBRARIES = libtest.a

libtest_a_SOURCES =				\
	basic-event-loop.c			\
	basic-event-loop.h			\
	test-display-base.c			\
	test-display-base.h			\
	test-glib-compat.h			\
	win-alarm.c				\
	win-alarm.h				\
	vmc-emu.c				\
	vmc-emu.h				\
	$(NULL)

LDADD =								\
	libtest.a						\
	$(SPICE_COMMON_DIR)/common/libspice-common.la		\
	$(top_builddir)/server/libserver.la			\
	$(GIO_UNIX_LIBS)					\
	$(GLIB2_LIBS)						\
	$(GOBJECT2_LIBS)					\
	$(SPICE_NONPKGCONFIG_LIBS)		                \
	$(NULL)

check_PROGRAMS =				\
	test-codecs-parsing			\
	test-options				\
	test-stat				\
	test-agent-msg-filter			\
	test-loop				\
	test-qxl-parsing			\
	test-leaks				\
	test-vdagent				\
	test-fail-on-null-core-interface	\
	test-empty-success			\
	test-channel				\
	test-stream-device			\
	test-record				\
	$(NULL)

if HAVE_SMARTCARD
check_PROGRAMS += test-smartcard
endif

if !OS_WIN32
check_PROGRAMS +=				\
	test-stream				\
	test-stat-file				\
	$(NULL)
endif

noinst_PROGRAMS =				\
	test-display-no-ssl			\
	test-display-streaming			\
	test-playback				\
	test-display-resolution-changes		\
	test-two-servers			\
	test-display-width-stride		\
	$(check_PROGRAMS)			\
	$(NULL)

if !OS_WIN32
noinst_PROGRAMS += \
	test-websocket \
	$(NULL)
endif

TESTS = $(check_PROGRAMS)			\
	$(NULL)

## spice-server-replay

noinst_PROGRAMS += spice-server-replay

spice_server_replay_SOURCES = replay.c		\
	../event-loop.c				\
	basic-event-loop.c			\
	basic-event-loop.h

spice_server_replay_LDADD =					\
	$(SPICE_COMMON_DIR)/common/libspice-common.la		\
	$(top_builddir)/server/libspice-server.la		\
	$(GLIB2_LIBS)						\
	$(GOBJECT2_LIBS)					\
	$(SPICE_NONPKGCONFIG_LIBS)		                \
	$(NULL)

## test-stat

noinst_LIBRARIES += \
	libtest-stat1.a \
	libtest-stat2.a \
	libtest-stat3.a \
	libtest-stat4.a \
	$(NULL)

test_stat_SOURCES = test-stat.c
test_stat_LDADD = \
	libtest-stat1.a \
	libtest-stat2.a \
	libtest-stat3.a \
	libtest-stat4.a \
	$(LDADD) \
	$(NULL)

libtest_stat1_a_SOURCES = stat-test.c
libtest_stat1_a_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_COMPRESS_STAT=0 -DTEST_RED_WORKER_STAT=0 -DTEST_NAME=stat_test1

libtest_stat2_a_SOURCES = stat-test.c
libtest_stat2_a_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_COMPRESS_STAT=0 -DTEST_RED_WORKER_STAT=1 -DTEST_NAME=stat_test2

libtest_stat3_a_SOURCES = stat-test.c
libtest_stat3_a_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_COMPRESS_STAT=1 -DTEST_RED_WORKER_STAT=0 -DTEST_NAME=stat_test3

libtest_stat4_a_SOURCES = stat-test.c
libtest_stat4_a_CPPFLAGS = $(AM_CPPFLAGS) -DTEST_COMPRESS_STAT=1 -DTEST_RED_WORKER_STAT=1 -DTEST_NAME=stat_test4

## test-gst (helper) and test-video-encoders (test)

if HAVE_GSTREAMER
noinst_PROGRAMS += test-gst

if ENABLE_EXTRA_CHECKS
TESTS += test-video-encoders
endif

test_gst_SOURCES = test-gst.c \
	$(NULL)
test_gst_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	$(GSTREAMER_0_10_CFLAGS)		\
	$(GSTREAMER_1_0_CFLAGS)			\
	$(NULL)
endif

EXTRA_DIST += test-video-encoders

if HAVE_SASL
check_PROGRAMS += test-sasl
endif