blob: 29b0a980e5d36fa37e8b1a8717cd5e16a860638c (
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
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
|
NULL =
CLEANFILES =
DISTCLEANFILES =
EXTRA_DIST =
TESTS = \
test-freerdp2-wrapper \
$(NULL)
check_PROGRAMS = \
test-freerdp2-auth \
$(TESTS) \
$(NULL)
CLEANFILES += \
test-freerdp2-auth \
$(TESTS) \
$(NULL)
AM_CPPFLAGS = $(GTEST_CPPFLAGS) \
$(REMOTE_APPS_MANAGER_CFLAGS) \
-I${top_srcdir}/src -Wall -Werror \
$(NULL)
AM_CXXFLAGS = $(GTEST_CXXFLAGS) \
$(REMOTE_APPS_MANAGER_CFLAGS) \
$(NULL)
AM_CFLAGS = \
-Wall \
-g \
$(NULL)
##########################
# Google Test Test Suite #
##########################
check_LIBRARIES = libgtest.a libgtest_main.a
gtest-all.cc:
cp $(GTEST_SOURCE)/src/gtest-all.cc .
gtest_main.cc:
cp $(GTEST_SOURCE)/src/gtest_main.cc .
CLEANFILES += \
gtest-all.cc \
gtest_main.cc \
$(NULL)
nodist_libgtest_a_SOURCES = \
gtest-all.cc \
$(NULL)
nodist_libgtest_main_a_SOURCES = \
gtest_main.cc \
$(NULL)
libgtest_a_CPPFLAGS = \
$(GTEST_CPPFLAGS) -w \
$(AM_CPPFLAGS) \
$(NULL)
libgtest_main_a_CPPFLAGS = \
$(GTEST_CPPFLAGS) -w \
$(AM_CPPFLAGS) \
$(NULL)
libgtest_a_CXXFLAGS = \
$(AM_CXXFLAGS) \
$(NULL)
libgtest_main_a_CXXFLAGS = \
$(AM_CXXFLAGS) \
$(NULL)
##########################
# Wrapper
##########################
test_freerdp2_wrapper: test-freerdp2-auth
test_freerdp2_wrapper_SOURCES = \
mock_pam.c mock_pam.h \
mock_guest.c mock_guest.h \
test-freerdp2-wrapper.cc \
$(NULL)
test_freerdp2_wrapper_LDADD = \
libgtest.a libgtest_main.a \
${top_srcdir}/src/pam_freerdp2.la \
$(FREERDP2_LIBS) \
$(WINPR2_LIBS) \
$(NULL)
test_freerdp2_wrapper_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I${top_srcdir}/include \
-I${top_srcdir}/src \
$(GTEST_CPPFLAGS) \
$(FREERDP2_CPPFLAGS) \
$(WINPR2_CPPFLAGS) \
$(NULL)
test_freerdp2_wrapper_CXXFLAGS = \
$(AM_CXXFLAGS) \
-DAUTH_CHECK="\"$(abs_builddir)/test-freerdp2-auth\"" \
$(GTEST_CXXFLAGS) \
$(FREERDP2_CXXFLAGS) \
$(WINPR2_CXXFLAGS) \
$(NULL)
test_freerdp2_wrapper_LDFLAGS = \
$(GTEST_LDFLAGS) \
$(FREERDP2_LDFLAGS) \
$(WINPR2_LDFLAGS) \
-pthread \
$(NULL)
##########################
# Auth tool
##########################
test_freerdp2_auth_SOURCES = \
test-freerdp2-auth.c \
$(NULL)
|