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 =
|
2014-01-28 11:05:52 +04:00
|
|
|
noinst_LTLIBRARIES =
|
2014-01-28 09:56:12 +04:00
|
|
|
BUILT_SOURCES =
|
2014-01-28 09:46:30 +04:00
|
|
|
|
2015-02-09 18:57:29 +03:00
|
|
|
AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
|
2013-02-25 22:03:15 +04:00
|
|
|
|
2014-11-27 07:24:16 +03:00
|
|
|
EXTRA_DIST = weston.ini.in ivi-shell/weston.ini.in
|
2013-11-22 20:46:00 +04:00
|
|
|
|
|
|
|
weston.ini : $(srcdir)/weston.ini.in
|
|
|
|
$(AM_V_GEN)$(SED) \
|
|
|
|
-e 's|@bindir[@]|$(bindir)|g' \
|
|
|
|
-e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
|
|
|
|
-e 's|@libexecdir[@]|$(libexecdir)|g' \
|
|
|
|
$< > $@
|
|
|
|
|
2014-11-27 07:24:16 +03:00
|
|
|
ivi-shell/weston.ini : $(srcdir)/ivi-shell/weston.ini.in
|
|
|
|
$(AM_V_GEN)$(SED) \
|
|
|
|
-e 's|@bindir[@]|$(bindir)|g' \
|
|
|
|
-e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
|
2015-03-24 15:09:57 +03:00
|
|
|
-e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
|
2014-11-27 07:24:16 +03:00
|
|
|
-e 's|@libexecdir[@]|$(libexecdir)|g' \
|
2015-03-24 14:51:05 +03:00
|
|
|
-e 's|@plugin_prefix[@]||g' \
|
|
|
|
$< > $@
|
|
|
|
|
|
|
|
tests/weston-ivi.ini : $(srcdir)/ivi-shell/weston.ini.in
|
|
|
|
$(AM_V_GEN)$(SED) \
|
|
|
|
-e 's|@bindir[@]|$(bindir)|g' \
|
|
|
|
-e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
|
2015-03-24 15:09:57 +03:00
|
|
|
-e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
|
2015-03-24 14:51:05 +03:00
|
|
|
-e 's|@libexecdir[@]|$(libexecdir)|g' \
|
|
|
|
-e 's|@plugin_prefix[@]|$(abs_top_builddir)/.libs/|g' \
|
2014-11-27 07:24:16 +03:00
|
|
|
$< > $@
|
|
|
|
|
|
|
|
all-local : weston.ini ivi-shell/weston.ini
|
2013-12-17 11:12:46 +04:00
|
|
|
|
2014-02-01 02:03:09 +04:00
|
|
|
AM_CFLAGS = $(GCC_CFLAGS)
|
|
|
|
|
2014-01-28 11:05:52 +04:00
|
|
|
AM_CPPFLAGS = \
|
2014-02-01 02:03:09 +04:00
|
|
|
-I$(top_srcdir)/src \
|
2014-01-28 11:05:52 +04:00
|
|
|
-I$(top_builddir)/src \
|
2014-02-01 04:15:11 +04:00
|
|
|
-I$(top_builddir)/clients \
|
2014-02-01 02:03:09 +04:00
|
|
|
-I$(top_builddir)/tests \
|
2014-01-28 11:05:52 +04:00
|
|
|
-I$(top_srcdir)/shared \
|
2014-02-02 00:39:12 +04:00
|
|
|
-I$(top_builddir)/protocol \
|
2014-01-28 11:05:52 +04:00
|
|
|
-DDATADIR='"$(datadir)"' \
|
|
|
|
-DMODULEDIR='"$(moduledir)"' \
|
2014-02-01 04:15:11 +04:00
|
|
|
-DLIBEXECDIR='"$(libexecdir)"' \
|
|
|
|
-DBINDIR='"$(bindir)"'
|
2014-01-28 11:05:52 +04:00
|
|
|
|
2015-03-24 14:51:05 +03:00
|
|
|
CLEANFILES = weston.ini \
|
|
|
|
ivi-shell/weston.ini \
|
|
|
|
tests/weston-ivi.ini \
|
|
|
|
$(BUILT_SOURCES)
|
2014-01-28 09:40:28 +04:00
|
|
|
|
2014-01-28 11:05:52 +04:00
|
|
|
bin_PROGRAMS += weston
|
|
|
|
|
|
|
|
weston_LDFLAGS = -export-dynamic
|
|
|
|
weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
|
|
|
|
weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
|
|
|
|
weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
|
2014-01-28 10:02:41 +04:00
|
|
|
$(DLOPEN_LIBS) -lm libshared.la
|
2014-01-28 11:05:52 +04:00
|
|
|
|
|
|
|
weston_SOURCES = \
|
|
|
|
src/git-version.h \
|
|
|
|
src/log.c \
|
|
|
|
src/compositor.c \
|
|
|
|
src/compositor.h \
|
|
|
|
src/input.c \
|
|
|
|
src/data-device.c \
|
|
|
|
src/screenshooter.c \
|
|
|
|
src/clipboard.c \
|
|
|
|
src/zoom.c \
|
|
|
|
src/text-backend.c \
|
|
|
|
src/bindings.c \
|
|
|
|
src/animation.c \
|
|
|
|
src/noop-renderer.c \
|
|
|
|
src/pixman-renderer.c \
|
|
|
|
src/pixman-renderer.h \
|
compositor: Implement JSON-timeline logging
Logging is activated and deactivated with the debug key binding 't'.
When activated, it creates a new log file, where it records the events.
The log file contains events and detailed object information entries in
JSON format, and is meant to be parsed in sequence from beginning to the
end.
The emitted events are mostly related to the output repaint cycle, like
when repaint begins, is submitted to GPU, and when it completes on a
vblank. This is recorded per-output. Also some per-surface events are
recorded, including when surface damage is flushed.
To reduce the log size, events refer to objects like outputs and
surfaces by id numbers. Detailed object information is emitted only as
needed: on the first object occurrence, and afterwards only if
weston_timeline_object::force_refresh asks for it.
The detailed information for surfaces includes the string returned by
weston_surface::get_label. Therefore it is important to set
weston_timeline_object::force_refresh = 1 whenever the string would
change, so that the new details get recorded.
A rudimentary parser and SVG generator can be found at:
https://github.com/ppaalanen/wesgr
The timeline logs can answer questions including:
- How does the compositor repaint cycle work timing-wise?
- When was the vblank deadline missed?
- What is the latency from surface commit to showing the new content on
screen?
- How long does it take to process the scenegraph?
v2: weston_surface::get_description renamed to get_label.
v3: reafctor a bit into fprint_quoted_string().
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-11-12 16:09:24 +03:00
|
|
|
src/timeline.c \
|
|
|
|
src/timeline.h \
|
|
|
|
src/timeline-object.h \
|
2014-01-28 11:05:52 +04:00
|
|
|
shared/matrix.c \
|
|
|
|
shared/matrix.h \
|
|
|
|
shared/zalloc.h \
|
2015-03-20 17:26:51 +03:00
|
|
|
shared/platform.h \
|
2014-01-28 11:05:52 +04:00
|
|
|
src/weston-egl-ext.h
|
|
|
|
|
2014-02-02 09:52:17 +04:00
|
|
|
nodist_weston_SOURCES = \
|
|
|
|
protocol/screenshooter-protocol.c \
|
|
|
|
protocol/screenshooter-server-protocol.h \
|
|
|
|
protocol/text-cursor-position-protocol.c \
|
|
|
|
protocol/text-cursor-position-server-protocol.h \
|
|
|
|
protocol/text-protocol.c \
|
|
|
|
protocol/text-server-protocol.h \
|
|
|
|
protocol/input-method-protocol.c \
|
|
|
|
protocol/input-method-server-protocol.h \
|
|
|
|
protocol/workspaces-protocol.c \
|
|
|
|
protocol/workspaces-server-protocol.h \
|
2014-09-24 06:08:42 +04:00
|
|
|
protocol/presentation_timing-protocol.c \
|
|
|
|
protocol/presentation_timing-server-protocol.h \
|
2014-02-02 09:52:17 +04:00
|
|
|
protocol/scaler-protocol.c \
|
|
|
|
protocol/scaler-server-protocol.h
|
|
|
|
|
|
|
|
BUILT_SOURCES += $(nodist_weston_SOURCES)
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
src/compositor.c : $(top_builddir)/src/git-version.h
|
|
|
|
|
2014-01-28 11:05:52 +04:00
|
|
|
noinst_LTLIBRARIES += \
|
|
|
|
libsession-helper.la
|
|
|
|
|
|
|
|
libsession_helper_la_SOURCES = \
|
|
|
|
src/weston-launch.h \
|
|
|
|
src/launcher-util.c \
|
|
|
|
src/launcher-util.h
|
|
|
|
libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
|
|
libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
|
|
|
|
|
|
|
|
if ENABLE_DBUS
|
|
|
|
if HAVE_SYSTEMD_LOGIN
|
|
|
|
libsession_helper_la_SOURCES += \
|
|
|
|
src/dbus.h \
|
|
|
|
src/dbus.c \
|
|
|
|
src/logind-util.h \
|
|
|
|
src/logind-util.c
|
|
|
|
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
|
|
|
|
src/git-version.h : $(top_srcdir)/.git/logs/HEAD
|
|
|
|
$(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
|
|
|
|
src/git-version.h :
|
|
|
|
$(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
|
|
|
|
weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
|
|
|
|
weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
|
|
|
|
weston_launch_CFLAGS= \
|
|
|
|
$(GCC_CFLAGS) \
|
|
|
|
$(PAM_CFLAGS) \
|
|
|
|
$(SYSTEMD_LOGIN_CFLAGS) \
|
|
|
|
$(LIBDRM_CFLAGS)
|
|
|
|
weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
|
|
|
|
|
|
|
|
if ENABLE_SETUID_INSTALL
|
|
|
|
install-exec-hook:
|
2015-04-10 03:52:56 +03:00
|
|
|
can_suid_files=no; \
|
|
|
|
chown root $(DESTDIR)$(bindir)/weston-launch \
|
|
|
|
&& chmod u+s $(DESTDIR)$(bindir)/weston-launch \
|
|
|
|
&& can_suid_files=yes;\
|
2015-04-10 19:55:27 +03:00
|
|
|
if test $$can_suid_files = no; then \
|
2015-04-10 03:52:56 +03:00
|
|
|
echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
|
|
|
|
echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
|
|
|
|
false; \
|
|
|
|
fi
|
2014-01-28 11:05:52 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
endif # BUILD_WESTON_LAUNCH
|
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = src/weston.pc
|
|
|
|
|
2014-12-28 16:20:49 +03:00
|
|
|
wayland_sessiondir = $(datadir)/wayland-sessions
|
|
|
|
wayland_session_DATA = src/weston.desktop
|
2015-01-22 12:03:03 +03:00
|
|
|
dist_wayland_session_DATA = $(wayland_session_DATA)
|
2014-12-28 16:20:49 +03:00
|
|
|
|
2014-01-28 11:05:52 +04:00
|
|
|
westonincludedir = $(includedir)/weston
|
|
|
|
westoninclude_HEADERS = \
|
|
|
|
src/version.h \
|
|
|
|
src/compositor.h \
|
compositor: Implement JSON-timeline logging
Logging is activated and deactivated with the debug key binding 't'.
When activated, it creates a new log file, where it records the events.
The log file contains events and detailed object information entries in
JSON format, and is meant to be parsed in sequence from beginning to the
end.
The emitted events are mostly related to the output repaint cycle, like
when repaint begins, is submitted to GPU, and when it completes on a
vblank. This is recorded per-output. Also some per-surface events are
recorded, including when surface damage is flushed.
To reduce the log size, events refer to objects like outputs and
surfaces by id numbers. Detailed object information is emitted only as
needed: on the first object occurrence, and afterwards only if
weston_timeline_object::force_refresh asks for it.
The detailed information for surfaces includes the string returned by
weston_surface::get_label. Therefore it is important to set
weston_timeline_object::force_refresh = 1 whenever the string would
change, so that the new details get recorded.
A rudimentary parser and SVG generator can be found at:
https://github.com/ppaalanen/wesgr
The timeline logs can answer questions including:
- How does the compositor repaint cycle work timing-wise?
- When was the vblank deadline missed?
- What is the latency from surface commit to showing the new content on
screen?
- How long does it take to process the scenegraph?
v2: weston_surface::get_description renamed to get_label.
v3: reafctor a bit into fprint_quoted_string().
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-11-12 16:09:24 +03:00
|
|
|
src/timeline-object.h \
|
2014-01-28 11:05:52 +04:00
|
|
|
shared/matrix.h \
|
|
|
|
shared/config-parser.h \
|
2015-03-20 17:26:51 +03:00
|
|
|
shared/zalloc.h \
|
|
|
|
shared/platform.h
|
2014-01-28 11:05:52 +04:00
|
|
|
|
|
|
|
if ENABLE_EGL
|
|
|
|
module_LTLIBRARIES += gl-renderer.la
|
|
|
|
gl_renderer_la_LDFLAGS = -module -avoid-version
|
|
|
|
gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
|
|
|
|
gl_renderer_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(EGL_CFLAGS) \
|
|
|
|
$(GCC_CFLAGS)
|
|
|
|
gl_renderer_la_SOURCES = \
|
|
|
|
src/gl-renderer.h \
|
|
|
|
src/gl-renderer.c \
|
|
|
|
src/vertex-clipping.c \
|
|
|
|
src/vertex-clipping.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_X11_COMPOSITOR
|
|
|
|
module_LTLIBRARIES += x11-backend.la
|
|
|
|
x11_backend_la_LDFLAGS = -module -avoid-version
|
|
|
|
x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
|
2014-01-28 10:02:41 +04:00
|
|
|
libshared-cairo.la
|
2014-01-28 11:05:52 +04:00
|
|
|
x11_backend_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(EGL_CFLAGS) \
|
|
|
|
$(PIXMAN_CFLAGS) \
|
|
|
|
$(CAIRO_CFLAGS) \
|
|
|
|
$(X11_COMPOSITOR_CFLAGS) \
|
|
|
|
$(GCC_CFLAGS)
|
|
|
|
x11_backend_la_SOURCES = src/compositor-x11.c
|
|
|
|
endif
|
|
|
|
|
2014-03-13 01:08:42 +04:00
|
|
|
INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
|
2014-11-26 00:06:31 +03:00
|
|
|
INPUT_BACKEND_SOURCES = \
|
2014-03-13 01:08:42 +04:00
|
|
|
src/libinput-seat.c \
|
|
|
|
src/libinput-seat.h \
|
|
|
|
src/libinput-device.c \
|
|
|
|
src/libinput-device.h
|
|
|
|
|
2014-01-28 11:05:52 +04:00
|
|
|
if ENABLE_DRM_COMPOSITOR
|
|
|
|
module_LTLIBRARIES += drm-backend.la
|
|
|
|
drm_backend_la_LDFLAGS = -module -avoid-version
|
|
|
|
drm_backend_la_LIBADD = \
|
|
|
|
$(COMPOSITOR_LIBS) \
|
|
|
|
$(DRM_COMPOSITOR_LIBS) \
|
2014-03-13 01:08:42 +04:00
|
|
|
$(INPUT_BACKEND_LIBS) \
|
2014-02-02 00:39:12 +04:00
|
|
|
libshared.la -lrt \
|
2014-01-28 11:05:52 +04:00
|
|
|
libsession-helper.la
|
|
|
|
drm_backend_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(EGL_CFLAGS) \
|
|
|
|
$(DRM_COMPOSITOR_CFLAGS) \
|
|
|
|
$(GCC_CFLAGS)
|
|
|
|
drm_backend_la_SOURCES = \
|
|
|
|
src/compositor-drm.c \
|
2014-03-13 01:08:42 +04:00
|
|
|
$(INPUT_BACKEND_SOURCES) \
|
2014-01-28 11:05:52 +04:00
|
|
|
src/libbacklight.c \
|
|
|
|
src/libbacklight.h
|
|
|
|
|
|
|
|
if ENABLE_VAAPI_RECORDER
|
|
|
|
drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
|
|
|
|
drm_backend_la_LIBADD += $(LIBVA_LIBS)
|
|
|
|
drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_WAYLAND_COMPOSITOR
|
|
|
|
module_LTLIBRARIES += wayland-backend.la
|
|
|
|
wayland_backend_la_LDFLAGS = -module -avoid-version
|
|
|
|
wayland_backend_la_LIBADD = \
|
|
|
|
$(COMPOSITOR_LIBS) \
|
|
|
|
$(WAYLAND_COMPOSITOR_LIBS) \
|
2014-01-28 10:02:41 +04:00
|
|
|
libshared-cairo.la
|
2014-01-28 11:05:52 +04:00
|
|
|
wayland_backend_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(EGL_CFLAGS) \
|
|
|
|
$(PIXMAN_CFLAGS) \
|
|
|
|
$(CAIRO_CFLAGS) \
|
|
|
|
$(WAYLAND_COMPOSITOR_CFLAGS) \
|
|
|
|
$(GCC_CFLAGS)
|
|
|
|
wayland_backend_la_SOURCES = src/compositor-wayland.c
|
2014-04-03 04:53:54 +04:00
|
|
|
nodist_wayland_backend_la_SOURCES = \
|
|
|
|
protocol/fullscreen-shell-protocol.c \
|
|
|
|
protocol/fullscreen-shell-client-protocol.h
|
2014-01-28 11:05:52 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_RPI_COMPOSITOR
|
|
|
|
if INSTALL_RPI_COMPOSITOR
|
|
|
|
module_LTLIBRARIES += rpi-backend.la
|
|
|
|
else
|
|
|
|
noinst_LTLIBRARIES += rpi-backend.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
rpi_backend_la_LDFLAGS = -module -avoid-version
|
|
|
|
rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
|
|
|
|
$(RPI_COMPOSITOR_LIBS) \
|
|
|
|
$(RPI_BCM_HOST_LIBS) \
|
2014-03-13 01:08:42 +04:00
|
|
|
$(INPUT_BACKEND_LIBS) \
|
2014-01-28 11:05:52 +04:00
|
|
|
libsession-helper.la \
|
2014-01-28 10:02:41 +04:00
|
|
|
libshared.la
|
2014-01-28 11:05:52 +04:00
|
|
|
rpi_backend_la_CFLAGS = \
|
|
|
|
$(GCC_CFLAGS) \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(RPI_COMPOSITOR_CFLAGS) \
|
|
|
|
$(RPI_BCM_HOST_CFLAGS)
|
|
|
|
rpi_backend_la_SOURCES = \
|
|
|
|
src/compositor-rpi.c \
|
|
|
|
src/rpi-renderer.c \
|
|
|
|
src/rpi-renderer.h \
|
|
|
|
src/rpi-bcm-stubs.h \
|
2014-03-13 01:08:42 +04:00
|
|
|
$(INPUT_BACKEND_SOURCES)
|
2014-01-28 11:05:52 +04:00
|
|
|
|
|
|
|
if ENABLE_EGL
|
|
|
|
rpi_backend_la_LIBADD += $(EGL_LIBS)
|
|
|
|
rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_HEADLESS_COMPOSITOR
|
|
|
|
module_LTLIBRARIES += headless-backend.la
|
|
|
|
headless_backend_la_LDFLAGS = -module -avoid-version
|
2014-02-12 02:21:39 +04:00
|
|
|
headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
|
|
|
|
headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
|
2014-01-28 11:05:52 +04:00
|
|
|
headless_backend_la_SOURCES = src/compositor-headless.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_FBDEV_COMPOSITOR
|
|
|
|
module_LTLIBRARIES += fbdev-backend.la
|
|
|
|
fbdev_backend_la_LDFLAGS = -module -avoid-version
|
|
|
|
fbdev_backend_la_LIBADD = \
|
|
|
|
$(COMPOSITOR_LIBS) \
|
|
|
|
$(FBDEV_COMPOSITOR_LIBS) \
|
2014-03-13 01:08:42 +04:00
|
|
|
$(INPUT_BACKEND_LIBS) \
|
2014-01-28 11:05:52 +04:00
|
|
|
libsession-helper.la \
|
2014-01-28 10:02:41 +04:00
|
|
|
libshared.la
|
2014-01-28 11:05:52 +04:00
|
|
|
fbdev_backend_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(EGL_CFLAGS) \
|
|
|
|
$(FBDEV_COMPOSITOR_CFLAGS) \
|
|
|
|
$(PIXMAN_CFLAGS) \
|
|
|
|
$(GCC_CFLAGS)
|
|
|
|
fbdev_backend_la_SOURCES = \
|
|
|
|
src/compositor-fbdev.c \
|
2014-03-13 01:08:42 +04:00
|
|
|
$(INPUT_BACKEND_SOURCES)
|
2014-01-28 11:05:52 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_RDP_COMPOSITOR
|
|
|
|
module_LTLIBRARIES += rdp-backend.la
|
|
|
|
rdp_backend_la_LDFLAGS = -module -avoid-version
|
|
|
|
rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
|
|
|
|
$(RDP_COMPOSITOR_LIBS) \
|
2014-01-28 10:02:41 +04:00
|
|
|
libshared.la
|
2014-01-28 11:05:52 +04:00
|
|
|
rdp_backend_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(RDP_COMPOSITOR_CFLAGS) \
|
|
|
|
$(GCC_CFLAGS)
|
|
|
|
rdp_backend_la_SOURCES = src/compositor-rdp.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_LCMS
|
|
|
|
module_LTLIBRARIES += cms-static.la
|
|
|
|
cms_static_la_LDFLAGS = -module -avoid-version
|
2014-01-28 10:02:41 +04:00
|
|
|
cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
|
2014-01-28 11:05:52 +04:00
|
|
|
cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
|
|
|
|
cms_static_la_SOURCES = \
|
|
|
|
src/cms-static.c \
|
|
|
|
src/cms-helper.c \
|
|
|
|
src/cms-helper.h
|
|
|
|
if ENABLE_COLORD
|
|
|
|
module_LTLIBRARIES += cms-colord.la
|
|
|
|
cms_colord_la_LDFLAGS = -module -avoid-version
|
|
|
|
cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
|
|
|
|
cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
|
|
|
|
cms_colord_la_SOURCES = \
|
2014-02-02 00:39:12 +04:00
|
|
|
src/cms-colord.c \
|
|
|
|
src/cms-helper.c \
|
2014-01-28 11:05:52 +04:00
|
|
|
src/cms-helper.h
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
noinst_PROGRAMS += spring-tool
|
|
|
|
spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
|
|
spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
|
|
|
|
spring_tool_SOURCES = \
|
|
|
|
src/spring-tool.c \
|
|
|
|
src/animation.c \
|
|
|
|
shared/matrix.c \
|
|
|
|
shared/matrix.h \
|
|
|
|
src/compositor.h
|
|
|
|
|
2014-02-01 04:15:11 +04:00
|
|
|
if BUILD_CLIENTS
|
|
|
|
|
|
|
|
bin_PROGRAMS += weston-terminal weston-info
|
|
|
|
|
|
|
|
libexec_PROGRAMS += \
|
|
|
|
weston-desktop-shell \
|
|
|
|
weston-screenshooter \
|
|
|
|
weston-keyboard \
|
|
|
|
weston-simple-im
|
|
|
|
|
clients: a reference implementation of UI client how to use ivi-hmi-controller.
- introduces ivi-shell-user-interface.c
This is launched from hmi-controller by launch_hmi_client_process and
invoke a
client process.
The basic flow is as followed,
1/ process invoked
2/ read configuration from weston.ini.
3/ draw png file to surface according to configuration of weston.ini
4/ all parts of UI are ready. request "UI_ready" to draw UI.
5/ Enter event loop
6/ If a surface receives touch/pointer event, followings are invoked
according
to type of event and surface
6-1/ If a surface to launch ivi_application receive touch up, it execs
ivi-application configured in weston.ini.
6-2/ If a surface to switch layout mode receive touch up, it sends a
request,
ivi_hmi_controller_switch_mode, to hmi-controller.
6-3/ If a surface to show workspace having launchers, it sends a
request,
ivi_hmi_controller_home, to hmi-controller.
6-4/ If touch down events happens in workspace,
ivi_hmi_controller_workspace_control is sent to slide workspace.
When control finished, event:
ivi_hmi_controller_workspace_end_control
is received.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-11-27 07:23:32 +03:00
|
|
|
if ENABLE_IVI_SHELL
|
|
|
|
libexec_PROGRAMS += \
|
|
|
|
weston-ivi-shell-user-interface
|
|
|
|
endif
|
|
|
|
|
2014-02-01 04:15:11 +04:00
|
|
|
demo_clients = \
|
|
|
|
weston-flower \
|
|
|
|
weston-image \
|
|
|
|
weston-cliptest \
|
|
|
|
weston-dnd \
|
|
|
|
weston-smoke \
|
|
|
|
weston-resizor \
|
|
|
|
weston-eventdemo \
|
|
|
|
weston-clickdot \
|
|
|
|
weston-transformed \
|
|
|
|
weston-fullscreen \
|
|
|
|
weston-stacking \
|
|
|
|
weston-calibrator \
|
|
|
|
weston-scaler
|
|
|
|
|
|
|
|
if INSTALL_DEMO_CLIENTS
|
|
|
|
bin_PROGRAMS += $(demo_clients)
|
|
|
|
else
|
|
|
|
noinst_PROGRAMS += $(demo_clients)
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
if BUILD_SIMPLE_CLIENTS
|
|
|
|
demo_clients += \
|
|
|
|
weston-simple-shm \
|
2014-04-05 18:22:15 +04:00
|
|
|
weston-simple-damage \
|
2014-02-01 04:15:11 +04:00
|
|
|
weston-simple-touch \
|
2014-09-24 06:08:49 +04:00
|
|
|
weston-presentation-shm \
|
2014-02-01 04:15:11 +04:00
|
|
|
weston-multi-resource
|
|
|
|
|
2014-02-12 02:23:19 +04:00
|
|
|
weston_simple_shm_SOURCES = clients/simple-shm.c
|
|
|
|
nodist_weston_simple_shm_SOURCES = \
|
2014-02-08 05:01:57 +04:00
|
|
|
protocol/xdg-shell-protocol.c \
|
2014-04-03 04:53:48 +04:00
|
|
|
protocol/xdg-shell-client-protocol.h \
|
|
|
|
protocol/fullscreen-shell-protocol.c \
|
2014-11-27 07:24:29 +03:00
|
|
|
protocol/fullscreen-shell-client-protocol.h \
|
|
|
|
protocol/ivi-application-protocol.c \
|
|
|
|
protocol/ivi-application-client-protocol.h
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
|
2014-02-12 02:21:39 +04:00
|
|
|
weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
|
2014-02-01 04:15:11 +04:00
|
|
|
|
2014-04-05 18:22:15 +04:00
|
|
|
weston_simple_damage_SOURCES = clients/simple-damage.c
|
|
|
|
nodist_weston_simple_damage_SOURCES = \
|
|
|
|
protocol/scaler-protocol.c \
|
|
|
|
protocol/scaler-client-protocol.h \
|
|
|
|
protocol/xdg-shell-protocol.c \
|
|
|
|
protocol/xdg-shell-client-protocol.h \
|
|
|
|
protocol/fullscreen-shell-protocol.c \
|
|
|
|
protocol/fullscreen-shell-client-protocol.h
|
|
|
|
weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
|
|
|
|
weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
|
|
|
|
|
2014-02-12 02:21:39 +04:00
|
|
|
weston_simple_touch_SOURCES = clients/simple-touch.c
|
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
|
|
|
|
2014-09-24 06:08:49 +04:00
|
|
|
weston_presentation_shm_SOURCES = clients/presentation-shm.c
|
|
|
|
nodist_weston_presentation_shm_SOURCES = \
|
|
|
|
protocol/presentation_timing-protocol.c \
|
|
|
|
protocol/presentation_timing-client-protocol.h
|
|
|
|
weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
|
|
|
|
weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
|
|
|
|
|
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)
|
2014-10-27 18:13:19 +03:00
|
|
|
weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -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 = \
|
2014-02-08 05:01:57 +04:00
|
|
|
protocol/xdg-shell-protocol.c \
|
2014-11-27 07:24:42 +03:00
|
|
|
protocol/xdg-shell-client-protocol.h \
|
|
|
|
protocol/ivi-application-protocol.c \
|
|
|
|
protocol/ivi-application-client-protocol.h
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
|
|
|
|
endif
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES += libtoytoolkit.la
|
|
|
|
|
|
|
|
libtoytoolkit_la_SOURCES = \
|
|
|
|
clients/window.c \
|
2014-02-02 09:52:17 +04:00
|
|
|
clients/window.h
|
|
|
|
|
|
|
|
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 \
|
|
|
|
protocol/scaler-protocol.c \
|
|
|
|
protocol/scaler-client-protocol.h \
|
|
|
|
protocol/workspaces-protocol.c \
|
|
|
|
protocol/workspaces-client-protocol.h \
|
2014-09-24 06:08:42 +04:00
|
|
|
protocol/presentation_timing-protocol.c \
|
|
|
|
protocol/presentation_timing-client-protocol.h \
|
2014-02-02 00:39:12 +04:00
|
|
|
protocol/xdg-shell-protocol.c \
|
2014-11-27 07:21:34 +03:00
|
|
|
protocol/xdg-shell-client-protocol.h \
|
|
|
|
protocol/ivi-application-protocol.c \
|
|
|
|
protocol/ivi-application-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) \
|
2014-01-28 10:02:41 +04:00
|
|
|
libshared-cairo.la -lrt -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 = \
|
|
|
|
protocol/screenshooter-protocol.c \
|
|
|
|
protocol/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
|
|
|
|
|
|
|
weston_terminal_SOURCES = clients/terminal.c
|
|
|
|
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 \
|
|
|
|
src/vertex-clipping.c \
|
|
|
|
src/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
|
|
|
|
|
|
|
|
weston_dnd_SOURCES = clients/dnd.c
|
|
|
|
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
|
|
|
|
|
|
|
|
weston_nested_SOURCES = clients/nested.c
|
|
|
|
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
|
|
|
|
|
|
|
|
weston_eventdemo_SOURCES = clients/eventdemo.c
|
|
|
|
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
|
|
|
|
|
|
|
weston_clickdot_SOURCES = clients/clickdot.c
|
|
|
|
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
|
|
|
|
|
|
|
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 = \
|
|
|
|
protocol/fullscreen-shell-protocol.c \
|
|
|
|
protocol/fullscreen-shell-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
|
|
|
|
|
|
|
weston_stacking_SOURCES = clients/stacking.c
|
|
|
|
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
|
|
|
|
|
|
|
weston_calibrator_SOURCES = clients/calibrator.c \
|
|
|
|
shared/matrix.c \
|
|
|
|
shared/matrix.h
|
|
|
|
weston_calibrator_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
|
|
|
if BUILD_SUBSURFACES_CLIENT
|
|
|
|
demo_clients += weston-subsurfaces
|
|
|
|
weston_subsurfaces_SOURCES = clients/subsurfaces.c
|
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
|
2014-02-02 09:52:17 +04:00
|
|
|
weston_editor_SOURCES = clients/editor.c
|
|
|
|
nodist_weston_editor_SOURCES = \
|
2014-02-02 00:39:12 +04:00
|
|
|
protocol/text-protocol.c \
|
|
|
|
protocol/text-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
|
|
|
|
nodist_weston_keyboard_SOURCES = \
|
2014-02-02 00:39:12 +04:00
|
|
|
protocol/desktop-shell-client-protocol.h \
|
|
|
|
protocol/desktop-shell-protocol.c \
|
|
|
|
protocol/input-method-protocol.c \
|
|
|
|
protocol/input-method-client-protocol.h
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_keyboard_LDADD = libtoytoolkit.la
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
2014-02-02 09:52:17 +04:00
|
|
|
weston_simple_im_SOURCES = clients/weston-simple-im.c
|
|
|
|
nodist_weston_simple_im_SOURCES = \
|
2014-02-02 00:39:12 +04:00
|
|
|
protocol/input-method-protocol.c \
|
|
|
|
protocol/input-method-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
|
|
|
|
2014-02-12 02:21:39 +04:00
|
|
|
weston_info_SOURCES = clients/weston-info.c
|
2014-09-24 06:08:44 +04:00
|
|
|
nodist_weston_info_SOURCES = \
|
|
|
|
protocol/presentation_timing-protocol.c \
|
|
|
|
protocol/presentation_timing-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
|
|
|
|
2014-02-02 09:52:17 +04:00
|
|
|
weston_desktop_shell_SOURCES = clients/desktop-shell.c
|
|
|
|
nodist_weston_desktop_shell_SOURCES = \
|
2014-02-02 00:39:12 +04:00
|
|
|
protocol/desktop-shell-client-protocol.h \
|
|
|
|
protocol/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
|
|
|
|
weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
|
|
|
|
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
|
|
|
|
|
|
|
if HAVE_GLU
|
|
|
|
libexec_PROGRAMS += weston-screensaver
|
2014-02-02 00:39:12 +04:00
|
|
|
weston_screensaver_SOURCES = \
|
|
|
|
clients/wscreensaver.c \
|
|
|
|
clients/wscreensaver.h \
|
|
|
|
clients/wscreensaver-glue.c \
|
|
|
|
clients/wscreensaver-glue.h \
|
|
|
|
clients/glmatrix.c \
|
2014-02-01 04:15:11 +04:00
|
|
|
clients/matrix3.xpm
|
2014-02-02 09:52:17 +04:00
|
|
|
nodist_weston_screensaver_SOURCES = \
|
|
|
|
protocol/desktop-shell-client-protocol.h \
|
|
|
|
protocol/desktop-shell-protocol.c
|
|
|
|
|
2014-02-01 04:15:11 +04:00
|
|
|
weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
|
2014-02-06 10:00:59 +04:00
|
|
|
weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
|
2014-02-01 04:15:11 +04:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
BUILT_SOURCES += \
|
2014-02-02 00:39:12 +04:00
|
|
|
protocol/screenshooter-protocol.c \
|
2014-02-02 09:52:17 +04:00
|
|
|
protocol/screenshooter-client-protocol.h \
|
2014-02-02 00:39:12 +04:00
|
|
|
protocol/text-cursor-position-client-protocol.h \
|
|
|
|
protocol/text-cursor-position-protocol.c \
|
|
|
|
protocol/text-protocol.c \
|
|
|
|
protocol/text-client-protocol.h \
|
|
|
|
protocol/input-method-protocol.c \
|
|
|
|
protocol/input-method-client-protocol.h \
|
|
|
|
protocol/desktop-shell-client-protocol.h \
|
|
|
|
protocol/desktop-shell-protocol.c \
|
|
|
|
protocol/scaler-client-protocol.h \
|
|
|
|
protocol/scaler-protocol.c \
|
|
|
|
protocol/workspaces-client-protocol.h \
|
|
|
|
protocol/workspaces-protocol.c \
|
2014-04-03 04:53:48 +04:00
|
|
|
protocol/fullscreen-shell-protocol.c \
|
|
|
|
protocol/fullscreen-shell-client-protocol.h \
|
2014-02-02 00:39:12 +04:00
|
|
|
protocol/xdg-shell-protocol.c \
|
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/xdg-shell-client-protocol.h \
|
|
|
|
protocol/ivi-hmi-controller-protocol.c \
|
|
|
|
protocol/ivi-hmi-controller-client-protocol.h \
|
|
|
|
protocol/ivi-application-protocol.c \
|
|
|
|
protocol/ivi-application-client-protocol.h
|
2014-02-01 04:15:11 +04:00
|
|
|
|
2014-01-28 09:40:28 +04:00
|
|
|
westondatadir = $(datadir)/weston
|
|
|
|
dist_westondata_DATA = \
|
|
|
|
data/wayland.svg \
|
|
|
|
data/wayland.png \
|
|
|
|
data/pattern.png \
|
|
|
|
data/terminal.png \
|
|
|
|
data/border.png \
|
|
|
|
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
|
|
|
|
|
|
|
|
wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
|
|
|
|
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 \
|
|
|
|
-I$(top_srcdir)/src \
|
|
|
|
-I$(top_builddir)/src \
|
|
|
|
-I$(top_builddir)/desktop-shell \
|
|
|
|
-DDATADIR='"$(datadir)"' \
|
|
|
|
-DMODULEDIR='"$(moduledir)"' \
|
|
|
|
-DLIBEXECDIR='"$(libexecdir)"' \
|
|
|
|
-DIN_WESTON
|
|
|
|
|
|
|
|
desktop_shell_la_LDFLAGS = -module -avoid-version
|
2014-02-12 02:21:39 +04:00
|
|
|
desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
|
2014-01-28 09:56:12 +04:00
|
|
|
desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
|
|
desktop_shell_la_SOURCES = \
|
|
|
|
desktop-shell/shell.h \
|
|
|
|
desktop-shell/shell.c \
|
|
|
|
desktop-shell/exposay.c \
|
2014-02-02 09:52:17 +04:00
|
|
|
desktop-shell/input-panel.c
|
|
|
|
nodist_desktop_shell_la_SOURCES = \
|
2014-02-02 00:39:12 +04:00
|
|
|
protocol/desktop-shell-protocol.c \
|
|
|
|
protocol/desktop-shell-server-protocol.h \
|
|
|
|
protocol/xdg-shell-protocol.c \
|
|
|
|
protocol/xdg-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 \
|
|
|
|
-I$(top_srcdir)/src \
|
|
|
|
-I$(top_builddir)/src \
|
|
|
|
-DIN_WESTON
|
|
|
|
|
|
|
|
fullscreen_shell_la_LDFLAGS = -module -avoid-version
|
|
|
|
fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
|
|
|
|
fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
|
|
fullscreen_shell_la_SOURCES = \
|
|
|
|
fullscreen-shell/fullscreen-shell.c
|
|
|
|
nodist_fullscreen_shell_la_SOURCES = \
|
|
|
|
protocol/fullscreen-shell-protocol.c \
|
|
|
|
protocol/fullscreen-shell-server-protocol.h
|
|
|
|
|
|
|
|
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
|
|
|
|
ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
|
|
|
|
ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
|
|
ivi_shell_la_SOURCES = \
|
2014-12-15 07:22:31 +03:00
|
|
|
ivi-shell/ivi-layout-export.h \
|
|
|
|
ivi-shell/ivi-layout-private.h \
|
|
|
|
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 \
|
2014-11-27 07:25:34 +03:00
|
|
|
ivi-shell/input-panel-ivi.c
|
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
|
|
|
|
hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
|
|
|
|
hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
|
|
hmi_controller_la_SOURCES = \
|
|
|
|
ivi-shell/ivi-layout-export.h \
|
|
|
|
ivi-shell/hmi-controller.c
|
|
|
|
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 = \
|
|
|
|
$(COMPOSITOR_LIBS) \
|
|
|
|
$(SCREEN_SHARE_LIBS) \
|
|
|
|
libshared-cairo.la
|
|
|
|
screen_share_la_CFLAGS = \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(SCREEN_SHARE_CFLAGS) \
|
|
|
|
$(GCC_CFLAGS)
|
|
|
|
screen_share_la_SOURCES = \
|
|
|
|
src/screen-share.c
|
|
|
|
nodist_screen_share_la_SOURCES = \
|
|
|
|
protocol/fullscreen-shell-protocol.c \
|
|
|
|
protocol/fullscreen-shell-client-protocol.h
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2014-01-28 09:59:55 +04:00
|
|
|
if ENABLE_XWAYLAND
|
|
|
|
|
|
|
|
module_LTLIBRARIES += xwayland.la
|
|
|
|
|
|
|
|
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 \
|
|
|
|
-I$(top_srcdir)/src \
|
|
|
|
-I$(top_builddir)/src \
|
|
|
|
-I$(top_builddir)/xwayland \
|
|
|
|
-DDATADIR='"$(datadir)"' \
|
|
|
|
-DMODULEDIR='"$(moduledir)"' \
|
|
|
|
-DLIBEXECDIR='"$(libexecdir)"' \
|
|
|
|
-DXSERVER_PATH='"@XSERVER_PATH@"'
|
|
|
|
|
|
|
|
xwayland_la_LDFLAGS = -module -avoid-version
|
|
|
|
xwayland_la_LIBADD = \
|
|
|
|
$(XWAYLAND_LIBS) \
|
2014-01-28 10:02:41 +04:00
|
|
|
$(top_builddir)/libshared-cairo.la
|
2014-01-28 09:59:55 +04:00
|
|
|
xwayland_la_CFLAGS = \
|
|
|
|
$(GCC_CFLAGS) \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(PIXMAN_CFLAGS) \
|
|
|
|
$(CAIRO_CFLAGS)
|
|
|
|
xwayland_la_SOURCES = \
|
|
|
|
xwayland/xwayland.h \
|
|
|
|
xwayland/window-manager.c \
|
|
|
|
xwayland/selection.c \
|
|
|
|
xwayland/dnd.c \
|
|
|
|
xwayland/launcher.c \
|
|
|
|
xwayland/hash.c \
|
|
|
|
xwayland/hash.h
|
|
|
|
endif
|
|
|
|
|
2014-01-28 10:26:29 +04:00
|
|
|
|
2014-01-28 10:02:41 +04:00
|
|
|
#
|
|
|
|
# Shared utilities
|
|
|
|
#
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES += libshared.la libshared-cairo.la
|
|
|
|
|
|
|
|
libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
|
|
|
|
|
|
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 \
|
2014-01-28 10:02:41 +04:00
|
|
|
shared/os-compatibility.c \
|
|
|
|
shared/os-compatibility.h
|
|
|
|
|
|
|
|
libshared_cairo_la_CFLAGS = \
|
|
|
|
-DDATADIR='"$(datadir)"' \
|
|
|
|
$(GCC_CFLAGS) \
|
|
|
|
$(COMPOSITOR_CFLAGS) \
|
|
|
|
$(PIXMAN_CFLAGS) \
|
|
|
|
$(CAIRO_CFLAGS) \
|
|
|
|
$(PNG_CFLAGS) \
|
|
|
|
$(WEBP_CFLAGS)
|
|
|
|
|
|
|
|
libshared_cairo_la_LIBADD = \
|
|
|
|
$(PIXMAN_LIBS) \
|
|
|
|
$(CAIRO_LIBS) \
|
|
|
|
$(PNG_LIBS) \
|
|
|
|
$(WEBP_LIBS) \
|
|
|
|
$(JPEG_LIBS)
|
|
|
|
|
|
|
|
libshared_cairo_la_SOURCES = \
|
|
|
|
$(libshared_la_SOURCES) \
|
|
|
|
shared/image-loader.c \
|
|
|
|
shared/image-loader.h \
|
|
|
|
shared/cairo-util.c \
|
|
|
|
shared/frame.c \
|
|
|
|
shared/cairo-util.h
|
|
|
|
|
|
|
|
|
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 \
|
|
|
|
vertex-clip.test
|
|
|
|
|
|
|
|
module_tests = \
|
|
|
|
surface-test.la \
|
|
|
|
surface-global-test.la
|
|
|
|
|
|
|
|
weston_tests = \
|
|
|
|
bad_buffer.weston \
|
|
|
|
keyboard.weston \
|
|
|
|
event.weston \
|
|
|
|
button.weston \
|
|
|
|
text.weston \
|
2014-09-24 06:08:48 +04:00
|
|
|
presentation.weston \
|
2014-10-01 17:34:48 +04:00
|
|
|
roles.weston \
|
2015-03-30 16:21:29 +03:00
|
|
|
subsurface.weston \
|
|
|
|
devices.weston
|
2014-02-01 02:03:09 +04:00
|
|
|
|
2015-03-24 14:51:05 +03:00
|
|
|
ivi_tests =
|
|
|
|
|
|
|
|
$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
|
2014-02-01 02:03:09 +04:00
|
|
|
|
|
|
|
AM_TESTS_ENVIRONMENT = \
|
2015-04-16 01:31:11 +03:00
|
|
|
abs_builddir='$(abs_builddir)'; export abs_builddir; \
|
|
|
|
abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
|
2014-02-01 02:03:09 +04:00
|
|
|
|
|
|
|
TEST_EXTENSIONS = .la .weston
|
|
|
|
LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
|
|
|
|
WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
|
|
|
|
|
|
|
|
clean-local:
|
2014-05-12 11:08:57 +04:00
|
|
|
-rm -rf logs
|
2014-02-01 02:03:09 +04:00
|
|
|
|
|
|
|
# To remove when automake 1.11 support is dropped
|
|
|
|
export abs_builddir
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES += \
|
|
|
|
weston-test.la \
|
|
|
|
$(module_tests) \
|
|
|
|
libtest-runner.la \
|
|
|
|
libtest-client.la
|
|
|
|
|
|
|
|
noinst_PROGRAMS += \
|
|
|
|
$(setbacklight) \
|
2014-11-05 03:39:38 +03:00
|
|
|
$(internal_tests) \
|
2014-02-01 02:03:09 +04:00
|
|
|
$(shared_tests) \
|
|
|
|
$(weston_tests) \
|
2015-03-24 14:51:05 +03:00
|
|
|
$(ivi_tests) \
|
2014-02-01 02:03:09 +04:00
|
|
|
matrix-test
|
|
|
|
|
|
|
|
test_module_ldflags = \
|
|
|
|
-module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
|
|
|
|
|
|
|
|
surface_global_test_la_SOURCES = tests/surface-global-test.c
|
|
|
|
surface_global_test_la_LDFLAGS = $(test_module_ldflags)
|
|
|
|
surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
|
|
|
|
|
|
surface_test_la_SOURCES = tests/surface-test.c
|
|
|
|
surface_test_la_LDFLAGS = $(test_module_ldflags)
|
|
|
|
surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
|
|
|
2014-01-28 10:02:41 +04:00
|
|
|
weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
|
2014-02-01 02:03:09 +04:00
|
|
|
weston_test_la_LDFLAGS = $(test_module_ldflags)
|
|
|
|
weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
|
2014-02-02 09:52:17 +04:00
|
|
|
weston_test_la_SOURCES = tests/weston-test.c
|
|
|
|
nodist_weston_test_la_SOURCES = \
|
2015-02-24 18:32:14 +03:00
|
|
|
protocol/weston-test-protocol.c \
|
|
|
|
protocol/weston-test-server-protocol.h
|
2014-02-01 02:03:09 +04:00
|
|
|
|
|
|
|
if ENABLE_EGL
|
|
|
|
weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
|
|
|
|
weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
libtest_runner_la_SOURCES = \
|
|
|
|
tests/weston-test-runner.c \
|
|
|
|
tests/weston-test-runner.h
|
|
|
|
libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
|
|
|
|
|
|
config_parser_test_SOURCES = tests/config-parser-test.c
|
2014-01-28 10:02:41 +04:00
|
|
|
config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
|
2014-02-01 02:03:09 +04:00
|
|
|
|
|
|
|
vertex_clip_test_SOURCES = \
|
|
|
|
tests/vertex-clip-test.c \
|
|
|
|
src/vertex-clipping.c \
|
|
|
|
src/vertex-clipping.h
|
|
|
|
vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
|
|
|
|
|
2014-02-02 00:39:12 +04:00
|
|
|
libtest_client_la_SOURCES = \
|
2014-02-01 02:03:09 +04:00
|
|
|
tests/weston-test-client-helper.c \
|
2014-02-02 09:52:17 +04:00
|
|
|
tests/weston-test-client-helper.h
|
|
|
|
nodist_libtest_client_la_SOURCES = \
|
2015-02-24 18:32:14 +03:00
|
|
|
protocol/weston-test-protocol.c \
|
|
|
|
protocol/weston-test-client-protocol.h
|
2014-02-03 23:05:41 +04:00
|
|
|
libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
2014-01-28 10:02:41 +04:00
|
|
|
libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
|
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
|
|
|
|
internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
|
|
|
|
internal_screenshot_weston_LDADD = libtest-client.la $(CAIRO_LIBS)
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Weston Tests
|
|
|
|
#
|
|
|
|
|
2014-02-01 02:03:09 +04:00
|
|
|
bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
|
2014-02-03 23:05:41 +04:00
|
|
|
bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
2014-02-01 02:03:09 +04:00
|
|
|
bad_buffer_weston_LDADD = libtest-client.la
|
|
|
|
|
|
|
|
keyboard_weston_SOURCES = tests/keyboard-test.c
|
2014-02-03 23:05:41 +04:00
|
|
|
keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
2014-02-01 02:03:09 +04:00
|
|
|
keyboard_weston_LDADD = libtest-client.la
|
|
|
|
|
|
|
|
event_weston_SOURCES = tests/event-test.c
|
2014-02-03 23:05:41 +04:00
|
|
|
event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
2014-02-01 02:03:09 +04:00
|
|
|
event_weston_LDADD = libtest-client.la
|
|
|
|
|
|
|
|
button_weston_SOURCES = tests/button-test.c
|
2014-02-03 23:05:41 +04:00
|
|
|
button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
2014-02-01 02:03:09 +04:00
|
|
|
button_weston_LDADD = libtest-client.la
|
|
|
|
|
2015-03-30 16:21:29 +03:00
|
|
|
devices_weston_SOURCES = tests/devices-test.c
|
|
|
|
devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
|
|
|
devices_weston_LDADD = libtest-client.la
|
|
|
|
|
2014-02-02 09:52:17 +04:00
|
|
|
text_weston_SOURCES = tests/text-test.c
|
|
|
|
nodist_text_weston_SOURCES = \
|
|
|
|
protocol/text-protocol.c \
|
|
|
|
protocol/text-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
|
|
|
|
|
2014-09-24 06:08:48 +04:00
|
|
|
presentation_weston_SOURCES = tests/presentation-test.c
|
|
|
|
nodist_presentation_weston_SOURCES = \
|
|
|
|
protocol/presentation_timing-protocol.c \
|
|
|
|
protocol/presentation_timing-client-protocol.h
|
|
|
|
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
|
|
|
|
|
2014-02-01 02:03:09 +04:00
|
|
|
if ENABLE_EGL
|
|
|
|
weston_tests += buffer-count.weston
|
|
|
|
buffer_count_weston_SOURCES = tests/buffer-count-test.c
|
|
|
|
buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
|
|
|
|
buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_XWAYLAND_TEST
|
2014-05-07 17:26:29 +04:00
|
|
|
weston_tests += xwayland-test.weston
|
|
|
|
xwayland_test_weston_SOURCES = tests/xwayland-test.c
|
|
|
|
xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
|
|
|
|
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
|
|
|
|
matrix_test_LDADD = -lm -lrt
|
|
|
|
|
2015-03-23 14:55:06 +03:00
|
|
|
if ENABLE_IVI_SHELL
|
tests: ivi_layout test infrastructure
Testing the ivi_layout API requires two things:
- the tests must be written as a controller module to access the API
- the tests need a helper client to create some objects that can then be
managed via the API
This patch adds all the infrastructure and two different kinds of
example tests.
Internal ivi-shell (ivi_layout) API tests are listed as ivi-*.la files
in TESTS in Makefile.am. Weston-tests-env detects these, and runs Weston
with ivi-shell, and loads the given module as a controller module, not
as a normal plugin.
The test controller module ivi-*.la will launch a helper client. For
ivi-layout-test.la the helper client is ivi-layout.ivi.
The helper client uses the weston-test-runner framework to fork and exec
each TEST with a fresh connection to the compositor.
The actual test is triggered by the weston_test_runner protocol
interface, a new addition to weston-test.xml. The helper client uses
weston_test_runner to trigger a test, and the server side of the
interface is implemented by the test controller module
(ivi-layout-test.la).
The server side of weston_test_runner uses the same trick as
weston-test-runner.h to gather a list of defined tests. A test is
defined with the RUNNER_TEST macro.
If a test defined by RUNNER_TEST succeeds, an event is sent to the
helper client that it can continue (or exit). If a test fails, a fatal
protocol error is sent to the helper client.
Once the helper client has iterated over all of its tests, it signals
the batch success/failure via process exit code. That is cought in the
test controller module, and forwarded as Weston's exit code.
In summary: each ivi_layout test is a combination of a client side
helper/setup and server side actual tests.
v2: Load weston-test.so, because create_client() needs it.
v3: add a comment about IVI_TEST_SURFACE_ID_BASE.
v4: Rebased to upstream weston-tests-env changes.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com> (v2)
2015-03-25 13:50:31 +03:00
|
|
|
module_tests += \
|
2015-03-27 12:55:21 +03:00
|
|
|
ivi-layout-internal-test.la \
|
tests: ivi_layout test infrastructure
Testing the ivi_layout API requires two things:
- the tests must be written as a controller module to access the API
- the tests need a helper client to create some objects that can then be
managed via the API
This patch adds all the infrastructure and two different kinds of
example tests.
Internal ivi-shell (ivi_layout) API tests are listed as ivi-*.la files
in TESTS in Makefile.am. Weston-tests-env detects these, and runs Weston
with ivi-shell, and loads the given module as a controller module, not
as a normal plugin.
The test controller module ivi-*.la will launch a helper client. For
ivi-layout-test.la the helper client is ivi-layout.ivi.
The helper client uses the weston-test-runner framework to fork and exec
each TEST with a fresh connection to the compositor.
The actual test is triggered by the weston_test_runner protocol
interface, a new addition to weston-test.xml. The helper client uses
weston_test_runner to trigger a test, and the server side of the
interface is implemented by the test controller module
(ivi-layout-test.la).
The server side of weston_test_runner uses the same trick as
weston-test-runner.h to gather a list of defined tests. A test is
defined with the RUNNER_TEST macro.
If a test defined by RUNNER_TEST succeeds, an event is sent to the
helper client that it can continue (or exit). If a test fails, a fatal
protocol error is sent to the helper client.
Once the helper client has iterated over all of its tests, it signals
the batch success/failure via process exit code. That is cought in the
test controller module, and forwarded as Weston's exit code.
In summary: each ivi_layout test is a combination of a client side
helper/setup and server side actual tests.
v2: Load weston-test.so, because create_client() needs it.
v3: add a comment about IVI_TEST_SURFACE_ID_BASE.
v4: Rebased to upstream weston-tests-env changes.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com> (v2)
2015-03-25 13:50:31 +03:00
|
|
|
ivi-layout-test.la
|
|
|
|
|
2015-03-27 12:55:21 +03:00
|
|
|
ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
|
|
|
|
ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
|
|
|
|
ivi_layout_internal_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
|
|
ivi_layout_internal_test_la_SOURCES = \
|
|
|
|
tests/ivi_layout-internal-test.c
|
|
|
|
|
tests: ivi_layout test infrastructure
Testing the ivi_layout API requires two things:
- the tests must be written as a controller module to access the API
- the tests need a helper client to create some objects that can then be
managed via the API
This patch adds all the infrastructure and two different kinds of
example tests.
Internal ivi-shell (ivi_layout) API tests are listed as ivi-*.la files
in TESTS in Makefile.am. Weston-tests-env detects these, and runs Weston
with ivi-shell, and loads the given module as a controller module, not
as a normal plugin.
The test controller module ivi-*.la will launch a helper client. For
ivi-layout-test.la the helper client is ivi-layout.ivi.
The helper client uses the weston-test-runner framework to fork and exec
each TEST with a fresh connection to the compositor.
The actual test is triggered by the weston_test_runner protocol
interface, a new addition to weston-test.xml. The helper client uses
weston_test_runner to trigger a test, and the server side of the
interface is implemented by the test controller module
(ivi-layout-test.la).
The server side of weston_test_runner uses the same trick as
weston-test-runner.h to gather a list of defined tests. A test is
defined with the RUNNER_TEST macro.
If a test defined by RUNNER_TEST succeeds, an event is sent to the
helper client that it can continue (or exit). If a test fails, a fatal
protocol error is sent to the helper client.
Once the helper client has iterated over all of its tests, it signals
the batch success/failure via process exit code. That is cought in the
test controller module, and forwarded as Weston's exit code.
In summary: each ivi_layout test is a combination of a client side
helper/setup and server side actual tests.
v2: Load weston-test.so, because create_client() needs it.
v3: add a comment about IVI_TEST_SURFACE_ID_BASE.
v4: Rebased to upstream weston-tests-env changes.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com> (v2)
2015-03-25 13:50:31 +03:00
|
|
|
ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
|
|
|
|
ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
|
|
|
|
ivi_layout_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
|
|
ivi_layout_test_la_SOURCES = \
|
|
|
|
tests/ivi_layout-test-plugin.c \
|
|
|
|
tests/ivi-test.h
|
|
|
|
nodist_ivi_layout_test_la_SOURCES = \
|
|
|
|
protocol/weston-test-protocol.c \
|
|
|
|
protocol/weston-test-server-protocol.h
|
|
|
|
|
2015-03-23 14:55:06 +03:00
|
|
|
ivi_tests += \
|
|
|
|
ivi-shell-app.weston
|
|
|
|
|
|
|
|
ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
|
|
|
|
nodist_ivi_shell_app_weston_SOURCES = \
|
|
|
|
protocol/ivi-application-protocol.c \
|
|
|
|
protocol/ivi-application-client-protocol.h
|
|
|
|
ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
|
|
|
ivi_shell_app_weston_LDADD = libtest-client.la
|
tests: ivi_layout test infrastructure
Testing the ivi_layout API requires two things:
- the tests must be written as a controller module to access the API
- the tests need a helper client to create some objects that can then be
managed via the API
This patch adds all the infrastructure and two different kinds of
example tests.
Internal ivi-shell (ivi_layout) API tests are listed as ivi-*.la files
in TESTS in Makefile.am. Weston-tests-env detects these, and runs Weston
with ivi-shell, and loads the given module as a controller module, not
as a normal plugin.
The test controller module ivi-*.la will launch a helper client. For
ivi-layout-test.la the helper client is ivi-layout.ivi.
The helper client uses the weston-test-runner framework to fork and exec
each TEST with a fresh connection to the compositor.
The actual test is triggered by the weston_test_runner protocol
interface, a new addition to weston-test.xml. The helper client uses
weston_test_runner to trigger a test, and the server side of the
interface is implemented by the test controller module
(ivi-layout-test.la).
The server side of weston_test_runner uses the same trick as
weston-test-runner.h to gather a list of defined tests. A test is
defined with the RUNNER_TEST macro.
If a test defined by RUNNER_TEST succeeds, an event is sent to the
helper client that it can continue (or exit). If a test fails, a fatal
protocol error is sent to the helper client.
Once the helper client has iterated over all of its tests, it signals
the batch success/failure via process exit code. That is cought in the
test controller module, and forwarded as Weston's exit code.
In summary: each ivi_layout test is a combination of a client side
helper/setup and server side actual tests.
v2: Load weston-test.so, because create_client() needs it.
v3: add a comment about IVI_TEST_SURFACE_ID_BASE.
v4: Rebased to upstream weston-tests-env changes.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com> (v2)
2015-03-25 13:50:31 +03:00
|
|
|
|
|
|
|
noinst_PROGRAMS += ivi-layout.ivi
|
|
|
|
|
|
|
|
ivi_layout_ivi_SOURCES = \
|
|
|
|
tests/ivi_layout-test.c \
|
|
|
|
tests/ivi-test.h
|
|
|
|
nodist_ivi_layout_ivi_SOURCES = \
|
|
|
|
protocol/ivi-application-protocol.c \
|
|
|
|
protocol/ivi-application-client-protocol.h
|
|
|
|
ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
|
|
|
|
ivi_layout_ivi_LDADD = libtest-client.la
|
2015-03-23 14:55:06 +03:00
|
|
|
endif
|
|
|
|
|
2014-02-01 02:03:09 +04:00
|
|
|
if BUILD_SETBACKLIGHT
|
|
|
|
noinst_PROGRAMS += setbacklight
|
|
|
|
setbacklight_SOURCES = \
|
|
|
|
tests/setbacklight.c \
|
|
|
|
src/libbacklight.c \
|
|
|
|
src/libbacklight.h
|
|
|
|
setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
|
|
|
|
setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_DIST += tests/weston-tests-env
|
|
|
|
|
|
|
|
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 \
|
2014-02-02 00:39:12 +04:00
|
|
|
protocol/text-protocol.c \
|
|
|
|
protocol/text-client-protocol.h
|
2014-02-01 02:03:09 +04:00
|
|
|
|
2014-02-01 12:38:15 +04:00
|
|
|
EXTRA_DIST += \
|
2014-01-28 10:26:29 +04:00
|
|
|
protocol/desktop-shell.xml \
|
|
|
|
protocol/screenshooter.xml \
|
|
|
|
protocol/text.xml \
|
|
|
|
protocol/input-method.xml \
|
|
|
|
protocol/workspaces.xml \
|
|
|
|
protocol/text-cursor-position.xml \
|
2015-02-24 18:32:14 +03:00
|
|
|
protocol/weston-test.xml \
|
2014-01-28 10:26:29 +04:00
|
|
|
protocol/xdg-shell.xml \
|
2014-04-03 04:53:44 +04:00
|
|
|
protocol/fullscreen-shell.xml \
|
2014-09-24 06:08:42 +04:00
|
|
|
protocol/presentation_timing.xml \
|
2014-11-27 07:21:34 +03:00
|
|
|
protocol/scaler.xml \
|
2014-11-27 07:22:53 +03:00
|
|
|
protocol/ivi-application.xml \
|
|
|
|
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
|
|
|
|
|
|
|
|
surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
|
|
|
|
surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
|
|
|
|
surface_screenshot_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
|
|
|
|
surface_screenshot_la_SOURCES = tests/surface-screenshot.c
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Documentation
|
|
|
|
#
|
|
|
|
|
2014-01-28 10:33:04 +04:00
|
|
|
man_MANS = weston.1 weston.ini.5
|
|
|
|
|
|
|
|
if ENABLE_DRM_COMPOSITOR
|
|
|
|
man_MANS += weston-drm.7
|
|
|
|
endif
|
|
|
|
|
|
|
|
MAN_SUBSTS = \
|
|
|
|
-e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
|
|
|
|
-e 's|__weston_modules_dir__|$(pkglibdir)|g' \
|
|
|
|
-e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
|
|
|
|
-e 's|__version__|$(PACKAGE_VERSION)|g'
|
|
|
|
|
|
|
|
SUFFIXES = .1 .5 .7 .man
|
|
|
|
|
|
|
|
%.1 %.5 %.7 : man/%.man
|
|
|
|
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
man/weston.man \
|
|
|
|
man/weston-drm.man \
|
|
|
|
man/weston.ini.man
|
|
|
|
|
|
|
|
CLEANFILES += $(man_MANS)
|
|
|
|
|
|
|
|
|
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 < $< > $@
|