tc: add tests for tdm_hwc and tdm_hwc_window
[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 tdm_haltests_CXXFLAGS = \
26         $(CXXFLAGS) \
27         $(TDM_CFLAGS) \
28         -I../src \
29         -I../include \
30         -I../client \
31         -I../tools \
32         -I$(includedir)/gtest \
33         -fpermissive
34 # The flag -w is used, because there are many warnings in libtdm's sources.
35 # Warnings occur because we build project with g++.
36 # In C++ we need to use explicit types conversion.
37
38 tdm_haltests_LDFLAGS = \
39         ${LDFLAGS} \
40         $(TDM_LIBS) \
41         $(top_builddir)/src/libtdm.la \
42         $(top_builddir)/client/libtdm-client.la \
43         $(top_builddir)/common/libtdm-common.la \
44         -lgtest
45
46 check:
47         ./tdm-haltests