BugFix: Package test script.
[profile/ivi/ico-uxf-device-input-controller.git] / tests / Makefile.am
1 TESTS_ENVIRONMENT = $(SHELL) $(top_srcdir)/tests/weston-plugin-test
2
3 export abs_builddir
4
5 AM_CFLAGS = $(GCC_CFLAGS)
6 AM_CPPFLAGS = -I$(top_srcdir)/src -DUNIT_TEST $(COMPOSITOR_CFLAGS)
7
8 noinst_PROGRAMS =               \
9         test-send_event         \
10         test-homescreen         \
11         test-client
12
13 check_LTLIBRARIES = $(TESTS)
14 check_PROGRAMS = test-homescreen test-client test-send_event
15
16 AM_LDFLAGS = -module -avoid-version -rpath $(libdir) -lwayland-egl -lEGL -lGLESv2
17 AM_CFLAGS = $(wayland_ivi_client_inc) $(GCC_CFLAGS)
18
19 test_common_src = test-common.c test-common.h
20 test_wayland_client = -lwayland-client
21 wayland_ivi_client_lib = -lico-uxf-weston-plugin
22 wayland_ivi_client_inc = -I/usr/include/ico-uxf-weston-plugin
23
24 test_send_event_SOURCES = test-send_event.c $(test_common_src)
25 test_send_event_LDADD = $(SIMPLE_CLIENT_LIBS) $(test_wayland_client)
26
27 test_homescreen_SOURCES = test-homescreen.c $(test_common_src)
28 test_homescreen_LDADD = $(SIMPLE_CLIENT_LIBS) $(wayland_ivi_client_lib) $(test_wayland_client)
29
30 test_client_SOURCES = test-client.c $(test_common_src)
31 test_client_LDADD = $(SIMPLE_CLIENT_LIBS) $(wayland_ivi_client_lib) $(test_wayland_client)
32
33 EXTRA_DIST = input-controller-test
34