blob: fd10c131cf7f95030db84f30f825b4f716c547e2 [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 =
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -08008noinst_LTLIBRARIES =
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -08009BUILT_SOURCES =
Kristian Høgsberge895f142014-01-27 21:46:30 -080010
Derek Foreman2ef9e812015-02-09 09:57:29 -060011AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
Kristian Høgsberg24639cc2013-02-25 13:03:15 -050012
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090013EXTRA_DIST = weston.ini.in ivi-shell/weston.ini.in
Neil Robertse3de16e2013-11-22 16:46:00 +000014
15weston.ini : $(srcdir)/weston.ini.in
16 $(AM_V_GEN)$(SED) \
17 -e 's|@bindir[@]|$(bindir)|g' \
18 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
19 -e 's|@libexecdir[@]|$(libexecdir)|g' \
20 $< > $@
21
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090022ivi-shell/weston.ini : $(srcdir)/ivi-shell/weston.ini.in
Ross Burton2eff22b2015-07-17 12:33:45 +010023 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090024 -e 's|@bindir[@]|$(bindir)|g' \
25 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
Pekka Paalanen8cb25872015-03-24 14:09:57 +020026 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090027 -e 's|@libexecdir[@]|$(libexecdir)|g' \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020028 -e 's|@plugin_prefix[@]||g' \
29 $< > $@
30
31tests/weston-ivi.ini : $(srcdir)/ivi-shell/weston.ini.in
Ross Burton2eff22b2015-07-17 12:33:45 +010032 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020033 -e 's|@bindir[@]|$(bindir)|g' \
34 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
Pekka Paalanen8cb25872015-03-24 14:09:57 +020035 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
Derek Foremanbbdd9bc2015-06-16 13:30:35 -050036 -e 's|@libexecdir[@]|$(abs_builddir)|g' \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020037 -e 's|@plugin_prefix[@]|$(abs_top_builddir)/.libs/|g' \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090038 $< > $@
39
40all-local : weston.ini ivi-shell/weston.ini
Kristian Høgsberg98463742013-12-16 23:12:46 -080041
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080042AM_CFLAGS = $(GCC_CFLAGS)
43
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080044AM_CPPFLAGS = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080045 -I$(top_srcdir)/src \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080046 -I$(top_builddir)/src \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080047 -I$(top_builddir)/clients \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080048 -I$(top_builddir)/tests \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080049 -I$(top_srcdir)/shared \
Quentin Glidic088ba5e2014-02-01 21:39:12 +010050 -I$(top_builddir)/protocol \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080051 -DDATADIR='"$(datadir)"' \
52 -DMODULEDIR='"$(moduledir)"' \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080053 -DLIBEXECDIR='"$(libexecdir)"' \
54 -DBINDIR='"$(bindir)"'
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080055
Pekka Paalanenf3a34532015-03-24 13:51:05 +020056CLEANFILES = weston.ini \
57 ivi-shell/weston.ini \
58 tests/weston-ivi.ini \
Derek Foreman1ce2ef52015-05-26 10:21:03 -050059 internal-screenshot-00.png \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020060 $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080061
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080062bin_PROGRAMS += weston
63
64weston_LDFLAGS = -export-dynamic
65weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
Derek Foreman4ff38742015-06-18 11:43:11 -050066weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080067weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Giulio Camuffo8aedf7b2016-06-02 21:48:12 +030068 $(DLOPEN_LIBS) -lm $(CLOCK_GETTIME_LIBS) \
69 $(LIBINPUT_BACKEND_LIBS) libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080070
71weston_SOURCES = \
72 src/git-version.h \
73 src/log.c \
74 src/compositor.c \
75 src/compositor.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -070076 src/compositor-drm.h \
Benoit Gschwind934e89a2016-04-27 23:56:42 +020077 src/compositor-fbdev.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -070078 src/compositor-headless.h \
Benoit Gschwindbd573102016-04-22 17:05:26 +020079 src/compositor-rdp.h \
Benoit Gschwind639322a2016-04-28 20:33:15 +020080 src/compositor-wayland.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -070081 src/compositor-x11.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080082 src/input.c \
83 src/data-device.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080084 src/screenshooter.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080085 src/clipboard.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080086 src/zoom.c \
87 src/text-backend.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080088 src/bindings.c \
89 src/animation.c \
90 src/noop-renderer.c \
91 src/pixman-renderer.c \
92 src/pixman-renderer.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +020093 src/timeline.c \
94 src/timeline.h \
95 src/timeline-object.h \
Giulio Camuffobab996e2014-10-12 00:24:25 +030096 src/main.c \
Pekka Paalanen230f3b12014-09-29 14:18:40 -040097 src/linux-dmabuf.c \
98 src/linux-dmabuf.h \
Giulio Camuffo26f62d42016-06-02 21:48:09 +030099 src/weston-screenshooter.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700100 shared/helpers.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800101 shared/matrix.c \
102 shared/matrix.h \
Pekka Paalanenaa21f622015-07-03 15:44:50 +0300103 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800104 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100105 shared/platform.h \
Egor Starkov94fd9a52015-09-29 14:50:41 +0300106 src/weston-egl-ext.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300107
108if SYSTEMD_NOTIFY_SUPPORT
109module_LTLIBRARIES += systemd-notify.la
110systemd_notify_la_LDFLAGS = -module -avoid-version
111systemd_notify_la_LIBADD = $(SYSTEMD_DAEMON_LIBS)
112systemd_notify_la_CFLAGS = \
Pekka Paalanenaff703e2016-04-05 14:08:11 +0300113 $(COMPOSITOR_CFLAGS) \
114 $(SYSTEMD_DAEMON_CFLAGS) \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300115 $(PIXMAN_CFLAGS) \
116 $(AM_CFLAGS)
117systemd_notify_la_SOURCES = \
118 src/systemd-notify.c \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300119 shared/helpers.h \
120 shared/zalloc.h \
Bryce Harringtona0dd5b42015-09-25 15:16:25 -0700121 src/compositor.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300122endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800123
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800124nodist_weston_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800125 protocol/weston-screenshooter-protocol.c \
126 protocol/weston-screenshooter-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800127 protocol/text-cursor-position-protocol.c \
128 protocol/text-cursor-position-server-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800129 protocol/text-input-unstable-v1-protocol.c \
130 protocol/text-input-unstable-v1-server-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800131 protocol/input-method-unstable-v1-protocol.c \
132 protocol/input-method-unstable-v1-server-protocol.h \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200133 protocol/presentation-time-protocol.c \
134 protocol/presentation-time-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800135 protocol/scaler-protocol.c \
Pekka Paalanen23ab7152014-09-29 14:08:29 -0400136 protocol/scaler-server-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800137 protocol/linux-dmabuf-unstable-v1-protocol.c \
138 protocol/linux-dmabuf-unstable-v1-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800139
140BUILT_SOURCES += $(nodist_weston_SOURCES)
141
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800142# Track this dependency explicitly instead of using BUILT_SOURCES. We
143# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
144# in case we're building from tarballs.
145
146src/compositor.c : $(top_builddir)/src/git-version.h
147
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800148noinst_LTLIBRARIES += \
149 libsession-helper.la
150
151libsession_helper_la_SOURCES = \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800152 src/launcher-util.c \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700153 src/launcher-util.h \
Derek Foremancb156202015-09-24 09:26:48 -0500154 src/launcher-impl.h \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700155 src/weston-launch.h \
156 src/launcher-weston-launch.c \
157 src/launcher-direct.c
Derek Foreman4ff38742015-06-18 11:43:11 -0500158libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800159libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
160
161if ENABLE_DBUS
162if HAVE_SYSTEMD_LOGIN
163libsession_helper_la_SOURCES += \
164 src/dbus.h \
165 src/dbus.c \
Jasper St. Pierre30bcf352015-09-23 10:46:46 -0700166 src/launcher-logind.c
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800167libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
168libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
169endif
170endif
171
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800172if HAVE_GIT_REPO
173src/git-version.h : $(top_srcdir)/.git/logs/HEAD
174 $(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 -0800175else
176src/git-version.h :
177 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
178
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800179endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800180
181.FORCE :
182
183if BUILD_WESTON_LAUNCH
184bin_PROGRAMS += weston-launch
185weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
186weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
187weston_launch_CFLAGS= \
Derek Foreman4ff38742015-06-18 11:43:11 -0500188 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800189 $(PAM_CFLAGS) \
190 $(SYSTEMD_LOGIN_CFLAGS) \
191 $(LIBDRM_CFLAGS)
192weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
193
194if ENABLE_SETUID_INSTALL
195install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700196 can_suid_files=no; \
197 chown root $(DESTDIR)$(bindir)/weston-launch \
198 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
199 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500200 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700201 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
202 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
203 false; \
204 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800205endif
206
207endif # BUILD_WESTON_LAUNCH
208
209pkgconfigdir = $(libdir)/pkgconfig
210pkgconfig_DATA = src/weston.pc
211
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100212wayland_sessiondir = $(datadir)/wayland-sessions
Ross Burton315476f2015-07-16 20:56:32 +0100213dist_wayland_session_DATA = src/weston.desktop
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100214
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800215westonincludedir = $(includedir)/weston
216westoninclude_HEADERS = \
217 src/version.h \
218 src/compositor.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700219 src/compositor-drm.h \
Benoit Gschwind934e89a2016-04-27 23:56:42 +0200220 src/compositor-fbdev.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700221 src/compositor-headless.h \
Benoit Gschwindbd573102016-04-22 17:05:26 +0200222 src/compositor-rdp.h \
Benoit Gschwind639322a2016-04-28 20:33:15 +0200223 src/compositor-wayland.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700224 src/compositor-x11.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200225 src/timeline-object.h \
Giulio Camuffo26f62d42016-06-02 21:48:09 +0300226 src/weston.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800227 shared/matrix.h \
228 shared/config-parser.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100229 shared/zalloc.h \
230 shared/platform.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800231
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000232if ENABLE_IVI_SHELL
233westoninclude_HEADERS += \
234 ivi-shell/ivi-layout-export.h
235endif
236
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800237if ENABLE_EGL
238module_LTLIBRARIES += gl-renderer.la
239gl_renderer_la_LDFLAGS = -module -avoid-version
240gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
241gl_renderer_la_CFLAGS = \
242 $(COMPOSITOR_CFLAGS) \
243 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300244 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500245 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800246gl_renderer_la_SOURCES = \
247 src/gl-renderer.h \
248 src/gl-renderer.c \
249 src/vertex-clipping.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700250 src/vertex-clipping.h \
251 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800252endif
253
254if ENABLE_X11_COMPOSITOR
255module_LTLIBRARIES += x11-backend.la
256x11_backend_la_LDFLAGS = -module -avoid-version
257x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800258 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800259x11_backend_la_CFLAGS = \
260 $(COMPOSITOR_CFLAGS) \
261 $(EGL_CFLAGS) \
262 $(PIXMAN_CFLAGS) \
263 $(CAIRO_CFLAGS) \
264 $(X11_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500265 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700266x11_backend_la_SOURCES = \
267 src/compositor-x11.c \
Benoit Gschwinde16acab2016-04-15 20:28:31 -0700268 src/compositor-x11.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700269 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800270endif
271
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100272INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000273INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100274 src/libinput-seat.c \
275 src/libinput-seat.h \
276 src/libinput-device.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700277 src/libinput-device.h \
278 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100279
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800280if ENABLE_DRM_COMPOSITOR
281module_LTLIBRARIES += drm-backend.la
282drm_backend_la_LDFLAGS = -module -avoid-version
283drm_backend_la_LIBADD = \
284 $(COMPOSITOR_LIBS) \
285 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100286 $(INPUT_BACKEND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300287 libshared.la \
288 $(CLOCK_GETTIME_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800289 libsession-helper.la
290drm_backend_la_CFLAGS = \
291 $(COMPOSITOR_CFLAGS) \
292 $(EGL_CFLAGS) \
293 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500294 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800295drm_backend_la_SOURCES = \
296 src/compositor-drm.c \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700297 src/compositor-drm.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100298 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700299 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200300 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800301 src/libbacklight.c \
302 src/libbacklight.h
303
304if ENABLE_VAAPI_RECORDER
305drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
306drm_backend_la_LIBADD += $(LIBVA_LIBS)
307drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
308endif
309endif
310
311if ENABLE_WAYLAND_COMPOSITOR
312module_LTLIBRARIES += wayland-backend.la
313wayland_backend_la_LDFLAGS = -module -avoid-version
314wayland_backend_la_LIBADD = \
315 $(COMPOSITOR_LIBS) \
316 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800317 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800318wayland_backend_la_CFLAGS = \
319 $(COMPOSITOR_CFLAGS) \
320 $(EGL_CFLAGS) \
321 $(PIXMAN_CFLAGS) \
322 $(CAIRO_CFLAGS) \
323 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500324 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700325wayland_backend_la_SOURCES = \
326 src/compositor-wayland.c \
Benoit Gschwind639322a2016-04-28 20:33:15 +0200327 src/compositor-wayland.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700328 shared/helpers.h
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500329nodist_wayland_backend_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800330 protocol/fullscreen-shell-unstable-v1-protocol.c \
331 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800332endif
333
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800334if ENABLE_HEADLESS_COMPOSITOR
335module_LTLIBRARIES += headless-backend.la
336headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800337headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500338headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700339headless_backend_la_SOURCES = \
340 src/compositor-headless.c \
Benoit Gschwind3c530942016-04-15 20:28:32 -0700341 src/compositor-headless.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700342 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800343endif
344
345if ENABLE_FBDEV_COMPOSITOR
346module_LTLIBRARIES += fbdev-backend.la
347fbdev_backend_la_LDFLAGS = -module -avoid-version
348fbdev_backend_la_LIBADD = \
349 $(COMPOSITOR_LIBS) \
350 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100351 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800352 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800353 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800354fbdev_backend_la_CFLAGS = \
355 $(COMPOSITOR_CFLAGS) \
356 $(EGL_CFLAGS) \
357 $(FBDEV_COMPOSITOR_CFLAGS) \
358 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500359 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800360fbdev_backend_la_SOURCES = \
361 src/compositor-fbdev.c \
Benoit Gschwind934e89a2016-04-27 23:56:42 +0200362 src/compositor-fbdev.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700363 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100364 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800365endif
366
367if ENABLE_RDP_COMPOSITOR
368module_LTLIBRARIES += rdp-backend.la
369rdp_backend_la_LDFLAGS = -module -avoid-version
370rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
371 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800372 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800373rdp_backend_la_CFLAGS = \
374 $(COMPOSITOR_CFLAGS) \
375 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500376 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700377rdp_backend_la_SOURCES = \
378 src/compositor-rdp.c \
Benoit Gschwindbd573102016-04-22 17:05:26 +0200379 src/compositor-rdp.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700380 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800381endif
382
383if HAVE_LCMS
384module_LTLIBRARIES += cms-static.la
385cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800386cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500387cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800388cms_static_la_SOURCES = \
389 src/cms-static.c \
390 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700391 src/cms-helper.h \
392 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800393if ENABLE_COLORD
394module_LTLIBRARIES += cms-colord.la
395cms_colord_la_LDFLAGS = -module -avoid-version
396cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500397cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800398cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100399 src/cms-colord.c \
400 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700401 src/cms-helper.h \
402 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800403endif
404endif
405
406noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500407spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800408spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
409spring_tool_SOURCES = \
410 src/spring-tool.c \
411 src/animation.c \
412 shared/matrix.c \
413 shared/matrix.h \
414 src/compositor.h
415
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800416if BUILD_CLIENTS
417
418bin_PROGRAMS += weston-terminal weston-info
419
420libexec_PROGRAMS += \
421 weston-desktop-shell \
422 weston-screenshooter \
423 weston-keyboard \
424 weston-simple-im
425
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900426if ENABLE_IVI_SHELL
427libexec_PROGRAMS += \
428 weston-ivi-shell-user-interface
429endif
430
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800431demo_clients = \
432 weston-flower \
433 weston-image \
434 weston-cliptest \
435 weston-dnd \
436 weston-smoke \
437 weston-resizor \
438 weston-eventdemo \
439 weston-clickdot \
440 weston-transformed \
441 weston-fullscreen \
442 weston-stacking \
443 weston-calibrator \
444 weston-scaler
445
446if INSTALL_DEMO_CLIENTS
447bin_PROGRAMS += $(demo_clients)
448else
449noinst_PROGRAMS += $(demo_clients)
450endif
451
452
453if BUILD_SIMPLE_CLIENTS
454demo_clients += \
455 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500456 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800457 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400458 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800459 weston-multi-resource
460
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800461weston_simple_shm_SOURCES = clients/simple-shm.c
462nodist_weston_simple_shm_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800463 protocol/xdg-shell-unstable-v5-protocol.c \
464 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800465 protocol/fullscreen-shell-unstable-v1-protocol.c \
466 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900467 protocol/ivi-application-protocol.c \
468 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800469weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800470weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800471
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500472weston_simple_damage_SOURCES = clients/simple-damage.c
473nodist_weston_simple_damage_SOURCES = \
474 protocol/scaler-protocol.c \
475 protocol/scaler-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800476 protocol/xdg-shell-unstable-v5-protocol.c \
477 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800478 protocol/fullscreen-shell-unstable-v1-protocol.c \
479 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500480weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
481weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
482
Jon A. Cruzb09da242015-06-16 13:15:13 -0700483weston_simple_touch_SOURCES = \
484 clients/simple-touch.c \
485 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800486weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800487weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800488
Jon A. Cruzb09da242015-06-16 13:15:13 -0700489weston_presentation_shm_SOURCES = \
490 clients/presentation-shm.c \
491 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400492nodist_weston_presentation_shm_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200493 protocol/presentation-time-protocol.c \
494 protocol/presentation-time-client-protocol.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400495weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300496weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400497
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800498weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800499weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300500weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800501endif
502
503if BUILD_SIMPLE_EGL_CLIENTS
504demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800505weston_simple_egl_SOURCES = clients/simple-egl.c
506nodist_weston_simple_egl_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800507 protocol/xdg-shell-unstable-v5-protocol.c \
508 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900509 protocol/ivi-application-protocol.c \
510 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800511weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800512weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
513endif
514
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000515if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
516demo_clients += weston-simple-dmabuf-intel
517weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
518nodist_weston_simple_dmabuf_intel_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800519 protocol/xdg-shell-unstable-v5-protocol.c \
520 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800521 protocol/fullscreen-shell-unstable-v1-protocol.c \
522 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800523 protocol/linux-dmabuf-unstable-v1-protocol.c \
524 protocol/linux-dmabuf-unstable-v1-client-protocol.h
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000525weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
526weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800527BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200528endif
529
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000530if BUILD_SIMPLE_DMABUF_V4L_CLIENT
531demo_clients += weston-simple-dmabuf-v4l
532weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
533nodist_weston_simple_dmabuf_v4l_SOURCES = \
534 protocol/xdg-shell-unstable-v5-protocol.c \
535 protocol/xdg-shell-unstable-v5-client-protocol.h \
536 protocol/fullscreen-shell-unstable-v1-protocol.c \
537 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
538 protocol/linux-dmabuf-unstable-v1-protocol.c \
539 protocol/linux-dmabuf-unstable-v1-client-protocol.h
540weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
541weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
542BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
543endif
544
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800545noinst_LTLIBRARIES += libtoytoolkit.la
546
547libtoytoolkit_la_SOURCES = \
548 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700549 clients/window.h \
550 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800551
552nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100553 protocol/text-cursor-position-protocol.c \
554 protocol/text-cursor-position-client-protocol.h \
555 protocol/scaler-protocol.c \
556 protocol/scaler-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800557 protocol/xdg-shell-unstable-v5-protocol.c \
558 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900559 protocol/ivi-application-protocol.c \
560 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500561
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800562BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
563
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800564
565libtoytoolkit_la_LIBADD = \
566 $(CLIENT_LIBS) \
567 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300568 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800569libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800570
571weston_flower_SOURCES = clients/flower.c
572weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800573weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800574
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100575weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800576 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800577nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800578 protocol/weston-screenshooter-protocol.c \
579 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800580weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800581weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800582
Jon A. Cruzb09da242015-06-16 13:15:13 -0700583weston_terminal_SOURCES = \
584 clients/terminal.c \
585 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800586weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800587weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800588
589weston_image_SOURCES = clients/image.c
590weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800591weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800592
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300593weston_cliptest_SOURCES = \
594 clients/cliptest.c \
595 src/vertex-clipping.c \
596 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800597weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800598weston_cliptest_LDADD = libtoytoolkit.la
599
Jon A. Cruzb09da242015-06-16 13:15:13 -0700600weston_dnd_SOURCES = \
601 clients/dnd.c \
602 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800603weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800604weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800605
606weston_smoke_SOURCES = clients/smoke.c
607weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800608weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800609
610weston_resizor_SOURCES = clients/resizor.c
611weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800612weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800613
614weston_scaler_SOURCES = clients/scaler.c
615weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800616weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800617
618if HAVE_CAIRO_GLESV2
619demo_clients += weston-nested weston-nested-client
620
Jon A. Cruzb09da242015-06-16 13:15:13 -0700621weston_nested_SOURCES = \
622 clients/nested.c \
623 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800624weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800625weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800626
627weston_nested_client_SOURCES = clients/nested-client.c
628weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800629weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800630endif
631
Jon A. Cruzb09da242015-06-16 13:15:13 -0700632weston_eventdemo_SOURCES = \
633 clients/eventdemo.c \
634 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800635weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800636weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800637
Jon A. Cruzb09da242015-06-16 13:15:13 -0700638weston_clickdot_SOURCES = \
639 clients/clickdot.c \
640 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800641weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800642weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800643
644weston_transformed_SOURCES = clients/transformed.c
645weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800646weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800647
648weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500649nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800650 protocol/fullscreen-shell-unstable-v1-protocol.c \
651 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800652weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800653weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800654
Jon A. Cruzb09da242015-06-16 13:15:13 -0700655weston_stacking_SOURCES = \
656 clients/stacking.c \
657 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800658weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800659weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800660
Jon A. Cruzb09da242015-06-16 13:15:13 -0700661weston_calibrator_SOURCES = \
662 clients/calibrator.c \
663 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800664 shared/matrix.c \
665 shared/matrix.h
666weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800667weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800668
669if BUILD_SUBSURFACES_CLIENT
670demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700671weston_subsurfaces_SOURCES = \
672 clients/subsurfaces.c \
673 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800674weston_subsurfaces_CFLAGS = \
675 $(AM_CFLAGS) \
676 $(SIMPLE_EGL_CLIENT_CFLAGS) \
677 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800678weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
679endif
680
681if HAVE_PANGO
682demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700683weston_editor_SOURCES = \
684 clients/editor.c \
685 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800686nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800687 protocol/text-input-unstable-v1-protocol.c \
688 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800689weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800690weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800691endif
692
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800693weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800694nodist_weston_keyboard_SOURCES = \
695 protocol/weston-desktop-shell-client-protocol.h \
696 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800697 protocol/input-method-unstable-v1-protocol.c \
698 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800699weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800700weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800701
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800702weston_simple_im_SOURCES = clients/weston-simple-im.c
703nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800704 protocol/input-method-unstable-v1-protocol.c \
705 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800706weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800707weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800708
Jon A. Cruzb09da242015-06-16 13:15:13 -0700709weston_info_SOURCES = \
710 clients/weston-info.c \
711 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400712nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200713 protocol/presentation-time-protocol.c \
714 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800715weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200716weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800717
Jon A. Cruzb09da242015-06-16 13:15:13 -0700718weston_desktop_shell_SOURCES = \
719 clients/desktop-shell.c \
720 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800721nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800722 protocol/weston-desktop-shell-client-protocol.h \
723 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800724weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800725weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800726
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900727if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700728weston_ivi_shell_user_interface_SOURCES = \
729 clients/ivi-shell-user-interface.c \
730 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900731nodist_weston_ivi_shell_user_interface_SOURCES = \
732 protocol/ivi-hmi-controller-client-protocol.h \
733 protocol/ivi-hmi-controller-protocol.c \
734 protocol/ivi-application-client-protocol.h \
735 protocol/ivi-application-protocol.c
736weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
737weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
738endif
739
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800740if BUILD_FULL_GL_CLIENTS
741demo_clients += weston-gears
742weston_gears_SOURCES = clients/gears.c
743weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800744weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800745endif
746
747endif
748
749BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800750 protocol/weston-screenshooter-protocol.c \
751 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100752 protocol/text-cursor-position-client-protocol.h \
753 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800754 protocol/text-input-unstable-v1-protocol.c \
755 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800756 protocol/input-method-unstable-v1-protocol.c \
757 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800758 protocol/weston-desktop-shell-client-protocol.h \
759 protocol/weston-desktop-shell-protocol.c \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100760 protocol/scaler-client-protocol.h \
761 protocol/scaler-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200762 protocol/presentation-time-protocol.c \
763 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800764 protocol/fullscreen-shell-unstable-v1-protocol.c \
765 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800766 protocol/xdg-shell-unstable-v5-protocol.c \
767 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900768 protocol/ivi-hmi-controller-protocol.c \
769 protocol/ivi-hmi-controller-client-protocol.h \
770 protocol/ivi-application-protocol.c \
771 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800772
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800773westondatadir = $(datadir)/weston
774dist_westondata_DATA = \
775 data/wayland.svg \
776 data/wayland.png \
777 data/pattern.png \
778 data/terminal.png \
779 data/border.png \
Bryce Harrington6bc52542016-03-24 17:57:39 -0700780 data/icon_editor.png \
781 data/icon_flower.png \
782 data/icon_terminal.png \
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800783 data/icon_window.png \
784 data/sign_close.png \
785 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100786 data/sign_minimize.png
787
788if ENABLE_IVI_SHELL
789dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900790 data/background.png \
791 data/tiling.png \
792 data/fullscreen.png \
793 data/panel.png \
794 data/random.png \
795 data/sidebyside.png \
796 data/home.png \
797 data/icon_ivi_clickdot.png \
798 data/icon_ivi_flower.png \
799 data/icon_ivi_simple-egl.png \
800 data/icon_ivi_simple-shm.png \
801 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100802endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800803
804
805if BUILD_WCAP_TOOLS
806bin_PROGRAMS += wcap-decode
807
808wcap_decode_SOURCES = \
809 wcap/main.c \
810 wcap/wcap-decode.c \
811 wcap/wcap-decode.h
812
Derek Foreman4ff38742015-06-18 11:43:11 -0500813wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800814wcap_decode_LDADD = $(WCAP_LIBS)
815endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800816
817
818if ENABLE_DESKTOP_SHELL
819
820module_LTLIBRARIES += desktop-shell.la
821
822desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100823 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800824 -I$(top_srcdir)/shared \
825 -I$(top_srcdir)/src \
826 -I$(top_builddir)/src \
827 -I$(top_builddir)/desktop-shell \
828 -DDATADIR='"$(datadir)"' \
829 -DMODULEDIR='"$(moduledir)"' \
830 -DLIBEXECDIR='"$(libexecdir)"' \
831 -DIN_WESTON
832
833desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800834desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500835desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800836desktop_shell_la_SOURCES = \
837 desktop-shell/shell.h \
838 desktop-shell/shell.c \
839 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700840 desktop-shell/input-panel.c \
841 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800842nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800843 protocol/weston-desktop-shell-protocol.c \
844 protocol/weston-desktop-shell-server-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800845 protocol/xdg-shell-unstable-v5-protocol.c \
846 protocol/xdg-shell-unstable-v5-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800847
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800848BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800849endif
850
Jason Ekstrand946a9482014-04-02 19:53:47 -0500851if ENABLE_FULLSCREEN_SHELL
852
853module_LTLIBRARIES += fullscreen-shell.la
854
855fullscreen_shell_la_CPPFLAGS = \
856 -I$(top_builddir)/protocol \
857 -I$(top_srcdir)/shared \
858 -I$(top_srcdir)/src \
859 -I$(top_builddir)/src \
860 -DIN_WESTON
861
862fullscreen_shell_la_LDFLAGS = -module -avoid-version
863fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500864fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500865fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700866 fullscreen-shell/fullscreen-shell.c \
867 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500868nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800869 protocol/fullscreen-shell-unstable-v1-protocol.c \
870 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500871
872BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
873endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800874
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900875if ENABLE_IVI_SHELL
876
877module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900878 $(ivi_shell) \
879 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900880
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900881ivi_shell = ivi-shell.la
882ivi_shell_la_LDFLAGS = -module -avoid-version
883ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500884ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900885ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900886 ivi-shell/ivi-layout-export.h \
887 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +0200888 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900889 ivi-shell/ivi-layout.c \
890 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900891 ivi-shell/ivi-shell.h \
892 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700893 ivi-shell/input-panel-ivi.c \
894 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900895nodist_ivi_shell_la_SOURCES = \
896 protocol/ivi-application-protocol.c \
897 protocol/ivi-application-server-protocol.h
898
899BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
900
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900901hmi_controller = hmi-controller.la
902hmi_controller_la_LDFLAGS = -module -avoid-version
903hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500904hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900905hmi_controller_la_SOURCES = \
906 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700907 ivi-shell/hmi-controller.c \
908 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900909nodist_hmi_controller_la_SOURCES = \
910 protocol/ivi-hmi-controller-protocol.c \
911 protocol/ivi-hmi-controller-server-protocol.h
912
913BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
914
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900915endif
916
917
Jason Ekstrand47928d82014-04-02 19:54:01 -0500918if ENABLE_SCREEN_SHARING
919
920module_LTLIBRARIES += screen-share.la
921
922screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
923screen_share_la_LDFLAGS = -module -avoid-version
924screen_share_la_LIBADD = \
925 $(COMPOSITOR_LIBS) \
926 $(SCREEN_SHARE_LIBS) \
927 libshared-cairo.la
928screen_share_la_CFLAGS = \
929 $(COMPOSITOR_CFLAGS) \
930 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500931 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -0500932screen_share_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700933 src/screen-share.c \
934 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500935nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800936 protocol/fullscreen-shell-unstable-v1-protocol.c \
937 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500938
939endif
940
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800941if ENABLE_XWAYLAND
942
943module_LTLIBRARIES += xwayland.la
944
945xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100946 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800947 -I$(top_srcdir)/shared \
948 -I$(top_srcdir)/src \
949 -I$(top_builddir)/src \
950 -I$(top_builddir)/xwayland \
951 -DDATADIR='"$(datadir)"' \
952 -DMODULEDIR='"$(moduledir)"' \
953 -DLIBEXECDIR='"$(libexecdir)"' \
954 -DXSERVER_PATH='"@XSERVER_PATH@"'
955
956xwayland_la_LDFLAGS = -module -avoid-version
957xwayland_la_LIBADD = \
958 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800959 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800960xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500961 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800962 $(COMPOSITOR_CFLAGS) \
963 $(PIXMAN_CFLAGS) \
964 $(CAIRO_CFLAGS)
965xwayland_la_SOURCES = \
966 xwayland/xwayland.h \
967 xwayland/window-manager.c \
968 xwayland/selection.c \
969 xwayland/dnd.c \
970 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800971 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700972 xwayland/hash.h \
973 shared/helpers.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800974endif
975
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800976
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800977#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800978# Shared utilities
979#
980
Jon A. Cruz5a75a412015-07-02 23:36:44 -0700981noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
982 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800983
Derek Foreman4ff38742015-06-18 11:43:11 -0500984libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800985
986libshared_la_SOURCES = \
987 shared/config-parser.c \
988 shared/option-parser.c \
989 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +0200990 shared/file-util.c \
991 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700992 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800993 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -0700994 shared/os-compatibility.h \
995 shared/xalloc.c \
996 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800997
998libshared_cairo_la_CFLAGS = \
999 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001000 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001001 $(COMPOSITOR_CFLAGS) \
1002 $(PIXMAN_CFLAGS) \
1003 $(CAIRO_CFLAGS) \
1004 $(PNG_CFLAGS) \
1005 $(WEBP_CFLAGS)
1006
1007libshared_cairo_la_LIBADD = \
1008 $(PIXMAN_LIBS) \
1009 $(CAIRO_LIBS) \
1010 $(PNG_LIBS) \
1011 $(WEBP_LIBS) \
1012 $(JPEG_LIBS)
1013
1014libshared_cairo_la_SOURCES = \
1015 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001016 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001017 shared/image-loader.c \
1018 shared/image-loader.h \
1019 shared/cairo-util.c \
1020 shared/frame.c \
1021 shared/cairo-util.h
1022
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001023libzunitc_la_SOURCES = \
1024 tools/zunitc/inc/zunitc/zunitc.h \
1025 tools/zunitc/inc/zunitc/zunitc_impl.h \
1026 tools/zunitc/src/zuc_base_logger.c \
1027 tools/zunitc/src/zuc_base_logger.h \
1028 tools/zunitc/src/zuc_collector.c \
1029 tools/zunitc/src/zuc_collector.h \
1030 tools/zunitc/src/zuc_context.h \
1031 tools/zunitc/src/zuc_event.h \
1032 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001033 tools/zunitc/src/zuc_junit_reporter.c \
1034 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001035 tools/zunitc/src/zuc_types.h \
1036 tools/zunitc/src/zunitc_impl.c \
1037 shared/helpers.h
1038
1039libzunitc_la_CFLAGS = \
1040 $(AM_CFLAGS) \
1041 -I$(top_srcdir)/tools/zunitc/inc
1042
1043libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001044 libshared.la \
1045 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001046
Jon A. Cruz646aef52015-07-15 19:22:41 -07001047if ENABLE_JUNIT_XML
1048libzunitc_la_CFLAGS += \
1049 $(LIBXML2_CFLAGS)
1050libzunitc_la_LIBADD += \
1051 $(LIBXML2_LIBS)
1052endif
1053
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001054libzunitcmain_la_SOURCES = \
1055 tools/zunitc/src/main.c
1056
1057libzunitcmain_la_CFLAGS = \
1058 $(AM_CFLAGS) \
1059 -I$(top_srcdir)/tools/zunitc/inc
1060
1061libzunitcmain_la_LIBADD = \
1062 libzunitc.la \
1063 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001064
1065#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001066# tests subdirectory
1067#
1068
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001069TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1070
1071internal_tests = \
1072 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001073
1074shared_tests = \
1075 config-parser.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001076 vertex-clip.test \
1077 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001078
1079module_tests = \
1080 surface-test.la \
1081 surface-global-test.la
1082
1083weston_tests = \
1084 bad_buffer.weston \
1085 keyboard.weston \
1086 event.weston \
1087 button.weston \
1088 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001089 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001090 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001091 subsurface.weston \
1092 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001093
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001094ivi_tests =
1095
1096$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001097
1098AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001099 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1100 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001101
1102TEST_EXTENSIONS = .la .weston
1103LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1104WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1105
1106clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001107 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001108 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001109
1110# To remove when automake 1.11 support is dropped
1111export abs_builddir
1112
1113noinst_LTLIBRARIES += \
1114 weston-test.la \
1115 $(module_tests) \
1116 libtest-runner.la \
1117 libtest-client.la
1118
1119noinst_PROGRAMS += \
1120 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001121 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001122 $(shared_tests) \
1123 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001124 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001125 matrix-test
1126
1127test_module_ldflags = \
1128 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1129
1130surface_global_test_la_SOURCES = tests/surface-global-test.c
1131surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001132surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001133
1134surface_test_la_SOURCES = tests/surface-test.c
1135surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001136surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001137
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001138weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001139weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001140weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001141weston_test_la_SOURCES = \
1142 tests/weston-test.c \
1143 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001144nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001145 protocol/weston-test-protocol.c \
1146 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001147
1148if ENABLE_EGL
1149weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1150weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1151endif
1152
1153libtest_runner_la_SOURCES = \
1154 tests/weston-test-runner.c \
1155 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001156libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001157
1158config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001159config_parser_test_LDADD = \
1160 libshared.la \
1161 $(COMPOSITOR_LIBS) \
1162 libzunitc.la \
1163 libzunitcmain.la
1164config_parser_test_CFLAGS = \
1165 $(AM_CFLAGS) \
1166 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001167
1168vertex_clip_test_SOURCES = \
1169 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001170 shared/helpers.h \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001171 src/vertex-clipping.c \
1172 src/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001173vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001174
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001175libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001176 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001177 tests/weston-test-client-helper.h
1178nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001179 protocol/weston-test-protocol.c \
1180 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001181libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1182libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) $(CAIRO_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001183
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001184
1185#
1186# Internal tests - tests functionality of the testsuite itself
1187#
1188
1189internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001190internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1191internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001192
1193
1194#
1195# Weston Tests
1196#
1197
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001198bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001199bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001200bad_buffer_weston_LDADD = libtest-client.la
1201
1202keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001203keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001204keyboard_weston_LDADD = libtest-client.la
1205
1206event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001207event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001208event_weston_LDADD = libtest-client.la
1209
1210button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001211button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001212button_weston_LDADD = libtest-client.la
1213
Marek Chalupa5fd81402015-03-30 09:21:29 -04001214devices_weston_SOURCES = tests/devices-test.c
1215devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1216devices_weston_LDADD = libtest-client.la
1217
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001218text_weston_SOURCES = tests/text-test.c
1219nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001220 protocol/text-input-unstable-v1-protocol.c \
1221 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001222text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001223text_weston_LDADD = libtest-client.la
1224
1225subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001226subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001227subsurface_weston_LDADD = libtest-client.la
1228
Jon A. Cruzb09da242015-06-16 13:15:13 -07001229presentation_weston_SOURCES = \
1230 tests/presentation-test.c \
1231 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001232nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001233 protocol/presentation-time-protocol.c \
1234 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001235presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1236presentation_weston_LDADD = libtest-client.la
1237
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001238roles_weston_SOURCES = tests/roles-test.c
1239roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1240roles_weston_LDADD = libtest-client.la
1241
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001242if ENABLE_EGL
1243weston_tests += buffer-count.weston
1244buffer_count_weston_SOURCES = tests/buffer-count-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001245buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001246buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1247endif
1248
1249if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001250weston_tests += xwayland-test.weston
1251xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001252xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001253xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001254endif
1255
1256matrix_test_SOURCES = \
1257 tests/matrix-test.c \
1258 shared/matrix.c \
1259 shared/matrix.h
1260matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001261matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001262
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001263if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001264module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001265 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001266 ivi-layout-test.la
1267
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001268ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1269ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001270ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001271ivi_layout_internal_test_la_SOURCES = \
1272 tests/ivi_layout-internal-test.c
1273
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001274ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1275ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001276ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001277ivi_layout_test_la_SOURCES = \
1278 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001279 tests/ivi-test.h \
1280 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001281nodist_ivi_layout_test_la_SOURCES = \
1282 protocol/weston-test-protocol.c \
1283 protocol/weston-test-server-protocol.h
1284
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001285ivi_tests += \
1286 ivi-shell-app.weston
1287
1288ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1289nodist_ivi_shell_app_weston_SOURCES = \
1290 protocol/ivi-application-protocol.c \
1291 protocol/ivi-application-client-protocol.h
1292ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1293ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001294
1295noinst_PROGRAMS += ivi-layout.ivi
1296
1297ivi_layout_ivi_SOURCES = \
1298 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001299 tests/ivi-test.h \
1300 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001301nodist_ivi_layout_ivi_SOURCES = \
1302 protocol/ivi-application-protocol.c \
1303 protocol/ivi-application-client-protocol.h
1304ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1305ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001306endif
1307
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001308if BUILD_SETBACKLIGHT
1309noinst_PROGRAMS += setbacklight
1310setbacklight_SOURCES = \
1311 tests/setbacklight.c \
1312 src/libbacklight.c \
1313 src/libbacklight.h
1314setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1315setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1316endif
1317
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001318all-local: zuctest$(EXEEXT)
1319
1320noinst_PROGRAMS += zuctest$(EXEEXT)
1321
1322zuctest_LDADD = \
1323 libzunitc.la \
1324 libzunitcmain.la
1325
1326zuctest_CFLAGS = \
1327 $(AM_CFLAGS) \
1328 -I$(top_srcdir)/tools/zunitc/inc
1329
1330zuctest_SOURCES = \
1331 tools/zunitc/test/fixtures_test.c \
1332 tools/zunitc/test/zunitc_test.c
1333
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001334EXTRA_DIST += \
1335 tests/weston-tests-env \
1336 tests/internal-screenshot.ini \
1337 tests/reference/internal-screenshot-bad-00.png \
1338 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001339
1340BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001341 protocol/weston-test-protocol.c \
1342 protocol/weston-test-server-protocol.h \
1343 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001344 protocol/text-input-unstable-v1-protocol.c \
1345 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001346
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001347EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001348 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001349 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001350 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001351 protocol/weston-test.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001352 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001353 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001354 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001355
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001356#
1357# manual test modules in tests subdirectory
1358#
1359
1360noinst_LTLIBRARIES += \
1361 surface-screenshot.la
1362
1363surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1364surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001365surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001366surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1367
1368
1369#
1370# Documentation
1371#
1372
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001373man_MANS = weston.1 weston.ini.5
1374
1375if ENABLE_DRM_COMPOSITOR
1376man_MANS += weston-drm.7
1377endif
1378
1379MAN_SUBSTS = \
1380 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1381 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1382 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1383 -e 's|__version__|$(PACKAGE_VERSION)|g'
1384
1385SUFFIXES = .1 .5 .7 .man
1386
1387%.1 %.5 %.7 : man/%.man
1388 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1389
1390EXTRA_DIST += \
1391 man/weston.man \
1392 man/weston-drm.man \
1393 man/weston.ini.man
1394
1395CLEANFILES += $(man_MANS)
1396
Jon A. Cruz179c1862015-07-15 19:22:43 -07001397if ENABLE_DEVDOCS
1398DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1399
1400docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1401 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1402
1403docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1404 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1405endif
1406
1407DOCDIRS = \
1408 docs/developer \
1409 docs/tools
1410
1411$(DOCDIRS):
1412 $(MKDIR_P) $@
1413
1414.PHONY: doc $(DOXYGEN_INDICES)
1415
1416doc: $(DOXYGEN_INDICES)
1417
Jonas Ådahl496adb32015-11-17 16:00:27 +08001418.SECONDEXPANSION:
1419
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001420define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001421$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001422endef
1423
1424define protoname
1425$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1426endef
1427
1428protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001429 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1430
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001431protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001432 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1433
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001434protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001435 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1436
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001437protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1438 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001439
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001440protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1441 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001442
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001443protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1444 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@