~ubuntu-branches/ubuntu/raring/frame/raring

« back to all changes in this revision

Viewing changes to test/regular/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Francis Ginther
  • Date: 2012-07-27 10:36:59 UTC
  • Revision ID: package-import@ubuntu.com-20120727103659-lzgo2n21df0g4udi
Tags: upstream-2.2.4
ImportĀ upstreamĀ versionĀ 2.2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
test_targets = check-c-compile check-cxx-compile
 
2
 
 
3
if HAVE_GTEST
 
4
test_targets += check-regular
 
5
endif
 
6
 
 
7
TESTS = $(test_targets)
 
8
check_PROGRAMS = $(test_targets) check-static-type-checking
 
9
 
 
10
AM_CFLAGS = \
 
11
        $(COVERAGE_CFLAGS)
 
12
 
 
13
AM_CPPFLAGS = \
 
14
        -I$(top_srcdir)/include \
 
15
        -iquote$(srcdir)
 
16
 
 
17
check_c_compile_SOURCES = check-c-compile.c
 
18
check_c_compile_LDADD = \
 
19
        $(top_builddir)/src/libframe.la \
 
20
        $(COVERAGE_LIBS)
 
21
 
 
22
check_cxx_compile_SOURCES = check-cxx-compile.cpp
 
23
check_cxx_compile_LDADD = \
 
24
        $(top_builddir)/src/libframe.la \
 
25
        $(COVERAGE_LIBS)
 
26
 
 
27
check-static-type-checking$(EXEEXT):
 
28
        @echo "Checking whether static type checking works..."
 
29
        $(AM_V_at)if $(CC) -I../../include -L../../.libs check-static-type-checking.c -o check_static_type_checking; then \
 
30
                echo "FAIL: Static type checking source compiled without error"; \
 
31
                exit -1; \
 
32
        else \
 
33
                echo "SUCCESS: Static type checking source failed to compile"; \
 
34
                exit 0; \
 
35
        fi
 
36
 
 
37
### check-regular
 
38
 
 
39
check_regular_SOURCES = \
 
40
        accept-ended-touch.cpp \
 
41
        frame-fixture.cpp \
 
42
        frame-fixture.h
 
43
 
 
44
#
 
45
# Link against the (non-distributed) static lib to pick up the
 
46
# internal symbols.
 
47
#
 
48
check_regular_LDADD = \
 
49
        $(top_builddir)/src/.libs/libframe.a \
 
50
        $(top_builddir)/test/gtest/libgtest.a \
 
51
        $(top_builddir)/test/gtest/libgtest_main.a \
 
52
        $(top_builddir)/test/x11_mocks/libx11_mocks.a \
 
53
        $(COVERAGE_LIBS) \
 
54
        $(GTEST_LIBS)
 
55
 
 
56
check_regular_CPPFLAGS = \
 
57
        --std=c++0x \
 
58
        -I$(top_srcdir)/test/x11_mocks \
 
59
        $(AM_CPPFLAGS) \
 
60
        $(WARNING_CPPFLAGS) \
 
61
        $(GTEST_CPPFLAGS)