blob: 1b323006d9fdd55ab656c4978b5a59a0668b50c2 [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) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -030068 $(DLOPEN_LIBS) -lm $(CLOCK_GETTIME_LIBS) libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080069
70weston_SOURCES = \
71 src/git-version.h \
72 src/log.c \
73 src/compositor.c \
74 src/compositor.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -070075 src/compositor-drm.h \
Benoit Gschwind934e89a2016-04-27 23:56:42 +020076 src/compositor-fbdev.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -070077 src/compositor-headless.h \
Benoit Gschwindbd573102016-04-22 17:05:26 +020078 src/compositor-rdp.h \
Benoit Gschwind639322a2016-04-28 20:33:15 +020079 src/compositor-wayland.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -070080 src/compositor-x11.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080081 src/input.c \
82 src/data-device.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080083 src/screenshooter.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080084 src/clipboard.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080085 src/zoom.c \
86 src/text-backend.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080087 src/bindings.c \
88 src/animation.c \
89 src/noop-renderer.c \
90 src/pixman-renderer.c \
91 src/pixman-renderer.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +020092 src/timeline.c \
93 src/timeline.h \
94 src/timeline-object.h \
Giulio Camuffobab996e2014-10-12 00:24:25 +030095 src/main.c \
Pekka Paalanen230f3b12014-09-29 14:18:40 -040096 src/linux-dmabuf.c \
97 src/linux-dmabuf.h \
Giulio Camuffo26f62d42016-06-02 21:48:09 +030098 src/weston-screenshooter.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -070099 shared/helpers.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800100 shared/matrix.c \
101 shared/matrix.h \
Pekka Paalanenaa21f622015-07-03 15:44:50 +0300102 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800103 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100104 shared/platform.h \
Egor Starkov94fd9a52015-09-29 14:50:41 +0300105 src/weston-egl-ext.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300106
107if SYSTEMD_NOTIFY_SUPPORT
108module_LTLIBRARIES += systemd-notify.la
109systemd_notify_la_LDFLAGS = -module -avoid-version
110systemd_notify_la_LIBADD = $(SYSTEMD_DAEMON_LIBS)
111systemd_notify_la_CFLAGS = \
Pekka Paalanenaff703e2016-04-05 14:08:11 +0300112 $(COMPOSITOR_CFLAGS) \
113 $(SYSTEMD_DAEMON_CFLAGS) \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300114 $(PIXMAN_CFLAGS) \
115 $(AM_CFLAGS)
116systemd_notify_la_SOURCES = \
117 src/systemd-notify.c \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300118 shared/helpers.h \
119 shared/zalloc.h \
Bryce Harringtona0dd5b42015-09-25 15:16:25 -0700120 src/compositor.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300121endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800122
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800123nodist_weston_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800124 protocol/weston-screenshooter-protocol.c \
125 protocol/weston-screenshooter-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800126 protocol/text-cursor-position-protocol.c \
127 protocol/text-cursor-position-server-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800128 protocol/text-input-unstable-v1-protocol.c \
129 protocol/text-input-unstable-v1-server-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800130 protocol/input-method-unstable-v1-protocol.c \
131 protocol/input-method-unstable-v1-server-protocol.h \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200132 protocol/presentation-time-protocol.c \
133 protocol/presentation-time-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800134 protocol/scaler-protocol.c \
Pekka Paalanen23ab7152014-09-29 14:08:29 -0400135 protocol/scaler-server-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800136 protocol/linux-dmabuf-unstable-v1-protocol.c \
137 protocol/linux-dmabuf-unstable-v1-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800138
139BUILT_SOURCES += $(nodist_weston_SOURCES)
140
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800141# Track this dependency explicitly instead of using BUILT_SOURCES. We
142# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
143# in case we're building from tarballs.
144
145src/compositor.c : $(top_builddir)/src/git-version.h
146
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800147noinst_LTLIBRARIES += \
148 libsession-helper.la
149
150libsession_helper_la_SOURCES = \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800151 src/launcher-util.c \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700152 src/launcher-util.h \
Derek Foremancb156202015-09-24 09:26:48 -0500153 src/launcher-impl.h \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700154 src/weston-launch.h \
155 src/launcher-weston-launch.c \
156 src/launcher-direct.c
Derek Foreman4ff38742015-06-18 11:43:11 -0500157libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800158libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
159
160if ENABLE_DBUS
161if HAVE_SYSTEMD_LOGIN
162libsession_helper_la_SOURCES += \
163 src/dbus.h \
164 src/dbus.c \
Jasper St. Pierre30bcf352015-09-23 10:46:46 -0700165 src/launcher-logind.c
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800166libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
167libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
168endif
169endif
170
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800171if HAVE_GIT_REPO
172src/git-version.h : $(top_srcdir)/.git/logs/HEAD
173 $(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 -0800174else
175src/git-version.h :
176 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
177
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800178endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800179
180.FORCE :
181
182if BUILD_WESTON_LAUNCH
183bin_PROGRAMS += weston-launch
184weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
185weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
186weston_launch_CFLAGS= \
Derek Foreman4ff38742015-06-18 11:43:11 -0500187 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800188 $(PAM_CFLAGS) \
189 $(SYSTEMD_LOGIN_CFLAGS) \
190 $(LIBDRM_CFLAGS)
191weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
192
193if ENABLE_SETUID_INSTALL
194install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700195 can_suid_files=no; \
196 chown root $(DESTDIR)$(bindir)/weston-launch \
197 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
198 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500199 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700200 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
201 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
202 false; \
203 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800204endif
205
206endif # BUILD_WESTON_LAUNCH
207
208pkgconfigdir = $(libdir)/pkgconfig
209pkgconfig_DATA = src/weston.pc
210
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100211wayland_sessiondir = $(datadir)/wayland-sessions
Ross Burton315476f2015-07-16 20:56:32 +0100212dist_wayland_session_DATA = src/weston.desktop
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100213
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800214westonincludedir = $(includedir)/weston
215westoninclude_HEADERS = \
216 src/version.h \
217 src/compositor.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700218 src/compositor-drm.h \
Benoit Gschwind934e89a2016-04-27 23:56:42 +0200219 src/compositor-fbdev.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700220 src/compositor-headless.h \
Benoit Gschwindbd573102016-04-22 17:05:26 +0200221 src/compositor-rdp.h \
Benoit Gschwind639322a2016-04-28 20:33:15 +0200222 src/compositor-wayland.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700223 src/compositor-x11.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200224 src/timeline-object.h \
Giulio Camuffo26f62d42016-06-02 21:48:09 +0300225 src/weston.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800226 shared/matrix.h \
227 shared/config-parser.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100228 shared/zalloc.h \
229 shared/platform.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800230
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000231if ENABLE_IVI_SHELL
232westoninclude_HEADERS += \
233 ivi-shell/ivi-layout-export.h
234endif
235
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800236if ENABLE_EGL
237module_LTLIBRARIES += gl-renderer.la
238gl_renderer_la_LDFLAGS = -module -avoid-version
239gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
240gl_renderer_la_CFLAGS = \
241 $(COMPOSITOR_CFLAGS) \
242 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300243 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500244 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800245gl_renderer_la_SOURCES = \
246 src/gl-renderer.h \
247 src/gl-renderer.c \
248 src/vertex-clipping.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700249 src/vertex-clipping.h \
250 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800251endif
252
253if ENABLE_X11_COMPOSITOR
254module_LTLIBRARIES += x11-backend.la
255x11_backend_la_LDFLAGS = -module -avoid-version
256x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800257 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800258x11_backend_la_CFLAGS = \
259 $(COMPOSITOR_CFLAGS) \
260 $(EGL_CFLAGS) \
261 $(PIXMAN_CFLAGS) \
262 $(CAIRO_CFLAGS) \
263 $(X11_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500264 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700265x11_backend_la_SOURCES = \
266 src/compositor-x11.c \
Benoit Gschwinde16acab2016-04-15 20:28:31 -0700267 src/compositor-x11.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700268 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800269endif
270
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100271INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000272INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100273 src/libinput-seat.c \
274 src/libinput-seat.h \
275 src/libinput-device.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700276 src/libinput-device.h \
277 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100278
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800279if ENABLE_DRM_COMPOSITOR
280module_LTLIBRARIES += drm-backend.la
281drm_backend_la_LDFLAGS = -module -avoid-version
282drm_backend_la_LIBADD = \
283 $(COMPOSITOR_LIBS) \
284 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100285 $(INPUT_BACKEND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300286 libshared.la \
287 $(CLOCK_GETTIME_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800288 libsession-helper.la
289drm_backend_la_CFLAGS = \
290 $(COMPOSITOR_CFLAGS) \
291 $(EGL_CFLAGS) \
292 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500293 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800294drm_backend_la_SOURCES = \
295 src/compositor-drm.c \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700296 src/compositor-drm.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100297 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700298 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200299 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800300 src/libbacklight.c \
301 src/libbacklight.h
302
303if ENABLE_VAAPI_RECORDER
304drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
305drm_backend_la_LIBADD += $(LIBVA_LIBS)
306drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
307endif
308endif
309
310if ENABLE_WAYLAND_COMPOSITOR
311module_LTLIBRARIES += wayland-backend.la
312wayland_backend_la_LDFLAGS = -module -avoid-version
313wayland_backend_la_LIBADD = \
314 $(COMPOSITOR_LIBS) \
315 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800316 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800317wayland_backend_la_CFLAGS = \
318 $(COMPOSITOR_CFLAGS) \
319 $(EGL_CFLAGS) \
320 $(PIXMAN_CFLAGS) \
321 $(CAIRO_CFLAGS) \
322 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500323 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700324wayland_backend_la_SOURCES = \
325 src/compositor-wayland.c \
Benoit Gschwind639322a2016-04-28 20:33:15 +0200326 src/compositor-wayland.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700327 shared/helpers.h
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500328nodist_wayland_backend_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800329 protocol/fullscreen-shell-unstable-v1-protocol.c \
330 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800331endif
332
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800333if ENABLE_HEADLESS_COMPOSITOR
334module_LTLIBRARIES += headless-backend.la
335headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800336headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500337headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700338headless_backend_la_SOURCES = \
339 src/compositor-headless.c \
Benoit Gschwind3c530942016-04-15 20:28:32 -0700340 src/compositor-headless.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700341 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800342endif
343
344if ENABLE_FBDEV_COMPOSITOR
345module_LTLIBRARIES += fbdev-backend.la
346fbdev_backend_la_LDFLAGS = -module -avoid-version
347fbdev_backend_la_LIBADD = \
348 $(COMPOSITOR_LIBS) \
349 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100350 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800351 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800352 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800353fbdev_backend_la_CFLAGS = \
354 $(COMPOSITOR_CFLAGS) \
355 $(EGL_CFLAGS) \
356 $(FBDEV_COMPOSITOR_CFLAGS) \
357 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500358 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800359fbdev_backend_la_SOURCES = \
360 src/compositor-fbdev.c \
Benoit Gschwind934e89a2016-04-27 23:56:42 +0200361 src/compositor-fbdev.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700362 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100363 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800364endif
365
366if ENABLE_RDP_COMPOSITOR
367module_LTLIBRARIES += rdp-backend.la
368rdp_backend_la_LDFLAGS = -module -avoid-version
369rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
370 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800371 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800372rdp_backend_la_CFLAGS = \
373 $(COMPOSITOR_CFLAGS) \
374 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500375 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700376rdp_backend_la_SOURCES = \
377 src/compositor-rdp.c \
Benoit Gschwindbd573102016-04-22 17:05:26 +0200378 src/compositor-rdp.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700379 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800380endif
381
382if HAVE_LCMS
383module_LTLIBRARIES += cms-static.la
384cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800385cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500386cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800387cms_static_la_SOURCES = \
388 src/cms-static.c \
389 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700390 src/cms-helper.h \
391 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800392if ENABLE_COLORD
393module_LTLIBRARIES += cms-colord.la
394cms_colord_la_LDFLAGS = -module -avoid-version
395cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500396cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800397cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100398 src/cms-colord.c \
399 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700400 src/cms-helper.h \
401 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800402endif
403endif
404
405noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500406spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800407spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
408spring_tool_SOURCES = \
409 src/spring-tool.c \
410 src/animation.c \
411 shared/matrix.c \
412 shared/matrix.h \
413 src/compositor.h
414
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800415if BUILD_CLIENTS
416
417bin_PROGRAMS += weston-terminal weston-info
418
419libexec_PROGRAMS += \
420 weston-desktop-shell \
421 weston-screenshooter \
422 weston-keyboard \
423 weston-simple-im
424
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900425if ENABLE_IVI_SHELL
426libexec_PROGRAMS += \
427 weston-ivi-shell-user-interface
428endif
429
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800430demo_clients = \
431 weston-flower \
432 weston-image \
433 weston-cliptest \
434 weston-dnd \
435 weston-smoke \
436 weston-resizor \
437 weston-eventdemo \
438 weston-clickdot \
439 weston-transformed \
440 weston-fullscreen \
441 weston-stacking \
442 weston-calibrator \
443 weston-scaler
444
445if INSTALL_DEMO_CLIENTS
446bin_PROGRAMS += $(demo_clients)
447else
448noinst_PROGRAMS += $(demo_clients)
449endif
450
451
452if BUILD_SIMPLE_CLIENTS
453demo_clients += \
454 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500455 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800456 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400457 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800458 weston-multi-resource
459
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800460weston_simple_shm_SOURCES = clients/simple-shm.c
461nodist_weston_simple_shm_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800462 protocol/xdg-shell-unstable-v5-protocol.c \
463 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800464 protocol/fullscreen-shell-unstable-v1-protocol.c \
465 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900466 protocol/ivi-application-protocol.c \
467 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800468weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800469weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800470
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500471weston_simple_damage_SOURCES = clients/simple-damage.c
472nodist_weston_simple_damage_SOURCES = \
473 protocol/scaler-protocol.c \
474 protocol/scaler-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800475 protocol/xdg-shell-unstable-v5-protocol.c \
476 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800477 protocol/fullscreen-shell-unstable-v1-protocol.c \
478 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500479weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
480weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
481
Jon A. Cruzb09da242015-06-16 13:15:13 -0700482weston_simple_touch_SOURCES = \
483 clients/simple-touch.c \
484 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800485weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800486weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800487
Jon A. Cruzb09da242015-06-16 13:15:13 -0700488weston_presentation_shm_SOURCES = \
489 clients/presentation-shm.c \
490 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400491nodist_weston_presentation_shm_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200492 protocol/presentation-time-protocol.c \
493 protocol/presentation-time-client-protocol.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400494weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300495weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400496
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800497weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800498weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300499weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800500endif
501
502if BUILD_SIMPLE_EGL_CLIENTS
503demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800504weston_simple_egl_SOURCES = clients/simple-egl.c
505nodist_weston_simple_egl_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800506 protocol/xdg-shell-unstable-v5-protocol.c \
507 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900508 protocol/ivi-application-protocol.c \
509 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800510weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800511weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
512endif
513
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000514if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
515demo_clients += weston-simple-dmabuf-intel
516weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
517nodist_weston_simple_dmabuf_intel_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800518 protocol/xdg-shell-unstable-v5-protocol.c \
519 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800520 protocol/fullscreen-shell-unstable-v1-protocol.c \
521 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800522 protocol/linux-dmabuf-unstable-v1-protocol.c \
523 protocol/linux-dmabuf-unstable-v1-client-protocol.h
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000524weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
525weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800526BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200527endif
528
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000529if BUILD_SIMPLE_DMABUF_V4L_CLIENT
530demo_clients += weston-simple-dmabuf-v4l
531weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
532nodist_weston_simple_dmabuf_v4l_SOURCES = \
533 protocol/xdg-shell-unstable-v5-protocol.c \
534 protocol/xdg-shell-unstable-v5-client-protocol.h \
535 protocol/fullscreen-shell-unstable-v1-protocol.c \
536 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
537 protocol/linux-dmabuf-unstable-v1-protocol.c \
538 protocol/linux-dmabuf-unstable-v1-client-protocol.h
539weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
540weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
541BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
542endif
543
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800544noinst_LTLIBRARIES += libtoytoolkit.la
545
546libtoytoolkit_la_SOURCES = \
547 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700548 clients/window.h \
549 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800550
551nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100552 protocol/text-cursor-position-protocol.c \
553 protocol/text-cursor-position-client-protocol.h \
554 protocol/scaler-protocol.c \
555 protocol/scaler-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800556 protocol/xdg-shell-unstable-v5-protocol.c \
557 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900558 protocol/ivi-application-protocol.c \
559 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500560
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800561BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
562
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800563
564libtoytoolkit_la_LIBADD = \
565 $(CLIENT_LIBS) \
566 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300567 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800568libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800569
570weston_flower_SOURCES = clients/flower.c
571weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800572weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800573
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100574weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800575 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800576nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800577 protocol/weston-screenshooter-protocol.c \
578 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800579weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800580weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800581
Jon A. Cruzb09da242015-06-16 13:15:13 -0700582weston_terminal_SOURCES = \
583 clients/terminal.c \
584 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800585weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800586weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800587
588weston_image_SOURCES = clients/image.c
589weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800590weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800591
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300592weston_cliptest_SOURCES = \
593 clients/cliptest.c \
594 src/vertex-clipping.c \
595 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800596weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800597weston_cliptest_LDADD = libtoytoolkit.la
598
Jon A. Cruzb09da242015-06-16 13:15:13 -0700599weston_dnd_SOURCES = \
600 clients/dnd.c \
601 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800602weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800603weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800604
605weston_smoke_SOURCES = clients/smoke.c
606weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800607weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800608
609weston_resizor_SOURCES = clients/resizor.c
610weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800611weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800612
613weston_scaler_SOURCES = clients/scaler.c
614weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800615weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800616
617if HAVE_CAIRO_GLESV2
618demo_clients += weston-nested weston-nested-client
619
Jon A. Cruzb09da242015-06-16 13:15:13 -0700620weston_nested_SOURCES = \
621 clients/nested.c \
622 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800623weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800624weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800625
626weston_nested_client_SOURCES = clients/nested-client.c
627weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800628weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800629endif
630
Jon A. Cruzb09da242015-06-16 13:15:13 -0700631weston_eventdemo_SOURCES = \
632 clients/eventdemo.c \
633 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800634weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800635weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800636
Jon A. Cruzb09da242015-06-16 13:15:13 -0700637weston_clickdot_SOURCES = \
638 clients/clickdot.c \
639 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800640weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800641weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800642
643weston_transformed_SOURCES = clients/transformed.c
644weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800645weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800646
647weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500648nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800649 protocol/fullscreen-shell-unstable-v1-protocol.c \
650 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800651weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800652weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800653
Jon A. Cruzb09da242015-06-16 13:15:13 -0700654weston_stacking_SOURCES = \
655 clients/stacking.c \
656 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800657weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800658weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800659
Jon A. Cruzb09da242015-06-16 13:15:13 -0700660weston_calibrator_SOURCES = \
661 clients/calibrator.c \
662 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800663 shared/matrix.c \
664 shared/matrix.h
665weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800666weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800667
668if BUILD_SUBSURFACES_CLIENT
669demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700670weston_subsurfaces_SOURCES = \
671 clients/subsurfaces.c \
672 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800673weston_subsurfaces_CFLAGS = \
674 $(AM_CFLAGS) \
675 $(SIMPLE_EGL_CLIENT_CFLAGS) \
676 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800677weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
678endif
679
680if HAVE_PANGO
681demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700682weston_editor_SOURCES = \
683 clients/editor.c \
684 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800685nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800686 protocol/text-input-unstable-v1-protocol.c \
687 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800688weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800689weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800690endif
691
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800692weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800693nodist_weston_keyboard_SOURCES = \
694 protocol/weston-desktop-shell-client-protocol.h \
695 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800696 protocol/input-method-unstable-v1-protocol.c \
697 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800698weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800699weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800700
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800701weston_simple_im_SOURCES = clients/weston-simple-im.c
702nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800703 protocol/input-method-unstable-v1-protocol.c \
704 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800705weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800706weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800707
Jon A. Cruzb09da242015-06-16 13:15:13 -0700708weston_info_SOURCES = \
709 clients/weston-info.c \
710 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400711nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200712 protocol/presentation-time-protocol.c \
713 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800714weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200715weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800716
Jon A. Cruzb09da242015-06-16 13:15:13 -0700717weston_desktop_shell_SOURCES = \
718 clients/desktop-shell.c \
719 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800720nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800721 protocol/weston-desktop-shell-client-protocol.h \
722 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800723weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800724weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800725
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900726if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700727weston_ivi_shell_user_interface_SOURCES = \
728 clients/ivi-shell-user-interface.c \
729 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900730nodist_weston_ivi_shell_user_interface_SOURCES = \
731 protocol/ivi-hmi-controller-client-protocol.h \
732 protocol/ivi-hmi-controller-protocol.c \
733 protocol/ivi-application-client-protocol.h \
734 protocol/ivi-application-protocol.c
735weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
736weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
737endif
738
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800739if BUILD_FULL_GL_CLIENTS
740demo_clients += weston-gears
741weston_gears_SOURCES = clients/gears.c
742weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800743weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800744endif
745
746endif
747
748BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800749 protocol/weston-screenshooter-protocol.c \
750 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100751 protocol/text-cursor-position-client-protocol.h \
752 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800753 protocol/text-input-unstable-v1-protocol.c \
754 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800755 protocol/input-method-unstable-v1-protocol.c \
756 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800757 protocol/weston-desktop-shell-client-protocol.h \
758 protocol/weston-desktop-shell-protocol.c \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100759 protocol/scaler-client-protocol.h \
760 protocol/scaler-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200761 protocol/presentation-time-protocol.c \
762 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800763 protocol/fullscreen-shell-unstable-v1-protocol.c \
764 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800765 protocol/xdg-shell-unstable-v5-protocol.c \
766 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900767 protocol/ivi-hmi-controller-protocol.c \
768 protocol/ivi-hmi-controller-client-protocol.h \
769 protocol/ivi-application-protocol.c \
770 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800771
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800772westondatadir = $(datadir)/weston
773dist_westondata_DATA = \
774 data/wayland.svg \
775 data/wayland.png \
776 data/pattern.png \
777 data/terminal.png \
778 data/border.png \
Bryce Harrington6bc52542016-03-24 17:57:39 -0700779 data/icon_editor.png \
780 data/icon_flower.png \
781 data/icon_terminal.png \
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800782 data/icon_window.png \
783 data/sign_close.png \
784 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100785 data/sign_minimize.png
786
787if ENABLE_IVI_SHELL
788dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900789 data/background.png \
790 data/tiling.png \
791 data/fullscreen.png \
792 data/panel.png \
793 data/random.png \
794 data/sidebyside.png \
795 data/home.png \
796 data/icon_ivi_clickdot.png \
797 data/icon_ivi_flower.png \
798 data/icon_ivi_simple-egl.png \
799 data/icon_ivi_simple-shm.png \
800 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100801endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800802
803
804if BUILD_WCAP_TOOLS
805bin_PROGRAMS += wcap-decode
806
807wcap_decode_SOURCES = \
808 wcap/main.c \
809 wcap/wcap-decode.c \
810 wcap/wcap-decode.h
811
Derek Foreman4ff38742015-06-18 11:43:11 -0500812wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800813wcap_decode_LDADD = $(WCAP_LIBS)
814endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800815
816
817if ENABLE_DESKTOP_SHELL
818
819module_LTLIBRARIES += desktop-shell.la
820
821desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100822 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800823 -I$(top_srcdir)/shared \
824 -I$(top_srcdir)/src \
825 -I$(top_builddir)/src \
826 -I$(top_builddir)/desktop-shell \
827 -DDATADIR='"$(datadir)"' \
828 -DMODULEDIR='"$(moduledir)"' \
829 -DLIBEXECDIR='"$(libexecdir)"' \
830 -DIN_WESTON
831
832desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800833desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500834desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800835desktop_shell_la_SOURCES = \
836 desktop-shell/shell.h \
837 desktop-shell/shell.c \
838 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700839 desktop-shell/input-panel.c \
840 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800841nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800842 protocol/weston-desktop-shell-protocol.c \
843 protocol/weston-desktop-shell-server-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800844 protocol/xdg-shell-unstable-v5-protocol.c \
845 protocol/xdg-shell-unstable-v5-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800846
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800847BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800848endif
849
Jason Ekstrand946a9482014-04-02 19:53:47 -0500850if ENABLE_FULLSCREEN_SHELL
851
852module_LTLIBRARIES += fullscreen-shell.la
853
854fullscreen_shell_la_CPPFLAGS = \
855 -I$(top_builddir)/protocol \
856 -I$(top_srcdir)/shared \
857 -I$(top_srcdir)/src \
858 -I$(top_builddir)/src \
859 -DIN_WESTON
860
861fullscreen_shell_la_LDFLAGS = -module -avoid-version
862fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500863fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500864fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700865 fullscreen-shell/fullscreen-shell.c \
866 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500867nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800868 protocol/fullscreen-shell-unstable-v1-protocol.c \
869 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500870
871BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
872endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800873
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900874if ENABLE_IVI_SHELL
875
876module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900877 $(ivi_shell) \
878 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900879
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900880ivi_shell = ivi-shell.la
881ivi_shell_la_LDFLAGS = -module -avoid-version
882ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500883ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900884ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900885 ivi-shell/ivi-layout-export.h \
886 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +0200887 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900888 ivi-shell/ivi-layout.c \
889 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900890 ivi-shell/ivi-shell.h \
891 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700892 ivi-shell/input-panel-ivi.c \
893 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900894nodist_ivi_shell_la_SOURCES = \
895 protocol/ivi-application-protocol.c \
896 protocol/ivi-application-server-protocol.h
897
898BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
899
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900900hmi_controller = hmi-controller.la
901hmi_controller_la_LDFLAGS = -module -avoid-version
902hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500903hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900904hmi_controller_la_SOURCES = \
905 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700906 ivi-shell/hmi-controller.c \
907 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900908nodist_hmi_controller_la_SOURCES = \
909 protocol/ivi-hmi-controller-protocol.c \
910 protocol/ivi-hmi-controller-server-protocol.h
911
912BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
913
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900914endif
915
916
Jason Ekstrand47928d82014-04-02 19:54:01 -0500917if ENABLE_SCREEN_SHARING
918
919module_LTLIBRARIES += screen-share.la
920
921screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
922screen_share_la_LDFLAGS = -module -avoid-version
923screen_share_la_LIBADD = \
924 $(COMPOSITOR_LIBS) \
925 $(SCREEN_SHARE_LIBS) \
926 libshared-cairo.la
927screen_share_la_CFLAGS = \
928 $(COMPOSITOR_CFLAGS) \
929 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500930 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -0500931screen_share_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700932 src/screen-share.c \
933 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500934nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800935 protocol/fullscreen-shell-unstable-v1-protocol.c \
936 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500937
938endif
939
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800940if ENABLE_XWAYLAND
941
942module_LTLIBRARIES += xwayland.la
943
944xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100945 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800946 -I$(top_srcdir)/shared \
947 -I$(top_srcdir)/src \
948 -I$(top_builddir)/src \
949 -I$(top_builddir)/xwayland \
950 -DDATADIR='"$(datadir)"' \
951 -DMODULEDIR='"$(moduledir)"' \
952 -DLIBEXECDIR='"$(libexecdir)"' \
953 -DXSERVER_PATH='"@XSERVER_PATH@"'
954
955xwayland_la_LDFLAGS = -module -avoid-version
956xwayland_la_LIBADD = \
957 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800958 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800959xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500960 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800961 $(COMPOSITOR_CFLAGS) \
962 $(PIXMAN_CFLAGS) \
963 $(CAIRO_CFLAGS)
964xwayland_la_SOURCES = \
965 xwayland/xwayland.h \
966 xwayland/window-manager.c \
967 xwayland/selection.c \
968 xwayland/dnd.c \
969 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800970 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700971 xwayland/hash.h \
972 shared/helpers.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800973endif
974
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800975
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800976#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800977# Shared utilities
978#
979
Jon A. Cruz5a75a412015-07-02 23:36:44 -0700980noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
981 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800982
Derek Foreman4ff38742015-06-18 11:43:11 -0500983libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800984
985libshared_la_SOURCES = \
986 shared/config-parser.c \
987 shared/option-parser.c \
988 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +0200989 shared/file-util.c \
990 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700991 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800992 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -0700993 shared/os-compatibility.h \
994 shared/xalloc.c \
995 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800996
997libshared_cairo_la_CFLAGS = \
998 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -0500999 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001000 $(COMPOSITOR_CFLAGS) \
1001 $(PIXMAN_CFLAGS) \
1002 $(CAIRO_CFLAGS) \
1003 $(PNG_CFLAGS) \
1004 $(WEBP_CFLAGS)
1005
1006libshared_cairo_la_LIBADD = \
1007 $(PIXMAN_LIBS) \
1008 $(CAIRO_LIBS) \
1009 $(PNG_LIBS) \
1010 $(WEBP_LIBS) \
1011 $(JPEG_LIBS)
1012
1013libshared_cairo_la_SOURCES = \
1014 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001015 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001016 shared/image-loader.c \
1017 shared/image-loader.h \
1018 shared/cairo-util.c \
1019 shared/frame.c \
1020 shared/cairo-util.h
1021
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001022libzunitc_la_SOURCES = \
1023 tools/zunitc/inc/zunitc/zunitc.h \
1024 tools/zunitc/inc/zunitc/zunitc_impl.h \
1025 tools/zunitc/src/zuc_base_logger.c \
1026 tools/zunitc/src/zuc_base_logger.h \
1027 tools/zunitc/src/zuc_collector.c \
1028 tools/zunitc/src/zuc_collector.h \
1029 tools/zunitc/src/zuc_context.h \
1030 tools/zunitc/src/zuc_event.h \
1031 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001032 tools/zunitc/src/zuc_junit_reporter.c \
1033 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001034 tools/zunitc/src/zuc_types.h \
1035 tools/zunitc/src/zunitc_impl.c \
1036 shared/helpers.h
1037
1038libzunitc_la_CFLAGS = \
1039 $(AM_CFLAGS) \
1040 -I$(top_srcdir)/tools/zunitc/inc
1041
1042libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001043 libshared.la \
1044 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001045
Jon A. Cruz646aef52015-07-15 19:22:41 -07001046if ENABLE_JUNIT_XML
1047libzunitc_la_CFLAGS += \
1048 $(LIBXML2_CFLAGS)
1049libzunitc_la_LIBADD += \
1050 $(LIBXML2_LIBS)
1051endif
1052
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001053libzunitcmain_la_SOURCES = \
1054 tools/zunitc/src/main.c
1055
1056libzunitcmain_la_CFLAGS = \
1057 $(AM_CFLAGS) \
1058 -I$(top_srcdir)/tools/zunitc/inc
1059
1060libzunitcmain_la_LIBADD = \
1061 libzunitc.la \
1062 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001063
1064#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001065# tests subdirectory
1066#
1067
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001068TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1069
1070internal_tests = \
1071 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001072
1073shared_tests = \
1074 config-parser.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001075 vertex-clip.test \
1076 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001077
1078module_tests = \
1079 surface-test.la \
1080 surface-global-test.la
1081
1082weston_tests = \
1083 bad_buffer.weston \
1084 keyboard.weston \
1085 event.weston \
1086 button.weston \
1087 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001088 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001089 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001090 subsurface.weston \
1091 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001092
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001093ivi_tests =
1094
1095$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001096
1097AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001098 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1099 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001100
1101TEST_EXTENSIONS = .la .weston
1102LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1103WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1104
1105clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001106 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001107 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001108
1109# To remove when automake 1.11 support is dropped
1110export abs_builddir
1111
1112noinst_LTLIBRARIES += \
1113 weston-test.la \
1114 $(module_tests) \
1115 libtest-runner.la \
1116 libtest-client.la
1117
1118noinst_PROGRAMS += \
1119 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001120 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001121 $(shared_tests) \
1122 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001123 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001124 matrix-test
1125
1126test_module_ldflags = \
1127 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1128
1129surface_global_test_la_SOURCES = tests/surface-global-test.c
1130surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001131surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001132
1133surface_test_la_SOURCES = tests/surface-test.c
1134surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001135surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001136
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001137weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001138weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001139weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001140weston_test_la_SOURCES = \
1141 tests/weston-test.c \
1142 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001143nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001144 protocol/weston-test-protocol.c \
1145 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001146
1147if ENABLE_EGL
1148weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1149weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1150endif
1151
1152libtest_runner_la_SOURCES = \
1153 tests/weston-test-runner.c \
1154 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001155libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001156
1157config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001158config_parser_test_LDADD = \
1159 libshared.la \
1160 $(COMPOSITOR_LIBS) \
1161 libzunitc.la \
1162 libzunitcmain.la
1163config_parser_test_CFLAGS = \
1164 $(AM_CFLAGS) \
1165 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001166
1167vertex_clip_test_SOURCES = \
1168 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001169 shared/helpers.h \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001170 src/vertex-clipping.c \
1171 src/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001172vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001173
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001174libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001175 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001176 tests/weston-test-client-helper.h
1177nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001178 protocol/weston-test-protocol.c \
1179 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001180libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1181libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) $(CAIRO_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001182
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001183
1184#
1185# Internal tests - tests functionality of the testsuite itself
1186#
1187
1188internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001189internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1190internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001191
1192
1193#
1194# Weston Tests
1195#
1196
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001197bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001198bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001199bad_buffer_weston_LDADD = libtest-client.la
1200
1201keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001202keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001203keyboard_weston_LDADD = libtest-client.la
1204
1205event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001206event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001207event_weston_LDADD = libtest-client.la
1208
1209button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001210button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001211button_weston_LDADD = libtest-client.la
1212
Marek Chalupa5fd81402015-03-30 09:21:29 -04001213devices_weston_SOURCES = tests/devices-test.c
1214devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1215devices_weston_LDADD = libtest-client.la
1216
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001217text_weston_SOURCES = tests/text-test.c
1218nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001219 protocol/text-input-unstable-v1-protocol.c \
1220 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001221text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001222text_weston_LDADD = libtest-client.la
1223
1224subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001225subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001226subsurface_weston_LDADD = libtest-client.la
1227
Jon A. Cruzb09da242015-06-16 13:15:13 -07001228presentation_weston_SOURCES = \
1229 tests/presentation-test.c \
1230 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001231nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001232 protocol/presentation-time-protocol.c \
1233 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001234presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1235presentation_weston_LDADD = libtest-client.la
1236
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001237roles_weston_SOURCES = tests/roles-test.c
1238roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1239roles_weston_LDADD = libtest-client.la
1240
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001241if ENABLE_EGL
1242weston_tests += buffer-count.weston
1243buffer_count_weston_SOURCES = tests/buffer-count-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001244buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001245buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1246endif
1247
1248if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001249weston_tests += xwayland-test.weston
1250xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001251xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001252xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001253endif
1254
1255matrix_test_SOURCES = \
1256 tests/matrix-test.c \
1257 shared/matrix.c \
1258 shared/matrix.h
1259matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001260matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001261
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001262if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001263module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001264 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001265 ivi-layout-test.la
1266
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001267ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1268ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001269ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001270ivi_layout_internal_test_la_SOURCES = \
1271 tests/ivi_layout-internal-test.c
1272
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001273ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1274ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001275ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001276ivi_layout_test_la_SOURCES = \
1277 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001278 tests/ivi-test.h \
1279 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001280nodist_ivi_layout_test_la_SOURCES = \
1281 protocol/weston-test-protocol.c \
1282 protocol/weston-test-server-protocol.h
1283
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001284ivi_tests += \
1285 ivi-shell-app.weston
1286
1287ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1288nodist_ivi_shell_app_weston_SOURCES = \
1289 protocol/ivi-application-protocol.c \
1290 protocol/ivi-application-client-protocol.h
1291ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1292ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001293
1294noinst_PROGRAMS += ivi-layout.ivi
1295
1296ivi_layout_ivi_SOURCES = \
1297 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001298 tests/ivi-test.h \
1299 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001300nodist_ivi_layout_ivi_SOURCES = \
1301 protocol/ivi-application-protocol.c \
1302 protocol/ivi-application-client-protocol.h
1303ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1304ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001305endif
1306
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001307if BUILD_SETBACKLIGHT
1308noinst_PROGRAMS += setbacklight
1309setbacklight_SOURCES = \
1310 tests/setbacklight.c \
1311 src/libbacklight.c \
1312 src/libbacklight.h
1313setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1314setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1315endif
1316
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001317all-local: zuctest$(EXEEXT)
1318
1319noinst_PROGRAMS += zuctest$(EXEEXT)
1320
1321zuctest_LDADD = \
1322 libzunitc.la \
1323 libzunitcmain.la
1324
1325zuctest_CFLAGS = \
1326 $(AM_CFLAGS) \
1327 -I$(top_srcdir)/tools/zunitc/inc
1328
1329zuctest_SOURCES = \
1330 tools/zunitc/test/fixtures_test.c \
1331 tools/zunitc/test/zunitc_test.c
1332
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001333EXTRA_DIST += \
1334 tests/weston-tests-env \
1335 tests/internal-screenshot.ini \
1336 tests/reference/internal-screenshot-bad-00.png \
1337 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001338
1339BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001340 protocol/weston-test-protocol.c \
1341 protocol/weston-test-server-protocol.h \
1342 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001343 protocol/text-input-unstable-v1-protocol.c \
1344 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001345
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001346EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001347 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001348 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001349 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001350 protocol/weston-test.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001351 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001352 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001353 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001354
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001355#
1356# manual test modules in tests subdirectory
1357#
1358
1359noinst_LTLIBRARIES += \
1360 surface-screenshot.la
1361
1362surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1363surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001364surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001365surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1366
1367
1368#
1369# Documentation
1370#
1371
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001372man_MANS = weston.1 weston.ini.5
1373
1374if ENABLE_DRM_COMPOSITOR
1375man_MANS += weston-drm.7
1376endif
1377
1378MAN_SUBSTS = \
1379 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1380 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1381 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1382 -e 's|__version__|$(PACKAGE_VERSION)|g'
1383
1384SUFFIXES = .1 .5 .7 .man
1385
1386%.1 %.5 %.7 : man/%.man
1387 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1388
1389EXTRA_DIST += \
1390 man/weston.man \
1391 man/weston-drm.man \
1392 man/weston.ini.man
1393
1394CLEANFILES += $(man_MANS)
1395
Jon A. Cruz179c1862015-07-15 19:22:43 -07001396if ENABLE_DEVDOCS
1397DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1398
1399docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1400 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1401
1402docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1403 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1404endif
1405
1406DOCDIRS = \
1407 docs/developer \
1408 docs/tools
1409
1410$(DOCDIRS):
1411 $(MKDIR_P) $@
1412
1413.PHONY: doc $(DOXYGEN_INDICES)
1414
1415doc: $(DOXYGEN_INDICES)
1416
Jonas Ådahl496adb32015-11-17 16:00:27 +08001417.SECONDEXPANSION:
1418
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001419define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001420$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001421endef
1422
1423define protoname
1424$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1425endef
1426
1427protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001428 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1429
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001430protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001431 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1432
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001433protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001434 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1435
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001436protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1437 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001438
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001439protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1440 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001441
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001442protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1443 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@