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

« back to all changes in this revision

Viewing changes to testsuite/libgeis/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/libgeis/Makefile.am 
 
3
# @brief automake recipe for the GEIS v2.0 internals unit test suite
 
4
#
 
5
#
 
6
# Copyright 2010, 2011 Canonical, Ltd.
 
7
#
 
8
# This file is part of the geis library. This library is free software;
 
9
# you can redistribute it and/or modify it under the terms of the GNU Lesser
 
10
# General Public License as published by the Free Software Foundation; either
 
11
# version 3 of the License, or (at your option) any later version.
 
12
#
 
13
# This library is distributed in the hope that it will be useful, but WITHOUT
 
14
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
15
# FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
 
16
# details.
 
17
#
 
18
# You should have received a copy of the GNU Lesser General Public License
 
19
# along with this program; if not, write to the Free Software Foundation, Inc.,
 
20
# 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 
21
#
 
22
 
 
23
if HAVE_CHECK
 
24
  test_targets = check_geis2_internals
 
25
else
 
26
  test_targets = 
 
27
endif
 
28
 
 
29
compile_tests = check-c-compile check-cxx-compile
 
30
test_cppflags = \
 
31
        -I$(top_srcdir) \
 
32
        -I$(top_srcdir)/include \
 
33
        -I$(top_srcdir)/libgeis
 
34
 
 
35
TESTS = $(test_targets) $(compile_tests)
 
36
 
 
37
check_PROGRAMS = $(test_targets) $(compile_tests)
 
38
 
 
39
check_c_compile_SOURCES = check-c-compile.c
 
40
check_c_compile_CPPFLAGS = $(test_cppflags)
 
41
check_c_compile_LDADD = $(top_builddir)/libgeis/libgeis.la
 
42
 
 
43
check_cxx_compile_SOURCES = check-cxx-compile.cpp
 
44
check_cxx_compile_CPPFLAGS = $(test_cppflags)
 
45
check_cxx_compile_LDADD = $(top_builddir)/libgeis/libgeis.la
 
46
 
 
47
check_geis2_internals_SOURCES = \
 
48
        check_attr.c \
 
49
        check_backend_multiplexor.c \
 
50
        check_backend_token.c \
 
51
        check_class.c \
 
52
        check_device.c \
 
53
        check_error_reporting.c \
 
54
        check_event_queue.c \
 
55
        check_filter.c \
 
56
        check_filter_term.c \
 
57
        check_geis_private.c \
 
58
        check_region.c \
 
59
        check_subscription.c \
 
60
        check_select_devices.c \
 
61
        check_timer.c \
 
62
        check_geis2_internals.c
 
63
 
 
64
check_geis2_internals_CPPFLAGS = \
 
65
        $(test_cppflags) \
 
66
        $(CHECK_CFLAGS)
 
67
 
 
68
 
69
# Link against the (non-distributed) static libgeis to pick up the
 
70
# internal symbols.
 
71
#
 
72
check_geis2_internals_LDADD = \
 
73
        $(top_builddir)/libgeis/.libs/libgeis.a \
 
74
        $(DBUS_LIBS) \
 
75
        $(GRAIL_LIBS) \
 
76
        $(X11XCB_LIBS) \
 
77
        $(XCB_LIBS) \
 
78
        $(XI2_LIBS) \
 
79
        $(CHECK_LIBS) \
 
80
        -lm -ldl
 
81
 
 
82
MOSTLYCLEANFILES = \
 
83
        geis2_internals.log \
 
84
        geis2_internals.xml
 
85