~ubuntu-branches/ubuntu/trusty/geis/trusty

« back to all changes in this revision

Viewing changes to testsuite/geis2/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Chase Douglas
  • Date: 2012-07-30 08:51:42 UTC
  • Revision ID: package-import@ubuntu.com-20120730085142-jrc33ygjvt0ob1wl
Tags: upstream-2.2.11
ImportĀ upstreamĀ versionĀ 2.2.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# @file testsuite/geis2/Makefile.am 
 
3
# @brief automake recipe for the geis v2.0 testsuite testing directory
 
4
#
 
5
 
 
6
test_targets = 
 
7
 
 
8
##### check_geis2_api - Tests using Check C testing framework #####
 
9
 
 
10
if HAVE_CHECK
 
11
  test_targets += check_geis2_api
 
12
endif
 
13
 
 
14
check_geis2_api_SOURCES = \
 
15
        check_attr.c \
 
16
        check_class.c \
 
17
        check_config.c \
 
18
        check_device.c \
 
19
        check_error_codes.c \
 
20
        check_event.c \
 
21
        check_filter.c \
 
22
        check_frame.c \
 
23
        check_geis_new.c \
 
24
        check_general_types.c \
 
25
        check_region.c \
 
26
        check_subscription.c \
 
27
        check_version_macro.c \
 
28
        check_geis2_api.c
 
29
 
 
30
check_geis2_api_CPPFLAGS = \
 
31
        -Wno-unused -Wno-unused-function -Wno-unused-but-set-variable \
 
32
        -I$(top_srcdir) \
 
33
        -I$(top_srcdir)/include \
 
34
        -I$(top_srcdir)/libgeis \
 
35
        $(CHECK_CFLAGS)
 
36
 
 
37
check_geis2_api_LDADD = \
 
38
        $(top_builddir)/libgeis/libgeis.la \
 
39
        $(CHECK_LIBS)
 
40
 
 
41
#### gtest_geis2_grail_backend - Test for the GRAIL backend of Geis v2 API #####
 
42
####                             using gtest                               #####
 
43
 
 
44
if HAVE_GTEST
 
45
  test_targets += gtest_geis2_grail_backend
 
46
endif
 
47
 
 
48
gtest_geis2_grail_backend_SOURCES = \
 
49
        gtest_grail_backend.h gtest_grail_backend.cpp \
 
50
        gtest_gbe_accept_ended_grail_gesture.cpp \
 
51
        gtest_gbe_deactivate_sub.cpp \
 
52
        gtest_gbe_direct_touch_coords.cpp \
 
53
        gtest_gbe_construction_finished.cpp \
 
54
        gtest_gbe_outdated_events.cpp
 
55
 
 
56
gtest_geis2_grail_backend_CPPFLAGS = \
 
57
        --std=c++0x \
 
58
        -I$(top_srcdir) \
 
59
        -I$(top_srcdir)/include \
 
60
        -I$(top_srcdir)/libgeis \
 
61
        -I$(top_srcdir)/testsuite/gtest \
 
62
        -I$(top_srcdir)/testsuite/x11_mocks \
 
63
        -DTEST_ROOT_DIR=\"$(abs_top_srcdir)/testsuite/\"
 
64
        $(GTEST_CFLAGS)
 
65
 
 
66
gtest_geis2_grail_backend_LDFLAGS = \
 
67
        -export-dynamic
 
68
 
 
69
gtest_geis2_grail_backend_LDADD = \
 
70
        $(top_builddir)/testsuite/gtest/libgtest_geis.a \
 
71
        $(top_builddir)/testsuite/x11_mocks/libx11_mocks.a \
 
72
        $(top_builddir)/libgeis/libgeis.la \
 
73
        $(GTEST_LIBS)
 
74
 
 
75
#### gtest_geis2_api - Integration tests using xorg-gest and evemu #####
 
76
 
 
77
if ENABLE_INTEGRATION_TESTS
 
78
  test_targets += gtest_geis2_api
 
79
endif
 
80
 
 
81
gtest_geis2_api_SOURCES = \
 
82
        gtest_attrs.cpp \
 
83
        gtest_config.cpp \
 
84
        gtest_devices.cpp \
 
85
        gtest_subscriptions.cpp
 
86
 
 
87
nodist_gtest_geis2_api_SOURCES = \
 
88
        $(XORG_GTEST_SOURCE)/src/xorg-gtest_main.cpp
 
89
 
 
90
gtest_geis2_api_CPPFLAGS = \
 
91
        --std=c++0x \
 
92
        -I$(top_srcdir) \
 
93
        -I$(top_srcdir)/include \
 
94
        -I$(top_srcdir)/libgeis \
 
95
        -I$(top_srcdir)/testsuite/gtest \
 
96
        -DTEST_ROOT_DIR=\"$(abs_top_srcdir)/testsuite/\"
 
97
        $(GTEST_CFLAGS) \
 
98
        $(EVEMU_CFLAGS) \
 
99
        $(XORG_GTEST_CFLAGS)
 
100
 
 
101
gtest_geis2_api_LDADD = \
 
102
        $(top_builddir)/testsuite/gtest/libgtest_geis.a \
 
103
        $(top_builddir)/libgeis/libgeis.la \
 
104
        $(XORG_GTEST_LIBS) \
 
105
        $(EVEMU_LIBS) \
 
106
        $(XI2_LIBS)
 
107
 
 
108
MOSTLYCLEANFILES = \
 
109
        geis2_api.log \
 
110
        geis2_api.xml
 
111
 
 
112
TESTS = $(test_targets)
 
113
check_PROGRAMS = $(test_targets)