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
|
|
|
|
2019-02-01 18:05:00 +03:00
|
|
|
AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install --enable-autotools
|
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|@libexecdir[@]|$(libexecdir)|g' \
|
2018-05-24 18:08:47 +03:00
|
|
|
-e 's|@westondatadir[@]|$(westondatadir)|g' \
|
2015-03-24 14:51:05 +03:00
|
|
|
$< > $@
|
|
|
|
|
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 \
|
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 \
|
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-08-15 18:29:09 +03:00
|
|
|
# Libtool race fix
|
|
|
|
# libweston-desktop depends on libweston, and desktop-shell depends on both.
|
|
|
|
# This leads to a libtool race at installation, because libtool re-links
|
|
|
|
# everything.
|
|
|
|
# If you add more fixes, you may need a workaround to keep automake generated
|
|
|
|
# targets. See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
|
|
|
|
install-libweston_moduleLTLIBRARIES install-moduleLTLIBRARIES: install-libLTLIBRARIES
|
|
|
|
|
2016-07-22 16:51:51 +03:00
|
|
|
lib_LTLIBRARIES = libweston-@LIBWESTON_MAJOR@.la
|
2018-12-20 12:53:21 +03:00
|
|
|
libweston_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS)
|
2017-04-04 19:54:20 +03:00
|
|
|
libweston_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) \
|
2018-02-07 13:51:14 +03:00
|
|
|
$(COMPOSITOR_CFLAGS) $(EGL_CFLAGS) $(LIBDRM_CFLAGS)
|
|
|
|
libweston_@LIBWESTON_MAJOR@_la_LIBADD = $(COMPOSITOR_LIBS) \
|
2017-08-05 14:58:59 +03:00
|
|
|
$(DL_LIBS) -lm $(CLOCK_GETTIME_LIBS) \
|
2016-06-02 21:48:12 +03:00
|
|
|
$(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 \
|
2017-11-29 04:42:47 +03:00
|
|
|
libweston/touch-calibration.c \
|
2016-06-03 17:12:10 +03:00
|
|
|
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 \
|
2018-10-19 12:14:11 +03:00
|
|
|
libweston/linux-explicit-synchronization.c \
|
|
|
|
libweston/linux-explicit-synchronization.h \
|
libweston: Support zwp_surface_synchronization_v1.set_acquire_fence
Implement the set_acquire_fence request of the
zwp_surface_synchronization_v1 interface.
The implementation uses the acquire fence in two ways:
1. If the associated buffer is used as GL render source, an
EGLSyncKHR is created from the fence and used to synchronize
access.
2. If the associated buffer is used as a plane framebuffer,
the acquire fence is treated as an in-fence for the atomic
commit operation. If in-fences are not supported and the buffer
has an acquire fence, we don't consider it for plane placement.
If the used compositor/renderer doesn't support explicit
synchronization, we don't advertise the protocol at all. Currently only
the DRM and X11 backends when using the GL renderer advertise the
protocol for production use.
Issues for discussion
---------------------
a. Currently, a server-side wait of EGLSyncKHR is performed before
using the EGLImage/texture during rendering. Unfortunately, it's not clear
from the specs whether this is generally safe to do, or we need to
sync before glEGLImageTargetTexture2DOES. The exception is
TEXTURE_EXTERNAL_OES where the spec mentions it's enough to sync
and then glBindTexture for any changes to take effect.
Changes in v5:
- Meson support.
- Make explicit sync server error reporting more generic, supporting
all explicit sync related interfaces not just
wp_linux_surface_synchronization.
- Fix typo in warning for missing EGL_KHR_wait_sync extension.
- Support minor version 2 of the explicit sync protocol (i.e., support
fences for opaque EGL buffers).
Changes in v4:
- Introduce and use fd_clear and and fd_move helpers.
- Don't check for a valid buffer when updating surface acquire fence fd
from state.
- Assert that pending state acquire fence fd is always clear
after a commit.
- Clarify that WESTON_CAP_EXPLICIT_SYNC applies to just the
renderer.
- Check for EGL_KHR_wait_sync before using eglWaitSyncKHR.
- Dup the acquire fence before passing to EGL.
Changes in v3:
- Keep acquire_fence_fd in surface instead of buffer.
- Clarify that WESTON_CAP_EXPLICIT_SYNC applies to both backend and
renderer.
- Move comment about non-ownership of in_fence_fd to struct
drm_plane_state definition.
- Assert that we don't try to use planes with in-fences when using the
legacy KMS API.
- Remove unnecessary info from wayland error messages.
- Handle acquire fence for subsurface commits.
- Guard against self-update in fd_update.
- Disconnect the client if acquire fence EGLSyncKHR creation or wait
fails.
- Use updated protocol interface names.
- User correct format specifier for resource ids.
- Advertise protocol for X11 backend with GL renderer.
Changes in v2:
- Remove sync file wait fallbacks.
- Raise UNSUPPORTED_BUFFER error at commit if we have an acquire
fence, but the committed buffer is not a valid linux_dmabuf.
- Don't put buffers with in-fences on planes that don't support
in-fences.
- Don't advertise explicit sync protocol if backend does not
support explicit sync.
Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
2018-10-19 12:14:11 +03:00
|
|
|
libweston/linux-sync-file.c \
|
|
|
|
libweston/linux-sync-file.h \
|
2017-04-04 19:54:20 +03:00
|
|
|
libweston/pixel-formats.c \
|
|
|
|
libweston/pixel-formats.h \
|
2017-10-12 14:13:42 +03:00
|
|
|
libweston/weston-debug.c \
|
|
|
|
libweston/weston-debug.h \
|
libweston: Support zwp_surface_synchronization_v1.set_acquire_fence
Implement the set_acquire_fence request of the
zwp_surface_synchronization_v1 interface.
The implementation uses the acquire fence in two ways:
1. If the associated buffer is used as GL render source, an
EGLSyncKHR is created from the fence and used to synchronize
access.
2. If the associated buffer is used as a plane framebuffer,
the acquire fence is treated as an in-fence for the atomic
commit operation. If in-fences are not supported and the buffer
has an acquire fence, we don't consider it for plane placement.
If the used compositor/renderer doesn't support explicit
synchronization, we don't advertise the protocol at all. Currently only
the DRM and X11 backends when using the GL renderer advertise the
protocol for production use.
Issues for discussion
---------------------
a. Currently, a server-side wait of EGLSyncKHR is performed before
using the EGLImage/texture during rendering. Unfortunately, it's not clear
from the specs whether this is generally safe to do, or we need to
sync before glEGLImageTargetTexture2DOES. The exception is
TEXTURE_EXTERNAL_OES where the spec mentions it's enough to sync
and then glBindTexture for any changes to take effect.
Changes in v5:
- Meson support.
- Make explicit sync server error reporting more generic, supporting
all explicit sync related interfaces not just
wp_linux_surface_synchronization.
- Fix typo in warning for missing EGL_KHR_wait_sync extension.
- Support minor version 2 of the explicit sync protocol (i.e., support
fences for opaque EGL buffers).
Changes in v4:
- Introduce and use fd_clear and and fd_move helpers.
- Don't check for a valid buffer when updating surface acquire fence fd
from state.
- Assert that pending state acquire fence fd is always clear
after a commit.
- Clarify that WESTON_CAP_EXPLICIT_SYNC applies to just the
renderer.
- Check for EGL_KHR_wait_sync before using eglWaitSyncKHR.
- Dup the acquire fence before passing to EGL.
Changes in v3:
- Keep acquire_fence_fd in surface instead of buffer.
- Clarify that WESTON_CAP_EXPLICIT_SYNC applies to both backend and
renderer.
- Move comment about non-ownership of in_fence_fd to struct
drm_plane_state definition.
- Assert that we don't try to use planes with in-fences when using the
legacy KMS API.
- Remove unnecessary info from wayland error messages.
- Handle acquire fence for subsurface commits.
- Guard against self-update in fd_update.
- Disconnect the client if acquire fence EGLSyncKHR creation or wait
fails.
- Use updated protocol interface names.
- User correct format specifier for resource ids.
- Advertise protocol for X11 backend with GL renderer.
Changes in v2:
- Remove sync file wait fallbacks.
- Raise UNSUPPORTED_BUFFER error at commit if we have an acquire
fence, but the committed buffer is not a valid linux_dmabuf.
- Don't put buffers with in-fences on planes that don't support
in-fences.
- Don't advertise explicit sync protocol if backend does not
support explicit sync.
Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
2018-10-19 12:14:11 +03:00
|
|
|
shared/fd-util.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-11-24 22:14:20 +03:00
|
|
|
shared/weston-egl-ext.h
|
2015-09-25 18:00:27 +03:00
|
|
|
|
2017-10-12 14:13:41 +03:00
|
|
|
libweston_@LIBWESTON_MAJOR@_datadir = $(datadir)/weston/protocols
|
|
|
|
dist_libweston_@LIBWESTON_MAJOR@_data_DATA = \
|
|
|
|
protocol/weston-debug.xml
|
|
|
|
|
2016-08-12 11:41:34 +03:00
|
|
|
lib_LTLIBRARIES += libweston-desktop-@LIBWESTON_MAJOR@.la
|
2018-12-20 12:53:21 +03:00
|
|
|
libweston_desktop_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS)
|
2016-08-12 11:41:34 +03:00
|
|
|
libweston_desktop_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
|
2016-08-18 11:58:58 +03:00
|
|
|
libweston_desktop_@LIBWESTON_MAJOR@_la_LIBADD = \
|
|
|
|
libweston-@LIBWESTON_MAJOR@.la \
|
|
|
|
$(COMPOSITOR_LIBS)
|
2016-08-12 11:41:34 +03:00
|
|
|
libweston_desktop_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
|
|
|
|
|
|
|
|
libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES = \
|
|
|
|
libweston-desktop/client.c \
|
|
|
|
libweston-desktop/internal.h \
|
|
|
|
libweston-desktop/libweston-desktop.c \
|
|
|
|
libweston-desktop/libweston-desktop.h \
|
|
|
|
libweston-desktop/seat.c \
|
|
|
|
libweston-desktop/surface.c \
|
|
|
|
libweston-desktop/wl-shell.c \
|
2016-08-12 11:41:37 +03:00
|
|
|
libweston-desktop/xdg-shell-v6.c \
|
2018-11-29 00:46:37 +03:00
|
|
|
libweston-desktop/xdg-shell.c \
|
2016-08-12 11:41:34 +03:00
|
|
|
libweston-desktop/xwayland.c
|
|
|
|
|
|
|
|
nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES = \
|
2016-08-12 11:41:37 +03:00
|
|
|
protocol/xdg-shell-unstable-v6-protocol.c \
|
2018-11-29 00:46:37 +03:00
|
|
|
protocol/xdg-shell-unstable-v6-server-protocol.h \
|
|
|
|
protocol/xdg-shell-protocol.c \
|
|
|
|
protocol/xdg-shell-server-protocol.h
|
2016-08-12 11:41:34 +03:00
|
|
|
|
2016-08-15 12:31:02 +03:00
|
|
|
BUILT_SOURCES += $(nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES)
|
|
|
|
|
2016-08-12 11:41:37 +03:00
|
|
|
libweston-desktop-@LIBWESTON_MAJOR@.la libweston-desktop/libweston_desktop_@LIBWESTON_MAJOR@_la-xdg-shell-v6.lo: protocol/xdg-shell-unstable-v6-server-protocol.h
|
2018-11-29 00:46:37 +03:00
|
|
|
libweston-desktop-@LIBWESTON_MAJOR@.la libweston-desktop/libweston_desktop_@LIBWESTON_MAJOR@_la-xdg-wm-shell.lo: protocol/xdg-shell-server-protocol.h
|
2016-08-12 11:41:34 +03:00
|
|
|
|
2015-09-25 18:00:27 +03:00
|
|
|
if SYSTEMD_NOTIFY_SUPPORT
|
|
|
|
module_LTLIBRARIES += systemd-notify.la
|
|
|
|
systemd_notify_la_LDFLAGS = -module -avoid-version
|
2016-08-18 11:58:58 +03:00
|
|
|
systemd_notify_la_LIBADD = libweston-@LIBWESTON_MAJOR@.la $(SYSTEMD_DAEMON_LIBS)
|
2015-09-25 18:00:27 +03:00
|
|
|
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 \
|
2017-10-12 14:13:41 +03:00
|
|
|
protocol/weston-debug-protocol.c \
|
|
|
|
protocol/weston-debug-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 \
|
2018-02-16 19:44:16 +03:00
|
|
|
protocol/pointer-constraints-unstable-v1-server-protocol.h \
|
|
|
|
protocol/input-timestamps-unstable-v1-protocol.c \
|
2017-11-22 18:25:12 +03:00
|
|
|
protocol/input-timestamps-unstable-v1-server-protocol.h \
|
|
|
|
protocol/weston-touch-calibration-protocol.c \
|
2018-10-19 12:14:11 +03:00
|
|
|
protocol/weston-touch-calibration-server-protocol.h \
|
|
|
|
protocol/linux-explicit-synchronization-unstable-v1-protocol.c \
|
|
|
|
protocol/linux-explicit-synchronization-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
|
2018-12-20 12:53:21 +03:00
|
|
|
weston_CPPFLAGS = $(AM_CPPFLAGS) -DMODULEDIR='"$(moduledir)"' \
|
2016-06-29 12:54:27 +03:00
|
|
|
-DXSERVER_PATH='"@XSERVER_PATH@"'
|
2018-09-04 11:18:06 +03:00
|
|
|
weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBINPUT_BACKEND_CFLAGS) \
|
weston: add more libinput config options
This is so that, for instance, people using weston as their main Wayland
compositor can invert the sense of two finger scrolling or change
pointer acceleration using weston.ini, rather than having to edit C
code.
All of the options that libinput itself exposes through its API are now
exposed in weston.ini. The new options are called `tap-and-drag`,
`tap-and-drag-lock`, `disable-while-typing`, `middle-emulation`,
`left-handed`, `rotation`, `accel-profile`, `accel-speed`,
`scroll-method`, `natural-scroll`, and `scroll-button`. I have
successfully tested everything except for `rotation`, out of a lack of
hardware support.
weston now depends directly on libevdev for turning button name strings into
kernel input codes. This was needed for the `scroll-button` config
option. (weston already depends indirectly on libevdev through
libinput, so I figured people would be OK with this.) As a practical
matter for debian-style packagers, weston now has a build dependency on
libevdev-dev.
Right now, the code applies the same options to all attached devices
that a given option is relevant for. There are plans for multiple
[libinput] sections, each with different device filters, for users who
need more control here.
Signed-off-by: Eric Toombs <3672-ewtoombs@users.noreply.gitlab.freedesktop.org>
2019-02-01 05:53:25 +03:00
|
|
|
$(PTHREAD_CFLAGS) $(LIBEVDEV_CFLAGS)
|
2016-07-22 16:52:42 +03:00
|
|
|
weston_LDADD = libshared.la libweston-@LIBWESTON_MAJOR@.la \
|
2018-02-07 13:51:14 +03:00
|
|
|
$(COMPOSITOR_LIBS) \
|
2017-08-05 14:58:59 +03:00
|
|
|
$(DL_LIBS) $(LIBINPUT_BACKEND_LIBS) \
|
2016-12-19 20:20:09 +03:00
|
|
|
$(CLOCK_GETRES_LIBS) \
|
2018-09-04 11:18:06 +03:00
|
|
|
$(PTHREAD_LIBS) \
|
weston: add more libinput config options
This is so that, for instance, people using weston as their main Wayland
compositor can invert the sense of two finger scrolling or change
pointer acceleration using weston.ini, rather than having to edit C
code.
All of the options that libinput itself exposes through its API are now
exposed in weston.ini. The new options are called `tap-and-drag`,
`tap-and-drag-lock`, `disable-while-typing`, `middle-emulation`,
`left-handed`, `rotation`, `accel-profile`, `accel-speed`,
`scroll-method`, `natural-scroll`, and `scroll-button`. I have
successfully tested everything except for `rotation`, out of a lack of
hardware support.
weston now depends directly on libevdev for turning button name strings into
kernel input codes. This was needed for the `scroll-button` config
option. (weston already depends indirectly on libevdev through
libinput, so I figured people would be OK with this.) As a practical
matter for debian-style packagers, weston now has a build dependency on
libevdev-dev.
Right now, the code applies the same options to all attached devices
that a given option is relevant for. There are plans for multiple
[libinput] sections, each with different device filters, for users who
need more control here.
Signed-off-by: Eric Toombs <3672-ewtoombs@users.noreply.gitlab.freedesktop.org>
2019-02-01 05:53:25 +03:00
|
|
|
$(LIBEVDEV_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)
|
2017-04-06 13:57:57 +03:00
|
|
|
libsession_helper_la_LIBADD = libweston-@LIBWESTON_MAJOR@.la
|
|
|
|
|
|
|
|
if ENABLE_DRM_COMPOSITOR
|
|
|
|
libsession_helper_la_LIBADD += $(LIBDRM_LIBS)
|
|
|
|
endif
|
2014-01-28 11:05:52 +04:00
|
|
|
|
|
|
|
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)
|
2017-04-06 13:57:57 +03:00
|
|
|
weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS)
|
|
|
|
|
|
|
|
if ENABLE_DRM_COMPOSITOR
|
|
|
|
weston_launch_LDADD += $(LIBDRM_LIBS)
|
|
|
|
endif
|
2014-01-28 11:05:52 +04:00
|
|
|
|
|
|
|
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-08-12 11:41:34 +03:00
|
|
|
pkgconfig_DATA = \
|
|
|
|
libweston/libweston-${LIBWESTON_MAJOR}.pc \
|
|
|
|
libweston-desktop/libweston-desktop-${LIBWESTON_MAJOR}.pc \
|
|
|
|
compositor/weston.pc
|
2014-01-28 11:05:52 +04:00
|
|
|
|
2017-10-12 14:13:41 +03:00
|
|
|
noarch_pkgconfigdir = $(datadir)/pkgconfig
|
|
|
|
noarch_pkgconfig_DATA = \
|
|
|
|
libweston/libweston-${LIBWESTON_MAJOR}-protocols.pc
|
|
|
|
|
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-09-30 15:11:03 +03:00
|
|
|
libweston/windowed-output-api.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-08-12 11:41:34 +03:00
|
|
|
libwestoninclude_HEADERS += \
|
|
|
|
libweston-desktop/libweston-desktop.h
|
|
|
|
|
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
|
2016-08-18 11:58:58 +03:00
|
|
|
gl_renderer_la_LIBADD = \
|
|
|
|
libweston-@LIBWESTON_MAJOR@.la \
|
|
|
|
$(EGL_LIBS) \
|
|
|
|
$(COMPOSITOR_LIBS)
|
2014-01-28 11:05:52 +04:00
|
|
|
gl_renderer_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(EGL_CFLAGS) \
|
2017-04-06 14:06:20 +03:00
|
|
|
$(LIBDRM_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 \
|
2018-10-19 12:14:11 +03:00
|
|
|
libweston/linux-sync-file.c \
|
|
|
|
libweston/linux-sync-file.h \
|
|
|
|
libweston/linux-sync-file-uapi.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
|
2016-08-18 11:58:58 +03:00
|
|
|
x11_backend_la_LIBADD = \
|
|
|
|
libshared-cairo.la \
|
|
|
|
libweston-@LIBWESTON_MAJOR@.la \
|
|
|
|
$(X11_COMPOSITOR_LIBS) \
|
|
|
|
$(COMPOSITOR_LIBS)
|
2014-01-28 11:05:52 +04:00
|
|
|
x11_backend_la_CFLAGS = \
|
2016-08-18 11:58:58 +03:00
|
|
|
$(AM_CFLAGS) \
|
2014-01-28 11:05:52 +04:00
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(EGL_CFLAGS) \
|
|
|
|
$(PIXMAN_CFLAGS) \
|
|
|
|
$(CAIRO_CFLAGS) \
|
2016-08-18 11:58:58 +03:00
|
|
|
$(X11_COMPOSITOR_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
|
|
|
|
|
2018-03-15 16:45:28 +03:00
|
|
|
INPUT_BACKEND_CFLAGS = $(LIBINPUT_BACKEND_CFLAGS)
|
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 = \
|
2016-08-18 11:58:58 +03:00
|
|
|
libsession-helper.la \
|
|
|
|
libweston-@LIBWESTON_MAJOR@.la \
|
2014-01-28 11:05:52 +04:00
|
|
|
$(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 \
|
2016-08-18 11:58:58 +03:00
|
|
|
$(CLOCK_GETTIME_LIBS)
|
2014-01-28 11:05:52 +04:00
|
|
|
drm_backend_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(EGL_CFLAGS) \
|
|
|
|
$(DRM_COMPOSITOR_CFLAGS) \
|
2018-03-15 16:45:28 +03:00
|
|
|
$(INPUT_BACKEND_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)
|
2016-08-18 11:58:58 +03:00
|
|
|
drm_backend_la_LDFLAGS += -pthread
|
2014-01-28 11:05:52 +04:00
|
|
|
drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
|
|
|
|
endif
|
2018-01-24 11:08:02 +03:00
|
|
|
|
|
|
|
# remoting
|
|
|
|
if ENABLE_REMOTING
|
|
|
|
libweston_module_LTLIBRARIES += remoting-plugin.la
|
|
|
|
remoting_plugin_la_LDFLAGS = -module -avoid-version
|
|
|
|
remoting_plugin_la_LIBADD = \
|
|
|
|
$(COMPOSITOR_LIBS) \
|
|
|
|
$(REMOTING_GST_LIBS)
|
|
|
|
remoting_plugin_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(REMOTING_GST_CFLAGS) \
|
|
|
|
$(AM_CFLAGS)
|
|
|
|
remoting_plugin_la_SOURCES = \
|
|
|
|
remoting/remoting-plugin.c \
|
|
|
|
remoting/remoting-plugin.h
|
|
|
|
endif
|
|
|
|
|
2014-01-28 11:05:52 +04:00
|
|
|
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 = \
|
2016-08-18 11:58:58 +03:00
|
|
|
libshared-cairo.la \
|
|
|
|
libweston-@LIBWESTON_MAJOR@.la \
|
2014-01-28 11:05:52 +04:00
|
|
|
$(COMPOSITOR_LIBS) \
|
2016-12-10 00:58:27 +03:00
|
|
|
$(WAYLAND_COMPOSITOR_EGL_LIBS) \
|
2016-08-18 11:58:58 +03:00
|
|
|
$(WAYLAND_COMPOSITOR_LIBS)
|
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)
|
2016-11-21 20:42:42 +03:00
|
|
|
wayland_backend_la_SOURCES = \
|
|
|
|
libweston/compositor-wayland.c \
|
|
|
|
libweston/compositor-wayland.h \
|
2015-06-16 23:15:13 +03:00
|
|
|
shared/helpers.h
|
2016-11-23 12:46:57 +03:00
|
|
|
nodist_wayland_backend_la_SOURCES = \
|
|
|
|
protocol/fullscreen-shell-unstable-v1-protocol.c \
|
|
|
|
protocol/fullscreen-shell-unstable-v1-client-protocol.h \
|
|
|
|
protocol/xdg-shell-unstable-v6-protocol.c \
|
|
|
|
protocol/xdg-shell-unstable-v6-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
|
2016-08-18 11:58:58 +03:00
|
|
|
headless_backend_la_LIBADD = \
|
|
|
|
libshared.la \
|
|
|
|
libweston-@LIBWESTON_MAJOR@.la \
|
|
|
|
$(COMPOSITOR_LIBS)
|
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 = \
|
2016-08-18 11:58:58 +03:00
|
|
|
libshared.la \
|
|
|
|
libsession-helper.la \
|
|
|
|
libweston-@LIBWESTON_MAJOR@.la \
|
2014-01-28 11:05:52 +04:00
|
|
|
$(COMPOSITOR_LIBS) \
|
|
|
|
$(FBDEV_COMPOSITOR_LIBS) \
|
2016-08-18 11:58:58 +03:00
|
|
|
$(INPUT_BACKEND_LIBS)
|
2014-01-28 11:05:52 +04:00
|
|
|
fbdev_backend_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(EGL_CFLAGS) \
|
|
|
|
$(FBDEV_COMPOSITOR_CFLAGS) \
|
|
|
|
$(PIXMAN_CFLAGS) \
|
2018-03-15 16:45:28 +03:00
|
|
|
$(INPUT_BACKEND_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
|
2016-08-18 11:58:58 +03:00
|
|
|
rdp_backend_la_LIBADD = \
|
|
|
|
libshared.la \
|
|
|
|
libweston-@LIBWESTON_MAJOR@.la \
|
|
|
|
$(COMPOSITOR_LIBS) \
|
|
|
|
$(RDP_COMPOSITOR_LIBS)
|
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
|
2016-08-18 11:58:58 +03:00
|
|
|
cms_static_la_LIBADD = \
|
|
|
|
libshared.la \
|
|
|
|
libweston-@LIBWESTON_MAJOR@.la \
|
|
|
|
$(LCMS_LIBS) \
|
|
|
|
$(COMPOSITOR_LIBS)
|
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
|
2016-08-18 11:58:58 +03:00
|
|
|
cms_colord_la_LIBADD = \
|
|
|
|
libshared.la \
|
|
|
|
libweston-@LIBWESTON_MAJOR@.la \
|
|
|
|
$(COLORD_LIBS) \
|
|
|
|
$(LCMS_LIBS) \
|
|
|
|
$(COMPOSITOR_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
|
|
|
|
|
2018-12-15 16:57:19 +03:00
|
|
|
bin_PROGRAMS += weston-terminal weston-info weston-debug weston-screenshooter
|
2014-02-01 04:15:11 +04:00
|
|
|
|
|
|
|
libexec_PROGRAMS += \
|
|
|
|
weston-desktop-shell \
|
|
|
|
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 \
|
2017-11-30 00:38:44 +03:00
|
|
|
weston-touch-calibrator \
|
2014-02-01 04:15:11 +04:00
|
|
|
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 = \
|
2016-08-11 18:29:38 +03:00
|
|
|
protocol/xdg-shell-unstable-v6-protocol.c \
|
|
|
|
protocol/xdg-shell-unstable-v6-client-protocol.h \
|
2015-11-17 11:00:27 +03:00
|
|
|
protocol/fullscreen-shell-unstable-v1-protocol.c \
|
2017-10-11 18:09:57 +03:00
|
|
|
protocol/fullscreen-shell-unstable-v1-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 \
|
2016-08-11 18:39:31 +03:00
|
|
|
protocol/xdg-shell-unstable-v6-protocol.c \
|
|
|
|
protocol/xdg-shell-unstable-v6-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 = \
|
2016-08-11 18:13:20 +03:00
|
|
|
protocol/xdg-shell-unstable-v6-protocol.c \
|
2017-10-17 12:13:02 +03:00
|
|
|
protocol/xdg-shell-unstable-v6-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-11-17 14:55:59 +03:00
|
|
|
if BUILD_SIMPLE_DMABUF_DRM_CLIENT
|
|
|
|
demo_clients += weston-simple-dmabuf-drm
|
2016-11-23 11:33:21 +03:00
|
|
|
weston_simple_dmabuf_drm_SOURCES = \
|
|
|
|
clients/simple-dmabuf-drm.c \
|
|
|
|
clients/simple-dmabuf-drm-data.h
|
2016-11-17 14:55:59 +03:00
|
|
|
nodist_weston_simple_dmabuf_drm_SOURCES = \
|
2016-08-11 18:44:41 +03:00
|
|
|
protocol/xdg-shell-unstable-v6-protocol.c \
|
|
|
|
protocol/xdg-shell-unstable-v6-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-11-17 14:55:59 +03:00
|
|
|
weston_simple_dmabuf_drm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_DRM_CLIENT_CFLAGS)
|
2018-03-15 19:33:18 +03:00
|
|
|
weston_simple_dmabuf_drm_LDADD = $(SIMPLE_DMABUF_DRM_CLIENT_LIBS) \
|
|
|
|
$(LIBDRM_PLATFORM_FREEDRENO_LIBS) \
|
2018-03-20 11:42:00 +03:00
|
|
|
$(LIBDRM_PLATFORM_ETNAVIV_LIBS) \
|
2018-03-15 19:33:18 +03:00
|
|
|
$(LIBDRM_PLATFORM_INTEL_LIBS) \
|
|
|
|
libshared.la
|
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 = \
|
2016-08-12 05:01:29 +03:00
|
|
|
protocol/xdg-shell-unstable-v6-protocol.c \
|
|
|
|
protocol/xdg-shell-unstable-v6-client-protocol.h \
|
2016-01-11 22:04:38 +03:00
|
|
|
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
|
|
|
|
endif
|
|
|
|
|
2018-10-25 17:32:36 +03:00
|
|
|
if BUILD_SIMPLE_DMABUF_EGL_CLIENT
|
|
|
|
demo_clients += weston-simple-dmabuf-egl
|
|
|
|
weston_simple_dmabuf_egl_SOURCES = clients/simple-dmabuf-egl.c
|
|
|
|
nodist_weston_simple_dmabuf_egl_SOURCES = \
|
|
|
|
protocol/xdg-shell-unstable-v6-protocol.c \
|
|
|
|
protocol/xdg-shell-unstable-v6-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 \
|
2018-10-30 15:26:47 +03:00
|
|
|
protocol/linux-dmabuf-unstable-v1-client-protocol.h \
|
|
|
|
protocol/linux-explicit-synchronization-unstable-v1-protocol.c \
|
|
|
|
protocol/linux-explicit-synchronization-v1-client-protocol.h
|
2018-10-25 17:32:36 +03:00
|
|
|
weston_simple_dmabuf_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_EGL_CLIENT_CFLAGS)
|
2019-01-09 14:38:16 +03:00
|
|
|
weston_simple_dmabuf_egl_LDADD = $(SIMPLE_DMABUF_EGL_CLIENT_LIBS) libshared.la -lm
|
2018-10-25 17:32:36 +03:00
|
|
|
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 \
|
2016-08-09 13:15:43 +03:00
|
|
|
protocol/xdg-shell-unstable-v6-protocol.c \
|
|
|
|
protocol/xdg-shell-unstable-v6-client-protocol.h \
|
2014-11-25 05:25:27 +03:00
|
|
|
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
|
|
|
|
2017-11-30 00:38:44 +03:00
|
|
|
weston_touch_calibrator_SOURCES = \
|
|
|
|
clients/touch-calibrator.c \
|
|
|
|
shared/helpers.h \
|
|
|
|
shared/matrix.c \
|
|
|
|
shared/matrix.h
|
|
|
|
nodist_weston_touch_calibrator_SOURCES = \
|
|
|
|
protocol/weston-touch-calibration-protocol.c \
|
|
|
|
protocol/weston-touch-calibration-client-protocol.h
|
|
|
|
weston_touch_calibrator_LDADD = libtoytoolkit.la
|
|
|
|
weston_touch_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
|
|
|
|
2016-10-12 02:24:05 +03:00
|
|
|
weston_simple_im_SOURCES = clients/simple-im.c
|
2014-02-02 09:52:17 +04:00
|
|
|
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
|
2018-04-30 12:35:49 +03:00
|
|
|
nodist_weston_info_SOURCES = \
|
|
|
|
protocol/presentation-time-protocol.c \
|
|
|
|
protocol/presentation-time-client-protocol.h \
|
|
|
|
protocol/linux-dmabuf-unstable-v1-protocol.c \
|
|
|
|
protocol/linux-dmabuf-unstable-v1-client-protocol.h \
|
|
|
|
protocol/tablet-unstable-v2-protocol.c \
|
2018-09-18 00:51:13 +03:00
|
|
|
protocol/tablet-unstable-v2-client-protocol.h \
|
|
|
|
protocol/xdg-output-unstable-v1-protocol.c \
|
|
|
|
protocol/xdg-output-unstable-v1-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
|
|
|
|
2017-10-12 14:13:44 +03:00
|
|
|
weston_debug_SOURCES = \
|
|
|
|
clients/weston-debug.c \
|
|
|
|
shared/helpers.h
|
|
|
|
nodist_weston_debug_SOURCES = \
|
|
|
|
protocol/weston-debug-protocol.c \
|
|
|
|
protocol/weston-debug-client-protocol.h
|
|
|
|
weston_debug_LDADD = $(WESTON_INFO_LIBS) libshared.la
|
|
|
|
weston_debug_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
|
|
|
|
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 \
|
2017-11-30 00:38:44 +03:00
|
|
|
protocol/weston-touch-calibration-protocol.c \
|
|
|
|
protocol/weston-touch-calibration-client-protocol.h \
|
2017-10-12 14:13:44 +03:00
|
|
|
protocol/weston-debug-protocol.c \
|
|
|
|
protocol/weston-debug-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 \
|
2016-08-09 13:15:43 +03:00
|
|
|
protocol/xdg-shell-unstable-v6-protocol.c \
|
|
|
|
protocol/xdg-shell-unstable-v6-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 \
|
2018-01-07 14:09:27 +03:00
|
|
|
protocol/ivi-application-client-protocol.h \
|
|
|
|
protocol/linux-dmabuf-unstable-v1-protocol.c \
|
2018-02-16 19:44:15 +03:00
|
|
|
protocol/linux-dmabuf-unstable-v1-client-protocol.h \
|
2018-04-30 12:35:49 +03:00
|
|
|
protocol/tablet-unstable-v2-protocol.c \
|
|
|
|
protocol/tablet-unstable-v2-client-protocol.h \
|
2018-02-16 19:44:15 +03:00
|
|
|
protocol/input-timestamps-unstable-v1-protocol.c \
|
2018-09-18 00:51:13 +03:00
|
|
|
protocol/input-timestamps-unstable-v1-client-protocol.h \
|
|
|
|
protocol/xdg-output-unstable-v1-protocol.c \
|
2018-10-19 12:14:11 +03:00
|
|
|
protocol/xdg-output-unstable-v1-client-protocol.h \
|
|
|
|
protocol/linux-explicit-synchronization-unstable-v1-protocol.c \
|
|
|
|
protocol/linux-explicit-synchronization-unstable-v1-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 \
|
|
|
|
-DMODULEDIR='"$(moduledir)"' \
|
2018-12-20 12:53:21 +03:00
|
|
|
-DLIBEXECDIR='"$(libexecdir)"'
|
2014-01-28 09:56:12 +04:00
|
|
|
|
|
|
|
desktop_shell_la_LDFLAGS = -module -avoid-version
|
2016-08-12 11:41:36 +03:00
|
|
|
desktop_shell_la_LIBADD = libshared.la libweston-desktop-@LIBWESTON_MAJOR@.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 \
|
2016-08-15 12:31:02 +03:00
|
|
|
protocol/weston-desktop-shell-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 \
|
2018-12-20 12:53:21 +03:00
|
|
|
-I$(top_srcdir)/libweston
|
2014-04-03 04:53:47 +04:00
|
|
|
|
|
|
|
fullscreen_shell_la_LDFLAGS = -module -avoid-version
|
2016-08-18 11:58:58 +03:00
|
|
|
fullscreen_shell_la_LIBADD = \
|
|
|
|
libweston-@LIBWESTON_MAJOR@.la \
|
|
|
|
$(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-08-18 11:58:58 +03:00
|
|
|
ivi_shell_la_LIBADD = \
|
|
|
|
libshared.la \
|
|
|
|
libweston-@LIBWESTON_MAJOR@.la \
|
2019-02-01 17:17:35 +03:00
|
|
|
libweston-desktop-@LIBWESTON_MAJOR@.la \
|
2016-08-18 11:58:58 +03:00
|
|
|
$(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
|
|
|
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-08-18 11:58:58 +03:00
|
|
|
hmi_controller_la_LIBADD = \
|
|
|
|
libshared.la \
|
|
|
|
libweston-@LIBWESTON_MAJOR@.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 \
|
2016-08-18 11:58:58 +03:00
|
|
|
libweston-@LIBWESTON_MAJOR@.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 \
|
|
|
|
-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
|
2016-08-18 11:58:58 +03:00
|
|
|
xwayland_la_LIBADD = \
|
|
|
|
libshared-cairo.la \
|
|
|
|
libweston-@LIBWESTON_MAJOR@.la \
|
2016-07-22 16:52:42 +03:00
|
|
|
$(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 \
|
2016-08-12 11:41:35 +03:00
|
|
|
xwayland/xwayland-internal-interface.h \
|
2014-01-28 09:59:55 +04:00
|
|
|
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
|
|
|
|
2018-02-07 00:18:39 +03:00
|
|
|
libshared_la_CPPFLAGS = \
|
|
|
|
-DDATADIR='"$(datadir)"' \
|
|
|
|
$(AM_CPPFLAGS)
|
|
|
|
|
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
|
|
|
|
2018-02-07 00:18:39 +03:00
|
|
|
libshared_cairo_la_CPPFLAGS = $(libshared_la_CPPFLAGS)
|
|
|
|
|
2014-01-28 10:02:41 +04:00
|
|
|
libshared_cairo_la_CFLAGS = \
|
2015-06-18 19:43:11 +03:00
|
|
|
$(AM_CFLAGS) \
|
2014-01-28 10:02:41 +04:00
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(PIXMAN_CFLAGS) \
|
|
|
|
$(CAIRO_CFLAGS) \
|
2017-11-14 00:20:56 +03:00
|
|
|
$(PANGO_CFLAGS) \
|
2014-01-28 10:02:41 +04:00
|
|
|
$(PNG_CFLAGS) \
|
|
|
|
$(WEBP_CFLAGS)
|
|
|
|
|
|
|
|
libshared_cairo_la_LIBADD = \
|
|
|
|
$(PIXMAN_LIBS) \
|
|
|
|
$(CAIRO_LIBS) \
|
2017-11-14 00:20:56 +03:00
|
|
|
$(PANGO_LIBS) \
|
2014-01-28 10:02:41 +04:00
|
|
|
$(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 \
|
2017-03-01 14:34:00 +03:00
|
|
|
timespec.test \
|
2016-08-04 03:40:51 +03:00
|
|
|
string.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 \
|
2017-12-04 16:34:03 +03:00
|
|
|
pointer.weston \
|
2014-02-01 02:03:09 +04:00
|
|
|
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 \
|
2017-01-27 19:30:28 +03:00
|
|
|
subsurface-shot.weston \
|
2017-12-13 14:27:58 +03:00
|
|
|
devices.weston \
|
2018-10-19 12:14:11 +03:00
|
|
|
touch.weston \
|
|
|
|
linux-explicit-synchronization.weston
|
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 \
|
2017-01-27 19:30:23 +03:00
|
|
|
weston-test-desktop-shell.la \
|
2014-02-01 02:03:09 +04:00
|
|
|
$(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
|
|
|
|
|
2016-08-18 11:58:58 +03:00
|
|
|
test_module_ldflags = -module -avoid-version -rpath $(libdir)
|
|
|
|
test_module_libadd = \
|
|
|
|
libweston-@LIBWESTON_MAJOR@.la \
|
|
|
|
$(COMPOSITOR_LIBS)
|
2014-02-01 02:03:09 +04:00
|
|
|
|
2016-06-29 12:54:26 +03:00
|
|
|
plugin_registry_test_la_SOURCES = tests/plugin-registry-test.c
|
2016-08-18 11:58:58 +03:00
|
|
|
plugin_registry_test_la_LIBADD = $(test_module_libadd)
|
2016-06-29 12:54:26 +03:00
|
|
|
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
|
2016-08-18 11:58:58 +03:00
|
|
|
surface_global_test_la_LIBADD = $(test_module_libadd)
|
2014-02-01 02:03:09 +04:00
|
|
|
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
|
2016-08-18 11:58:58 +03:00
|
|
|
surface_test_la_LIBADD = $(test_module_libadd)
|
2014-02-01 02:03:09 +04:00
|
|
|
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-08-18 11:58:58 +03:00
|
|
|
weston_test_la_LIBADD = libshared.la $(test_module_libadd)
|
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
|
|
|
|
2017-01-27 19:30:23 +03:00
|
|
|
weston_test_desktop_shell_la_LIBADD = libshared.la libweston-desktop-@LIBWESTON_MAJOR@.la $(COMPOSITOR_LIBS)
|
|
|
|
weston_test_desktop_shell_la_LDFLAGS = $(test_module_ldflags)
|
|
|
|
weston_test_desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
|
|
weston_test_desktop_shell_la_SOURCES = \
|
|
|
|
tests/weston-test-desktop-shell.c \
|
|
|
|
shared/helpers.h
|
|
|
|
|
2014-02-01 02:03:09 +04:00
|
|
|
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
|
|
|
|
2017-03-01 14:34:00 +03:00
|
|
|
timespec_test_SOURCES = tests/timespec-test.c
|
|
|
|
timespec_test_LDADD = \
|
|
|
|
libshared.la \
|
|
|
|
libzunitc.la \
|
|
|
|
libzunitcmain.la
|
|
|
|
timespec_test_CFLAGS = \
|
|
|
|
$(AM_CFLAGS) \
|
|
|
|
-I$(top_srcdir)/tools/zunitc/inc
|
|
|
|
|
2016-08-04 03:40:51 +03:00
|
|
|
string_test_SOURCES = \
|
|
|
|
tests/string-test.c \
|
|
|
|
shared/string-helpers.h
|
|
|
|
string_test_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
|
|
|
string_test_LDADD = libtest-client.la
|
|
|
|
|
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 \
|
2018-02-16 19:44:15 +03:00
|
|
|
tests/weston-test-client-helper.h \
|
|
|
|
tests/input-timestamps-helper.c \
|
|
|
|
tests/input-timestamps-helper.h
|
|
|
|
nodist_libtest_client_la_SOURCES = \
|
|
|
|
protocol/weston-test-protocol.c \
|
|
|
|
protocol/weston-test-client-protocol.h \
|
|
|
|
protocol/input-timestamps-unstable-v1-protocol.c \
|
|
|
|
protocol/input-timestamps-unstable-v1-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
|
|
|
|
|
2017-12-04 16:34:03 +03:00
|
|
|
pointer_weston_SOURCES = tests/pointer-test.c
|
|
|
|
pointer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
|
|
|
pointer_weston_LDADD = libtest-client.la
|
2014-02-01 02:03:09 +04:00
|
|
|
|
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
|
|
|
|
|
2017-01-27 19:30:28 +03:00
|
|
|
subsurface_shot_weston_SOURCES = tests/subsurface-shot-test.c
|
|
|
|
subsurface_shot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
|
|
|
subsurface_shot_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
|
|
|
|
|
2017-12-13 14:27:58 +03:00
|
|
|
touch_weston_SOURCES = tests/touch-test.c
|
|
|
|
touch_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
|
|
|
touch_weston_LDADD = libtest-client.la
|
|
|
|
|
2018-10-19 12:14:11 +03:00
|
|
|
linux_explicit_synchronization_weston_SOURCES = \
|
|
|
|
tests/linux-explicit-synchronization-test.c
|
|
|
|
nodist_linux_explicit_synchronization_weston_SOURCES = \
|
|
|
|
protocol/linux-explicit-synchronization-unstable-v1-protocol.c \
|
|
|
|
protocol/linux-explicit-synchronization-unstable-v1-client-protocol.h
|
|
|
|
linux_explicit_synchronization_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
|
|
|
linux_explicit_synchronization_weston_LDADD = libtest-client.la
|
|
|
|
|
2014-02-01 02:03:09 +04:00
|
|
|
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
|
2016-11-29 14:05:49 +03:00
|
|
|
xwayland_test_weston_CFLAGS = \
|
|
|
|
$(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS) -DXSERVER_PATH='"@XSERVER_PATH@"'
|
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
|
|
|
|
|
2016-08-18 11:58:58 +03:00
|
|
|
ivi_layout_internal_test_la_LIBADD = $(test_module_libadd)
|
2015-03-27 12:55:21 +03:00
|
|
|
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 = \
|
2016-11-28 18:54:06 +03:00
|
|
|
tests/ivi-layout-internal-test.c
|
2015-03-27 12:55:21 +03:00
|
|
|
|
2016-08-18 11:58:58 +03:00
|
|
|
ivi_layout_test_la_LIBADD = $(test_module_libadd)
|
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_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 = \
|
2016-11-28 18:54:06 +03:00
|
|
|
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
|
|
|
|
|
2018-02-14 13:06:54 +03:00
|
|
|
ivi_tests = \
|
2015-03-23 14:55:06 +03:00
|
|
|
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
|
|
|
|
2016-11-28 18:54:06 +03:00
|
|
|
noinst_PROGRAMS += ivi-layout-test-client.ivi
|
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
|
|
|
|
2016-11-28 18:54:06 +03:00
|
|
|
ivi_layout_test_client_ivi_SOURCES = \
|
|
|
|
tests/ivi-layout-test-client.c \
|
2015-06-16 23:15:13 +03:00
|
|
|
tests/ivi-test.h \
|
|
|
|
shared/helpers.h
|
2016-11-28 18:54:06 +03:00
|
|
|
nodist_ivi_layout_test_client_ivi_SOURCES = \
|
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
|
|
|
protocol/ivi-application-protocol.c \
|
|
|
|
protocol/ivi-application-client-protocol.h
|
2016-11-28 18:54:06 +03:00
|
|
|
ivi_layout_test_client_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
|
|
|
ivi_layout_test_client_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/internal-screenshot.ini \
|
|
|
|
tests/reference/internal-screenshot-bad-00.png \
|
2017-01-27 19:30:28 +03:00
|
|
|
tests/reference/internal-screenshot-good-00.png \
|
|
|
|
tests/reference/subsurface_z_order-00.png \
|
|
|
|
tests/reference/subsurface_z_order-01.png \
|
|
|
|
tests/reference/subsurface_z_order-02.png \
|
|
|
|
tests/reference/subsurface_z_order-03.png \
|
|
|
|
tests/reference/subsurface_z_order-04.png \
|
|
|
|
tests/weston-tests-env
|
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 \
|
2017-11-22 18:25:12 +03:00
|
|
|
protocol/weston-touch-calibration.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-08-18 11:58:58 +03:00
|
|
|
surface_screenshot_la_LIBADD = libshared.la $(test_module_libadd)
|
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)
|
2018-08-29 00:53:59 +03:00
|
|
|
surface_screenshot_la_SOURCES = tests/surface-screenshot-test.c
|
2015-02-09 12:23:48 +03:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Documentation
|
|
|
|
#
|
|
|
|
|
2017-10-12 14:13:44 +03:00
|
|
|
man_MANS = weston.1 weston.ini.5 weston-debug.1
|
2014-01-28 10:33:04 +04:00
|
|
|
|
|
|
|
if ENABLE_DRM_COMPOSITOR
|
|
|
|
man_MANS += weston-drm.7
|
|
|
|
endif
|
|
|
|
|
2017-12-15 17:23:59 +03:00
|
|
|
if ENABLE_RDP_COMPOSITOR
|
|
|
|
man_MANS += weston-rdp.7
|
|
|
|
endif
|
|
|
|
|
2014-01-28 10:33:04 +04:00
|
|
|
MAN_SUBSTS = \
|
2018-08-16 17:22:14 +03:00
|
|
|
-e 's|@weston_native_backend@|$(WESTON_NATIVE_BACKEND)|g' \
|
|
|
|
-e 's|@weston_modules_dir@|$(moduledir)|g' \
|
|
|
|
-e 's|@libweston_modules_dir@|$(libweston_moduledir)|g' \
|
|
|
|
-e 's|@weston_shell_client@|$(WESTON_SHELL_CLIENT)|g' \
|
|
|
|
-e 's|@weston_libexecdir@|$(libexecdir)|g' \
|
|
|
|
-e 's|@weston_bindir@|$(bindir)|g' \
|
|
|
|
-e 's|@xserver_path@|$(XSERVER_PATH)|g' \
|
|
|
|
-e 's|@version@|$(PACKAGE_VERSION)|g'
|
2014-01-28 10:33:04 +04:00
|
|
|
|
|
|
|
SUFFIXES = .1 .5 .7 .man
|
|
|
|
|
|
|
|
%.1 %.5 %.7 : man/%.man
|
|
|
|
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
2018-07-14 13:55:24 +03:00
|
|
|
CONTRIBUTING.md \
|
2018-07-14 15:33:30 +03:00
|
|
|
README.md \
|
|
|
|
doc/wayland-screenshot.jpg \
|
2018-03-13 15:51:00 +03:00
|
|
|
doc/calibration-helper.bash \
|
2014-01-28 10:33:04 +04:00
|
|
|
man/weston.man \
|
2017-10-12 14:13:44 +03:00
|
|
|
man/weston-debug.man \
|
2014-01-28 10:33:04 +04:00
|
|
|
man/weston-drm.man \
|
2017-12-15 17:23:59 +03:00
|
|
|
man/weston-rdp.man \
|
2014-01-28 10:33:04 +04:00
|
|
|
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
|
2017-12-17 22:04:36 +03:00
|
|
|
$(shell echo $1 | $(SED) 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
|
2015-11-17 11:00:31 +03:00
|
|
|
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 < $< > $@
|
2018-11-24 15:13:02 +03:00
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
clients/meson.build \
|
|
|
|
compositor/meson.build \
|
|
|
|
data/meson.build \
|
|
|
|
desktop-shell/meson.build \
|
|
|
|
fullscreen-shell/meson.build \
|
|
|
|
ivi-shell/meson.build \
|
|
|
|
libweston-desktop/meson.build \
|
|
|
|
libweston/git-version.h.meson \
|
|
|
|
libweston/meson.build \
|
|
|
|
man/meson.build \
|
|
|
|
meson.build \
|
|
|
|
meson_options.txt \
|
|
|
|
protocol/meson.build \
|
|
|
|
remoting/meson.build \
|
|
|
|
shared/meson.build \
|
|
|
|
tests/meson.build \
|
|
|
|
wcap/meson.build \
|
|
|
|
xwayland/meson.build
|