blob: 7743158ae6043050806b5474a8d6e6cc7532b85f [file] [log] [blame]
Thierry Reding0e6d9a72014-05-27 09:07:54 +02001ACLOCAL_AMFLAGS = -I m4
2
Kristian Høgsberge895f142014-01-27 21:46:30 -08003bin_PROGRAMS =
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -08004noinst_PROGRAMS =
Kristian Høgsberge73eccd2014-01-31 16:15:11 -08005libexec_PROGRAMS =
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -08006moduledir = $(libdir)/weston
7module_LTLIBRARIES =
Emil Velikov7fe47f32016-07-22 14:51:51 +01008libweston_moduledir = $(libdir)/libweston-$(LIBWESTON_MAJOR)
Giulio Camuffo179fcda2016-06-02 21:48:14 +03009libweston_module_LTLIBRARIES =
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080010noinst_LTLIBRARIES =
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -080011BUILT_SOURCES =
Kristian Høgsberge895f142014-01-27 21:46:30 -080012
Derek Foreman2ef9e812015-02-09 09:57:29 -060013AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
Kristian Høgsberg24639cc2013-02-25 13:03:15 -050014
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090015EXTRA_DIST = weston.ini.in ivi-shell/weston.ini.in
Neil Robertse3de16e2013-11-22 16:46:00 +000016
17weston.ini : $(srcdir)/weston.ini.in
18 $(AM_V_GEN)$(SED) \
19 -e 's|@bindir[@]|$(bindir)|g' \
20 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
21 -e 's|@libexecdir[@]|$(libexecdir)|g' \
22 $< > $@
23
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090024ivi-shell/weston.ini : $(srcdir)/ivi-shell/weston.ini.in
Ross Burton2eff22b2015-07-17 12:33:45 +010025 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090026 -e 's|@bindir[@]|$(bindir)|g' \
27 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
Pekka Paalanen8cb25872015-03-24 14:09:57 +020028 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090029 -e 's|@libexecdir[@]|$(libexecdir)|g' \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020030 -e 's|@plugin_prefix[@]||g' \
31 $< > $@
32
33tests/weston-ivi.ini : $(srcdir)/ivi-shell/weston.ini.in
Ross Burton2eff22b2015-07-17 12:33:45 +010034 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020035 -e 's|@bindir[@]|$(bindir)|g' \
36 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
Pekka Paalanen8cb25872015-03-24 14:09:57 +020037 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
Derek Foremanbbdd9bc2015-06-16 13:30:35 -050038 -e 's|@libexecdir[@]|$(abs_builddir)|g' \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020039 -e 's|@plugin_prefix[@]|$(abs_top_builddir)/.libs/|g' \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090040 $< > $@
41
42all-local : weston.ini ivi-shell/weston.ini
Kristian Høgsberg98463742013-12-16 23:12:46 -080043
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080044AM_CFLAGS = $(GCC_CFLAGS)
45
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080046AM_CPPFLAGS = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +030047 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +010048 -I$(top_srcdir)/libweston \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080049 -I$(top_builddir)/clients \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080050 -I$(top_builddir)/tests \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080051 -I$(top_srcdir)/shared \
Quentin Glidic088ba5e2014-02-01 21:39:12 +010052 -I$(top_builddir)/protocol \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080053 -DDATADIR='"$(datadir)"' \
Giulio Camuffo179fcda2016-06-02 21:48:14 +030054 -DLIBWESTON_MODULEDIR='"$(libweston_moduledir)"' \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080055 -DLIBEXECDIR='"$(libexecdir)"' \
56 -DBINDIR='"$(bindir)"'
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080057
Pekka Paalanenf3a34532015-03-24 13:51:05 +020058CLEANFILES = weston.ini \
59 ivi-shell/weston.ini \
60 tests/weston-ivi.ini \
Derek Foreman1ce2ef52015-05-26 10:21:03 -050061 internal-screenshot-00.png \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020062 $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080063
Quentin Glidic154c5d22016-08-15 17:29:09 +020064# Libtool race fix
65# libweston-desktop depends on libweston, and desktop-shell depends on both.
66# This leads to a libtool race at installation, because libtool re-links
67# everything.
68# If you add more fixes, you may need a workaround to keep automake generated
69# targets. See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
70install-libweston_moduleLTLIBRARIES install-moduleLTLIBRARIES: install-libLTLIBRARIES
71
Emil Velikov7fe47f32016-07-22 14:51:51 +010072lib_LTLIBRARIES = libweston-@LIBWESTON_MAJOR@.la
73libweston_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
74libweston_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
75libweston_@LIBWESTON_MAJOR@_la_LIBADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Giulio Camuffo8aedf7b2016-06-02 21:48:12 +030076 $(DLOPEN_LIBS) -lm $(CLOCK_GETTIME_LIBS) \
77 $(LIBINPUT_BACKEND_LIBS) libshared.la
Emil Velikov7fe47f32016-07-22 14:51:51 +010078libweston_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080079
Emil Velikov7fe47f32016-07-22 14:51:51 +010080libweston_@LIBWESTON_MAJOR@_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +030081 libweston/git-version.h \
82 libweston/log.c \
83 libweston/compositor.c \
84 libweston/compositor.h \
85 libweston/compositor-drm.h \
86 libweston/compositor-fbdev.h \
87 libweston/compositor-headless.h \
88 libweston/compositor-rdp.h \
89 libweston/compositor-wayland.h \
90 libweston/compositor-x11.h \
91 libweston/input.c \
92 libweston/data-device.c \
93 libweston/screenshooter.c \
94 libweston/clipboard.c \
95 libweston/zoom.c \
96 libweston/bindings.c \
97 libweston/animation.c \
98 libweston/noop-renderer.c \
99 libweston/pixman-renderer.c \
100 libweston/pixman-renderer.h \
Pekka Paalanen827b5d22016-06-29 11:54:26 +0200101 libweston/plugin-registry.c \
102 libweston/plugin-registry.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300103 libweston/timeline.c \
104 libweston/timeline.h \
105 libweston/timeline-object.h \
106 libweston/linux-dmabuf.c \
107 libweston/linux-dmabuf.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700108 shared/helpers.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800109 shared/matrix.c \
110 shared/matrix.h \
Pekka Paalanenaa21f622015-07-03 15:44:50 +0300111 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800112 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100113 shared/platform.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300114 libweston/weston-egl-ext.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300115
Quentin Glidic248dd102016-08-12 10:41:34 +0200116lib_LTLIBRARIES += libweston-desktop-@LIBWESTON_MAJOR@.la
117libweston_desktop_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
118libweston_desktop_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200119libweston_desktop_@LIBWESTON_MAJOR@_la_LIBADD = \
120 libweston-@LIBWESTON_MAJOR@.la \
121 $(COMPOSITOR_LIBS)
Quentin Glidic248dd102016-08-12 10:41:34 +0200122libweston_desktop_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
123
124libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES = \
125 libweston-desktop/client.c \
126 libweston-desktop/internal.h \
127 libweston-desktop/libweston-desktop.c \
128 libweston-desktop/libweston-desktop.h \
129 libweston-desktop/seat.c \
130 libweston-desktop/surface.c \
131 libweston-desktop/wl-shell.c \
Quentin Glidic9c5dd7e2016-08-12 10:41:37 +0200132 libweston-desktop/xdg-shell-v6.c \
Quentin Glidic248dd102016-08-12 10:41:34 +0200133 libweston-desktop/xdg-shell-v5.c \
134 libweston-desktop/xwayland.c
135
136nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES = \
Quentin Glidic9c5dd7e2016-08-12 10:41:37 +0200137 protocol/xdg-shell-unstable-v6-protocol.c \
138 protocol/xdg-shell-unstable-v6-server-protocol.h \
Quentin Glidic248dd102016-08-12 10:41:34 +0200139 protocol/xdg-shell-unstable-v5-protocol.c \
140 protocol/xdg-shell-unstable-v5-server-protocol.h
141
Jonas Ådahl5ac91a12016-08-15 17:31:02 +0800142BUILT_SOURCES += $(nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES)
143
Quentin Glidic9c5dd7e2016-08-12 10:41:37 +0200144libweston-desktop-@LIBWESTON_MAJOR@.la libweston-desktop/libweston_desktop_@LIBWESTON_MAJOR@_la-xdg-shell-v6.lo: protocol/xdg-shell-unstable-v6-server-protocol.h
Quentin Glidic248dd102016-08-12 10:41:34 +0200145libweston-desktop-@LIBWESTON_MAJOR@.la libweston-desktop/libweston_desktop_@LIBWESTON_MAJOR@_la-xdg-shell-v5.lo: protocol/xdg-shell-unstable-v5-server-protocol.h
146
Egor Starkov7ce2e972015-09-25 18:00:27 +0300147if SYSTEMD_NOTIFY_SUPPORT
148module_LTLIBRARIES += systemd-notify.la
149systemd_notify_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200150systemd_notify_la_LIBADD = libweston-@LIBWESTON_MAJOR@.la $(SYSTEMD_DAEMON_LIBS)
Egor Starkov7ce2e972015-09-25 18:00:27 +0300151systemd_notify_la_CFLAGS = \
Pekka Paalanenaff703e2016-04-05 14:08:11 +0300152 $(COMPOSITOR_CFLAGS) \
153 $(SYSTEMD_DAEMON_CFLAGS) \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300154 $(PIXMAN_CFLAGS) \
155 $(AM_CFLAGS)
156systemd_notify_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300157 compositor/systemd-notify.c \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300158 shared/helpers.h \
159 shared/zalloc.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300160 libweston/compositor.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300161endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800162
Emil Velikov7fe47f32016-07-22 14:51:51 +0100163nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800164 protocol/weston-screenshooter-protocol.c \
165 protocol/weston-screenshooter-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800166 protocol/text-cursor-position-protocol.c \
167 protocol/text-cursor-position-server-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800168 protocol/text-input-unstable-v1-protocol.c \
169 protocol/text-input-unstable-v1-server-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800170 protocol/input-method-unstable-v1-protocol.c \
171 protocol/input-method-unstable-v1-server-protocol.h \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200172 protocol/presentation-time-protocol.c \
173 protocol/presentation-time-server-protocol.h \
Pekka Paalanene95ad5c2016-04-15 14:47:08 +0300174 protocol/viewporter-protocol.c \
175 protocol/viewporter-server-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800176 protocol/linux-dmabuf-unstable-v1-protocol.c \
Jonas Ådahl30d61d82014-10-22 21:21:17 +0200177 protocol/linux-dmabuf-unstable-v1-server-protocol.h \
178 protocol/relative-pointer-unstable-v1-protocol.c \
Jonas Ådahld3414f22016-07-22 17:56:31 +0800179 protocol/relative-pointer-unstable-v1-server-protocol.h \
180 protocol/pointer-constraints-unstable-v1-protocol.c \
Bryce Harrington873a3f82016-08-30 12:05:01 -0700181 protocol/pointer-constraints-unstable-v1-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800182
Emil Velikov7fe47f32016-07-22 14:51:51 +0100183BUILT_SOURCES += $(nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES)
Giulio Camuffo9e445982016-06-02 21:48:15 +0300184
185bin_PROGRAMS += weston
186
187weston_LDFLAGS = -export-dynamic
188weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON \
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200189 -DMODULEDIR='"$(moduledir)"' \
190 -DXSERVER_PATH='"@XSERVER_PATH@"'
Giulio Camuffo9e445982016-06-02 21:48:15 +0300191weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
Emil Velikov67351452016-07-22 14:52:42 +0100192weston_LDADD = libshared.la libweston-@LIBWESTON_MAJOR@.la \
193 $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Giulio Camuffo9e445982016-06-02 21:48:15 +0300194 $(DLOPEN_LIBS) $(LIBINPUT_BACKEND_LIBS) \
Yann E. MORINb51e6ed2016-12-19 18:20:09 +0100195 $(CLOCK_GETRES_LIBS) \
Emil Velikov67351452016-07-22 14:52:42 +0100196 -lm
Giulio Camuffo9e445982016-06-02 21:48:15 +0300197
198weston_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300199 compositor/main.c \
200 compositor/weston-screenshooter.c \
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200201 compositor/text-backend.c \
202 compositor/xwayland.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800203
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800204# Track this dependency explicitly instead of using BUILT_SOURCES. We
205# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
206# in case we're building from tarballs.
207
Emil Velikova8840242016-07-04 14:57:12 +0100208compositor/main.c : $(top_builddir)/libweston/git-version.h
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300209libweston/compositor.c : $(top_builddir)/libweston/git-version.h
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800210
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800211noinst_LTLIBRARIES += \
212 libsession-helper.la
213
214libsession_helper_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300215 libweston/launcher-util.c \
216 libweston/launcher-util.h \
217 libweston/launcher-impl.h \
218 libweston/weston-launch.h \
219 libweston/launcher-weston-launch.c \
220 libweston/launcher-direct.c
Derek Foreman4ff38742015-06-18 11:43:11 -0500221libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200222libsession_helper_la_LIBADD = libweston-@LIBWESTON_MAJOR@.la $(LIBDRM_LIBS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800223
224if ENABLE_DBUS
225if HAVE_SYSTEMD_LOGIN
226libsession_helper_la_SOURCES += \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300227 libweston/dbus.h \
228 libweston/dbus.c \
229 libweston/launcher-logind.c
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800230libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
231libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
232endif
233endif
234
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800235if HAVE_GIT_REPO
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300236libweston/git-version.h : $(top_srcdir)/.git/logs/HEAD
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800237 $(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)')\"" > $@
Kristian Høgsberg1d2dd072014-02-03 10:55:51 -0800238else
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300239libweston/git-version.h :
Kristian Høgsberg1d2dd072014-02-03 10:55:51 -0800240 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
241
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800242endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800243
244.FORCE :
245
246if BUILD_WESTON_LAUNCH
247bin_PROGRAMS += weston-launch
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300248weston_launch_SOURCES = libweston/weston-launch.c libweston/weston-launch.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800249weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
250weston_launch_CFLAGS= \
Derek Foreman4ff38742015-06-18 11:43:11 -0500251 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800252 $(PAM_CFLAGS) \
253 $(SYSTEMD_LOGIN_CFLAGS) \
254 $(LIBDRM_CFLAGS)
255weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
256
257if ENABLE_SETUID_INSTALL
258install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700259 can_suid_files=no; \
260 chown root $(DESTDIR)$(bindir)/weston-launch \
261 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
262 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500263 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700264 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
265 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
266 false; \
267 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800268endif
269
270endif # BUILD_WESTON_LAUNCH
271
272pkgconfigdir = $(libdir)/pkgconfig
Quentin Glidic248dd102016-08-12 10:41:34 +0200273pkgconfig_DATA = \
274 libweston/libweston-${LIBWESTON_MAJOR}.pc \
275 libweston-desktop/libweston-desktop-${LIBWESTON_MAJOR}.pc \
276 compositor/weston.pc
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800277
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100278wayland_sessiondir = $(datadir)/wayland-sessions
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300279dist_wayland_session_DATA = compositor/weston.desktop
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100280
Emil Velikov7fe47f32016-07-22 14:51:51 +0100281libwestonincludedir = $(includedir)/libweston-${LIBWESTON_MAJOR}
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300282libwestoninclude_HEADERS = \
283 libweston/version.h \
284 libweston/compositor.h \
285 libweston/compositor-drm.h \
286 libweston/compositor-fbdev.h \
287 libweston/compositor-headless.h \
288 libweston/compositor-rdp.h \
289 libweston/compositor-wayland.h \
290 libweston/compositor-x11.h \
Armin Krezović4690c562016-09-30 14:11:03 +0200291 libweston/windowed-output-api.h \
Pekka Paalanen827b5d22016-06-29 11:54:26 +0200292 libweston/plugin-registry.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300293 libweston/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800294 shared/matrix.h \
295 shared/config-parser.h \
Emil Velikovcbcf5452016-07-04 15:34:17 +0100296 shared/zalloc.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800297
Quentin Glidic248dd102016-08-12 10:41:34 +0200298libwestoninclude_HEADERS += \
299 libweston-desktop/libweston-desktop.h
300
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300301westonincludedir = $(includedir)/weston
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300302westoninclude_HEADERS = compositor/weston.h
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300303
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000304if ENABLE_IVI_SHELL
305westoninclude_HEADERS += \
306 ivi-shell/ivi-layout-export.h
307endif
308
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800309if ENABLE_EGL
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300310libweston_module_LTLIBRARIES += gl-renderer.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800311gl_renderer_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200312gl_renderer_la_LIBADD = \
313 libweston-@LIBWESTON_MAJOR@.la \
314 $(EGL_LIBS) \
315 $(COMPOSITOR_LIBS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800316gl_renderer_la_CFLAGS = \
317 $(COMPOSITOR_CFLAGS) \
318 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300319 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500320 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800321gl_renderer_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300322 libweston/gl-renderer.h \
323 libweston/gl-renderer.c \
324 libweston/vertex-clipping.c \
325 libweston/vertex-clipping.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700326 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800327endif
328
329if ENABLE_X11_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300330libweston_module_LTLIBRARIES += x11-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800331x11_backend_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200332x11_backend_la_LIBADD = \
333 libshared-cairo.la \
334 libweston-@LIBWESTON_MAJOR@.la \
335 $(X11_COMPOSITOR_LIBS) \
336 $(COMPOSITOR_LIBS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800337x11_backend_la_CFLAGS = \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200338 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800339 $(COMPOSITOR_CFLAGS) \
340 $(EGL_CFLAGS) \
341 $(PIXMAN_CFLAGS) \
342 $(CAIRO_CFLAGS) \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200343 $(X11_COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700344x11_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300345 libweston/compositor-x11.c \
346 libweston/compositor-x11.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700347 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800348endif
349
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100350INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000351INPUT_BACKEND_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300352 libweston/libinput-seat.c \
353 libweston/libinput-seat.h \
354 libweston/libinput-device.c \
355 libweston/libinput-device.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700356 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100357
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800358if ENABLE_DRM_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300359libweston_module_LTLIBRARIES += drm-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800360drm_backend_la_LDFLAGS = -module -avoid-version
361drm_backend_la_LIBADD = \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200362 libsession-helper.la \
363 libweston-@LIBWESTON_MAJOR@.la \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800364 $(COMPOSITOR_LIBS) \
365 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100366 $(INPUT_BACKEND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300367 libshared.la \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200368 $(CLOCK_GETTIME_LIBS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800369drm_backend_la_CFLAGS = \
370 $(COMPOSITOR_CFLAGS) \
371 $(EGL_CFLAGS) \
372 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500373 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800374drm_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300375 libweston/compositor-drm.c \
376 libweston/compositor-drm.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100377 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700378 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200379 shared/timespec-util.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300380 libweston/libbacklight.c \
381 libweston/libbacklight.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800382
383if ENABLE_VAAPI_RECORDER
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300384drm_backend_la_SOURCES += libweston/vaapi-recorder.c libweston/vaapi-recorder.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800385drm_backend_la_LIBADD += $(LIBVA_LIBS)
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200386drm_backend_la_LDFLAGS += -pthread
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800387drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
388endif
389endif
390
391if ENABLE_WAYLAND_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300392libweston_module_LTLIBRARIES += wayland-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800393wayland_backend_la_LDFLAGS = -module -avoid-version
394wayland_backend_la_LIBADD = \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200395 libshared-cairo.la \
396 libweston-@LIBWESTON_MAJOR@.la \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800397 $(COMPOSITOR_LIBS) \
Armin Krezovićb08e1a52016-12-09 22:58:27 +0100398 $(WAYLAND_COMPOSITOR_EGL_LIBS) \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200399 $(WAYLAND_COMPOSITOR_LIBS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800400wayland_backend_la_CFLAGS = \
401 $(COMPOSITOR_CFLAGS) \
402 $(EGL_CFLAGS) \
403 $(PIXMAN_CFLAGS) \
404 $(CAIRO_CFLAGS) \
405 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500406 $(AM_CFLAGS)
Armin Krezović34476192016-11-21 18:42:42 +0100407wayland_backend_la_SOURCES = \
408 libweston/compositor-wayland.c \
409 libweston/compositor-wayland.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700410 shared/helpers.h
Pekka Paalanen9f3d95e2016-11-23 11:46:57 +0200411nodist_wayland_backend_la_SOURCES = \
412 protocol/fullscreen-shell-unstable-v1-protocol.c \
413 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
414 protocol/xdg-shell-unstable-v6-protocol.c \
415 protocol/xdg-shell-unstable-v6-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800416endif
417
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800418if ENABLE_HEADLESS_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300419libweston_module_LTLIBRARIES += headless-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800420headless_backend_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200421headless_backend_la_LIBADD = \
422 libshared.la \
423 libweston-@LIBWESTON_MAJOR@.la \
424 $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500425headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700426headless_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300427 libweston/compositor-headless.c \
428 libweston/compositor-headless.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700429 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800430endif
431
432if ENABLE_FBDEV_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300433libweston_module_LTLIBRARIES += fbdev-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800434fbdev_backend_la_LDFLAGS = -module -avoid-version
435fbdev_backend_la_LIBADD = \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200436 libshared.la \
437 libsession-helper.la \
438 libweston-@LIBWESTON_MAJOR@.la \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800439 $(COMPOSITOR_LIBS) \
440 $(FBDEV_COMPOSITOR_LIBS) \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200441 $(INPUT_BACKEND_LIBS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800442fbdev_backend_la_CFLAGS = \
443 $(COMPOSITOR_CFLAGS) \
444 $(EGL_CFLAGS) \
445 $(FBDEV_COMPOSITOR_CFLAGS) \
446 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500447 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800448fbdev_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300449 libweston/compositor-fbdev.c \
450 libweston/compositor-fbdev.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700451 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100452 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800453endif
454
455if ENABLE_RDP_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300456libweston_module_LTLIBRARIES += rdp-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800457rdp_backend_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200458rdp_backend_la_LIBADD = \
459 libshared.la \
460 libweston-@LIBWESTON_MAJOR@.la \
461 $(COMPOSITOR_LIBS) \
462 $(RDP_COMPOSITOR_LIBS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800463rdp_backend_la_CFLAGS = \
464 $(COMPOSITOR_CFLAGS) \
465 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500466 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700467rdp_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300468 libweston/compositor-rdp.c \
469 libweston/compositor-rdp.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700470 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800471endif
472
473if HAVE_LCMS
474module_LTLIBRARIES += cms-static.la
475cms_static_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200476cms_static_la_LIBADD = \
477 libshared.la \
478 libweston-@LIBWESTON_MAJOR@.la \
479 $(LCMS_LIBS) \
480 $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500481cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800482cms_static_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300483 compositor/cms-static.c \
484 compositor/cms-helper.c \
485 compositor/cms-helper.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700486 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800487if ENABLE_COLORD
488module_LTLIBRARIES += cms-colord.la
489cms_colord_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200490cms_colord_la_LIBADD = \
491 libshared.la \
492 libweston-@LIBWESTON_MAJOR@.la \
493 $(COLORD_LIBS) \
494 $(LCMS_LIBS) \
495 $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500496cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800497cms_colord_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300498 compositor/cms-colord.c \
499 compositor/cms-helper.c \
500 compositor/cms-helper.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700501 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800502endif
503endif
504
505noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500506spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800507spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
508spring_tool_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300509 libweston/spring-tool.c \
510 libweston/animation.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800511 shared/matrix.c \
512 shared/matrix.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300513 libweston/compositor.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800514
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800515if BUILD_CLIENTS
516
517bin_PROGRAMS += weston-terminal weston-info
518
519libexec_PROGRAMS += \
520 weston-desktop-shell \
521 weston-screenshooter \
522 weston-keyboard \
523 weston-simple-im
524
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900525if ENABLE_IVI_SHELL
526libexec_PROGRAMS += \
527 weston-ivi-shell-user-interface
528endif
529
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800530demo_clients = \
531 weston-flower \
532 weston-image \
533 weston-cliptest \
534 weston-dnd \
535 weston-smoke \
536 weston-resizor \
537 weston-eventdemo \
538 weston-clickdot \
Jonas Ådahl61831f42016-03-15 18:14:00 +0800539 weston-confine \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800540 weston-transformed \
541 weston-fullscreen \
542 weston-stacking \
543 weston-calibrator \
544 weston-scaler
545
546if INSTALL_DEMO_CLIENTS
547bin_PROGRAMS += $(demo_clients)
548else
549noinst_PROGRAMS += $(demo_clients)
550endif
551
552
553if BUILD_SIMPLE_CLIENTS
554demo_clients += \
555 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500556 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800557 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400558 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800559 weston-multi-resource
560
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800561weston_simple_shm_SOURCES = clients/simple-shm.c
562nodist_weston_simple_shm_SOURCES = \
Jonas Ådahle023cbc2016-08-11 23:29:38 +0800563 protocol/xdg-shell-unstable-v6-protocol.c \
564 protocol/xdg-shell-unstable-v6-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800565 protocol/fullscreen-shell-unstable-v1-protocol.c \
566 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900567 protocol/ivi-application-protocol.c \
568 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800569weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800570weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800571
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500572weston_simple_damage_SOURCES = clients/simple-damage.c
573nodist_weston_simple_damage_SOURCES = \
Pekka Paalanen7b69d6c2016-04-15 17:00:21 +0300574 protocol/viewporter-protocol.c \
575 protocol/viewporter-client-protocol.h \
Jonas Ådahla74eff92016-08-11 23:39:31 +0800576 protocol/xdg-shell-unstable-v6-protocol.c \
577 protocol/xdg-shell-unstable-v6-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800578 protocol/fullscreen-shell-unstable-v1-protocol.c \
579 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500580weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
581weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
582
Jon A. Cruzb09da242015-06-16 13:15:13 -0700583weston_simple_touch_SOURCES = \
584 clients/simple-touch.c \
585 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800586weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800587weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800588
Jon A. Cruzb09da242015-06-16 13:15:13 -0700589weston_presentation_shm_SOURCES = \
590 clients/presentation-shm.c \
591 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400592nodist_weston_presentation_shm_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200593 protocol/presentation-time-protocol.c \
594 protocol/presentation-time-client-protocol.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400595weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300596weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400597
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800598weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800599weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300600weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800601endif
602
603if BUILD_SIMPLE_EGL_CLIENTS
604demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800605weston_simple_egl_SOURCES = clients/simple-egl.c
606nodist_weston_simple_egl_SOURCES = \
Jonas Ådahl83630022016-08-11 23:13:20 +0800607 protocol/xdg-shell-unstable-v6-protocol.c \
608 protocol/xdg-shell-unstable-v6-client-protocol.h \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900609 protocol/ivi-application-protocol.c \
610 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800611weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800612weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
613endif
614
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000615if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
616demo_clients += weston-simple-dmabuf-intel
617weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
618nodist_weston_simple_dmabuf_intel_SOURCES = \
Jonas Ådahl42682622016-08-11 23:44:41 +0800619 protocol/xdg-shell-unstable-v6-protocol.c \
620 protocol/xdg-shell-unstable-v6-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800621 protocol/fullscreen-shell-unstable-v1-protocol.c \
622 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800623 protocol/linux-dmabuf-unstable-v1-protocol.c \
624 protocol/linux-dmabuf-unstable-v1-client-protocol.h
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000625weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
626weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800627BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200628endif
629
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000630if BUILD_SIMPLE_DMABUF_V4L_CLIENT
631demo_clients += weston-simple-dmabuf-v4l
632weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
633nodist_weston_simple_dmabuf_v4l_SOURCES = \
Jonas Ådahl6ccd2862016-08-12 10:01:29 +0800634 protocol/xdg-shell-unstable-v6-protocol.c \
635 protocol/xdg-shell-unstable-v6-client-protocol.h \
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000636 protocol/fullscreen-shell-unstable-v1-protocol.c \
637 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
638 protocol/linux-dmabuf-unstable-v1-protocol.c \
639 protocol/linux-dmabuf-unstable-v1-client-protocol.h
640weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
641weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
642BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
643endif
644
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800645noinst_LTLIBRARIES += libtoytoolkit.la
646
647libtoytoolkit_la_SOURCES = \
648 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700649 clients/window.h \
650 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800651
652nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100653 protocol/text-cursor-position-protocol.c \
654 protocol/text-cursor-position-client-protocol.h \
Pekka Paalanen73511002016-04-15 16:53:41 +0300655 protocol/viewporter-protocol.c \
656 protocol/viewporter-client-protocol.h \
Jonas Ådahlaf7f98b2016-08-09 18:15:43 +0800657 protocol/xdg-shell-unstable-v6-protocol.c \
658 protocol/xdg-shell-unstable-v6-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900659 protocol/ivi-application-protocol.c \
Jonas Ådahle5a1bb42014-11-25 10:25:27 +0800660 protocol/ivi-application-client-protocol.h \
661 protocol/pointer-constraints-unstable-v1-protocol.c \
662 protocol/pointer-constraints-unstable-v1-client-protocol.h \
663 protocol/relative-pointer-unstable-v1-protocol.c \
664 protocol/relative-pointer-unstable-v1-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500665
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800666BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
667
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800668
669libtoytoolkit_la_LIBADD = \
670 $(CLIENT_LIBS) \
671 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300672 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800673libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800674
675weston_flower_SOURCES = clients/flower.c
676weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800677weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800678
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100679weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800680 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800681nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800682 protocol/weston-screenshooter-protocol.c \
683 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800684weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800685weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800686
Jon A. Cruzb09da242015-06-16 13:15:13 -0700687weston_terminal_SOURCES = \
688 clients/terminal.c \
689 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800690weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800691weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800692
693weston_image_SOURCES = clients/image.c
694weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800695weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800696
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300697weston_cliptest_SOURCES = \
698 clients/cliptest.c \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300699 libweston/vertex-clipping.c \
700 libweston/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800701weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800702weston_cliptest_LDADD = libtoytoolkit.la
703
Jon A. Cruzb09da242015-06-16 13:15:13 -0700704weston_dnd_SOURCES = \
705 clients/dnd.c \
706 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800707weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800708weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800709
710weston_smoke_SOURCES = clients/smoke.c
711weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800712weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800713
714weston_resizor_SOURCES = clients/resizor.c
715weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800716weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800717
718weston_scaler_SOURCES = clients/scaler.c
719weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800720weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800721
722if HAVE_CAIRO_GLESV2
723demo_clients += weston-nested weston-nested-client
724
Jon A. Cruzb09da242015-06-16 13:15:13 -0700725weston_nested_SOURCES = \
726 clients/nested.c \
727 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800728weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800729weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800730
731weston_nested_client_SOURCES = clients/nested-client.c
732weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800733weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800734endif
735
Jon A. Cruzb09da242015-06-16 13:15:13 -0700736weston_eventdemo_SOURCES = \
737 clients/eventdemo.c \
738 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800739weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800740weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800741
Jon A. Cruzb09da242015-06-16 13:15:13 -0700742weston_clickdot_SOURCES = \
743 clients/clickdot.c \
744 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800745weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800746weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800747
Jonas Ådahl61831f42016-03-15 18:14:00 +0800748weston_confine_SOURCES = \
749 clients/confine.c \
750 shared/helpers.h
751weston_confine_LDADD = libtoytoolkit.la
752weston_confine_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
753
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800754weston_transformed_SOURCES = clients/transformed.c
755weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800756weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800757
758weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500759nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800760 protocol/fullscreen-shell-unstable-v1-protocol.c \
761 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800762weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800763weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800764
Jon A. Cruzb09da242015-06-16 13:15:13 -0700765weston_stacking_SOURCES = \
766 clients/stacking.c \
767 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800768weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800769weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800770
Jon A. Cruzb09da242015-06-16 13:15:13 -0700771weston_calibrator_SOURCES = \
772 clients/calibrator.c \
773 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800774 shared/matrix.c \
775 shared/matrix.h
776weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800777weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800778
779if BUILD_SUBSURFACES_CLIENT
780demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700781weston_subsurfaces_SOURCES = \
782 clients/subsurfaces.c \
783 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800784weston_subsurfaces_CFLAGS = \
785 $(AM_CFLAGS) \
786 $(SIMPLE_EGL_CLIENT_CFLAGS) \
787 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800788weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
789endif
790
791if HAVE_PANGO
792demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700793weston_editor_SOURCES = \
794 clients/editor.c \
795 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800796nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800797 protocol/text-input-unstable-v1-protocol.c \
798 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800799weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800800weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800801endif
802
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800803weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800804nodist_weston_keyboard_SOURCES = \
805 protocol/weston-desktop-shell-client-protocol.h \
806 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800807 protocol/input-method-unstable-v1-protocol.c \
808 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800809weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800810weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800811
Bryce Harringtonc6a899d2016-10-11 16:24:05 -0700812weston_simple_im_SOURCES = clients/simple-im.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800813nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800814 protocol/input-method-unstable-v1-protocol.c \
815 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800816weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800817weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800818
Jon A. Cruzb09da242015-06-16 13:15:13 -0700819weston_info_SOURCES = \
820 clients/weston-info.c \
821 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400822nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200823 protocol/presentation-time-protocol.c \
824 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800825weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200826weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800827
Jon A. Cruzb09da242015-06-16 13:15:13 -0700828weston_desktop_shell_SOURCES = \
829 clients/desktop-shell.c \
830 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800831nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800832 protocol/weston-desktop-shell-client-protocol.h \
833 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800834weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800835weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800836
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900837if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700838weston_ivi_shell_user_interface_SOURCES = \
839 clients/ivi-shell-user-interface.c \
840 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900841nodist_weston_ivi_shell_user_interface_SOURCES = \
842 protocol/ivi-hmi-controller-client-protocol.h \
843 protocol/ivi-hmi-controller-protocol.c \
844 protocol/ivi-application-client-protocol.h \
845 protocol/ivi-application-protocol.c
846weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
847weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
848endif
849
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800850if BUILD_FULL_GL_CLIENTS
851demo_clients += weston-gears
852weston_gears_SOURCES = clients/gears.c
853weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800854weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800855endif
856
857endif
858
859BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800860 protocol/weston-screenshooter-protocol.c \
861 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100862 protocol/text-cursor-position-client-protocol.h \
863 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800864 protocol/text-input-unstable-v1-protocol.c \
865 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800866 protocol/input-method-unstable-v1-protocol.c \
867 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800868 protocol/weston-desktop-shell-client-protocol.h \
869 protocol/weston-desktop-shell-protocol.c \
Pekka Paalanen73511002016-04-15 16:53:41 +0300870 protocol/viewporter-client-protocol.h \
871 protocol/viewporter-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200872 protocol/presentation-time-protocol.c \
873 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800874 protocol/fullscreen-shell-unstable-v1-protocol.c \
875 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahlaf7f98b2016-08-09 18:15:43 +0800876 protocol/xdg-shell-unstable-v6-protocol.c \
877 protocol/xdg-shell-unstable-v6-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900878 protocol/ivi-hmi-controller-protocol.c \
879 protocol/ivi-hmi-controller-client-protocol.h \
880 protocol/ivi-application-protocol.c \
Bryce Harrington6303d3b2016-08-30 12:04:05 -0700881 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800882
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800883westondatadir = $(datadir)/weston
884dist_westondata_DATA = \
885 data/wayland.svg \
886 data/wayland.png \
887 data/pattern.png \
888 data/terminal.png \
889 data/border.png \
Bryce Harrington6bc52542016-03-24 17:57:39 -0700890 data/icon_editor.png \
891 data/icon_flower.png \
892 data/icon_terminal.png \
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800893 data/icon_window.png \
894 data/sign_close.png \
895 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100896 data/sign_minimize.png
897
898if ENABLE_IVI_SHELL
899dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900900 data/background.png \
901 data/tiling.png \
902 data/fullscreen.png \
903 data/panel.png \
904 data/random.png \
905 data/sidebyside.png \
906 data/home.png \
907 data/icon_ivi_clickdot.png \
908 data/icon_ivi_flower.png \
909 data/icon_ivi_simple-egl.png \
910 data/icon_ivi_simple-shm.png \
911 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100912endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800913
914
915if BUILD_WCAP_TOOLS
916bin_PROGRAMS += wcap-decode
917
918wcap_decode_SOURCES = \
919 wcap/main.c \
920 wcap/wcap-decode.c \
921 wcap/wcap-decode.h
922
Derek Foreman4ff38742015-06-18 11:43:11 -0500923wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800924wcap_decode_LDADD = $(WCAP_LIBS)
925endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800926
927
928if ENABLE_DESKTOP_SHELL
929
930module_LTLIBRARIES += desktop-shell.la
931
932desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100933 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800934 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300935 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +0100936 -I$(top_srcdir)/libweston \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800937 -I$(top_builddir)/desktop-shell \
938 -DDATADIR='"$(datadir)"' \
939 -DMODULEDIR='"$(moduledir)"' \
940 -DLIBEXECDIR='"$(libexecdir)"' \
941 -DIN_WESTON
942
943desktop_shell_la_LDFLAGS = -module -avoid-version
Quentin Glidic8f9d90a2016-08-12 10:41:36 +0200944desktop_shell_la_LIBADD = libshared.la libweston-desktop-@LIBWESTON_MAJOR@.la $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500945desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800946desktop_shell_la_SOURCES = \
947 desktop-shell/shell.h \
948 desktop-shell/shell.c \
949 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700950 desktop-shell/input-panel.c \
951 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800952nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800953 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahl5ac91a12016-08-15 17:31:02 +0800954 protocol/weston-desktop-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800955
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800956BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800957endif
958
Jason Ekstrand946a9482014-04-02 19:53:47 -0500959if ENABLE_FULLSCREEN_SHELL
960
961module_LTLIBRARIES += fullscreen-shell.la
962
963fullscreen_shell_la_CPPFLAGS = \
964 -I$(top_builddir)/protocol \
965 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300966 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +0100967 -I$(top_srcdir)/libweston \
Jason Ekstrand946a9482014-04-02 19:53:47 -0500968 -DIN_WESTON
969
970fullscreen_shell_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200971fullscreen_shell_la_LIBADD = \
972 libweston-@LIBWESTON_MAJOR@.la \
973 $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500974fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500975fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700976 fullscreen-shell/fullscreen-shell.c \
977 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500978nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800979 protocol/fullscreen-shell-unstable-v1-protocol.c \
980 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500981
982BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
983endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800984
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900985if ENABLE_IVI_SHELL
986
987module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900988 $(ivi_shell) \
989 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900990
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900991ivi_shell = ivi-shell.la
992ivi_shell_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200993ivi_shell_la_LIBADD = \
994 libshared.la \
995 libweston-@LIBWESTON_MAJOR@.la \
996 $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500997ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900998ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900999 ivi-shell/ivi-layout-export.h \
1000 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +02001001 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +09001002 ivi-shell/ivi-layout.c \
1003 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +09001004 ivi-shell/ivi-shell.h \
1005 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001006 ivi-shell/input-panel-ivi.c \
1007 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +09001008nodist_ivi_shell_la_SOURCES = \
1009 protocol/ivi-application-protocol.c \
1010 protocol/ivi-application-server-protocol.h
1011
1012BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
1013
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +09001014hmi_controller = hmi-controller.la
1015hmi_controller_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001016hmi_controller_la_LIBADD = \
1017 libshared.la \
1018 libweston-@LIBWESTON_MAJOR@.la \
1019 $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -05001020hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +09001021hmi_controller_la_SOURCES = \
1022 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001023 ivi-shell/hmi-controller.c \
1024 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +09001025nodist_hmi_controller_la_SOURCES = \
1026 protocol/ivi-hmi-controller-protocol.c \
1027 protocol/ivi-hmi-controller-server-protocol.h
1028
1029BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
1030
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +09001031endif
1032
1033
Jason Ekstrand47928d82014-04-02 19:54:01 -05001034if ENABLE_SCREEN_SHARING
1035
1036module_LTLIBRARIES += screen-share.la
1037
1038screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
1039screen_share_la_LDFLAGS = -module -avoid-version
1040screen_share_la_LIBADD = \
Emil Velikov67351452016-07-22 14:52:42 +01001041 libshared-cairo.la \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001042 libweston-@LIBWESTON_MAJOR@.la \
Jason Ekstrand47928d82014-04-02 19:54:01 -05001043 $(COMPOSITOR_LIBS) \
Emil Velikov67351452016-07-22 14:52:42 +01001044 $(SCREEN_SHARE_LIBS)
Jason Ekstrand47928d82014-04-02 19:54:01 -05001045screen_share_la_CFLAGS = \
1046 $(COMPOSITOR_CFLAGS) \
1047 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -05001048 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -05001049screen_share_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +03001050 compositor/screen-share.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001051 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -05001052nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +08001053 protocol/fullscreen-shell-unstable-v1-protocol.c \
1054 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -05001055
1056endif
1057
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001058if ENABLE_XWAYLAND
1059
Giulio Camuffo9c764df2016-06-29 11:54:27 +02001060libweston_module_LTLIBRARIES += xwayland.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001061
1062xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001063 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001064 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001065 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +01001066 -I$(top_srcdir)/libweston \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001067 -I$(top_builddir)/xwayland \
1068 -DDATADIR='"$(datadir)"' \
1069 -DMODULEDIR='"$(moduledir)"' \
Giulio Camuffo9c764df2016-06-29 11:54:27 +02001070 -DLIBEXECDIR='"$(libexecdir)"'
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001071
1072xwayland_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001073xwayland_la_LIBADD = \
1074 libshared-cairo.la \
1075 libweston-@LIBWESTON_MAJOR@.la \
Emil Velikov67351452016-07-22 14:52:42 +01001076 $(XWAYLAND_LIBS)
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001077xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -05001078 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001079 $(COMPOSITOR_CFLAGS) \
1080 $(PIXMAN_CFLAGS) \
1081 $(CAIRO_CFLAGS)
1082xwayland_la_SOURCES = \
1083 xwayland/xwayland.h \
Quentin Glidic955cec02016-08-12 10:41:35 +02001084 xwayland/xwayland-internal-interface.h \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001085 xwayland/window-manager.c \
1086 xwayland/selection.c \
1087 xwayland/dnd.c \
1088 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001089 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001090 xwayland/hash.h \
1091 shared/helpers.h
Giulio Camuffo9c764df2016-06-29 11:54:27 +02001092
1093libwestoninclude_HEADERS += xwayland/xwayland-api.h
1094
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001095endif
1096
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001097
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001098#
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001099# Shared utilities
1100#
1101
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001102noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
1103 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001104
Derek Foreman4ff38742015-06-18 11:43:11 -05001105libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001106
1107libshared_la_SOURCES = \
1108 shared/config-parser.c \
1109 shared/option-parser.c \
1110 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +02001111 shared/file-util.c \
1112 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001113 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001114 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -07001115 shared/os-compatibility.h \
1116 shared/xalloc.c \
1117 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001118
1119libshared_cairo_la_CFLAGS = \
1120 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001121 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001122 $(COMPOSITOR_CFLAGS) \
1123 $(PIXMAN_CFLAGS) \
1124 $(CAIRO_CFLAGS) \
1125 $(PNG_CFLAGS) \
1126 $(WEBP_CFLAGS)
1127
1128libshared_cairo_la_LIBADD = \
1129 $(PIXMAN_LIBS) \
1130 $(CAIRO_LIBS) \
1131 $(PNG_LIBS) \
1132 $(WEBP_LIBS) \
1133 $(JPEG_LIBS)
1134
1135libshared_cairo_la_SOURCES = \
1136 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001137 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001138 shared/image-loader.c \
1139 shared/image-loader.h \
1140 shared/cairo-util.c \
1141 shared/frame.c \
1142 shared/cairo-util.h
1143
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001144libzunitc_la_SOURCES = \
1145 tools/zunitc/inc/zunitc/zunitc.h \
1146 tools/zunitc/inc/zunitc/zunitc_impl.h \
1147 tools/zunitc/src/zuc_base_logger.c \
1148 tools/zunitc/src/zuc_base_logger.h \
1149 tools/zunitc/src/zuc_collector.c \
1150 tools/zunitc/src/zuc_collector.h \
1151 tools/zunitc/src/zuc_context.h \
1152 tools/zunitc/src/zuc_event.h \
1153 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001154 tools/zunitc/src/zuc_junit_reporter.c \
1155 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001156 tools/zunitc/src/zuc_types.h \
1157 tools/zunitc/src/zunitc_impl.c \
1158 shared/helpers.h
1159
1160libzunitc_la_CFLAGS = \
1161 $(AM_CFLAGS) \
1162 -I$(top_srcdir)/tools/zunitc/inc
1163
1164libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001165 libshared.la \
1166 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001167
Jon A. Cruz646aef52015-07-15 19:22:41 -07001168if ENABLE_JUNIT_XML
1169libzunitc_la_CFLAGS += \
1170 $(LIBXML2_CFLAGS)
1171libzunitc_la_LIBADD += \
1172 $(LIBXML2_LIBS)
1173endif
1174
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001175libzunitcmain_la_SOURCES = \
1176 tools/zunitc/src/main.c
1177
1178libzunitcmain_la_CFLAGS = \
1179 $(AM_CFLAGS) \
1180 -I$(top_srcdir)/tools/zunitc/inc
1181
1182libzunitcmain_la_LIBADD = \
1183 libzunitc.la \
1184 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001185
1186#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001187# tests subdirectory
1188#
1189
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001190TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1191
1192internal_tests = \
1193 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001194
1195shared_tests = \
1196 config-parser.test \
Bryce Harrington82b9f2b2016-08-03 17:40:51 -07001197 string.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001198 vertex-clip.test \
1199 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001200
1201module_tests = \
Pekka Paalanen827b5d22016-06-29 11:54:26 +02001202 plugin-registry-test.la \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001203 surface-test.la \
1204 surface-global-test.la
1205
1206weston_tests = \
1207 bad_buffer.weston \
1208 keyboard.weston \
1209 event.weston \
1210 button.weston \
1211 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001212 presentation.weston \
Pekka Paalanen82d95a62016-04-19 17:20:42 +03001213 viewporter.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001214 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001215 subsurface.weston \
1216 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001217
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001218ivi_tests =
1219
1220$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001221
1222AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001223 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1224 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001225
1226TEST_EXTENSIONS = .la .weston
1227LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1228WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1229
1230clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001231 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001232 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001233
1234# To remove when automake 1.11 support is dropped
1235export abs_builddir
1236
1237noinst_LTLIBRARIES += \
1238 weston-test.la \
1239 $(module_tests) \
1240 libtest-runner.la \
1241 libtest-client.la
1242
1243noinst_PROGRAMS += \
1244 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001245 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001246 $(shared_tests) \
1247 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001248 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001249 matrix-test
1250
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001251test_module_ldflags = -module -avoid-version -rpath $(libdir)
1252test_module_libadd = \
1253 libweston-@LIBWESTON_MAJOR@.la \
1254 $(COMPOSITOR_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001255
Pekka Paalanen827b5d22016-06-29 11:54:26 +02001256plugin_registry_test_la_SOURCES = tests/plugin-registry-test.c
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001257plugin_registry_test_la_LIBADD = $(test_module_libadd)
Pekka Paalanen827b5d22016-06-29 11:54:26 +02001258plugin_registry_test_la_LDFLAGS = $(test_module_ldflags)
1259plugin_registry_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1260
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001261surface_global_test_la_SOURCES = tests/surface-global-test.c
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001262surface_global_test_la_LIBADD = $(test_module_libadd)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001263surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001264surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001265
1266surface_test_la_SOURCES = tests/surface-test.c
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001267surface_test_la_LIBADD = $(test_module_libadd)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001268surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001269surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001270
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001271weston_test_la_LIBADD = libshared.la $(test_module_libadd)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001272weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001273weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001274weston_test_la_SOURCES = \
1275 tests/weston-test.c \
1276 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001277nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001278 protocol/weston-test-protocol.c \
1279 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001280
1281if ENABLE_EGL
1282weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1283weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1284endif
1285
1286libtest_runner_la_SOURCES = \
1287 tests/weston-test-runner.c \
1288 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001289libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001290
1291config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001292config_parser_test_LDADD = \
1293 libshared.la \
1294 $(COMPOSITOR_LIBS) \
1295 libzunitc.la \
1296 libzunitcmain.la
1297config_parser_test_CFLAGS = \
1298 $(AM_CFLAGS) \
1299 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001300
Bryce Harrington82b9f2b2016-08-03 17:40:51 -07001301string_test_SOURCES = \
1302 tests/string-test.c \
1303 shared/string-helpers.h
1304string_test_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1305string_test_LDADD = libtest-client.la
1306
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001307vertex_clip_test_SOURCES = \
1308 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001309 shared/helpers.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001310 libweston/vertex-clipping.c \
1311 libweston/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001312vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001313
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001314libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001315 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001316 tests/weston-test-client-helper.h
1317nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001318 protocol/weston-test-protocol.c \
1319 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001320libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
Emil Velikov67351452016-07-22 14:52:42 +01001321libtest_client_la_LIBADD = libshared.la libtest-runner.la $(TEST_CLIENT_LIBS) $(CAIRO_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001322
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001323
1324#
1325# Internal tests - tests functionality of the testsuite itself
1326#
1327
1328internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001329internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1330internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001331
1332
1333#
1334# Weston Tests
1335#
1336
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001337bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001338bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001339bad_buffer_weston_LDADD = libtest-client.la
1340
1341keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001342keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001343keyboard_weston_LDADD = libtest-client.la
1344
1345event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001346event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001347event_weston_LDADD = libtest-client.la
1348
1349button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001350button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001351button_weston_LDADD = libtest-client.la
1352
Marek Chalupa5fd81402015-03-30 09:21:29 -04001353devices_weston_SOURCES = tests/devices-test.c
1354devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1355devices_weston_LDADD = libtest-client.la
1356
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001357text_weston_SOURCES = tests/text-test.c
1358nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001359 protocol/text-input-unstable-v1-protocol.c \
1360 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001361text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001362text_weston_LDADD = libtest-client.la
1363
1364subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001365subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001366subsurface_weston_LDADD = libtest-client.la
1367
Jon A. Cruzb09da242015-06-16 13:15:13 -07001368presentation_weston_SOURCES = \
1369 tests/presentation-test.c \
1370 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001371nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001372 protocol/presentation-time-protocol.c \
1373 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001374presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1375presentation_weston_LDADD = libtest-client.la
1376
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001377roles_weston_SOURCES = tests/roles-test.c
1378roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1379roles_weston_LDADD = libtest-client.la
1380
Pekka Paalanen82d95a62016-04-19 17:20:42 +03001381viewporter_weston_SOURCES = \
1382 tests/viewporter-test.c \
1383 shared/helpers.h
1384nodist_viewporter_weston_SOURCES = \
1385 protocol/viewporter-protocol.c \
1386 protocol/viewporter-client-protocol.h
1387viewporter_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1388viewporter_weston_LDADD = libtest-client.la
1389
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001390if ENABLE_EGL
1391weston_tests += buffer-count.weston
1392buffer_count_weston_SOURCES = tests/buffer-count-test.c
Pekka Paalanen924cd942016-05-20 17:25:38 +03001393buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001394buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1395endif
1396
1397if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001398weston_tests += xwayland-test.weston
1399xwayland_test_weston_SOURCES = tests/xwayland-test.c
Daniel Stone2295a622016-11-29 11:05:49 +00001400xwayland_test_weston_CFLAGS = \
1401 $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS) -DXSERVER_PATH='"@XSERVER_PATH@"'
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001402xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001403endif
1404
1405matrix_test_SOURCES = \
1406 tests/matrix-test.c \
1407 shared/matrix.c \
1408 shared/matrix.h
1409matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001410matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001411
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001412if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001413module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001414 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001415 ivi-layout-test.la
1416
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001417ivi_layout_internal_test_la_LIBADD = $(test_module_libadd)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001418ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001419ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001420ivi_layout_internal_test_la_SOURCES = \
1421 tests/ivi_layout-internal-test.c
1422
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001423ivi_layout_test_la_LIBADD = $(test_module_libadd)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001424ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001425ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001426ivi_layout_test_la_SOURCES = \
1427 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001428 tests/ivi-test.h \
1429 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001430nodist_ivi_layout_test_la_SOURCES = \
1431 protocol/weston-test-protocol.c \
1432 protocol/weston-test-server-protocol.h
1433
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001434ivi_tests += \
1435 ivi-shell-app.weston
1436
1437ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1438nodist_ivi_shell_app_weston_SOURCES = \
1439 protocol/ivi-application-protocol.c \
1440 protocol/ivi-application-client-protocol.h
1441ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1442ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001443
1444noinst_PROGRAMS += ivi-layout.ivi
1445
1446ivi_layout_ivi_SOURCES = \
1447 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001448 tests/ivi-test.h \
1449 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001450nodist_ivi_layout_ivi_SOURCES = \
1451 protocol/ivi-application-protocol.c \
1452 protocol/ivi-application-client-protocol.h
1453ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1454ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001455endif
1456
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001457if BUILD_SETBACKLIGHT
1458noinst_PROGRAMS += setbacklight
1459setbacklight_SOURCES = \
1460 tests/setbacklight.c \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001461 libweston/libbacklight.c \
1462 libweston/libbacklight.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001463setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1464setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1465endif
1466
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001467all-local: zuctest$(EXEEXT)
1468
1469noinst_PROGRAMS += zuctest$(EXEEXT)
1470
1471zuctest_LDADD = \
1472 libzunitc.la \
1473 libzunitcmain.la
1474
1475zuctest_CFLAGS = \
1476 $(AM_CFLAGS) \
1477 -I$(top_srcdir)/tools/zunitc/inc
1478
1479zuctest_SOURCES = \
1480 tools/zunitc/test/fixtures_test.c \
1481 tools/zunitc/test/zunitc_test.c
1482
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001483EXTRA_DIST += \
1484 tests/weston-tests-env \
1485 tests/internal-screenshot.ini \
1486 tests/reference/internal-screenshot-bad-00.png \
1487 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001488
1489BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001490 protocol/weston-test-protocol.c \
1491 protocol/weston-test-server-protocol.h \
1492 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001493 protocol/text-input-unstable-v1-protocol.c \
1494 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001495
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001496EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001497 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001498 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001499 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001500 protocol/weston-test.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001501 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001502 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001503
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001504#
1505# manual test modules in tests subdirectory
1506#
1507
1508noinst_LTLIBRARIES += \
1509 surface-screenshot.la
1510
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001511surface_screenshot_la_LIBADD = libshared.la $(test_module_libadd)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001512surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001513surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001514surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1515
1516
1517#
1518# Documentation
1519#
1520
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001521man_MANS = weston.1 weston.ini.5
1522
1523if ENABLE_DRM_COMPOSITOR
1524man_MANS += weston-drm.7
1525endif
1526
1527MAN_SUBSTS = \
1528 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1529 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1530 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1531 -e 's|__version__|$(PACKAGE_VERSION)|g'
1532
1533SUFFIXES = .1 .5 .7 .man
1534
1535%.1 %.5 %.7 : man/%.man
1536 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1537
1538EXTRA_DIST += \
1539 man/weston.man \
1540 man/weston-drm.man \
1541 man/weston.ini.man
1542
1543CLEANFILES += $(man_MANS)
1544
Jon A. Cruz179c1862015-07-15 19:22:43 -07001545if ENABLE_DEVDOCS
1546DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1547
1548docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1549 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1550
1551docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1552 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1553endif
1554
1555DOCDIRS = \
1556 docs/developer \
1557 docs/tools
1558
1559$(DOCDIRS):
1560 $(MKDIR_P) $@
1561
1562.PHONY: doc $(DOXYGEN_INDICES)
1563
1564doc: $(DOXYGEN_INDICES)
1565
Jonas Ådahl496adb32015-11-17 16:00:27 +08001566.SECONDEXPANSION:
1567
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001568define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001569$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001570endef
1571
1572define protoname
1573$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1574endef
1575
1576protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001577 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1578
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001579protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001580 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1581
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001582protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001583 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1584
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001585protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1586 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001587
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001588protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1589 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001590
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001591protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1592 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@