package version up to 2.10.3
[platform/core/uifw/libtdm.git] / haltests / Makefile.am
1 bin_PROGRAMS = tdm-haltests
2
3 tdm_haltests_SOURCES = \
4         src/tc_tdm_main.cpp \
5         src/tc_tdm_log.cpp \
6         src/tc_tdm_env.cpp \
7         src/tc_tdm_event_loop.cpp \
8         src/tc_tdm_buffer.cpp \
9         src/tc_tdm_helper.cpp \
10         src/tc_tdm_vblank.cpp \
11         src/tc_tdm_display.cpp \
12         src/tc_tdm_output.cpp \
13         src/tc_tdm_layer.cpp \
14         src/tc_tdm_client.cpp \
15         src/tc_tdm_backend_env.cpp \
16         src/tc_tdm_backend_display.cpp \
17         src/tc_tdm_backend_pp.cpp \
18         src/tc_tdm_backend_capture.cpp \
19         src/tc_tdm_hwc.cpp \
20         src/tc_tdm_hwc_window.cpp
21
22 tdm_haltests_SOURCES += \
23         ../tools/buffers.c
24
25 EXTRA_CFLAGS="-Wno-dangling-else"
26
27 tdm_haltests_CXXFLAGS = \
28         $(CXXFLAGS) \
29         $(TDM_CFLAGS) \
30         $(EXTRA_CFLAGS) \
31         -I../src \
32         -I../include \
33         -I../client \
34         -I../tools \
35         -I$(includedir)/gtest \
36         -fpermissive
37 # The flag -w is used, because there are many warnings in libtdm's sources.
38 # Warnings occur because we build project with g++.
39 # In C++ we need to use explicit types conversion.
40
41 tdm_haltests_LDFLAGS = \
42         ${LDFLAGS} \
43         $(TDM_LIBS) \
44         $(top_builddir)/src/libtdm.la \
45         $(top_builddir)/client/libtdm-client.la \
46         $(top_builddir)/common/libtdm-common.la \
47         -lgtest
48
49 check:
50         ./tdm-haltests