a86332cc5991ddadba59c5dcb859a5c04b853fe7
[profile/ivi/ico-uxf-weston-plugin.git] / tests / Makefile.am
1 TESTS_ENVIRONMENT = $(SHELL) $(top_srcdir)/tests/weston-plugin-test
2
3 export abs_builddir
4
5 EFL_INCLUDE = `pkg-config --cflags ecore-evas ecore evas ecore-wayland elementary`
6 AM_CFLAGS = $(GCC_CFLAGS) $(EFL_INCLUDE)
7 AM_CPPFLAGS = -I$(top_srcdir)/src -DUNIT_TEST $(COMPOSITOR_CFLAGS)
8
9 noinst_PROGRAMS =               \
10         test-send_event         \
11         test-homescreen         \
12         test-client                     \
13         test-eflapp
14
15 check_LTLIBRARIES = $(TESTS)
16 check_PROGRAMS = test-homescreen test-client test-eflapp test-send_event
17
18 AM_LDFLAGS = -module -avoid-version -rpath $(libdir) -lwayland-egl -lEGL -lGLESv2
19
20 test_common_src = test-common.c test-common.h
21 test_protocol_lib = ../src/.libs/libico-uxf-weston-plugin.so
22 test_efl_libs = -lecore_evas -lecore -levas -lecore_wayland -lelementary
23 test_wayland_client = -lwayland-client
24
25 test_send_event_SOURCES = test-send_event.c $(test_common_src)
26 test_send_event_LDADD = $(SIMPLE_CLIENT_LIBS) $(test_wayland_client)
27
28 test_homescreen_SOURCES = test-homescreen.c $(test_common_src) test-thumbnail.c
29 test_homescreen_CFLAGS = $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
30 test_homescreen_LDADD = $(SIMPLE_CLIENT_LIBS) $(test_protocol_lib) $(test_wayland_client) $(PLUGIN_LIBS)
31
32 test_client_SOURCES = test-client.c $(test_common_src)
33 test_client_LDADD = $(SIMPLE_CLIENT_LIBS) $(test_protocol_lib) $(test_wayland_client)
34
35 test_eflapp_SOURCES = test-eflapp.c
36 test_eflapp_LDADD = $(SIMPLE_CLIENT_LIBS) $(test_efl_libs)
37
38 EXTRA_DIST = weston-plugin-test
39