2014-05-27 11:07:54 +04:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2014-01-28 09:46:30 +04:00
|
|
|
bin_PROGRAMS =
|
2014-01-28 11:05:52 +04:00
|
|
|
noinst_PROGRAMS =
|
2014-02-01 04:15:11 +04:00
|
|
|
libexec_PROGRAMS =
|
2014-01-28 09:56:12 +04:00
|
|
|
moduledir = $(libdir)/weston
|
|
|
|
module_LTLIBRARIES =
|
2016-07-22 16:51:51 +03:00
|
|
|
libweston_moduledir = $(libdir)/libweston-$(LIBWESTON_MAJOR)
|
2016-06-02 21:48:14 +03:00
|
|
|
libweston_module_LTLIBRARIES =
|
2014-01-28 11:05:52 +04:00
|
|
|
noinst_LTLIBRARIES =
|
2014-01-28 09:56:12 +04:00
|
|
|
BUILT_SOURCES =
|
2014-01-28 09:46:30 +04:00
|
|
|
|
2015-02-09 18:57:29 +03:00
|
|
|
AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
|
2013-02-25 22:03:15 +04:00
|
|
|
|
2014-11-27 07:24:16 +03:00
|
|
|
EXTRA_DIST = weston.ini.in ivi-shell/weston.ini.in
|
2013-11-22 20:46:00 +04:00
|
|
|
|
|
|
|
weston.ini : $(srcdir)/weston.ini.in
|
|
|
|
$(AM_V_GEN)$(SED) \
|
|
|
|
-e 's|@bindir[@]|$(bindir)|g' \
|
|
|
|
-e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
|
|
|
|
-e 's|@libexecdir[@]|$(libexecdir)|g' \
|
|
|
|
$< > $@
|
|
|
|
|
2014-11-27 07:24:16 +03:00
|
|
|
ivi-shell/weston.ini : $(srcdir)/ivi-shell/weston.ini.in
|
2015-07-17 14:33:45 +03:00
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
|
2014-11-27 07:24:16 +03:00
|
|
|
-e 's|@bindir[@]|$(bindir)|g' \
|
|
|
|
-e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
|
2015-03-24 15:09:57 +03:00
|
|
|
-e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
|
2014-11-27 07:24:16 +03:00
|
|
|
-e 's|@libexecdir[@]|$(libexecdir)|g' \
|
2015-03-24 14:51:05 +03:00
|
|
|
-e 's|@plugin_prefix[@]||g' \
|
|
|
|
$< > $@
|
|
|
|
|
|
|
|
tests/weston-ivi.ini : $(srcdir)/ivi-shell/weston.ini.in
|
2015-07-17 14:33:45 +03:00
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
|
2015-03-24 14:51:05 +03:00
|
|
|
-e 's|@bindir[@]|$(bindir)|g' \
|
|
|
|
-e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
|
2015-03-24 15:09:57 +03:00
|
|
|
-e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
|
2015-06-16 21:30:35 +03:00
|
|
|
-e 's|@libexecdir[@]|$(abs_builddir)|g' \
|
2015-03-24 14:51:05 +03:00
|
|
|
-e 's|@plugin_prefix[@]|$(abs_top_builddir)/.libs/|g' \
|
2014-11-27 07:24:16 +03:00
|
|
|
$< > $@
|
|
|
|
|
|
|
|
all-local : weston.ini ivi-shell/weston.ini
|
2013-12-17 11:12:46 +04:00
|
|
|
|
2014-02-01 02:03:09 +04:00
|
|
|
AM_CFLAGS = $(GCC_CFLAGS)
|
|
|
|
|
2014-01-28 11:05:52 +04:00
|
|
|
AM_CPPFLAGS = \
|
2016-06-03 17:12:10 +03:00
|
|
|
-I$(top_builddir)/libweston \
|
2016-07-04 16:57:11 +03:00
|
|
|
-I$(top_srcdir)/libweston \
|
2014-02-01 04:15:11 +04:00
|
|
|
-I$(top_builddir)/clients \
|
2014-02-01 02:03:09 +04:00
|
|
|
-I$(top_builddir)/tests \
|
2014-01-28 11:05:52 +04:00
|
|
|
-I$(top_srcdir)/shared \
|
2014-02-02 00:39:12 +04:00
|
|
|
-I$(top_builddir)/protocol \
|
2014-01-28 11:05:52 +04:00
|
|
|
-DDATADIR='"$(datadir)"' \
|
2016-06-02 21:48:14 +03:00
|
|
|
-DLIBWESTON_MODULEDIR='"$(libweston_moduledir)"' \
|
2014-02-01 04:15:11 +04:00
|
|
|
-DLIBEXECDIR='"$(libexecdir)"' \
|
|
|
|
-DBINDIR='"$(bindir)"'
|
2014-01-28 11:05:52 +04:00
|
|
|
|
2015-03-24 14:51:05 +03:00
|
|
|
CLEANFILES = weston.ini \
|
|
|
|
ivi-shell/weston.ini \
|
|
|
|
tests/weston-ivi.ini \
|
2015-05-26 18:21:03 +03:00
|
|
|
internal-screenshot-00.png \
|
2015-03-24 14:51:05 +03:00
|
|
|
$(BUILT_SOURCES)
|
2014-01-28 09:40:28 +04:00
|
|
|
|
2016-07-22 16:51:51 +03:00
|
|
|
lib_LTLIBRARIES = libweston-@LIBWESTON_MAJOR@.la
|
|
|
|
libweston_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
|
|
|
|
libweston_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
|
|
|
|
libweston_@LIBWESTON_MAJOR@_la_LIBADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
|
2016-06-02 21:48:12 +03:00
|
|
|
$(DLOPEN_LIBS) -lm $(CLOCK_GETTIME_LIBS) \
|
|
|
|
$(LIBINPUT_BACKEND_LIBS) libshared.la
|
2016-07-22 16:51:51 +03:00
|
|
|
libweston_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
|
2014-01-28 11:05:52 +04:00
|
|
|
|
2016-07-22 16:51:51 +03:00
|
|
|
libweston_@LIBWESTON_MAJOR@_la_SOURCES = \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/git-version.h \
|
|
|
|
libweston/log.c \
|
|
|
|
libweston/compositor.c \
|
|
|
|
libweston/compositor.h \
|
|
|
|
libweston/compositor-drm.h \
|
|
|
|
libweston/compositor-fbdev.h \
|
|
|
|
libweston/compositor-headless.h \
|
|
|
|
libweston/compositor-rdp.h \
|
|
|
|
libweston/compositor-wayland.h \
|
|
|
|
libweston/compositor-x11.h \
|
|
|
|
libweston/input.c \
|
|
|
|
libweston/data-device.c \
|
|
|
|
libweston/screenshooter.c \
|
|
|
|
libweston/clipboard.c \
|
|
|
|
libweston/zoom.c \
|
|
|
|
libweston/bindings.c \
|
|
|
|
libweston/animation.c \
|
|
|
|
libweston/noop-renderer.c \
|
|
|
|
libweston/pixman-renderer.c \
|
|
|
|
libweston/pixman-renderer.h \
|
2016-06-29 12:54:26 +03:00
|
|
|
libweston/plugin-registry.c \
|
|
|
|
libweston/plugin-registry.h \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/timeline.c \
|
|
|
|
libweston/timeline.h \
|
|
|
|
libweston/timeline-object.h \
|
|
|
|
libweston/linux-dmabuf.c \
|
|
|
|
libweston/linux-dmabuf.h \
|
2015-06-16 23:15:13 +03:00
|
|
|
shared/helpers.h \
|
2014-01-28 11:05:52 +04:00
|
|
|
shared/matrix.c \
|
|
|
|
shared/matrix.h \
|
2015-07-03 15:44:50 +03:00
|
|
|
shared/timespec-util.h \
|
2014-01-28 11:05:52 +04:00
|
|
|
shared/zalloc.h \
|
2015-03-20 17:26:51 +03:00
|
|
|
shared/platform.h \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/weston-egl-ext.h
|
2015-09-25 18:00:27 +03:00
|
|
|
|
|
|
|
if SYSTEMD_NOTIFY_SUPPORT
|
|
|
|
module_LTLIBRARIES += systemd-notify.la
|
|
|
|
systemd_notify_la_LDFLAGS = -module -avoid-version
|
|
|
|
systemd_notify_la_LIBADD = $(SYSTEMD_DAEMON_LIBS)
|
|
|
|
systemd_notify_la_CFLAGS = \
|
2016-04-05 14:08:11 +03:00
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(SYSTEMD_DAEMON_CFLAGS) \
|
2015-09-25 18:00:27 +03:00
|
|
|
$(PIXMAN_CFLAGS) \
|
|
|
|
$(AM_CFLAGS)
|
|
|
|
systemd_notify_la_SOURCES = \
|
2016-06-03 16:45:21 +03:00
|
|
|
compositor/systemd-notify.c \
|
2015-09-25 18:00:27 +03:00
|
|
|
shared/helpers.h \
|
|
|
|
shared/zalloc.h \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/compositor.h
|
2015-09-25 18:00:27 +03:00
|
|
|
endif
|
2014-01-28 11:05:52 +04:00
|
|
|
|
2016-07-22 16:51:51 +03:00
|
|
|
nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES = \
|
2015-11-17 11:00:34 +03:00
|
|
|
protocol/weston-screenshooter-protocol.c \
|
|
|
|
protocol/weston-screenshooter-server-protocol.h \
|
2014-02-02 09:52:17 +04:00
|
|
|
protocol/text-cursor-position-protocol.c \
|
|
|
|
protocol/text-cursor-position-server-protocol.h \
|
2015-11-17 11:00:29 +03:00
|
|
|
protocol/text-input-unstable-v1-protocol.c \
|
|
|
|
protocol/text-input-unstable-v1-server-protocol.h \
|
2015-11-17 11:00:30 +03:00
|
|
|
protocol/input-method-unstable-v1-protocol.c \
|
|
|
|
protocol/input-method-unstable-v1-server-protocol.h \
|
2016-02-18 17:53:27 +03:00
|
|
|
protocol/presentation-time-protocol.c \
|
|
|
|
protocol/presentation-time-server-protocol.h \
|
2016-04-15 14:47:08 +03:00
|
|
|
protocol/viewporter-protocol.c \
|
|
|
|
protocol/viewporter-server-protocol.h \
|
2015-11-17 11:00:28 +03:00
|
|
|
protocol/linux-dmabuf-unstable-v1-protocol.c \
|
2014-10-22 23:21:17 +04:00
|
|
|
protocol/linux-dmabuf-unstable-v1-server-protocol.h \
|
|
|
|
protocol/relative-pointer-unstable-v1-protocol.c \
|
2016-07-22 12:56:31 +03:00
|
|
|
protocol/relative-pointer-unstable-v1-server-protocol.h \
|
|
|
|
protocol/pointer-constraints-unstable-v1-protocol.c \
|
|
|
|
protocol/pointer-constraints-unstable-v1-server-protocol.h
|
2014-02-02 09:52:17 +04:00
|
|
|
|
2016-07-22 16:51:51 +03:00
|
|
|
BUILT_SOURCES += $(nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES)
|
2016-06-02 21:48:15 +03:00
|
|
|
|
|
|
|
bin_PROGRAMS += weston
|
|
|
|
|
|
|
|
weston_LDFLAGS = -export-dynamic
|
|
|
|
weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON \
|
2016-06-29 12:54:27 +03:00
|
|
|
-DMODULEDIR='"$(moduledir)"' \
|
|
|
|
-DXSERVER_PATH='"@XSERVER_PATH@"'
|
2016-06-02 21:48:15 +03:00
|
|
|
weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
|
2016-07-22 16:52:42 +03:00
|
|
|
weston_LDADD = libshared.la libweston-@LIBWESTON_MAJOR@.la \
|
|
|
|
$(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
|
2016-06-02 21:48:15 +03:00
|
|
|
$(DLOPEN_LIBS) $(LIBINPUT_BACKEND_LIBS) \
|
2016-07-22 16:52:42 +03:00
|
|
|
-lm
|
2016-06-02 21:48:15 +03:00
|
|
|
|
|
|
|
weston_SOURCES = \
|
2016-06-03 16:45:21 +03:00
|
|
|
compositor/main.c \
|
|
|
|
compositor/weston-screenshooter.c \
|
2016-06-29 12:54:27 +03:00
|
|
|
compositor/text-backend.c \
|
|
|
|
compositor/xwayland.c
|
2014-02-02 09:52:17 +04:00
|
|
|
|
2014-02-01 04:33:48 +04:00
|
|
|
# Track this dependency explicitly instead of using BUILT_SOURCES. We
|
|
|
|
# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
|
|
|
|
# in case we're building from tarballs.
|
|
|
|
|
2016-07-04 16:57:12 +03:00
|
|
|
compositor/main.c : $(top_builddir)/libweston/git-version.h
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/compositor.c : $(top_builddir)/libweston/git-version.h
|
2014-02-01 04:33:48 +04:00
|
|
|
|
2014-01-28 11:05:52 +04:00
|
|
|
noinst_LTLIBRARIES += \
|
|
|
|
libsession-helper.la
|
|
|
|
|
|
|
|
libsession_helper_la_SOURCES = \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/launcher-util.c \
|
|
|
|
libweston/launcher-util.h \
|
|
|
|
libweston/launcher-impl.h \
|
|
|
|
libweston/weston-launch.h \
|
|
|
|
libweston/launcher-weston-launch.c \
|
|
|
|
libweston/launcher-direct.c
|
2015-06-18 19:43:11 +03:00
|
|
|
libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
|
2014-01-28 11:05:52 +04:00
|
|
|
libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
|
|
|
|
|
|
|
|
if ENABLE_DBUS
|
|
|
|
if HAVE_SYSTEMD_LOGIN
|
|
|
|
libsession_helper_la_SOURCES += \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/dbus.h \
|
|
|
|
libweston/dbus.c \
|
|
|
|
libweston/launcher-logind.c
|
2014-01-28 11:05:52 +04:00
|
|
|
libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
|
|
|
|
libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2014-02-01 04:33:48 +04:00
|
|
|
if HAVE_GIT_REPO
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/git-version.h : $(top_srcdir)/.git/logs/HEAD
|
2014-02-01 04:33:48 +04:00
|
|
|
$(AM_V_GEN)echo "#define BUILD_ID \"$(shell git --git-dir=$(top_srcdir)/.git describe --always --dirty) $(shell git --git-dir=$(top_srcdir)/.git log -1 --format='%s (%ci)')\"" > $@
|
2014-02-03 22:55:51 +04:00
|
|
|
else
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/git-version.h :
|
2014-02-03 22:55:51 +04:00
|
|
|
$(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
|
|
|
|
|
2014-02-01 04:33:48 +04:00
|
|
|
endif
|
2014-01-28 11:05:52 +04:00
|
|
|
|
|
|
|
.FORCE :
|
|
|
|
|
|
|
|
if BUILD_WESTON_LAUNCH
|
|
|
|
bin_PROGRAMS += weston-launch
|
2016-06-03 17:12:10 +03:00
|
|
|
weston_launch_SOURCES = libweston/weston-launch.c libweston/weston-launch.h
|
2014-01-28 11:05:52 +04:00
|
|
|
weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
|
|
|
|
weston_launch_CFLAGS= \
|
2015-06-18 19:43:11 +03:00
|
|
|
$(AM_CFLAGS) \
|
2014-01-28 11:05:52 +04:00
|
|
|
$(PAM_CFLAGS) \
|
|
|
|
$(SYSTEMD_LOGIN_CFLAGS) \
|
|
|
|
$(LIBDRM_CFLAGS)
|
|
|
|
weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
|
|
|
|
|
|
|
|
if ENABLE_SETUID_INSTALL
|
|
|
|
install-exec-hook:
|
2015-04-10 03:52:56 +03:00
|
|
|
can_suid_files=no; \
|
|
|
|
chown root $(DESTDIR)$(bindir)/weston-launch \
|
|
|
|
&& chmod u+s $(DESTDIR)$(bindir)/weston-launch \
|
|
|
|
&& can_suid_files=yes;\
|
2015-04-10 19:55:27 +03:00
|
|
|
if test $$can_suid_files = no; then \
|
2015-04-10 03:52:56 +03:00
|
|
|
echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
|
|
|
|
echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
|
|
|
|
false; \
|
|
|
|
fi
|
2014-01-28 11:05:52 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
endif # BUILD_WESTON_LAUNCH
|
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
2016-07-22 16:51:51 +03:00
|
|
|
pkgconfig_DATA = compositor/weston.pc libweston/libweston-${LIBWESTON_MAJOR}.pc
|
2014-01-28 11:05:52 +04:00
|
|
|
|
2014-12-28 16:20:49 +03:00
|
|
|
wayland_sessiondir = $(datadir)/wayland-sessions
|
2016-06-03 16:45:21 +03:00
|
|
|
dist_wayland_session_DATA = compositor/weston.desktop
|
2014-12-28 16:20:49 +03:00
|
|
|
|
2016-07-22 16:51:51 +03:00
|
|
|
libwestonincludedir = $(includedir)/libweston-${LIBWESTON_MAJOR}
|
2016-06-03 17:12:10 +03:00
|
|
|
libwestoninclude_HEADERS = \
|
|
|
|
libweston/version.h \
|
|
|
|
libweston/compositor.h \
|
|
|
|
libweston/compositor-drm.h \
|
|
|
|
libweston/compositor-fbdev.h \
|
|
|
|
libweston/compositor-headless.h \
|
|
|
|
libweston/compositor-rdp.h \
|
|
|
|
libweston/compositor-wayland.h \
|
|
|
|
libweston/compositor-x11.h \
|
2016-06-29 12:54:26 +03:00
|
|
|
libweston/plugin-registry.h \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/timeline-object.h \
|
2014-01-28 11:05:52 +04:00
|
|
|
shared/matrix.h \
|
|
|
|
shared/config-parser.h \
|
2016-07-04 17:34:17 +03:00
|
|
|
shared/zalloc.h
|
2014-01-28 11:05:52 +04:00
|
|
|
|
2016-06-02 21:48:14 +03:00
|
|
|
westonincludedir = $(includedir)/weston
|
2016-06-03 16:45:21 +03:00
|
|
|
westoninclude_HEADERS = compositor/weston.h
|
2016-06-02 21:48:14 +03:00
|
|
|
|
2015-10-15 17:51:43 +03:00
|
|
|
if ENABLE_IVI_SHELL
|
|
|
|
westoninclude_HEADERS += \
|
|
|
|
ivi-shell/ivi-layout-export.h
|
|
|
|
endif
|
|
|
|
|
2014-01-28 11:05:52 +04:00
|
|
|
if ENABLE_EGL
|
2016-06-02 21:48:14 +03:00
|
|
|
libweston_module_LTLIBRARIES += gl-renderer.la
|
2014-01-28 11:05:52 +04:00
|
|
|
gl_renderer_la_LDFLAGS = -module -avoid-version
|
|
|
|
gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
|
|
|
|
gl_renderer_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(EGL_CFLAGS) \
|
2014-06-12 17:49:29 +04:00
|
|
|
$(GL_RENDERER_CFLAGS) \
|
2015-06-18 19:43:11 +03:00
|
|
|
$(AM_CFLAGS)
|
2014-01-28 11:05:52 +04:00
|
|
|
gl_renderer_la_SOURCES = \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/gl-renderer.h \
|
|
|
|
libweston/gl-renderer.c \
|
|
|
|
libweston/vertex-clipping.c \
|
|
|
|
libweston/vertex-clipping.h \
|
2015-06-16 23:15:13 +03:00
|
|
|
shared/helpers.h
|
2014-01-28 11:05:52 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_X11_COMPOSITOR
|
2016-06-02 21:48:14 +03:00
|
|
|
libweston_module_LTLIBRARIES += x11-backend.la
|
2014-01-28 11:05:52 +04:00
|
|
|
x11_backend_la_LDFLAGS = -module -avoid-version
|
|
|
|
x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
|
2014-01-28 10:02:41 +04:00
|
|
|
libshared-cairo.la
|
2014-01-28 11:05:52 +04:00
|
|
|
x11_backend_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(EGL_CFLAGS) \
|
|
|
|
$(PIXMAN_CFLAGS) \
|
|
|
|
$(CAIRO_CFLAGS) \
|
|
|
|
$(X11_COMPOSITOR_CFLAGS) \
|
2015-06-18 19:43:11 +03:00
|
|
|
$(AM_CFLAGS)
|
2015-06-16 23:15:13 +03:00
|
|
|
x11_backend_la_SOURCES = \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/compositor-x11.c \
|
|
|
|
libweston/compositor-x11.h \
|
2015-06-16 23:15:13 +03:00
|
|
|
shared/helpers.h
|
2014-01-28 11:05:52 +04:00
|
|
|
endif
|
|
|
|
|
2014-03-13 01:08:42 +04:00
|
|
|
INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
|
2014-11-26 00:06:31 +03:00
|
|
|
INPUT_BACKEND_SOURCES = \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/libinput-seat.c \
|
|
|
|
libweston/libinput-seat.h \
|
|
|
|
libweston/libinput-device.c \
|
|
|
|
libweston/libinput-device.h \
|
2015-06-16 23:15:13 +03:00
|
|
|
shared/helpers.h
|
2014-03-13 01:08:42 +04:00
|
|
|
|
2014-01-28 11:05:52 +04:00
|
|
|
if ENABLE_DRM_COMPOSITOR
|
2016-06-02 21:48:14 +03:00
|
|
|
libweston_module_LTLIBRARIES += drm-backend.la
|
2014-01-28 11:05:52 +04:00
|
|
|
drm_backend_la_LDFLAGS = -module -avoid-version
|
|
|
|
drm_backend_la_LIBADD = \
|
|
|
|
$(COMPOSITOR_LIBS) \
|
|
|
|
$(DRM_COMPOSITOR_LIBS) \
|
2014-03-13 01:08:42 +04:00
|
|
|
$(INPUT_BACKEND_LIBS) \
|
2016-04-21 17:18:48 +03:00
|
|
|
libshared.la \
|
|
|
|
$(CLOCK_GETTIME_LIBS) \
|
2014-01-28 11:05:52 +04:00
|
|
|
libsession-helper.la
|
|
|
|
drm_backend_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(EGL_CFLAGS) \
|
|
|
|
$(DRM_COMPOSITOR_CFLAGS) \
|
2015-06-18 19:43:11 +03:00
|
|
|
$(AM_CFLAGS)
|
2014-01-28 11:05:52 +04:00
|
|
|
drm_backend_la_SOURCES = \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/compositor-drm.c \
|
|
|
|
libweston/compositor-drm.h \
|
2014-03-13 01:08:42 +04:00
|
|
|
$(INPUT_BACKEND_SOURCES) \
|
2015-06-16 23:15:13 +03:00
|
|
|
shared/helpers.h \
|
compositor-drm: Allow instant start of repaint loop. (v4)
drm_output_start_repaint_loop() incurred a delay of
one refresh cycle by using a no-op page-flip to get
an accurate vblank timestamp as reference. This causes
unwanted lag whenever Weston exited its repaint loop, e.g.,
whenever an application wants to repaint with less than
full video refresh rate but still minimum lag.
Try to use the drmWaitVblank ioctl to get a proper
timestamp instantaneously without lag. If that does
not work, fall back to the old method of idle page-flip.
This optimization will work on any drm/kms driver
which supports high precision vblank timestamping.
As of Linux 4.0 these would be intel, radeon and
nouveau on all their supported gpu's.
On kms drivers without instant high precision timestamping
support, the kernel is supposed to return a timestamp
of zero when calling drmWaitVblank() to query the current
vblank count and time iff vblank irqs are currently
disabled, because the only way to get a valid timestamp
on such kms drivers is to enable vblank interrupts and
then wait a bit for the next vblank irq to take a new valid
timestamp. The caller is supposed to poll until at next
vblank irq it gets a valid non-zero timestamp if it needs
a timestamp.
This zero-timestamp signalling works up to Linux 3.17, but
got broken due to a regression in Linux 3.18 and later. On
Linux 3.18+ with kms drivers that don't have high precision
timestamping, the kernel erroneously returns a stale timestamp
from an earlier vblank, ie. the vblank count and timestamp are
mismatched. A patch is under way to fix this, but to deal with
broken kernels, we also check non-zero timestamps if they are
more than one refresh duration in the past, as this indicates
a stale/invalid timestamp, so we need to take the page-flip
fallback for restarting the repaint loop.
v2: Implement review suggestions by Pekka Paalanen, especially
extend the commit message to describe when and why the
instant restart won't work due to missing Linux kernel
functionality or a Linux kernel regression.
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
v3: Fix timespec_to_nsec() which was computing picoseconds,
use the new timespec-util.h helpers.
v4: Rebased to master, split long lines.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2015-06-21 22:25:14 +03:00
|
|
|
shared/timespec-util.h \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/libbacklight.c \
|
|
|
|
libweston/libbacklight.h
|
2014-01-28 11:05:52 +04:00
|
|
|
|
|
|
|
if ENABLE_VAAPI_RECORDER
|
2016-06-03 17:12:10 +03:00
|
|
|
drm_backend_la_SOURCES += libweston/vaapi-recorder.c libweston/vaapi-recorder.h
|
2014-01-28 11:05:52 +04:00
|
|
|
drm_backend_la_LIBADD += $(LIBVA_LIBS)
|
|
|
|
drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_WAYLAND_COMPOSITOR
|
2016-06-02 21:48:14 +03:00
|
|
|
libweston_module_LTLIBRARIES += wayland-backend.la
|
2014-01-28 11:05:52 +04:00
|
|
|
wayland_backend_la_LDFLAGS = -module -avoid-version
|
|
|
|
wayland_backend_la_LIBADD = \
|
|
|
|
$(COMPOSITOR_LIBS) \
|
|
|
|
$(WAYLAND_COMPOSITOR_LIBS) \
|
2014-01-28 10:02:41 +04:00
|
|
|
libshared-cairo.la
|
2014-01-28 11:05:52 +04:00
|
|
|
wayland_backend_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(EGL_CFLAGS) \
|
|
|
|
$(PIXMAN_CFLAGS) \
|
|
|
|
$(CAIRO_CFLAGS) \
|
|
|
|
$(WAYLAND_COMPOSITOR_CFLAGS) \
|
2015-06-18 19:43:11 +03:00
|
|
|
$(AM_CFLAGS)
|
2015-06-16 23:15:13 +03:00
|
|
|
wayland_backend_la_SOURCES = \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/compositor-wayland.c \
|
|
|
|
libweston/compositor-wayland.h \
|
2015-06-16 23:15:13 +03:00
|
|
|
shared/helpers.h
|
2014-04-03 04:53:54 +04:00
|
|
|
nodist_wayland_backend_la_SOURCES = \
|
2015-11-17 11:00:27 +03:00
|
|
|
protocol/fullscreen-shell-unstable-v1-protocol.c \
|
|
|
|
protocol/fullscreen-shell-unstable-v1-client-protocol.h
|
2014-01-28 11:05:52 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_HEADLESS_COMPOSITOR
|
2016-06-02 21:48:14 +03:00
|
|
|
libweston_module_LTLIBRARIES += headless-backend.la
|
2014-01-28 11:05:52 +04:00
|
|
|
headless_backend_la_LDFLAGS = -module -avoid-version
|
2014-02-12 02:21:39 +04:00
|
|
|
headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
|
2015-06-18 19:43:11 +03:00
|
|
|
headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
|
2015-06-16 23:15:13 +03:00
|
|
|
headless_backend_la_SOURCES = \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/compositor-headless.c \
|
|
|
|
libweston/compositor-headless.h \
|
2015-06-16 23:15:13 +03:00
|
|
|
shared/helpers.h
|
2014-01-28 11:05:52 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_FBDEV_COMPOSITOR
|
2016-06-02 21:48:14 +03:00
|
|
|
libweston_module_LTLIBRARIES += fbdev-backend.la
|
2014-01-28 11:05:52 +04:00
|
|
|
fbdev_backend_la_LDFLAGS = -module -avoid-version
|
|
|
|
fbdev_backend_la_LIBADD = \
|
|
|
|
$(COMPOSITOR_LIBS) \
|
|
|
|
$(FBDEV_COMPOSITOR_LIBS) \
|
2014-03-13 01:08:42 +04:00
|
|
|
$(INPUT_BACKEND_LIBS) \
|
2014-01-28 11:05:52 +04:00
|
|
|
libsession-helper.la \
|
2014-01-28 10:02:41 +04:00
|
|
|
libshared.la
|
2014-01-28 11:05:52 +04:00
|
|
|
fbdev_backend_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(EGL_CFLAGS) \
|
|
|
|
$(FBDEV_COMPOSITOR_CFLAGS) \
|
|
|
|
$(PIXMAN_CFLAGS) \
|
2015-06-18 19:43:11 +03:00
|
|
|
$(AM_CFLAGS)
|
2014-01-28 11:05:52 +04:00
|
|
|
fbdev_backend_la_SOURCES = \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/compositor-fbdev.c \
|
|
|
|
libweston/compositor-fbdev.h \
|
2015-06-16 23:15:13 +03:00
|
|
|
shared/helpers.h \
|
2014-03-13 01:08:42 +04:00
|
|
|
$(INPUT_BACKEND_SOURCES)
|
2014-01-28 11:05:52 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_RDP_COMPOSITOR
|
2016-06-02 21:48:14 +03:00
|
|
|
libweston_module_LTLIBRARIES += rdp-backend.la
|
2014-01-28 11:05:52 +04:00
|
|
|
rdp_backend_la_LDFLAGS = -module -avoid-version
|
|
|
|
rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
|
|
|
|
$(RDP_COMPOSITOR_LIBS) \
|
2014-01-28 10:02:41 +04:00
|
|
|
libshared.la
|
2014-01-28 11:05:52 +04:00
|
|
|
rdp_backend_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(RDP_COMPOSITOR_CFLAGS) \
|
2015-06-18 19:43:11 +03:00
|
|
|
$(AM_CFLAGS)
|
2015-06-16 23:15:13 +03:00
|
|
|
rdp_backend_la_SOURCES = \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/compositor-rdp.c \
|
|
|
|
libweston/compositor-rdp.h \
|
2015-06-16 23:15:13 +03:00
|
|
|
shared/helpers.h
|
2014-01-28 11:05:52 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_LCMS
|
|
|
|
module_LTLIBRARIES += cms-static.la
|
|
|
|
cms_static_la_LDFLAGS = -module -avoid-version
|
2014-01-28 10:02:41 +04:00
|
|
|
cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
|
2015-06-18 19:43:11 +03:00
|
|
|
cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
|
2014-01-28 11:05:52 +04:00
|
|
|
cms_static_la_SOURCES = \
|
2016-06-03 16:45:21 +03:00
|
|
|
compositor/cms-static.c \
|
|
|
|
compositor/cms-helper.c \
|
|
|
|
compositor/cms-helper.h \
|
2015-06-16 23:15:13 +03:00
|
|
|
shared/helpers.h
|
2014-01-28 11:05:52 +04:00
|
|
|
if ENABLE_COLORD
|
|
|
|
module_LTLIBRARIES += cms-colord.la
|
|
|
|
cms_colord_la_LDFLAGS = -module -avoid-version
|
|
|
|
cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
|
2015-06-18 19:43:11 +03:00
|
|
|
cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
|
2014-01-28 11:05:52 +04:00
|
|
|
cms_colord_la_SOURCES = \
|
2016-06-03 16:45:21 +03:00
|
|
|
compositor/cms-colord.c \
|
|
|
|
compositor/cms-helper.c \
|
|
|
|
compositor/cms-helper.h \
|
2015-06-16 23:15:13 +03:00
|
|
|
shared/helpers.h
|
2014-01-28 11:05:52 +04:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
noinst_PROGRAMS += spring-tool
|
2015-06-18 19:43:11 +03:00
|
|
|
spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
|
2014-01-28 11:05:52 +04:00
|
|
|
spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
|
|
|
|
spring_tool_SOURCES = \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/spring-tool.c \
|
|
|
|
libweston/animation.c \
|
2014-01-28 11:05:52 +04:00
|
|
|
shared/matrix.c \
|
|
|
|
shared/matrix.h \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/compositor.h
|
2014-01-28 11:05:52 +04:00
|
|
|
|
2014-02-01 04:15:11 +04:00
|
|
|
if BUILD_CLIENTS
|
|
|
|
|
|
|
|
bin_PROGRAMS += weston-terminal weston-info
|
|
|
|
|
|
|
|
libexec_PROGRAMS += \
|
|
|
|
weston-desktop-shell \
|
|
|
|
weston-screenshooter \
|
|
|
|
weston-keyboard \
|
|
|
|
weston-simple-im
|
|
|
|
|
clients: a reference implementation of UI client how to use ivi-hmi-controller.
- introduces ivi-shell-user-interface.c
This is launched from hmi-controller by launch_hmi_client_process and
invoke a
client process.
The basic flow is as followed,
1/ process invoked
2/ read configuration from weston.ini.
3/ draw png file to surface according to configuration of weston.ini
4/ all parts of UI are ready. request "UI_ready" to draw UI.
5/ Enter event loop
6/ If a surface receives touch/pointer event, followings are invoked
according
to type of event and surface
6-1/ If a surface to launch ivi_application receive touch up, it execs
ivi-application configured in weston.ini.
6-2/ If a surface to switch layout mode receive touch up, it sends a
request,
ivi_hmi_controller_switch_mode, to hmi-controller.
6-3/ If a surface to show workspace having launchers, it sends a
request,
ivi_hmi_controller_home, to hmi-controller.
6-4/ If touch down events happens in workspace,
ivi_hmi_controller_workspace_control is sent to slide workspace.
When control finished, event:
ivi_hmi_controller_workspace_end_control
is received.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-11-27 07:23:32 +03:00
|
|
|
if ENABLE_IVI_SHELL
|
|
|
|
libexec_PROGRAMS += \
|
|
|
|
weston-ivi-shell-user-interface
|
|
|
|
endif
|
|
|
|
|
2014-02-01 04:15:11 +04:00
|
|
|
demo_clients = \
|
|
|
|
weston-flower \
|
|
|
|
weston-image \
|
|
|
|
weston-cliptest \
|
|
|
|
weston-dnd \
|
|
|
|
weston-smoke \
|
|
|
|
weston-resizor \
|
|
|
|
weston-eventdemo \
|
|
|
|
weston-clickdot \
|
2016-03-15 13:14:00 +03:00
|
|
|
weston-confine \
|
2014-02-01 04:15:11 +04:00
|
|
|
weston-transformed \
|
|
|
|
weston-fullscreen \
|
|
|
|
weston-stacking \
|
|
|
|
weston-calibrator \
|
|
|
|
weston-scaler
|
|
|
|
|
|
|
|
if INSTALL_DEMO_CLIENTS
|
|
|
|
bin_PROGRAMS += $(demo_clients)
|
|
|
|
else
|
|
|
|
noinst_PROGRAMS += $(demo_clients)
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
if BUILD_SIMPLE_CLIENTS
|
|
|
|
demo_clients += \
|
|
|
|
weston-simple-shm \
|
2014-04-05 18:22:15 +04:00
|
|
|
weston-simple-damage \
|
2014-02-01 04:15:11 +04:00
|
|
|
weston-simple-touch \
|
2014-09-24 06:08:49 +04:00
|
|
|
weston-presentation-shm \
|
2014-02-01 04:15:11 +04:00
|
|
|
weston-multi-resource
|
|
|
|
|
2014-02-12 02:23:19 +04:00
|
|
|
weston_simple_shm_SOURCES = clients/simple-shm.c
|
|
|
|
nodist_weston_simple_shm_SOURCES = \
|
2015-11-17 11:00:32 +03:00
|
|
|
protocol/xdg-shell-unstable-v5-protocol.c \
|
|
|
|
protocol/xdg-shell-unstable-v5-client-protocol.h \
|
2015-11-17 11:00:27 +03:00
|
|
|
protocol/fullscreen-shell-unstable-v1-protocol.c \
|
|
|
|
protocol/fullscreen-shell-unstable-v1-client-protocol.h \
|
2014-11-27 07:24:29 +03:00
|
|
|
protocol/ivi-application-protocol.c \
|
|
|
|
protocol/ivi-application-client-protocol.h
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
|
2014-02-12 02:21:39 +04:00
|
|
|
weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
|
2014-02-01 04:15:11 +04:00
|
|
|
|
2014-04-05 18:22:15 +04:00
|
|
|
weston_simple_damage_SOURCES = clients/simple-damage.c
|
|
|
|
nodist_weston_simple_damage_SOURCES = \
|
2016-04-15 17:00:21 +03:00
|
|
|
protocol/viewporter-protocol.c \
|
|
|
|
protocol/viewporter-client-protocol.h \
|
2015-11-17 11:00:32 +03:00
|
|
|
protocol/xdg-shell-unstable-v5-protocol.c \
|
|
|
|
protocol/xdg-shell-unstable-v5-client-protocol.h \
|
2015-11-17 11:00:27 +03:00
|
|
|
protocol/fullscreen-shell-unstable-v1-protocol.c \
|
|
|
|
protocol/fullscreen-shell-unstable-v1-client-protocol.h
|
2014-04-05 18:22:15 +04:00
|
|
|
weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
|
|
|
|
weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
|
|
|
|
|
2015-06-16 23:15:13 +03:00
|
|
|
weston_simple_touch_SOURCES = \
|
|
|
|
clients/simple-touch.c \
|
|
|
|
shared/helpers.h
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
|
2014-02-12 02:21:39 +04:00
|
|
|
weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
|
2014-02-01 04:15:11 +04:00
|
|
|
|
2015-06-16 23:15:13 +03:00
|
|
|
weston_presentation_shm_SOURCES = \
|
|
|
|
clients/presentation-shm.c \
|
|
|
|
shared/helpers.h
|
2014-09-24 06:08:49 +04:00
|
|
|
nodist_weston_presentation_shm_SOURCES = \
|
2016-02-18 17:53:27 +03:00
|
|
|
protocol/presentation-time-protocol.c \
|
|
|
|
protocol/presentation-time-client-protocol.h
|
2014-09-24 06:08:49 +04:00
|
|
|
weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
|
2016-04-21 17:18:48 +03:00
|
|
|
weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
|
2014-09-24 06:08:49 +04:00
|
|
|
|
2014-02-12 02:21:39 +04:00
|
|
|
weston_multi_resource_SOURCES = clients/multi-resource.c
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
|
2016-04-21 17:18:48 +03:00
|
|
|
weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
|
2014-02-01 04:15:11 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
if BUILD_SIMPLE_EGL_CLIENTS
|
|
|
|
demo_clients += weston-simple-egl
|
2014-02-12 02:23:19 +04:00
|
|
|
weston_simple_egl_SOURCES = clients/simple-egl.c
|
|
|
|
nodist_weston_simple_egl_SOURCES = \
|
2015-11-17 11:00:32 +03:00
|
|
|
protocol/xdg-shell-unstable-v5-protocol.c \
|
|
|
|
protocol/xdg-shell-unstable-v5-client-protocol.h \
|
2014-11-27 07:24:42 +03:00
|
|
|
protocol/ivi-application-protocol.c \
|
|
|
|
protocol/ivi-application-client-protocol.h
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
|
|
|
|
endif
|
|
|
|
|
2016-01-11 22:04:36 +03:00
|
|
|
if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
|
|
|
|
demo_clients += weston-simple-dmabuf-intel
|
|
|
|
weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
|
|
|
|
nodist_weston_simple_dmabuf_intel_SOURCES = \
|
2015-11-17 11:00:32 +03:00
|
|
|
protocol/xdg-shell-unstable-v5-protocol.c \
|
|
|
|
protocol/xdg-shell-unstable-v5-client-protocol.h \
|
2015-11-17 11:00:27 +03:00
|
|
|
protocol/fullscreen-shell-unstable-v1-protocol.c \
|
|
|
|
protocol/fullscreen-shell-unstable-v1-client-protocol.h \
|
2015-11-17 11:00:28 +03:00
|
|
|
protocol/linux-dmabuf-unstable-v1-protocol.c \
|
|
|
|
protocol/linux-dmabuf-unstable-v1-client-protocol.h
|
2016-01-11 22:04:36 +03:00
|
|
|
weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
|
|
|
|
weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
|
2015-11-17 11:00:28 +03:00
|
|
|
BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
|
2014-06-12 18:26:49 +04:00
|
|
|
endif
|
|
|
|
|
2016-01-11 22:04:38 +03:00
|
|
|
if BUILD_SIMPLE_DMABUF_V4L_CLIENT
|
|
|
|
demo_clients += weston-simple-dmabuf-v4l
|
|
|
|
weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
|
|
|
|
nodist_weston_simple_dmabuf_v4l_SOURCES = \
|
|
|
|
protocol/xdg-shell-unstable-v5-protocol.c \
|
|
|
|
protocol/xdg-shell-unstable-v5-client-protocol.h \
|
|
|
|
protocol/fullscreen-shell-unstable-v1-protocol.c \
|
|
|
|
protocol/fullscreen-shell-unstable-v1-client-protocol.h \
|
|
|
|
protocol/linux-dmabuf-unstable-v1-protocol.c \
|
|
|
|
protocol/linux-dmabuf-unstable-v1-client-protocol.h
|
|
|
|
weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
|
|
|
|
weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
|
|
|
|
BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
|
|
|
|
endif
|
|
|
|
|
2014-02-01 04:15:11 +04:00
|
|
|
noinst_LTLIBRARIES += libtoytoolkit.la
|
|
|
|
|
|
|
|
libtoytoolkit_la_SOURCES = \
|
|
|
|
clients/window.c \
|
2015-06-16 23:15:13 +03:00
|
|
|
clients/window.h \
|
|
|
|
shared/helpers.h
|
2014-02-02 09:52:17 +04:00
|
|
|
|
|
|
|
nodist_libtoytoolkit_la_SOURCES = \
|
2014-02-02 00:39:12 +04:00
|
|
|
protocol/text-cursor-position-protocol.c \
|
|
|
|
protocol/text-cursor-position-client-protocol.h \
|
2016-04-15 16:53:41 +03:00
|
|
|
protocol/viewporter-protocol.c \
|
|
|
|
protocol/viewporter-client-protocol.h \
|
2015-11-17 11:00:32 +03:00
|
|
|
protocol/xdg-shell-unstable-v5-protocol.c \
|
|
|
|
protocol/xdg-shell-unstable-v5-client-protocol.h \
|
2014-11-27 07:21:34 +03:00
|
|
|
protocol/ivi-application-protocol.c \
|
2014-11-25 05:25:27 +03:00
|
|
|
protocol/ivi-application-client-protocol.h \
|
|
|
|
protocol/pointer-constraints-unstable-v1-protocol.c \
|
|
|
|
protocol/pointer-constraints-unstable-v1-client-protocol.h \
|
|
|
|
protocol/relative-pointer-unstable-v1-protocol.c \
|
|
|
|
protocol/relative-pointer-unstable-v1-client-protocol.h
|
2013-12-09 23:58:00 +04:00
|
|
|
|
2014-02-02 09:52:17 +04:00
|
|
|
BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
|
|
|
|
|
2014-02-01 04:15:11 +04:00
|
|
|
|
|
|
|
libtoytoolkit_la_LIBADD = \
|
|
|
|
$(CLIENT_LIBS) \
|
|
|
|
$(CAIRO_EGL_LIBS) \
|
2016-04-21 17:18:48 +03:00
|
|
|
libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
|
2014-02-06 10:00:59 +04:00
|
|
|
libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
|
|
|
weston_flower_SOURCES = clients/flower.c
|
|
|
|
weston_flower_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
2014-02-02 00:39:12 +04:00
|
|
|
weston_screenshooter_SOURCES = \
|
2014-02-12 02:21:39 +04:00
|
|
|
clients/screenshot.c
|
2014-02-02 09:52:17 +04:00
|
|
|
nodist_weston_screenshooter_SOURCES = \
|
2015-11-17 11:00:34 +03:00
|
|
|
protocol/weston-screenshooter-protocol.c \
|
|
|
|
protocol/weston-screenshooter-client-protocol.h
|
2014-02-12 02:21:39 +04:00
|
|
|
weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
2015-06-16 23:15:13 +03:00
|
|
|
weston_terminal_SOURCES = \
|
|
|
|
clients/terminal.c \
|
|
|
|
shared/helpers.h
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_terminal_LDADD = libtoytoolkit.la -lutil
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
|
|
|
weston_image_SOURCES = clients/image.c
|
|
|
|
weston_image_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
2014-08-20 12:58:47 +04:00
|
|
|
weston_cliptest_SOURCES = \
|
|
|
|
clients/cliptest.c \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/vertex-clipping.c \
|
|
|
|
libweston/vertex-clipping.h
|
2014-02-03 23:05:41 +04:00
|
|
|
weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_cliptest_LDADD = libtoytoolkit.la
|
|
|
|
|
2015-06-16 23:15:13 +03:00
|
|
|
weston_dnd_SOURCES = \
|
|
|
|
clients/dnd.c \
|
|
|
|
shared/helpers.h
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_dnd_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
|
|
|
weston_smoke_SOURCES = clients/smoke.c
|
|
|
|
weston_smoke_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
|
|
|
weston_resizor_SOURCES = clients/resizor.c
|
|
|
|
weston_resizor_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
|
|
|
weston_scaler_SOURCES = clients/scaler.c
|
|
|
|
weston_scaler_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
|
|
|
if HAVE_CAIRO_GLESV2
|
|
|
|
demo_clients += weston-nested weston-nested-client
|
|
|
|
|
2015-06-16 23:15:13 +03:00
|
|
|
weston_nested_SOURCES = \
|
|
|
|
clients/nested.c \
|
|
|
|
shared/helpers.h
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
|
|
|
weston_nested_client_SOURCES = clients/nested-client.c
|
|
|
|
weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
endif
|
|
|
|
|
2015-06-16 23:15:13 +03:00
|
|
|
weston_eventdemo_SOURCES = \
|
|
|
|
clients/eventdemo.c \
|
|
|
|
shared/helpers.h
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_eventdemo_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
2015-06-16 23:15:13 +03:00
|
|
|
weston_clickdot_SOURCES = \
|
|
|
|
clients/clickdot.c \
|
|
|
|
shared/helpers.h
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_clickdot_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
2016-03-15 13:14:00 +03:00
|
|
|
weston_confine_SOURCES = \
|
|
|
|
clients/confine.c \
|
|
|
|
shared/helpers.h
|
|
|
|
weston_confine_LDADD = libtoytoolkit.la
|
|
|
|
weston_confine_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
|
|
|
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_transformed_SOURCES = clients/transformed.c
|
|
|
|
weston_transformed_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
|
|
|
weston_fullscreen_SOURCES = clients/fullscreen.c
|
2014-04-03 04:53:52 +04:00
|
|
|
nodist_weston_fullscreen_SOURCES = \
|
2015-11-17 11:00:27 +03:00
|
|
|
protocol/fullscreen-shell-unstable-v1-protocol.c \
|
|
|
|
protocol/fullscreen-shell-unstable-v1-client-protocol.h
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_fullscreen_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
2015-06-16 23:15:13 +03:00
|
|
|
weston_stacking_SOURCES = \
|
|
|
|
clients/stacking.c \
|
|
|
|
shared/helpers.h
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_stacking_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
2015-06-16 23:15:13 +03:00
|
|
|
weston_calibrator_SOURCES = \
|
|
|
|
clients/calibrator.c \
|
|
|
|
shared/helpers.h \
|
2014-02-01 04:15:11 +04:00
|
|
|
shared/matrix.c \
|
|
|
|
shared/matrix.h
|
|
|
|
weston_calibrator_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
|
|
|
if BUILD_SUBSURFACES_CLIENT
|
|
|
|
demo_clients += weston-subsurfaces
|
2015-06-16 23:15:13 +03:00
|
|
|
weston_subsurfaces_SOURCES = \
|
|
|
|
clients/subsurfaces.c \
|
|
|
|
shared/helpers.h
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_subsurfaces_CFLAGS = \
|
|
|
|
$(AM_CFLAGS) \
|
|
|
|
$(SIMPLE_EGL_CLIENT_CFLAGS) \
|
|
|
|
$(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_PANGO
|
|
|
|
demo_clients += weston-editor
|
2015-06-16 23:15:13 +03:00
|
|
|
weston_editor_SOURCES = \
|
|
|
|
clients/editor.c \
|
|
|
|
shared/helpers.h
|
2014-02-02 09:52:17 +04:00
|
|
|
nodist_weston_editor_SOURCES = \
|
2015-11-17 11:00:29 +03:00
|
|
|
protocol/text-input-unstable-v1-protocol.c \
|
|
|
|
protocol/text-input-unstable-v1-client-protocol.h
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
endif
|
|
|
|
|
2014-02-02 09:52:17 +04:00
|
|
|
weston_keyboard_SOURCES = clients/keyboard.c
|
2015-11-17 11:00:33 +03:00
|
|
|
nodist_weston_keyboard_SOURCES = \
|
|
|
|
protocol/weston-desktop-shell-client-protocol.h \
|
|
|
|
protocol/weston-desktop-shell-protocol.c \
|
2015-11-17 11:00:30 +03:00
|
|
|
protocol/input-method-unstable-v1-protocol.c \
|
|
|
|
protocol/input-method-unstable-v1-client-protocol.h
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_keyboard_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
2014-02-02 09:52:17 +04:00
|
|
|
weston_simple_im_SOURCES = clients/weston-simple-im.c
|
|
|
|
nodist_weston_simple_im_SOURCES = \
|
2015-11-17 11:00:30 +03:00
|
|
|
protocol/input-method-unstable-v1-protocol.c \
|
|
|
|
protocol/input-method-unstable-v1-client-protocol.h
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_simple_im_LDADD = $(CLIENT_LIBS)
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
2015-06-16 23:15:13 +03:00
|
|
|
weston_info_SOURCES = \
|
|
|
|
clients/weston-info.c \
|
|
|
|
shared/helpers.h
|
2014-09-24 06:08:44 +04:00
|
|
|
nodist_weston_info_SOURCES = \
|
2016-02-18 17:53:27 +03:00
|
|
|
protocol/presentation-time-protocol.c \
|
|
|
|
protocol/presentation-time-client-protocol.h
|
2014-02-12 02:21:39 +04:00
|
|
|
weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
|
2014-02-03 15:12:34 +04:00
|
|
|
weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
2015-06-16 23:15:13 +03:00
|
|
|
weston_desktop_shell_SOURCES = \
|
|
|
|
clients/desktop-shell.c \
|
|
|
|
shared/helpers.h
|
2014-02-02 09:52:17 +04:00
|
|
|
nodist_weston_desktop_shell_SOURCES = \
|
2015-11-17 11:00:33 +03:00
|
|
|
protocol/weston-desktop-shell-client-protocol.h \
|
|
|
|
protocol/weston-desktop-shell-protocol.c
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_desktop_shell_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
clients: a reference implementation of UI client how to use ivi-hmi-controller.
- introduces ivi-shell-user-interface.c
This is launched from hmi-controller by launch_hmi_client_process and
invoke a
client process.
The basic flow is as followed,
1/ process invoked
2/ read configuration from weston.ini.
3/ draw png file to surface according to configuration of weston.ini
4/ all parts of UI are ready. request "UI_ready" to draw UI.
5/ Enter event loop
6/ If a surface receives touch/pointer event, followings are invoked
according
to type of event and surface
6-1/ If a surface to launch ivi_application receive touch up, it execs
ivi-application configured in weston.ini.
6-2/ If a surface to switch layout mode receive touch up, it sends a
request,
ivi_hmi_controller_switch_mode, to hmi-controller.
6-3/ If a surface to show workspace having launchers, it sends a
request,
ivi_hmi_controller_home, to hmi-controller.
6-4/ If touch down events happens in workspace,
ivi_hmi_controller_workspace_control is sent to slide workspace.
When control finished, event:
ivi_hmi_controller_workspace_end_control
is received.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-11-27 07:23:32 +03:00
|
|
|
if ENABLE_IVI_SHELL
|
2015-06-16 23:15:13 +03:00
|
|
|
weston_ivi_shell_user_interface_SOURCES = \
|
|
|
|
clients/ivi-shell-user-interface.c \
|
|
|
|
shared/helpers.h
|
clients: a reference implementation of UI client how to use ivi-hmi-controller.
- introduces ivi-shell-user-interface.c
This is launched from hmi-controller by launch_hmi_client_process and
invoke a
client process.
The basic flow is as followed,
1/ process invoked
2/ read configuration from weston.ini.
3/ draw png file to surface according to configuration of weston.ini
4/ all parts of UI are ready. request "UI_ready" to draw UI.
5/ Enter event loop
6/ If a surface receives touch/pointer event, followings are invoked
according
to type of event and surface
6-1/ If a surface to launch ivi_application receive touch up, it execs
ivi-application configured in weston.ini.
6-2/ If a surface to switch layout mode receive touch up, it sends a
request,
ivi_hmi_controller_switch_mode, to hmi-controller.
6-3/ If a surface to show workspace having launchers, it sends a
request,
ivi_hmi_controller_home, to hmi-controller.
6-4/ If touch down events happens in workspace,
ivi_hmi_controller_workspace_control is sent to slide workspace.
When control finished, event:
ivi_hmi_controller_workspace_end_control
is received.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-11-27 07:23:32 +03:00
|
|
|
nodist_weston_ivi_shell_user_interface_SOURCES = \
|
|
|
|
protocol/ivi-hmi-controller-client-protocol.h \
|
|
|
|
protocol/ivi-hmi-controller-protocol.c \
|
|
|
|
protocol/ivi-application-client-protocol.h \
|
|
|
|
protocol/ivi-application-protocol.c
|
|
|
|
weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
|
|
|
|
weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
2014-02-01 04:15:11 +04:00
|
|
|
if BUILD_FULL_GL_CLIENTS
|
|
|
|
demo_clients += weston-gears
|
|
|
|
weston_gears_SOURCES = clients/gears.c
|
|
|
|
weston_gears_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
BUILT_SOURCES += \
|
2015-11-17 11:00:34 +03:00
|
|
|
protocol/weston-screenshooter-protocol.c \
|
|
|
|
protocol/weston-screenshooter-client-protocol.h \
|
2014-02-02 00:39:12 +04:00
|
|
|
protocol/text-cursor-position-client-protocol.h \
|
|
|
|
protocol/text-cursor-position-protocol.c \
|
2015-11-17 11:00:29 +03:00
|
|
|
protocol/text-input-unstable-v1-protocol.c \
|
|
|
|
protocol/text-input-unstable-v1-client-protocol.h \
|
2015-11-17 11:00:30 +03:00
|
|
|
protocol/input-method-unstable-v1-protocol.c \
|
|
|
|
protocol/input-method-unstable-v1-client-protocol.h \
|
2015-11-17 11:00:33 +03:00
|
|
|
protocol/weston-desktop-shell-client-protocol.h \
|
|
|
|
protocol/weston-desktop-shell-protocol.c \
|
2016-04-15 16:53:41 +03:00
|
|
|
protocol/viewporter-client-protocol.h \
|
|
|
|
protocol/viewporter-protocol.c \
|
2016-02-18 17:53:27 +03:00
|
|
|
protocol/presentation-time-protocol.c \
|
|
|
|
protocol/presentation-time-client-protocol.h \
|
2015-11-17 11:00:27 +03:00
|
|
|
protocol/fullscreen-shell-unstable-v1-protocol.c \
|
|
|
|
protocol/fullscreen-shell-unstable-v1-client-protocol.h \
|
2015-11-17 11:00:32 +03:00
|
|
|
protocol/xdg-shell-unstable-v5-protocol.c \
|
|
|
|
protocol/xdg-shell-unstable-v5-client-protocol.h \
|
clients: a reference implementation of UI client how to use ivi-hmi-controller.
- introduces ivi-shell-user-interface.c
This is launched from hmi-controller by launch_hmi_client_process and
invoke a
client process.
The basic flow is as followed,
1/ process invoked
2/ read configuration from weston.ini.
3/ draw png file to surface according to configuration of weston.ini
4/ all parts of UI are ready. request "UI_ready" to draw UI.
5/ Enter event loop
6/ If a surface receives touch/pointer event, followings are invoked
according
to type of event and surface
6-1/ If a surface to launch ivi_application receive touch up, it execs
ivi-application configured in weston.ini.
6-2/ If a surface to switch layout mode receive touch up, it sends a
request,
ivi_hmi_controller_switch_mode, to hmi-controller.
6-3/ If a surface to show workspace having launchers, it sends a
request,
ivi_hmi_controller_home, to hmi-controller.
6-4/ If touch down events happens in workspace,
ivi_hmi_controller_workspace_control is sent to slide workspace.
When control finished, event:
ivi_hmi_controller_workspace_end_control
is received.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-11-27 07:23:32 +03:00
|
|
|
protocol/ivi-hmi-controller-protocol.c \
|
|
|
|
protocol/ivi-hmi-controller-client-protocol.h \
|
|
|
|
protocol/ivi-application-protocol.c \
|
|
|
|
protocol/ivi-application-client-protocol.h
|
2014-02-01 04:15:11 +04:00
|
|
|
|
2014-01-28 09:40:28 +04:00
|
|
|
westondatadir = $(datadir)/weston
|
|
|
|
dist_westondata_DATA = \
|
|
|
|
data/wayland.svg \
|
|
|
|
data/wayland.png \
|
|
|
|
data/pattern.png \
|
|
|
|
data/terminal.png \
|
|
|
|
data/border.png \
|
2016-03-25 03:57:39 +03:00
|
|
|
data/icon_editor.png \
|
|
|
|
data/icon_flower.png \
|
|
|
|
data/icon_terminal.png \
|
2014-01-28 09:40:28 +04:00
|
|
|
data/icon_window.png \
|
|
|
|
data/sign_close.png \
|
|
|
|
data/sign_maximize.png \
|
2015-02-16 13:00:36 +03:00
|
|
|
data/sign_minimize.png
|
|
|
|
|
|
|
|
if ENABLE_IVI_SHELL
|
|
|
|
dist_westondata_DATA += \
|
2014-03-11 06:54:45 +04:00
|
|
|
data/background.png \
|
|
|
|
data/tiling.png \
|
|
|
|
data/fullscreen.png \
|
|
|
|
data/panel.png \
|
|
|
|
data/random.png \
|
|
|
|
data/sidebyside.png \
|
|
|
|
data/home.png \
|
|
|
|
data/icon_ivi_clickdot.png \
|
|
|
|
data/icon_ivi_flower.png \
|
|
|
|
data/icon_ivi_simple-egl.png \
|
|
|
|
data/icon_ivi_simple-shm.png \
|
|
|
|
data/icon_ivi_smoke.png
|
2015-02-16 13:00:36 +03:00
|
|
|
endif
|
2014-01-28 09:46:30 +04:00
|
|
|
|
|
|
|
|
|
|
|
if BUILD_WCAP_TOOLS
|
|
|
|
bin_PROGRAMS += wcap-decode
|
|
|
|
|
|
|
|
wcap_decode_SOURCES = \
|
|
|
|
wcap/main.c \
|
|
|
|
wcap/wcap-decode.c \
|
|
|
|
wcap/wcap-decode.h
|
|
|
|
|
2015-06-18 19:43:11 +03:00
|
|
|
wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
|
2014-01-28 09:46:30 +04:00
|
|
|
wcap_decode_LDADD = $(WCAP_LIBS)
|
|
|
|
endif
|
2014-01-28 09:56:12 +04:00
|
|
|
|
|
|
|
|
|
|
|
if ENABLE_DESKTOP_SHELL
|
|
|
|
|
|
|
|
module_LTLIBRARIES += desktop-shell.la
|
|
|
|
|
|
|
|
desktop_shell_la_CPPFLAGS = \
|
2014-02-02 00:39:12 +04:00
|
|
|
-I$(top_builddir)/protocol \
|
2014-01-28 09:56:12 +04:00
|
|
|
-I$(top_srcdir)/shared \
|
2016-06-03 17:12:10 +03:00
|
|
|
-I$(top_builddir)/libweston \
|
2016-07-04 16:57:11 +03:00
|
|
|
-I$(top_srcdir)/libweston \
|
2014-01-28 09:56:12 +04:00
|
|
|
-I$(top_builddir)/desktop-shell \
|
|
|
|
-DDATADIR='"$(datadir)"' \
|
|
|
|
-DMODULEDIR='"$(moduledir)"' \
|
|
|
|
-DLIBEXECDIR='"$(libexecdir)"' \
|
|
|
|
-DIN_WESTON
|
|
|
|
|
|
|
|
desktop_shell_la_LDFLAGS = -module -avoid-version
|
2016-07-22 16:52:42 +03:00
|
|
|
desktop_shell_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
|
2015-06-18 19:43:11 +03:00
|
|
|
desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
|
2014-01-28 09:56:12 +04:00
|
|
|
desktop_shell_la_SOURCES = \
|
|
|
|
desktop-shell/shell.h \
|
|
|
|
desktop-shell/shell.c \
|
|
|
|
desktop-shell/exposay.c \
|
2015-06-16 23:15:13 +03:00
|
|
|
desktop-shell/input-panel.c \
|
|
|
|
shared/helpers.h
|
2014-02-02 09:52:17 +04:00
|
|
|
nodist_desktop_shell_la_SOURCES = \
|
2015-11-17 11:00:33 +03:00
|
|
|
protocol/weston-desktop-shell-protocol.c \
|
|
|
|
protocol/weston-desktop-shell-server-protocol.h \
|
2015-11-17 11:00:32 +03:00
|
|
|
protocol/xdg-shell-unstable-v5-protocol.c \
|
|
|
|
protocol/xdg-shell-unstable-v5-server-protocol.h
|
2014-01-28 09:56:12 +04:00
|
|
|
|
2014-02-02 09:52:17 +04:00
|
|
|
BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
|
2014-01-28 09:56:12 +04:00
|
|
|
endif
|
|
|
|
|
2014-04-03 04:53:47 +04:00
|
|
|
if ENABLE_FULLSCREEN_SHELL
|
|
|
|
|
|
|
|
module_LTLIBRARIES += fullscreen-shell.la
|
|
|
|
|
|
|
|
fullscreen_shell_la_CPPFLAGS = \
|
|
|
|
-I$(top_builddir)/protocol \
|
|
|
|
-I$(top_srcdir)/shared \
|
2016-06-03 17:12:10 +03:00
|
|
|
-I$(top_builddir)/libweston \
|
2016-07-04 16:57:11 +03:00
|
|
|
-I$(top_srcdir)/libweston \
|
2014-04-03 04:53:47 +04:00
|
|
|
-DIN_WESTON
|
|
|
|
|
|
|
|
fullscreen_shell_la_LDFLAGS = -module -avoid-version
|
|
|
|
fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
|
2015-06-18 19:43:11 +03:00
|
|
|
fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
|
2014-04-03 04:53:47 +04:00
|
|
|
fullscreen_shell_la_SOURCES = \
|
2015-06-16 23:15:13 +03:00
|
|
|
fullscreen-shell/fullscreen-shell.c \
|
|
|
|
shared/helpers.h
|
2014-04-03 04:53:47 +04:00
|
|
|
nodist_fullscreen_shell_la_SOURCES = \
|
2015-11-17 11:00:27 +03:00
|
|
|
protocol/fullscreen-shell-unstable-v1-protocol.c \
|
|
|
|
protocol/fullscreen-shell-unstable-v1-server-protocol.h
|
2014-04-03 04:53:47 +04:00
|
|
|
|
|
|
|
BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
|
|
|
|
endif
|
2014-01-28 09:59:55 +04:00
|
|
|
|
2014-11-27 07:22:00 +03:00
|
|
|
if ENABLE_IVI_SHELL
|
|
|
|
|
|
|
|
module_LTLIBRARIES += \
|
ivi-shell: a reference implementation how to use ivi-layout internal APIs
- hmi-controller.so
- introduces hmi-controller.so
The library is used to manage layout of surfaces/layers. Layout change
is triggered by ivi-hmi-controller protocol, ivi-hmi-controller.xml. A
reference how to use the protocol, see ivi-shell-user-interface.c.
In-Vehicle Infotainment system usually manages properties of
surfaces/layers by only a central component which decide where
surfaces/layers shall be. This is differenct use case from desktop
style; each application can request property of its window via xdg-shell
protocol, like fullscreen and set its to top level. In-Vehicle
Infortainment system doesn't allow each application to chagen them from
its application because of safty reasons. The concept of layer is
simillar with a use case of cursor layer of Destop. For In-Vehicle
Infortainment system, it is extended to all applications. For example,
rearview camera application is assigned to a layer to group several
surfaces, e.g. captured image and drawing lines separately. Central
manaegr can control property of the layer of rearview camera.
This reference show examples to implement the central component as a
module of weston.
Default Scene graph of UI is defined in hmi_controller_create. It
consists of
- In the bottom, a base layer to group surfaces of background, panel,
and buttons
- Next, a application layer to show application surfaces.
- Workspace background layer to show a surface of background image.
- Workspace layer to show launcher to launch application with icons.
Paths to binary and icon are defined in weston.ini. The width of
this layer is longer than the size of screen because a workspace
has several pages and is controlled by motion of input.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-11-27 07:23:12 +03:00
|
|
|
$(ivi_shell) \
|
|
|
|
$(hmi_controller)
|
2014-11-27 07:22:00 +03:00
|
|
|
|
2014-11-27 07:22:37 +03:00
|
|
|
ivi_shell = ivi-shell.la
|
|
|
|
ivi_shell_la_LDFLAGS = -module -avoid-version
|
2016-07-22 16:52:42 +03:00
|
|
|
ivi_shell_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
|
2015-06-18 19:43:11 +03:00
|
|
|
ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
|
2014-11-27 07:22:37 +03:00
|
|
|
ivi_shell_la_SOURCES = \
|
2014-12-15 07:22:31 +03:00
|
|
|
ivi-shell/ivi-layout-export.h \
|
|
|
|
ivi-shell/ivi-layout-private.h \
|
2016-03-15 18:21:00 +03:00
|
|
|
ivi-shell/ivi-layout-shell.h \
|
2014-12-15 07:22:31 +03:00
|
|
|
ivi-shell/ivi-layout.c \
|
|
|
|
ivi-shell/ivi-layout-transition.c \
|
2014-11-27 07:22:37 +03:00
|
|
|
ivi-shell/ivi-shell.h \
|
|
|
|
ivi-shell/ivi-shell.c \
|
2015-06-16 23:15:13 +03:00
|
|
|
ivi-shell/input-panel-ivi.c \
|
|
|
|
shared/helpers.h
|
2014-11-27 07:22:37 +03:00
|
|
|
nodist_ivi_shell_la_SOURCES = \
|
|
|
|
protocol/ivi-application-protocol.c \
|
|
|
|
protocol/ivi-application-server-protocol.h
|
|
|
|
|
|
|
|
BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
|
|
|
|
|
ivi-shell: a reference implementation how to use ivi-layout internal APIs
- hmi-controller.so
- introduces hmi-controller.so
The library is used to manage layout of surfaces/layers. Layout change
is triggered by ivi-hmi-controller protocol, ivi-hmi-controller.xml. A
reference how to use the protocol, see ivi-shell-user-interface.c.
In-Vehicle Infotainment system usually manages properties of
surfaces/layers by only a central component which decide where
surfaces/layers shall be. This is differenct use case from desktop
style; each application can request property of its window via xdg-shell
protocol, like fullscreen and set its to top level. In-Vehicle
Infortainment system doesn't allow each application to chagen them from
its application because of safty reasons. The concept of layer is
simillar with a use case of cursor layer of Destop. For In-Vehicle
Infortainment system, it is extended to all applications. For example,
rearview camera application is assigned to a layer to group several
surfaces, e.g. captured image and drawing lines separately. Central
manaegr can control property of the layer of rearview camera.
This reference show examples to implement the central component as a
module of weston.
Default Scene graph of UI is defined in hmi_controller_create. It
consists of
- In the bottom, a base layer to group surfaces of background, panel,
and buttons
- Next, a application layer to show application surfaces.
- Workspace background layer to show a surface of background image.
- Workspace layer to show launcher to launch application with icons.
Paths to binary and icon are defined in weston.ini. The width of
this layer is longer than the size of screen because a workspace
has several pages and is controlled by motion of input.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-11-27 07:23:12 +03:00
|
|
|
hmi_controller = hmi-controller.la
|
|
|
|
hmi_controller_la_LDFLAGS = -module -avoid-version
|
2016-07-22 16:52:42 +03:00
|
|
|
hmi_controller_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
|
2015-06-18 19:43:11 +03:00
|
|
|
hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
|
ivi-shell: a reference implementation how to use ivi-layout internal APIs
- hmi-controller.so
- introduces hmi-controller.so
The library is used to manage layout of surfaces/layers. Layout change
is triggered by ivi-hmi-controller protocol, ivi-hmi-controller.xml. A
reference how to use the protocol, see ivi-shell-user-interface.c.
In-Vehicle Infotainment system usually manages properties of
surfaces/layers by only a central component which decide where
surfaces/layers shall be. This is differenct use case from desktop
style; each application can request property of its window via xdg-shell
protocol, like fullscreen and set its to top level. In-Vehicle
Infortainment system doesn't allow each application to chagen them from
its application because of safty reasons. The concept of layer is
simillar with a use case of cursor layer of Destop. For In-Vehicle
Infortainment system, it is extended to all applications. For example,
rearview camera application is assigned to a layer to group several
surfaces, e.g. captured image and drawing lines separately. Central
manaegr can control property of the layer of rearview camera.
This reference show examples to implement the central component as a
module of weston.
Default Scene graph of UI is defined in hmi_controller_create. It
consists of
- In the bottom, a base layer to group surfaces of background, panel,
and buttons
- Next, a application layer to show application surfaces.
- Workspace background layer to show a surface of background image.
- Workspace layer to show launcher to launch application with icons.
Paths to binary and icon are defined in weston.ini. The width of
this layer is longer than the size of screen because a workspace
has several pages and is controlled by motion of input.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-11-27 07:23:12 +03:00
|
|
|
hmi_controller_la_SOURCES = \
|
|
|
|
ivi-shell/ivi-layout-export.h \
|
2015-06-16 23:15:13 +03:00
|
|
|
ivi-shell/hmi-controller.c \
|
|
|
|
shared/helpers.h
|
ivi-shell: a reference implementation how to use ivi-layout internal APIs
- hmi-controller.so
- introduces hmi-controller.so
The library is used to manage layout of surfaces/layers. Layout change
is triggered by ivi-hmi-controller protocol, ivi-hmi-controller.xml. A
reference how to use the protocol, see ivi-shell-user-interface.c.
In-Vehicle Infotainment system usually manages properties of
surfaces/layers by only a central component which decide where
surfaces/layers shall be. This is differenct use case from desktop
style; each application can request property of its window via xdg-shell
protocol, like fullscreen and set its to top level. In-Vehicle
Infortainment system doesn't allow each application to chagen them from
its application because of safty reasons. The concept of layer is
simillar with a use case of cursor layer of Destop. For In-Vehicle
Infortainment system, it is extended to all applications. For example,
rearview camera application is assigned to a layer to group several
surfaces, e.g. captured image and drawing lines separately. Central
manaegr can control property of the layer of rearview camera.
This reference show examples to implement the central component as a
module of weston.
Default Scene graph of UI is defined in hmi_controller_create. It
consists of
- In the bottom, a base layer to group surfaces of background, panel,
and buttons
- Next, a application layer to show application surfaces.
- Workspace background layer to show a surface of background image.
- Workspace layer to show launcher to launch application with icons.
Paths to binary and icon are defined in weston.ini. The width of
this layer is longer than the size of screen because a workspace
has several pages and is controlled by motion of input.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-11-27 07:23:12 +03:00
|
|
|
nodist_hmi_controller_la_SOURCES = \
|
|
|
|
protocol/ivi-hmi-controller-protocol.c \
|
|
|
|
protocol/ivi-hmi-controller-server-protocol.h
|
|
|
|
|
|
|
|
BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
|
|
|
|
|
2014-11-27 07:22:00 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2014-04-03 04:54:01 +04:00
|
|
|
if ENABLE_SCREEN_SHARING
|
|
|
|
|
|
|
|
module_LTLIBRARIES += screen-share.la
|
|
|
|
|
|
|
|
screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
|
|
|
|
screen_share_la_LDFLAGS = -module -avoid-version
|
|
|
|
screen_share_la_LIBADD = \
|
2016-07-22 16:52:42 +03:00
|
|
|
libshared-cairo.la \
|
2014-04-03 04:54:01 +04:00
|
|
|
$(COMPOSITOR_LIBS) \
|
2016-07-22 16:52:42 +03:00
|
|
|
$(SCREEN_SHARE_LIBS)
|
2014-04-03 04:54:01 +04:00
|
|
|
screen_share_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(SCREEN_SHARE_CFLAGS) \
|
2015-06-18 19:43:11 +03:00
|
|
|
$(AM_CFLAGS)
|
2014-04-03 04:54:01 +04:00
|
|
|
screen_share_la_SOURCES = \
|
2016-06-03 16:45:21 +03:00
|
|
|
compositor/screen-share.c \
|
2015-06-16 23:15:13 +03:00
|
|
|
shared/helpers.h
|
2014-04-03 04:54:01 +04:00
|
|
|
nodist_screen_share_la_SOURCES = \
|
2015-11-17 11:00:27 +03:00
|
|
|
protocol/fullscreen-shell-unstable-v1-protocol.c \
|
|
|
|
protocol/fullscreen-shell-unstable-v1-client-protocol.h
|
2014-04-03 04:54:01 +04:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2014-01-28 09:59:55 +04:00
|
|
|
if ENABLE_XWAYLAND
|
|
|
|
|
2016-06-29 12:54:27 +03:00
|
|
|
libweston_module_LTLIBRARIES += xwayland.la
|
2014-01-28 09:59:55 +04:00
|
|
|
|
|
|
|
xwayland_la_CPPFLAGS = \
|
2014-02-02 00:39:12 +04:00
|
|
|
-I$(top_builddir)/protocol \
|
2014-01-28 09:59:55 +04:00
|
|
|
-I$(top_srcdir)/shared \
|
2016-06-03 17:12:10 +03:00
|
|
|
-I$(top_builddir)/libweston \
|
2016-07-04 16:57:11 +03:00
|
|
|
-I$(top_srcdir)/libweston \
|
2014-01-28 09:59:55 +04:00
|
|
|
-I$(top_builddir)/xwayland \
|
|
|
|
-DDATADIR='"$(datadir)"' \
|
|
|
|
-DMODULEDIR='"$(moduledir)"' \
|
2016-06-29 12:54:27 +03:00
|
|
|
-DLIBEXECDIR='"$(libexecdir)"'
|
2014-01-28 09:59:55 +04:00
|
|
|
|
|
|
|
xwayland_la_LDFLAGS = -module -avoid-version
|
|
|
|
xwayland_la_LIBADD = \
|
2016-07-22 16:52:42 +03:00
|
|
|
libshared-cairo.la \
|
|
|
|
$(XWAYLAND_LIBS)
|
2014-01-28 09:59:55 +04:00
|
|
|
xwayland_la_CFLAGS = \
|
2015-06-18 19:43:11 +03:00
|
|
|
$(AM_CFLAGS) \
|
2014-01-28 09:59:55 +04:00
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(PIXMAN_CFLAGS) \
|
|
|
|
$(CAIRO_CFLAGS)
|
|
|
|
xwayland_la_SOURCES = \
|
|
|
|
xwayland/xwayland.h \
|
|
|
|
xwayland/window-manager.c \
|
|
|
|
xwayland/selection.c \
|
|
|
|
xwayland/dnd.c \
|
|
|
|
xwayland/launcher.c \
|
|
|
|
xwayland/hash.c \
|
2015-06-16 23:15:13 +03:00
|
|
|
xwayland/hash.h \
|
|
|
|
shared/helpers.h
|
2016-06-29 12:54:27 +03:00
|
|
|
|
|
|
|
libwestoninclude_HEADERS += xwayland/xwayland-api.h
|
|
|
|
|
2014-01-28 09:59:55 +04:00
|
|
|
endif
|
|
|
|
|
2014-01-28 10:26:29 +04:00
|
|
|
|
2014-01-28 10:02:41 +04:00
|
|
|
#
|
|
|
|
# Shared utilities
|
|
|
|
#
|
|
|
|
|
2015-07-03 09:36:44 +03:00
|
|
|
noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
|
|
|
|
libzunitc.la libzunitcmain.la
|
2014-01-28 10:02:41 +04:00
|
|
|
|
2015-06-18 19:43:11 +03:00
|
|
|
libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
|
2014-01-28 10:02:41 +04:00
|
|
|
|
|
|
|
libshared_la_SOURCES = \
|
|
|
|
shared/config-parser.c \
|
|
|
|
shared/option-parser.c \
|
|
|
|
shared/config-parser.h \
|
2015-02-12 13:52:21 +03:00
|
|
|
shared/file-util.c \
|
|
|
|
shared/file-util.h \
|
2015-06-16 23:15:13 +03:00
|
|
|
shared/helpers.h \
|
2014-01-28 10:02:41 +04:00
|
|
|
shared/os-compatibility.c \
|
2016-03-17 00:15:18 +03:00
|
|
|
shared/os-compatibility.h \
|
|
|
|
shared/xalloc.c \
|
|
|
|
shared/xalloc.h
|
2014-01-28 10:02:41 +04:00
|
|
|
|
|
|
|
libshared_cairo_la_CFLAGS = \
|
|
|
|
-DDATADIR='"$(datadir)"' \
|
2015-06-18 19:43:11 +03:00
|
|
|
$(AM_CFLAGS) \
|
2014-01-28 10:02:41 +04:00
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(PIXMAN_CFLAGS) \
|
|
|
|
$(CAIRO_CFLAGS) \
|
|
|
|
$(PNG_CFLAGS) \
|
|
|
|
$(WEBP_CFLAGS)
|
|
|
|
|
|
|
|
libshared_cairo_la_LIBADD = \
|
|
|
|
$(PIXMAN_LIBS) \
|
|
|
|
$(CAIRO_LIBS) \
|
|
|
|
$(PNG_LIBS) \
|
|
|
|
$(WEBP_LIBS) \
|
|
|
|
$(JPEG_LIBS)
|
|
|
|
|
|
|
|
libshared_cairo_la_SOURCES = \
|
|
|
|
$(libshared_la_SOURCES) \
|
2015-06-16 23:15:13 +03:00
|
|
|
shared/helpers.h \
|
2014-01-28 10:02:41 +04:00
|
|
|
shared/image-loader.c \
|
|
|
|
shared/image-loader.h \
|
|
|
|
shared/cairo-util.c \
|
|
|
|
shared/frame.c \
|
|
|
|
shared/cairo-util.h
|
|
|
|
|
2015-07-03 09:36:44 +03:00
|
|
|
libzunitc_la_SOURCES = \
|
|
|
|
tools/zunitc/inc/zunitc/zunitc.h \
|
|
|
|
tools/zunitc/inc/zunitc/zunitc_impl.h \
|
|
|
|
tools/zunitc/src/zuc_base_logger.c \
|
|
|
|
tools/zunitc/src/zuc_base_logger.h \
|
|
|
|
tools/zunitc/src/zuc_collector.c \
|
|
|
|
tools/zunitc/src/zuc_collector.h \
|
|
|
|
tools/zunitc/src/zuc_context.h \
|
|
|
|
tools/zunitc/src/zuc_event.h \
|
|
|
|
tools/zunitc/src/zuc_event_listener.h \
|
2015-07-16 05:22:41 +03:00
|
|
|
tools/zunitc/src/zuc_junit_reporter.c \
|
|
|
|
tools/zunitc/src/zuc_junit_reporter.h \
|
2015-07-03 09:36:44 +03:00
|
|
|
tools/zunitc/src/zuc_types.h \
|
|
|
|
tools/zunitc/src/zunitc_impl.c \
|
|
|
|
shared/helpers.h
|
|
|
|
|
|
|
|
libzunitc_la_CFLAGS = \
|
|
|
|
$(AM_CFLAGS) \
|
|
|
|
-I$(top_srcdir)/tools/zunitc/inc
|
|
|
|
|
|
|
|
libzunitc_la_LIBADD = \
|
2016-04-22 16:54:35 +03:00
|
|
|
libshared.la \
|
|
|
|
$(CLOCK_GETTIME_LIBS)
|
2015-07-03 09:36:44 +03:00
|
|
|
|
2015-07-16 05:22:41 +03:00
|
|
|
if ENABLE_JUNIT_XML
|
|
|
|
libzunitc_la_CFLAGS += \
|
|
|
|
$(LIBXML2_CFLAGS)
|
|
|
|
libzunitc_la_LIBADD += \
|
|
|
|
$(LIBXML2_LIBS)
|
|
|
|
endif
|
|
|
|
|
2015-07-03 09:36:44 +03:00
|
|
|
libzunitcmain_la_SOURCES = \
|
|
|
|
tools/zunitc/src/main.c
|
|
|
|
|
|
|
|
libzunitcmain_la_CFLAGS = \
|
|
|
|
$(AM_CFLAGS) \
|
|
|
|
-I$(top_srcdir)/tools/zunitc/inc
|
|
|
|
|
|
|
|
libzunitcmain_la_LIBADD = \
|
|
|
|
libzunitc.la \
|
|
|
|
libshared.la
|
2014-01-28 10:02:41 +04:00
|
|
|
|
2014-02-01 02:03:09 +04:00
|
|
|
#
|
|
|
|
# tests subdirectory
|
|
|
|
#
|
|
|
|
|
2014-11-05 03:39:38 +03:00
|
|
|
TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
|
|
|
|
|
|
|
|
internal_tests = \
|
|
|
|
internal-screenshot.weston
|
2014-02-01 02:03:09 +04:00
|
|
|
|
|
|
|
shared_tests = \
|
|
|
|
config-parser.test \
|
2015-07-03 09:36:44 +03:00
|
|
|
vertex-clip.test \
|
|
|
|
zuctest
|
2014-02-01 02:03:09 +04:00
|
|
|
|
|
|
|
module_tests = \
|
2016-06-29 12:54:26 +03:00
|
|
|
plugin-registry-test.la \
|
2014-02-01 02:03:09 +04:00
|
|
|
surface-test.la \
|
|
|
|
surface-global-test.la
|
|
|
|
|
|
|
|
weston_tests = \
|
|
|
|
bad_buffer.weston \
|
|
|
|
keyboard.weston \
|
|
|
|
event.weston \
|
|
|
|
button.weston \
|
|
|
|
text.weston \
|
2014-09-24 06:08:48 +04:00
|
|
|
presentation.weston \
|
2016-04-19 17:20:42 +03:00
|
|
|
viewporter.weston \
|
2014-10-01 17:34:48 +04:00
|
|
|
roles.weston \
|
2015-03-30 16:21:29 +03:00
|
|
|
subsurface.weston \
|
|
|
|
devices.weston
|
2014-02-01 02:03:09 +04:00
|
|
|
|
2015-03-24 14:51:05 +03:00
|
|
|
ivi_tests =
|
|
|
|
|
|
|
|
$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
|
2014-02-01 02:03:09 +04:00
|
|
|
|
|
|
|
AM_TESTS_ENVIRONMENT = \
|
2015-04-16 01:31:11 +03:00
|
|
|
abs_builddir='$(abs_builddir)'; export abs_builddir; \
|
|
|
|
abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
|
2014-02-01 02:03:09 +04:00
|
|
|
|
|
|
|
TEST_EXTENSIONS = .la .weston
|
|
|
|
LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
|
|
|
|
WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
|
|
|
|
|
|
|
|
clean-local:
|
2014-05-12 11:08:57 +04:00
|
|
|
-rm -rf logs
|
2015-07-16 05:22:43 +03:00
|
|
|
-rm -rf $(DOCDIRS)
|
2014-02-01 02:03:09 +04:00
|
|
|
|
|
|
|
# To remove when automake 1.11 support is dropped
|
|
|
|
export abs_builddir
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES += \
|
|
|
|
weston-test.la \
|
|
|
|
$(module_tests) \
|
|
|
|
libtest-runner.la \
|
|
|
|
libtest-client.la
|
|
|
|
|
|
|
|
noinst_PROGRAMS += \
|
|
|
|
$(setbacklight) \
|
2014-11-05 03:39:38 +03:00
|
|
|
$(internal_tests) \
|
2014-02-01 02:03:09 +04:00
|
|
|
$(shared_tests) \
|
|
|
|
$(weston_tests) \
|
2015-03-24 14:51:05 +03:00
|
|
|
$(ivi_tests) \
|
2014-02-01 02:03:09 +04:00
|
|
|
matrix-test
|
|
|
|
|
|
|
|
test_module_ldflags = \
|
|
|
|
-module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
|
|
|
|
|
2016-06-29 12:54:26 +03:00
|
|
|
plugin_registry_test_la_SOURCES = tests/plugin-registry-test.c
|
|
|
|
plugin_registry_test_la_LDFLAGS = $(test_module_ldflags)
|
|
|
|
plugin_registry_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
|
|
|
2014-02-01 02:03:09 +04:00
|
|
|
surface_global_test_la_SOURCES = tests/surface-global-test.c
|
|
|
|
surface_global_test_la_LDFLAGS = $(test_module_ldflags)
|
2015-06-18 19:43:11 +03:00
|
|
|
surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
|
2014-02-01 02:03:09 +04:00
|
|
|
|
|
|
|
surface_test_la_SOURCES = tests/surface-test.c
|
|
|
|
surface_test_la_LDFLAGS = $(test_module_ldflags)
|
2015-06-18 19:43:11 +03:00
|
|
|
surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
|
2014-02-01 02:03:09 +04:00
|
|
|
|
2016-07-22 16:52:42 +03:00
|
|
|
weston_test_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
|
2014-02-01 02:03:09 +04:00
|
|
|
weston_test_la_LDFLAGS = $(test_module_ldflags)
|
2015-06-18 19:43:11 +03:00
|
|
|
weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
|
2015-06-16 23:15:13 +03:00
|
|
|
weston_test_la_SOURCES = \
|
|
|
|
tests/weston-test.c \
|
|
|
|
shared/helpers.h
|
2014-02-02 09:52:17 +04:00
|
|
|
nodist_weston_test_la_SOURCES = \
|
2015-02-24 18:32:14 +03:00
|
|
|
protocol/weston-test-protocol.c \
|
|
|
|
protocol/weston-test-server-protocol.h
|
2014-02-01 02:03:09 +04:00
|
|
|
|
|
|
|
if ENABLE_EGL
|
|
|
|
weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
|
|
|
|
weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
libtest_runner_la_SOURCES = \
|
|
|
|
tests/weston-test-runner.c \
|
|
|
|
tests/weston-test-runner.h
|
2015-06-18 19:43:11 +03:00
|
|
|
libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
|
2014-02-01 02:03:09 +04:00
|
|
|
|
|
|
|
config_parser_test_SOURCES = tests/config-parser-test.c
|
2015-07-16 05:22:42 +03:00
|
|
|
config_parser_test_LDADD = \
|
|
|
|
libshared.la \
|
|
|
|
$(COMPOSITOR_LIBS) \
|
|
|
|
libzunitc.la \
|
|
|
|
libzunitcmain.la
|
|
|
|
config_parser_test_CFLAGS = \
|
|
|
|
$(AM_CFLAGS) \
|
|
|
|
-I$(top_srcdir)/tools/zunitc/inc
|
2014-02-01 02:03:09 +04:00
|
|
|
|
|
|
|
vertex_clip_test_SOURCES = \
|
|
|
|
tests/vertex-clip-test.c \
|
2015-06-16 23:15:13 +03:00
|
|
|
shared/helpers.h \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/vertex-clipping.c \
|
|
|
|
libweston/vertex-clipping.h
|
2016-04-21 17:18:48 +03:00
|
|
|
vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
|
2014-02-01 02:03:09 +04:00
|
|
|
|
2014-02-02 00:39:12 +04:00
|
|
|
libtest_client_la_SOURCES = \
|
2014-02-01 02:03:09 +04:00
|
|
|
tests/weston-test-client-helper.c \
|
2014-02-02 09:52:17 +04:00
|
|
|
tests/weston-test-client-helper.h
|
|
|
|
nodist_libtest_client_la_SOURCES = \
|
2015-02-24 18:32:14 +03:00
|
|
|
protocol/weston-test-protocol.c \
|
|
|
|
protocol/weston-test-client-protocol.h
|
2015-09-25 00:31:44 +03:00
|
|
|
libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
|
2016-07-22 16:52:42 +03:00
|
|
|
libtest_client_la_LIBADD = libshared.la libtest-runner.la $(TEST_CLIENT_LIBS) $(CAIRO_LIBS)
|
2014-02-01 02:03:09 +04:00
|
|
|
|
2014-11-05 03:39:38 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Internal tests - tests functionality of the testsuite itself
|
|
|
|
#
|
|
|
|
|
|
|
|
internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
|
2015-09-25 00:31:44 +03:00
|
|
|
internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
|
|
|
internal_screenshot_weston_LDADD = libtest-client.la
|
2014-11-05 03:39:38 +03:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Weston Tests
|
|
|
|
#
|
|
|
|
|
2014-02-01 02:03:09 +04:00
|
|
|
bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
|
2014-02-03 23:05:41 +04:00
|
|
|
bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
2014-02-01 02:03:09 +04:00
|
|
|
bad_buffer_weston_LDADD = libtest-client.la
|
|
|
|
|
|
|
|
keyboard_weston_SOURCES = tests/keyboard-test.c
|
2014-02-03 23:05:41 +04:00
|
|
|
keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
2014-02-01 02:03:09 +04:00
|
|
|
keyboard_weston_LDADD = libtest-client.la
|
|
|
|
|
|
|
|
event_weston_SOURCES = tests/event-test.c
|
2014-02-03 23:05:41 +04:00
|
|
|
event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
2014-02-01 02:03:09 +04:00
|
|
|
event_weston_LDADD = libtest-client.la
|
|
|
|
|
|
|
|
button_weston_SOURCES = tests/button-test.c
|
2014-02-03 23:05:41 +04:00
|
|
|
button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
2014-02-01 02:03:09 +04:00
|
|
|
button_weston_LDADD = libtest-client.la
|
|
|
|
|
2015-03-30 16:21:29 +03:00
|
|
|
devices_weston_SOURCES = tests/devices-test.c
|
|
|
|
devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
|
|
|
devices_weston_LDADD = libtest-client.la
|
|
|
|
|
2014-02-02 09:52:17 +04:00
|
|
|
text_weston_SOURCES = tests/text-test.c
|
|
|
|
nodist_text_weston_SOURCES = \
|
2015-11-17 11:00:29 +03:00
|
|
|
protocol/text-input-unstable-v1-protocol.c \
|
|
|
|
protocol/text-input-unstable-v1-client-protocol.h
|
2014-02-03 23:05:41 +04:00
|
|
|
text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
2014-02-01 02:03:09 +04:00
|
|
|
text_weston_LDADD = libtest-client.la
|
|
|
|
|
|
|
|
subsurface_weston_SOURCES = tests/subsurface-test.c
|
2014-02-03 23:05:41 +04:00
|
|
|
subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
2014-02-01 02:03:09 +04:00
|
|
|
subsurface_weston_LDADD = libtest-client.la
|
|
|
|
|
2015-06-16 23:15:13 +03:00
|
|
|
presentation_weston_SOURCES = \
|
|
|
|
tests/presentation-test.c \
|
|
|
|
shared/helpers.h
|
2014-09-24 06:08:48 +04:00
|
|
|
nodist_presentation_weston_SOURCES = \
|
2016-02-18 17:53:27 +03:00
|
|
|
protocol/presentation-time-protocol.c \
|
|
|
|
protocol/presentation-time-client-protocol.h
|
2014-09-24 06:08:48 +04:00
|
|
|
presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
|
|
|
presentation_weston_LDADD = libtest-client.la
|
|
|
|
|
2014-10-01 17:34:48 +04:00
|
|
|
roles_weston_SOURCES = tests/roles-test.c
|
|
|
|
roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
|
|
|
roles_weston_LDADD = libtest-client.la
|
|
|
|
|
2016-04-19 17:20:42 +03:00
|
|
|
viewporter_weston_SOURCES = \
|
|
|
|
tests/viewporter-test.c \
|
|
|
|
shared/helpers.h
|
|
|
|
nodist_viewporter_weston_SOURCES = \
|
|
|
|
protocol/viewporter-protocol.c \
|
|
|
|
protocol/viewporter-client-protocol.h
|
|
|
|
viewporter_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
|
|
|
viewporter_weston_LDADD = libtest-client.la
|
|
|
|
|
2014-02-01 02:03:09 +04:00
|
|
|
if ENABLE_EGL
|
|
|
|
weston_tests += buffer-count.weston
|
|
|
|
buffer_count_weston_SOURCES = tests/buffer-count-test.c
|
tests: introduce struct buffer for client-helper
We are growing more tests that need to handle buffers, both just images
and wl_buffers. Particularly the screenshooting facility needs these.
Currently everything is in struct surface, which contains more than we
need. It is a bit messy.
Create a new struct buffer to encapsulate the image representation, the
wl_buffer, and enough information to tear it all down (munmap) so we
don't have to leak everything. Some tests might start doing things in
loops, and leaking would accumulate.
Instead of inventing our own image representation, use pixman_image_t.
It is a well-tested library worth using, and we already rely on it in
other places.
This makes the tests depend on Pixman, which requires the fix for
building buffer-count, which would otherwise not find pixman.h.
The new create_shm_buffer_a8r8g8b8() creates an image with an explicit
format, and pixman_image_t keeps track of it. And stride and size and
data. This implementation is still a little hacky due to calling
create_shm_buffer().
A very new thing is buffer_destroy(). Previously we didn't really free
any buffers. It is not a problem when the process will exit soon anyway,
but it may become a problem if tests start iterating things.
Manual memset() on a image is converted to a pixman action, just to show
how to do it properly with pixman.
Stride and pixel format assumptions still linger all around, but those
are for another patch.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Daniel Stone <daniels@collabora.com>
2016-05-20 17:25:38 +03:00
|
|
|
buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
2014-02-01 02:03:09 +04:00
|
|
|
buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_XWAYLAND_TEST
|
2014-05-07 17:26:29 +04:00
|
|
|
weston_tests += xwayland-test.weston
|
|
|
|
xwayland_test_weston_SOURCES = tests/xwayland-test.c
|
2015-06-18 19:43:11 +03:00
|
|
|
xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
|
2014-05-07 17:26:29 +04:00
|
|
|
xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
|
2014-02-01 02:03:09 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
matrix_test_SOURCES = \
|
|
|
|
tests/matrix-test.c \
|
|
|
|
shared/matrix.c \
|
|
|
|
shared/matrix.h
|
|
|
|
matrix_test_CPPFLAGS = -DUNIT_TEST
|
2016-04-21 17:18:48 +03:00
|
|
|
matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
|
2014-02-01 02:03:09 +04:00
|
|
|
|
2015-03-23 14:55:06 +03:00
|
|
|
if ENABLE_IVI_SHELL
|
tests: ivi_layout test infrastructure
Testing the ivi_layout API requires two things:
- the tests must be written as a controller module to access the API
- the tests need a helper client to create some objects that can then be
managed via the API
This patch adds all the infrastructure and two different kinds of
example tests.
Internal ivi-shell (ivi_layout) API tests are listed as ivi-*.la files
in TESTS in Makefile.am. Weston-tests-env detects these, and runs Weston
with ivi-shell, and loads the given module as a controller module, not
as a normal plugin.
The test controller module ivi-*.la will launch a helper client. For
ivi-layout-test.la the helper client is ivi-layout.ivi.
The helper client uses the weston-test-runner framework to fork and exec
each TEST with a fresh connection to the compositor.
The actual test is triggered by the weston_test_runner protocol
interface, a new addition to weston-test.xml. The helper client uses
weston_test_runner to trigger a test, and the server side of the
interface is implemented by the test controller module
(ivi-layout-test.la).
The server side of weston_test_runner uses the same trick as
weston-test-runner.h to gather a list of defined tests. A test is
defined with the RUNNER_TEST macro.
If a test defined by RUNNER_TEST succeeds, an event is sent to the
helper client that it can continue (or exit). If a test fails, a fatal
protocol error is sent to the helper client.
Once the helper client has iterated over all of its tests, it signals
the batch success/failure via process exit code. That is cought in the
test controller module, and forwarded as Weston's exit code.
In summary: each ivi_layout test is a combination of a client side
helper/setup and server side actual tests.
v2: Load weston-test.so, because create_client() needs it.
v3: add a comment about IVI_TEST_SURFACE_ID_BASE.
v4: Rebased to upstream weston-tests-env changes.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com> (v2)
2015-03-25 13:50:31 +03:00
|
|
|
module_tests += \
|
2015-03-27 12:55:21 +03:00
|
|
|
ivi-layout-internal-test.la \
|
tests: ivi_layout test infrastructure
Testing the ivi_layout API requires two things:
- the tests must be written as a controller module to access the API
- the tests need a helper client to create some objects that can then be
managed via the API
This patch adds all the infrastructure and two different kinds of
example tests.
Internal ivi-shell (ivi_layout) API tests are listed as ivi-*.la files
in TESTS in Makefile.am. Weston-tests-env detects these, and runs Weston
with ivi-shell, and loads the given module as a controller module, not
as a normal plugin.
The test controller module ivi-*.la will launch a helper client. For
ivi-layout-test.la the helper client is ivi-layout.ivi.
The helper client uses the weston-test-runner framework to fork and exec
each TEST with a fresh connection to the compositor.
The actual test is triggered by the weston_test_runner protocol
interface, a new addition to weston-test.xml. The helper client uses
weston_test_runner to trigger a test, and the server side of the
interface is implemented by the test controller module
(ivi-layout-test.la).
The server side of weston_test_runner uses the same trick as
weston-test-runner.h to gather a list of defined tests. A test is
defined with the RUNNER_TEST macro.
If a test defined by RUNNER_TEST succeeds, an event is sent to the
helper client that it can continue (or exit). If a test fails, a fatal
protocol error is sent to the helper client.
Once the helper client has iterated over all of its tests, it signals
the batch success/failure via process exit code. That is cought in the
test controller module, and forwarded as Weston's exit code.
In summary: each ivi_layout test is a combination of a client side
helper/setup and server side actual tests.
v2: Load weston-test.so, because create_client() needs it.
v3: add a comment about IVI_TEST_SURFACE_ID_BASE.
v4: Rebased to upstream weston-tests-env changes.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com> (v2)
2015-03-25 13:50:31 +03:00
|
|
|
ivi-layout-test.la
|
|
|
|
|
2015-03-27 12:55:21 +03:00
|
|
|
ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
|
|
|
|
ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
|
2015-06-18 19:43:11 +03:00
|
|
|
ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
|
2015-03-27 12:55:21 +03:00
|
|
|
ivi_layout_internal_test_la_SOURCES = \
|
|
|
|
tests/ivi_layout-internal-test.c
|
|
|
|
|
tests: ivi_layout test infrastructure
Testing the ivi_layout API requires two things:
- the tests must be written as a controller module to access the API
- the tests need a helper client to create some objects that can then be
managed via the API
This patch adds all the infrastructure and two different kinds of
example tests.
Internal ivi-shell (ivi_layout) API tests are listed as ivi-*.la files
in TESTS in Makefile.am. Weston-tests-env detects these, and runs Weston
with ivi-shell, and loads the given module as a controller module, not
as a normal plugin.
The test controller module ivi-*.la will launch a helper client. For
ivi-layout-test.la the helper client is ivi-layout.ivi.
The helper client uses the weston-test-runner framework to fork and exec
each TEST with a fresh connection to the compositor.
The actual test is triggered by the weston_test_runner protocol
interface, a new addition to weston-test.xml. The helper client uses
weston_test_runner to trigger a test, and the server side of the
interface is implemented by the test controller module
(ivi-layout-test.la).
The server side of weston_test_runner uses the same trick as
weston-test-runner.h to gather a list of defined tests. A test is
defined with the RUNNER_TEST macro.
If a test defined by RUNNER_TEST succeeds, an event is sent to the
helper client that it can continue (or exit). If a test fails, a fatal
protocol error is sent to the helper client.
Once the helper client has iterated over all of its tests, it signals
the batch success/failure via process exit code. That is cought in the
test controller module, and forwarded as Weston's exit code.
In summary: each ivi_layout test is a combination of a client side
helper/setup and server side actual tests.
v2: Load weston-test.so, because create_client() needs it.
v3: add a comment about IVI_TEST_SURFACE_ID_BASE.
v4: Rebased to upstream weston-tests-env changes.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com> (v2)
2015-03-25 13:50:31 +03:00
|
|
|
ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
|
|
|
|
ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
|
2015-06-18 19:43:11 +03:00
|
|
|
ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
|
tests: ivi_layout test infrastructure
Testing the ivi_layout API requires two things:
- the tests must be written as a controller module to access the API
- the tests need a helper client to create some objects that can then be
managed via the API
This patch adds all the infrastructure and two different kinds of
example tests.
Internal ivi-shell (ivi_layout) API tests are listed as ivi-*.la files
in TESTS in Makefile.am. Weston-tests-env detects these, and runs Weston
with ivi-shell, and loads the given module as a controller module, not
as a normal plugin.
The test controller module ivi-*.la will launch a helper client. For
ivi-layout-test.la the helper client is ivi-layout.ivi.
The helper client uses the weston-test-runner framework to fork and exec
each TEST with a fresh connection to the compositor.
The actual test is triggered by the weston_test_runner protocol
interface, a new addition to weston-test.xml. The helper client uses
weston_test_runner to trigger a test, and the server side of the
interface is implemented by the test controller module
(ivi-layout-test.la).
The server side of weston_test_runner uses the same trick as
weston-test-runner.h to gather a list of defined tests. A test is
defined with the RUNNER_TEST macro.
If a test defined by RUNNER_TEST succeeds, an event is sent to the
helper client that it can continue (or exit). If a test fails, a fatal
protocol error is sent to the helper client.
Once the helper client has iterated over all of its tests, it signals
the batch success/failure via process exit code. That is cought in the
test controller module, and forwarded as Weston's exit code.
In summary: each ivi_layout test is a combination of a client side
helper/setup and server side actual tests.
v2: Load weston-test.so, because create_client() needs it.
v3: add a comment about IVI_TEST_SURFACE_ID_BASE.
v4: Rebased to upstream weston-tests-env changes.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com> (v2)
2015-03-25 13:50:31 +03:00
|
|
|
ivi_layout_test_la_SOURCES = \
|
|
|
|
tests/ivi_layout-test-plugin.c \
|
2015-06-16 23:15:13 +03:00
|
|
|
tests/ivi-test.h \
|
|
|
|
shared/helpers.h
|
tests: ivi_layout test infrastructure
Testing the ivi_layout API requires two things:
- the tests must be written as a controller module to access the API
- the tests need a helper client to create some objects that can then be
managed via the API
This patch adds all the infrastructure and two different kinds of
example tests.
Internal ivi-shell (ivi_layout) API tests are listed as ivi-*.la files
in TESTS in Makefile.am. Weston-tests-env detects these, and runs Weston
with ivi-shell, and loads the given module as a controller module, not
as a normal plugin.
The test controller module ivi-*.la will launch a helper client. For
ivi-layout-test.la the helper client is ivi-layout.ivi.
The helper client uses the weston-test-runner framework to fork and exec
each TEST with a fresh connection to the compositor.
The actual test is triggered by the weston_test_runner protocol
interface, a new addition to weston-test.xml. The helper client uses
weston_test_runner to trigger a test, and the server side of the
interface is implemented by the test controller module
(ivi-layout-test.la).
The server side of weston_test_runner uses the same trick as
weston-test-runner.h to gather a list of defined tests. A test is
defined with the RUNNER_TEST macro.
If a test defined by RUNNER_TEST succeeds, an event is sent to the
helper client that it can continue (or exit). If a test fails, a fatal
protocol error is sent to the helper client.
Once the helper client has iterated over all of its tests, it signals
the batch success/failure via process exit code. That is cought in the
test controller module, and forwarded as Weston's exit code.
In summary: each ivi_layout test is a combination of a client side
helper/setup and server side actual tests.
v2: Load weston-test.so, because create_client() needs it.
v3: add a comment about IVI_TEST_SURFACE_ID_BASE.
v4: Rebased to upstream weston-tests-env changes.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com> (v2)
2015-03-25 13:50:31 +03:00
|
|
|
nodist_ivi_layout_test_la_SOURCES = \
|
|
|
|
protocol/weston-test-protocol.c \
|
|
|
|
protocol/weston-test-server-protocol.h
|
|
|
|
|
2015-03-23 14:55:06 +03:00
|
|
|
ivi_tests += \
|
|
|
|
ivi-shell-app.weston
|
|
|
|
|
|
|
|
ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
|
|
|
|
nodist_ivi_shell_app_weston_SOURCES = \
|
|
|
|
protocol/ivi-application-protocol.c \
|
|
|
|
protocol/ivi-application-client-protocol.h
|
|
|
|
ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
|
|
|
ivi_shell_app_weston_LDADD = libtest-client.la
|
tests: ivi_layout test infrastructure
Testing the ivi_layout API requires two things:
- the tests must be written as a controller module to access the API
- the tests need a helper client to create some objects that can then be
managed via the API
This patch adds all the infrastructure and two different kinds of
example tests.
Internal ivi-shell (ivi_layout) API tests are listed as ivi-*.la files
in TESTS in Makefile.am. Weston-tests-env detects these, and runs Weston
with ivi-shell, and loads the given module as a controller module, not
as a normal plugin.
The test controller module ivi-*.la will launch a helper client. For
ivi-layout-test.la the helper client is ivi-layout.ivi.
The helper client uses the weston-test-runner framework to fork and exec
each TEST with a fresh connection to the compositor.
The actual test is triggered by the weston_test_runner protocol
interface, a new addition to weston-test.xml. The helper client uses
weston_test_runner to trigger a test, and the server side of the
interface is implemented by the test controller module
(ivi-layout-test.la).
The server side of weston_test_runner uses the same trick as
weston-test-runner.h to gather a list of defined tests. A test is
defined with the RUNNER_TEST macro.
If a test defined by RUNNER_TEST succeeds, an event is sent to the
helper client that it can continue (or exit). If a test fails, a fatal
protocol error is sent to the helper client.
Once the helper client has iterated over all of its tests, it signals
the batch success/failure via process exit code. That is cought in the
test controller module, and forwarded as Weston's exit code.
In summary: each ivi_layout test is a combination of a client side
helper/setup and server side actual tests.
v2: Load weston-test.so, because create_client() needs it.
v3: add a comment about IVI_TEST_SURFACE_ID_BASE.
v4: Rebased to upstream weston-tests-env changes.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com> (v2)
2015-03-25 13:50:31 +03:00
|
|
|
|
|
|
|
noinst_PROGRAMS += ivi-layout.ivi
|
|
|
|
|
|
|
|
ivi_layout_ivi_SOURCES = \
|
|
|
|
tests/ivi_layout-test.c \
|
2015-06-16 23:15:13 +03:00
|
|
|
tests/ivi-test.h \
|
|
|
|
shared/helpers.h
|
tests: ivi_layout test infrastructure
Testing the ivi_layout API requires two things:
- the tests must be written as a controller module to access the API
- the tests need a helper client to create some objects that can then be
managed via the API
This patch adds all the infrastructure and two different kinds of
example tests.
Internal ivi-shell (ivi_layout) API tests are listed as ivi-*.la files
in TESTS in Makefile.am. Weston-tests-env detects these, and runs Weston
with ivi-shell, and loads the given module as a controller module, not
as a normal plugin.
The test controller module ivi-*.la will launch a helper client. For
ivi-layout-test.la the helper client is ivi-layout.ivi.
The helper client uses the weston-test-runner framework to fork and exec
each TEST with a fresh connection to the compositor.
The actual test is triggered by the weston_test_runner protocol
interface, a new addition to weston-test.xml. The helper client uses
weston_test_runner to trigger a test, and the server side of the
interface is implemented by the test controller module
(ivi-layout-test.la).
The server side of weston_test_runner uses the same trick as
weston-test-runner.h to gather a list of defined tests. A test is
defined with the RUNNER_TEST macro.
If a test defined by RUNNER_TEST succeeds, an event is sent to the
helper client that it can continue (or exit). If a test fails, a fatal
protocol error is sent to the helper client.
Once the helper client has iterated over all of its tests, it signals
the batch success/failure via process exit code. That is cought in the
test controller module, and forwarded as Weston's exit code.
In summary: each ivi_layout test is a combination of a client side
helper/setup and server side actual tests.
v2: Load weston-test.so, because create_client() needs it.
v3: add a comment about IVI_TEST_SURFACE_ID_BASE.
v4: Rebased to upstream weston-tests-env changes.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com> (v2)
2015-03-25 13:50:31 +03:00
|
|
|
nodist_ivi_layout_ivi_SOURCES = \
|
|
|
|
protocol/ivi-application-protocol.c \
|
|
|
|
protocol/ivi-application-client-protocol.h
|
|
|
|
ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
|
|
|
ivi_layout_ivi_LDADD = libtest-client.la
|
2015-03-23 14:55:06 +03:00
|
|
|
endif
|
|
|
|
|
2014-02-01 02:03:09 +04:00
|
|
|
if BUILD_SETBACKLIGHT
|
|
|
|
noinst_PROGRAMS += setbacklight
|
|
|
|
setbacklight_SOURCES = \
|
|
|
|
tests/setbacklight.c \
|
2016-06-03 17:12:10 +03:00
|
|
|
libweston/libbacklight.c \
|
|
|
|
libweston/libbacklight.h
|
2014-02-01 02:03:09 +04:00
|
|
|
setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
|
|
|
|
setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
|
|
|
|
endif
|
|
|
|
|
2015-07-03 09:36:44 +03:00
|
|
|
all-local: zuctest$(EXEEXT)
|
|
|
|
|
|
|
|
noinst_PROGRAMS += zuctest$(EXEEXT)
|
|
|
|
|
|
|
|
zuctest_LDADD = \
|
|
|
|
libzunitc.la \
|
|
|
|
libzunitcmain.la
|
|
|
|
|
|
|
|
zuctest_CFLAGS = \
|
|
|
|
$(AM_CFLAGS) \
|
|
|
|
-I$(top_srcdir)/tools/zunitc/inc
|
|
|
|
|
|
|
|
zuctest_SOURCES = \
|
|
|
|
tools/zunitc/test/fixtures_test.c \
|
|
|
|
tools/zunitc/test/zunitc_test.c
|
|
|
|
|
2015-05-26 18:21:03 +03:00
|
|
|
EXTRA_DIST += \
|
|
|
|
tests/weston-tests-env \
|
|
|
|
tests/internal-screenshot.ini \
|
|
|
|
tests/reference/internal-screenshot-bad-00.png \
|
|
|
|
tests/reference/internal-screenshot-good-00.png
|
2014-02-01 02:03:09 +04:00
|
|
|
|
|
|
|
BUILT_SOURCES += \
|
2015-02-24 18:32:14 +03:00
|
|
|
protocol/weston-test-protocol.c \
|
|
|
|
protocol/weston-test-server-protocol.h \
|
|
|
|
protocol/weston-test-client-protocol.h \
|
2015-11-17 11:00:29 +03:00
|
|
|
protocol/text-input-unstable-v1-protocol.c \
|
|
|
|
protocol/text-input-unstable-v1-client-protocol.h
|
2014-02-01 02:03:09 +04:00
|
|
|
|
2014-02-01 12:38:15 +04:00
|
|
|
EXTRA_DIST += \
|
2015-11-17 11:00:33 +03:00
|
|
|
protocol/weston-desktop-shell.xml \
|
2015-11-17 11:00:34 +03:00
|
|
|
protocol/weston-screenshooter.xml \
|
2014-01-28 10:26:29 +04:00
|
|
|
protocol/text-cursor-position.xml \
|
2015-02-24 18:32:14 +03:00
|
|
|
protocol/weston-test.xml \
|
2014-11-27 07:22:53 +03:00
|
|
|
protocol/ivi-application.xml \
|
2015-11-17 11:00:28 +03:00
|
|
|
protocol/ivi-hmi-controller.xml
|
2014-01-28 10:26:29 +04:00
|
|
|
|
2015-02-09 12:23:48 +03:00
|
|
|
#
|
|
|
|
# manual test modules in tests subdirectory
|
|
|
|
#
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES += \
|
|
|
|
surface-screenshot.la
|
|
|
|
|
2016-07-22 16:52:42 +03:00
|
|
|
surface_screenshot_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
|
2015-02-09 12:23:48 +03:00
|
|
|
surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
|
2015-06-18 19:43:11 +03:00
|
|
|
surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
|
2015-02-09 12:23:48 +03:00
|
|
|
surface_screenshot_la_SOURCES = tests/surface-screenshot.c
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Documentation
|
|
|
|
#
|
|
|
|
|
2014-01-28 10:33:04 +04:00
|
|
|
man_MANS = weston.1 weston.ini.5
|
|
|
|
|
|
|
|
if ENABLE_DRM_COMPOSITOR
|
|
|
|
man_MANS += weston-drm.7
|
|
|
|
endif
|
|
|
|
|
|
|
|
MAN_SUBSTS = \
|
|
|
|
-e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
|
|
|
|
-e 's|__weston_modules_dir__|$(pkglibdir)|g' \
|
|
|
|
-e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
|
|
|
|
-e 's|__version__|$(PACKAGE_VERSION)|g'
|
|
|
|
|
|
|
|
SUFFIXES = .1 .5 .7 .man
|
|
|
|
|
|
|
|
%.1 %.5 %.7 : man/%.man
|
|
|
|
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
man/weston.man \
|
|
|
|
man/weston-drm.man \
|
|
|
|
man/weston.ini.man
|
|
|
|
|
|
|
|
CLEANFILES += $(man_MANS)
|
|
|
|
|
2015-07-16 05:22:43 +03:00
|
|
|
if ENABLE_DEVDOCS
|
|
|
|
DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
|
|
|
|
|
|
|
|
docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
|
|
|
|
cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
|
|
|
|
|
|
|
|
docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
|
|
|
|
cd doc/doxygen && $(DOXYGEN) tools.doxygen
|
|
|
|
endif
|
|
|
|
|
|
|
|
DOCDIRS = \
|
|
|
|
docs/developer \
|
|
|
|
docs/tools
|
|
|
|
|
|
|
|
$(DOCDIRS):
|
|
|
|
$(MKDIR_P) $@
|
|
|
|
|
|
|
|
.PHONY: doc $(DOXYGEN_INDICES)
|
|
|
|
|
|
|
|
doc: $(DOXYGEN_INDICES)
|
|
|
|
|
2015-11-17 11:00:27 +03:00
|
|
|
.SECONDEXPANSION:
|
|
|
|
|
2015-11-17 11:00:31 +03:00
|
|
|
define protostability
|
2016-02-18 17:56:13 +03:00
|
|
|
$(if $(findstring unstable,$1),unstable,stable)
|
2015-11-17 11:00:31 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define protoname
|
|
|
|
$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
|
|
|
|
endef
|
|
|
|
|
|
|
|
protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
|
2015-11-17 11:00:27 +03:00
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
|
|
|
|
|
2015-11-17 11:00:31 +03:00
|
|
|
protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
|
2015-11-17 11:00:27 +03:00
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
|
|
|
|
|
2015-11-17 11:00:31 +03:00
|
|
|
protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
|
2015-11-17 11:00:27 +03:00
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
|
|
|
|
|
2014-02-02 00:39:12 +04:00
|
|
|
protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
|
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
|
2014-02-01 12:33:04 +04:00
|
|
|
|
2014-02-02 00:39:12 +04:00
|
|
|
protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
|
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
|
2014-02-01 12:33:04 +04:00
|
|
|
|
2014-02-02 00:39:12 +04:00
|
|
|
protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
|
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
|