summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: c1d95c1041052de11e7ca0fa8e033bc94f65e428 (plain)
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
NULL =

noinst_PROGRAMS =
TESTS = coroutine				\
	util					\
	session					\
	$(NULL)

if WITH_PHODAV
TESTS += pipe
endif

if WITH_POLKIT
TESTS += usb-acl-helper
noinst_PROGRAMS += mock-acl-helper
endif

noinst_PROGRAMS += $(TESTS)

AM_CPPFLAGS =					\
	$(COMMON_CFLAGS)			\
	$(GIO_CFLAGS)				\
	-I$(top_srcdir)/src			\
	-I$(top_builddir)/src			\
	-DG_LOG_DOMAIN=\"GSpice\"		\
	$(NULL)

AM_LDFLAGS = $(GIO_LIBS) -static

LDADD =							\
	$(top_builddir)/src/libspice-client-glib-2.0.la	\
	$(NULL)

util_SOURCES = util.c
coroutine_SOURCES = coroutine.c
session_SOURCES = session.c
pipe_SOURCES = pipe.c
usb_acl_helper_SOURCES = usb-acl-helper.c
usb_acl_helper_CFLAGS = -DTESTDIR=\"$(abs_builddir)\"
mock_acl_helper_SOURCES = mock-acl-helper.c

-include $(top_srcdir)/git.mk