aboutsummaryrefslogtreecommitdiff
path: root/test/Makefile.am
blob: a790ba26940862a7e932e7aa44bdd41188be696c (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
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

check_LIBRARIES = libgtest.a
check_PROGRAMS = test-gactionmuxer

TESTS = $(check_PROGRAMS)

AM_CPPFLAGS = $(GTEST_CPPFLAGS) \
	-I${top_srcdir}/src

nodist_libgtest_a_SOURCES = \
	$(GTEST_SOURCE)/src/gtest-all.cc \
	$(GTEST_SOURCE)/src/gtest_main.cc
libgtest_a_CPPFLAGS = \
	$(GTEST_CPPFLAGS) -w \
	$(AM_CPPFLAGS)
libgtest_a_CXXFLAGS = \
	$(AM_CXXFLAGS)


test_gactionmuxer_SOURCES = \
	test-gactionmuxer.cpp \
	$(top_srcdir)/src/gactionmuxer.c \
	$(top_srcdir)/src/gactionmuxer.h

test_gactionmuxer_CPPFLAGS = $(APPLET_CFLAGS) $(AM_CPPFLAGS)
test_gactionmuxer_LDADD = $(APPLET_LIBS) libgtest.a


######################################
# Lib containing code under test
######################################

lib_LTLIBRARIES = \
	libindicator-messages-service.la

libindicator_messages_service_la_HEADERS = \
	$(top_srcdir)/src/gen-messages-service.xml.h \
	$(top_srcdir)/src/app-section.h \
	$(top_srcdir)/src/dbus-data.h \
	$(top_srcdir)/src/status-items.h \
	$(top_srcdir)/src/gactionmuxer.h

libindicator_messages_service_la_SOURCES = \
	$(top_srcdir)/src/messages-service.c \
	$(top_srcdir)/src/messages-service-dbus.c \
	$(top_srcdir)/src/gen-messages-service.xml.c \
	$(top_srcdir)/src/app-section.c \
	$(top_srcdir)/src/status-items.c \
	$(top_srcdir)/src/gactionmuxer.c

libindicator_messages_service_ladir = \
	$(includedir)/libindicator-messages-service/

libindicator_messages_service_la_CFLAGS = \
	$(APPLET_CFLAGS) \
	$(COVERAGE_CFLAGS) \
	-Wall \
	-Wl,-Bsymbolic-functions \
	-Wl,-z,defs \
	-Wl,--as-needed \
	-Werror \
	-DG_LOG_DOMAIN=\"Indicator-Messages\" \
	-DSTATUS_PROVIDER_DIR=\"$(STATUS_PROVIDER_DIR)\"

libindicator_messages_service_la_LIBADD = \
	$(APPLET_LIBS) \
	$(top_builddir)/src/.libs/libindicator-messages-status-provider.la

libindicator_messages_service_la_LDFLAGS = \
	$(COVERAGE_LDFLAGS)