0.9.21 release -- It changes so that the layer controlling function of GENIVI may...
[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 GENIVI_INCLUDE = -I/usr/include/ilm -I/usr/include/layermanager
7 GENIVI_LIBS = -lilmCommon -lilmControl -lilmClient
8
9 AM_CFLAGS = $(GCC_CFLAGS) $(EFL_INCLUDE)
10 AM_CPPFLAGS = -I$(top_srcdir)/src -DUNIT_TEST $(COMPOSITOR_CFLAGS)
11
12 noinst_PROGRAMS =               \
13         test-send_event         \
14         test-homescreen         \
15         test-client                     \
16         test-eflapp
17
18 check_LTLIBRARIES = $(TESTS)
19 check_PROGRAMS = test-homescreen test-client test-eflapp test-send_event
20
21 AM_LDFLAGS = -module -avoid-version -rpath $(libdir) -lwayland-egl -lEGL -lGLESv2
22
23 test_common_src = test-common.c test-common.h
24 test_protocol_lib = ../src/.libs/libico-uxf-weston-plugin.so
25 test_efl_libs = -lecore_evas -lecore -levas -lecore_wayland -lelementary
26 test_wayland_client = -lwayland-client
27
28 test_send_event_SOURCES = test-send_event.c $(test_common_src)
29 test_send_event_LDADD = $(SIMPLE_CLIENT_LIBS) $(test_wayland_client)
30
31 test_homescreen_SOURCES = test-homescreen.c $(test_common_src) test-thumbnail.c
32 test_homescreen_CFLAGS = $(GENIVI_INCLUDE) $(GCC_CFLAGS) $(EXT_CFLAGS) $(PLUGIN_CFLAGS)
33 test_homescreen_LDADD = $(GENIVI_LIBS) $(SIMPLE_CLIENT_LIBS) $(test_protocol_lib) $(test_wayland_client) $(PLUGIN_LIBS)
34
35 test_client_SOURCES = test-client.c $(test_common_src)
36 test_client_LDADD = $(SIMPLE_CLIENT_LIBS) $(test_protocol_lib) $(test_wayland_client)
37
38 test_eflapp_SOURCES = test-eflapp.c
39 test_eflapp_LDADD = $(SIMPLE_CLIENT_LIBS) $(test_efl_libs)
40
41 EXTRA_DIST = weston-plugin-test
42