blob: f94eae264b5939985246c06c4ce8a665656a3c7e [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 \
Benoit Gschwind934e89a2016-04-27 23:56:42 +020075 src/compositor-headless.h \
76 src/compositor-fbdev.h \
Benoit Gschwindbd573102016-04-22 17:05:26 +020077 src/compositor-rdp.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080078 src/input.c \
79 src/data-device.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080080 src/screenshooter.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080081 src/clipboard.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080082 src/zoom.c \
83 src/text-backend.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080084 src/bindings.c \
85 src/animation.c \
86 src/noop-renderer.c \
87 src/pixman-renderer.c \
88 src/pixman-renderer.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +020089 src/timeline.c \
90 src/timeline.h \
91 src/timeline-object.h \
Giulio Camuffobab996e2014-10-12 00:24:25 +030092 src/main.c \
Pekka Paalanen230f3b12014-09-29 14:18:40 -040093 src/linux-dmabuf.c \
94 src/linux-dmabuf.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -070095 shared/helpers.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080096 shared/matrix.c \
97 shared/matrix.h \
Pekka Paalanenaa21f622015-07-03 15:44:50 +030098 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080099 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100100 shared/platform.h \
Egor Starkov94fd9a52015-09-29 14:50:41 +0300101 src/weston-egl-ext.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300102
103if SYSTEMD_NOTIFY_SUPPORT
104module_LTLIBRARIES += systemd-notify.la
105systemd_notify_la_LDFLAGS = -module -avoid-version
106systemd_notify_la_LIBADD = $(SYSTEMD_DAEMON_LIBS)
107systemd_notify_la_CFLAGS = \
Pekka Paalanenaff703e2016-04-05 14:08:11 +0300108 $(COMPOSITOR_CFLAGS) \
109 $(SYSTEMD_DAEMON_CFLAGS) \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300110 $(PIXMAN_CFLAGS) \
111 $(AM_CFLAGS)
112systemd_notify_la_SOURCES = \
113 src/systemd-notify.c \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300114 shared/helpers.h \
115 shared/zalloc.h \
Bryce Harringtona0dd5b42015-09-25 15:16:25 -0700116 src/compositor.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300117endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800118
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800119nodist_weston_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800120 protocol/weston-screenshooter-protocol.c \
121 protocol/weston-screenshooter-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800122 protocol/text-cursor-position-protocol.c \
123 protocol/text-cursor-position-server-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800124 protocol/text-input-unstable-v1-protocol.c \
125 protocol/text-input-unstable-v1-server-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800126 protocol/input-method-unstable-v1-protocol.c \
127 protocol/input-method-unstable-v1-server-protocol.h \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200128 protocol/presentation-time-protocol.c \
129 protocol/presentation-time-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800130 protocol/scaler-protocol.c \
Pekka Paalanen23ab7152014-09-29 14:08:29 -0400131 protocol/scaler-server-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800132 protocol/linux-dmabuf-unstable-v1-protocol.c \
133 protocol/linux-dmabuf-unstable-v1-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800134
135BUILT_SOURCES += $(nodist_weston_SOURCES)
136
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800137# Track this dependency explicitly instead of using BUILT_SOURCES. We
138# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
139# in case we're building from tarballs.
140
141src/compositor.c : $(top_builddir)/src/git-version.h
142
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800143noinst_LTLIBRARIES += \
144 libsession-helper.la
145
146libsession_helper_la_SOURCES = \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800147 src/launcher-util.c \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700148 src/launcher-util.h \
Derek Foremancb156202015-09-24 09:26:48 -0500149 src/launcher-impl.h \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700150 src/weston-launch.h \
151 src/launcher-weston-launch.c \
152 src/launcher-direct.c
Derek Foreman4ff38742015-06-18 11:43:11 -0500153libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800154libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
155
156if ENABLE_DBUS
157if HAVE_SYSTEMD_LOGIN
158libsession_helper_la_SOURCES += \
159 src/dbus.h \
160 src/dbus.c \
Jasper St. Pierre30bcf352015-09-23 10:46:46 -0700161 src/launcher-logind.c
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800162libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
163libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
164endif
165endif
166
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800167if HAVE_GIT_REPO
168src/git-version.h : $(top_srcdir)/.git/logs/HEAD
169 $(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 -0800170else
171src/git-version.h :
172 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
173
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800174endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800175
176.FORCE :
177
178if BUILD_WESTON_LAUNCH
179bin_PROGRAMS += weston-launch
180weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
181weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
182weston_launch_CFLAGS= \
Derek Foreman4ff38742015-06-18 11:43:11 -0500183 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800184 $(PAM_CFLAGS) \
185 $(SYSTEMD_LOGIN_CFLAGS) \
186 $(LIBDRM_CFLAGS)
187weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
188
189if ENABLE_SETUID_INSTALL
190install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700191 can_suid_files=no; \
192 chown root $(DESTDIR)$(bindir)/weston-launch \
193 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
194 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500195 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700196 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
197 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
198 false; \
199 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800200endif
201
202endif # BUILD_WESTON_LAUNCH
203
204pkgconfigdir = $(libdir)/pkgconfig
205pkgconfig_DATA = src/weston.pc
206
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100207wayland_sessiondir = $(datadir)/wayland-sessions
Ross Burton315476f2015-07-16 20:56:32 +0100208dist_wayland_session_DATA = src/weston.desktop
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100209
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800210westonincludedir = $(includedir)/weston
211westoninclude_HEADERS = \
212 src/version.h \
213 src/compositor.h \
Benoit Gschwind3c530942016-04-15 20:28:32 -0700214 src/compositor-headless.h \
Benoit Gschwind934e89a2016-04-27 23:56:42 +0200215 src/compositor-fbdev.h \
Benoit Gschwindbd573102016-04-22 17:05:26 +0200216 src/compositor-rdp.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200217 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800218 shared/matrix.h \
219 shared/config-parser.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100220 shared/zalloc.h \
221 shared/platform.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800222
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000223if ENABLE_IVI_SHELL
224westoninclude_HEADERS += \
225 ivi-shell/ivi-layout-export.h
226endif
227
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800228if ENABLE_EGL
229module_LTLIBRARIES += gl-renderer.la
230gl_renderer_la_LDFLAGS = -module -avoid-version
231gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
232gl_renderer_la_CFLAGS = \
233 $(COMPOSITOR_CFLAGS) \
234 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300235 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500236 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800237gl_renderer_la_SOURCES = \
238 src/gl-renderer.h \
239 src/gl-renderer.c \
240 src/vertex-clipping.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700241 src/vertex-clipping.h \
242 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800243endif
244
245if ENABLE_X11_COMPOSITOR
246module_LTLIBRARIES += x11-backend.la
247x11_backend_la_LDFLAGS = -module -avoid-version
248x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800249 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800250x11_backend_la_CFLAGS = \
251 $(COMPOSITOR_CFLAGS) \
252 $(EGL_CFLAGS) \
253 $(PIXMAN_CFLAGS) \
254 $(CAIRO_CFLAGS) \
255 $(X11_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500256 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700257x11_backend_la_SOURCES = \
258 src/compositor-x11.c \
259 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800260endif
261
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100262INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000263INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100264 src/libinput-seat.c \
265 src/libinput-seat.h \
266 src/libinput-device.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700267 src/libinput-device.h \
268 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100269
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800270if ENABLE_DRM_COMPOSITOR
271module_LTLIBRARIES += drm-backend.la
272drm_backend_la_LDFLAGS = -module -avoid-version
273drm_backend_la_LIBADD = \
274 $(COMPOSITOR_LIBS) \
275 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100276 $(INPUT_BACKEND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300277 libshared.la \
278 $(CLOCK_GETTIME_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800279 libsession-helper.la
280drm_backend_la_CFLAGS = \
281 $(COMPOSITOR_CFLAGS) \
282 $(EGL_CFLAGS) \
283 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500284 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800285drm_backend_la_SOURCES = \
286 src/compositor-drm.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100287 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700288 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200289 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800290 src/libbacklight.c \
291 src/libbacklight.h
292
293if ENABLE_VAAPI_RECORDER
294drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
295drm_backend_la_LIBADD += $(LIBVA_LIBS)
296drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
297endif
298endif
299
300if ENABLE_WAYLAND_COMPOSITOR
301module_LTLIBRARIES += wayland-backend.la
302wayland_backend_la_LDFLAGS = -module -avoid-version
303wayland_backend_la_LIBADD = \
304 $(COMPOSITOR_LIBS) \
305 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800306 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800307wayland_backend_la_CFLAGS = \
308 $(COMPOSITOR_CFLAGS) \
309 $(EGL_CFLAGS) \
310 $(PIXMAN_CFLAGS) \
311 $(CAIRO_CFLAGS) \
312 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500313 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700314wayland_backend_la_SOURCES = \
315 src/compositor-wayland.c \
316 shared/helpers.h
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500317nodist_wayland_backend_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800318 protocol/fullscreen-shell-unstable-v1-protocol.c \
319 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800320endif
321
322if ENABLE_RPI_COMPOSITOR
323if INSTALL_RPI_COMPOSITOR
324module_LTLIBRARIES += rpi-backend.la
325else
326noinst_LTLIBRARIES += rpi-backend.la
327endif
328
329rpi_backend_la_LDFLAGS = -module -avoid-version
330rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
331 $(RPI_COMPOSITOR_LIBS) \
332 $(RPI_BCM_HOST_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100333 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800334 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800335 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800336rpi_backend_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500337 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800338 $(COMPOSITOR_CFLAGS) \
339 $(RPI_COMPOSITOR_CFLAGS) \
340 $(RPI_BCM_HOST_CFLAGS)
341rpi_backend_la_SOURCES = \
342 src/compositor-rpi.c \
343 src/rpi-renderer.c \
344 src/rpi-renderer.h \
345 src/rpi-bcm-stubs.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700346 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100347 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800348
349if ENABLE_EGL
350rpi_backend_la_LIBADD += $(EGL_LIBS)
351rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
352endif
353
354endif
355
356if ENABLE_HEADLESS_COMPOSITOR
357module_LTLIBRARIES += headless-backend.la
358headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800359headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500360headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700361headless_backend_la_SOURCES = \
362 src/compositor-headless.c \
Benoit Gschwind3c530942016-04-15 20:28:32 -0700363 src/compositor-headless.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700364 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800365endif
366
367if ENABLE_FBDEV_COMPOSITOR
368module_LTLIBRARIES += fbdev-backend.la
369fbdev_backend_la_LDFLAGS = -module -avoid-version
370fbdev_backend_la_LIBADD = \
371 $(COMPOSITOR_LIBS) \
372 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100373 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800374 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800375 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800376fbdev_backend_la_CFLAGS = \
377 $(COMPOSITOR_CFLAGS) \
378 $(EGL_CFLAGS) \
379 $(FBDEV_COMPOSITOR_CFLAGS) \
380 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500381 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800382fbdev_backend_la_SOURCES = \
383 src/compositor-fbdev.c \
Benoit Gschwind934e89a2016-04-27 23:56:42 +0200384 src/compositor-fbdev.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700385 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100386 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800387endif
388
389if ENABLE_RDP_COMPOSITOR
390module_LTLIBRARIES += rdp-backend.la
391rdp_backend_la_LDFLAGS = -module -avoid-version
392rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
393 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800394 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800395rdp_backend_la_CFLAGS = \
396 $(COMPOSITOR_CFLAGS) \
397 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500398 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700399rdp_backend_la_SOURCES = \
400 src/compositor-rdp.c \
Benoit Gschwindbd573102016-04-22 17:05:26 +0200401 src/compositor-rdp.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700402 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800403endif
404
405if HAVE_LCMS
406module_LTLIBRARIES += cms-static.la
407cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800408cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500409cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800410cms_static_la_SOURCES = \
411 src/cms-static.c \
412 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700413 src/cms-helper.h \
414 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800415if ENABLE_COLORD
416module_LTLIBRARIES += cms-colord.la
417cms_colord_la_LDFLAGS = -module -avoid-version
418cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500419cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800420cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100421 src/cms-colord.c \
422 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700423 src/cms-helper.h \
424 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800425endif
426endif
427
428noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500429spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800430spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
431spring_tool_SOURCES = \
432 src/spring-tool.c \
433 src/animation.c \
434 shared/matrix.c \
435 shared/matrix.h \
436 src/compositor.h
437
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800438if BUILD_CLIENTS
439
440bin_PROGRAMS += weston-terminal weston-info
441
442libexec_PROGRAMS += \
443 weston-desktop-shell \
444 weston-screenshooter \
445 weston-keyboard \
446 weston-simple-im
447
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900448if ENABLE_IVI_SHELL
449libexec_PROGRAMS += \
450 weston-ivi-shell-user-interface
451endif
452
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800453demo_clients = \
454 weston-flower \
455 weston-image \
456 weston-cliptest \
457 weston-dnd \
458 weston-smoke \
459 weston-resizor \
460 weston-eventdemo \
461 weston-clickdot \
462 weston-transformed \
463 weston-fullscreen \
464 weston-stacking \
465 weston-calibrator \
466 weston-scaler
467
468if INSTALL_DEMO_CLIENTS
469bin_PROGRAMS += $(demo_clients)
470else
471noinst_PROGRAMS += $(demo_clients)
472endif
473
474
475if BUILD_SIMPLE_CLIENTS
476demo_clients += \
477 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500478 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800479 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400480 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800481 weston-multi-resource
482
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800483weston_simple_shm_SOURCES = clients/simple-shm.c
484nodist_weston_simple_shm_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800485 protocol/xdg-shell-unstable-v5-protocol.c \
486 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800487 protocol/fullscreen-shell-unstable-v1-protocol.c \
488 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900489 protocol/ivi-application-protocol.c \
490 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800491weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800492weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800493
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500494weston_simple_damage_SOURCES = clients/simple-damage.c
495nodist_weston_simple_damage_SOURCES = \
496 protocol/scaler-protocol.c \
497 protocol/scaler-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800498 protocol/xdg-shell-unstable-v5-protocol.c \
499 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800500 protocol/fullscreen-shell-unstable-v1-protocol.c \
501 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500502weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
503weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
504
Jon A. Cruzb09da242015-06-16 13:15:13 -0700505weston_simple_touch_SOURCES = \
506 clients/simple-touch.c \
507 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800508weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800509weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800510
Jon A. Cruzb09da242015-06-16 13:15:13 -0700511weston_presentation_shm_SOURCES = \
512 clients/presentation-shm.c \
513 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400514nodist_weston_presentation_shm_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200515 protocol/presentation-time-protocol.c \
516 protocol/presentation-time-client-protocol.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400517weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300518weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400519
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800520weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800521weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300522weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800523endif
524
525if BUILD_SIMPLE_EGL_CLIENTS
526demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800527weston_simple_egl_SOURCES = clients/simple-egl.c
528nodist_weston_simple_egl_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800529 protocol/xdg-shell-unstable-v5-protocol.c \
530 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900531 protocol/ivi-application-protocol.c \
532 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800533weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800534weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
535endif
536
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000537if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
538demo_clients += weston-simple-dmabuf-intel
539weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
540nodist_weston_simple_dmabuf_intel_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800541 protocol/xdg-shell-unstable-v5-protocol.c \
542 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800543 protocol/fullscreen-shell-unstable-v1-protocol.c \
544 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800545 protocol/linux-dmabuf-unstable-v1-protocol.c \
546 protocol/linux-dmabuf-unstable-v1-client-protocol.h
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000547weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
548weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800549BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200550endif
551
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000552if BUILD_SIMPLE_DMABUF_V4L_CLIENT
553demo_clients += weston-simple-dmabuf-v4l
554weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
555nodist_weston_simple_dmabuf_v4l_SOURCES = \
556 protocol/xdg-shell-unstable-v5-protocol.c \
557 protocol/xdg-shell-unstable-v5-client-protocol.h \
558 protocol/fullscreen-shell-unstable-v1-protocol.c \
559 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
560 protocol/linux-dmabuf-unstable-v1-protocol.c \
561 protocol/linux-dmabuf-unstable-v1-client-protocol.h
562weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
563weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
564BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
565endif
566
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800567noinst_LTLIBRARIES += libtoytoolkit.la
568
569libtoytoolkit_la_SOURCES = \
570 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700571 clients/window.h \
572 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800573
574nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100575 protocol/text-cursor-position-protocol.c \
576 protocol/text-cursor-position-client-protocol.h \
577 protocol/scaler-protocol.c \
578 protocol/scaler-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800579 protocol/xdg-shell-unstable-v5-protocol.c \
580 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900581 protocol/ivi-application-protocol.c \
582 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500583
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800584BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
585
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800586
587libtoytoolkit_la_LIBADD = \
588 $(CLIENT_LIBS) \
589 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300590 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800591libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800592
593weston_flower_SOURCES = clients/flower.c
594weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800595weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800596
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100597weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800598 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800599nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800600 protocol/weston-screenshooter-protocol.c \
601 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800602weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800603weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800604
Jon A. Cruzb09da242015-06-16 13:15:13 -0700605weston_terminal_SOURCES = \
606 clients/terminal.c \
607 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800608weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800609weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800610
611weston_image_SOURCES = clients/image.c
612weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800613weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800614
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300615weston_cliptest_SOURCES = \
616 clients/cliptest.c \
617 src/vertex-clipping.c \
618 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800619weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800620weston_cliptest_LDADD = libtoytoolkit.la
621
Jon A. Cruzb09da242015-06-16 13:15:13 -0700622weston_dnd_SOURCES = \
623 clients/dnd.c \
624 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800625weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800626weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800627
628weston_smoke_SOURCES = clients/smoke.c
629weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800630weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800631
632weston_resizor_SOURCES = clients/resizor.c
633weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800634weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800635
636weston_scaler_SOURCES = clients/scaler.c
637weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800638weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800639
640if HAVE_CAIRO_GLESV2
641demo_clients += weston-nested weston-nested-client
642
Jon A. Cruzb09da242015-06-16 13:15:13 -0700643weston_nested_SOURCES = \
644 clients/nested.c \
645 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800646weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800647weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800648
649weston_nested_client_SOURCES = clients/nested-client.c
650weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800651weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800652endif
653
Jon A. Cruzb09da242015-06-16 13:15:13 -0700654weston_eventdemo_SOURCES = \
655 clients/eventdemo.c \
656 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800657weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800658weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800659
Jon A. Cruzb09da242015-06-16 13:15:13 -0700660weston_clickdot_SOURCES = \
661 clients/clickdot.c \
662 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800663weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800664weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800665
666weston_transformed_SOURCES = clients/transformed.c
667weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800668weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800669
670weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500671nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800672 protocol/fullscreen-shell-unstable-v1-protocol.c \
673 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800674weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800675weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800676
Jon A. Cruzb09da242015-06-16 13:15:13 -0700677weston_stacking_SOURCES = \
678 clients/stacking.c \
679 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800680weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800681weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800682
Jon A. Cruzb09da242015-06-16 13:15:13 -0700683weston_calibrator_SOURCES = \
684 clients/calibrator.c \
685 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800686 shared/matrix.c \
687 shared/matrix.h
688weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800689weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800690
691if BUILD_SUBSURFACES_CLIENT
692demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700693weston_subsurfaces_SOURCES = \
694 clients/subsurfaces.c \
695 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800696weston_subsurfaces_CFLAGS = \
697 $(AM_CFLAGS) \
698 $(SIMPLE_EGL_CLIENT_CFLAGS) \
699 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800700weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
701endif
702
703if HAVE_PANGO
704demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700705weston_editor_SOURCES = \
706 clients/editor.c \
707 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800708nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800709 protocol/text-input-unstable-v1-protocol.c \
710 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800711weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800712weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800713endif
714
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800715weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800716nodist_weston_keyboard_SOURCES = \
717 protocol/weston-desktop-shell-client-protocol.h \
718 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800719 protocol/input-method-unstable-v1-protocol.c \
720 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800721weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800722weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800723
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800724weston_simple_im_SOURCES = clients/weston-simple-im.c
725nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800726 protocol/input-method-unstable-v1-protocol.c \
727 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800728weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800729weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800730
Jon A. Cruzb09da242015-06-16 13:15:13 -0700731weston_info_SOURCES = \
732 clients/weston-info.c \
733 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400734nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200735 protocol/presentation-time-protocol.c \
736 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800737weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200738weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800739
Jon A. Cruzb09da242015-06-16 13:15:13 -0700740weston_desktop_shell_SOURCES = \
741 clients/desktop-shell.c \
742 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800743nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800744 protocol/weston-desktop-shell-client-protocol.h \
745 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800746weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800747weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800748
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900749if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700750weston_ivi_shell_user_interface_SOURCES = \
751 clients/ivi-shell-user-interface.c \
752 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900753nodist_weston_ivi_shell_user_interface_SOURCES = \
754 protocol/ivi-hmi-controller-client-protocol.h \
755 protocol/ivi-hmi-controller-protocol.c \
756 protocol/ivi-application-client-protocol.h \
757 protocol/ivi-application-protocol.c
758weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
759weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
760endif
761
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800762if BUILD_FULL_GL_CLIENTS
763demo_clients += weston-gears
764weston_gears_SOURCES = clients/gears.c
765weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800766weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800767endif
768
769endif
770
771BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800772 protocol/weston-screenshooter-protocol.c \
773 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100774 protocol/text-cursor-position-client-protocol.h \
775 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800776 protocol/text-input-unstable-v1-protocol.c \
777 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800778 protocol/input-method-unstable-v1-protocol.c \
779 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800780 protocol/weston-desktop-shell-client-protocol.h \
781 protocol/weston-desktop-shell-protocol.c \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100782 protocol/scaler-client-protocol.h \
783 protocol/scaler-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200784 protocol/presentation-time-protocol.c \
785 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800786 protocol/fullscreen-shell-unstable-v1-protocol.c \
787 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800788 protocol/xdg-shell-unstable-v5-protocol.c \
789 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900790 protocol/ivi-hmi-controller-protocol.c \
791 protocol/ivi-hmi-controller-client-protocol.h \
792 protocol/ivi-application-protocol.c \
793 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800794
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800795westondatadir = $(datadir)/weston
796dist_westondata_DATA = \
797 data/wayland.svg \
798 data/wayland.png \
799 data/pattern.png \
800 data/terminal.png \
801 data/border.png \
802 data/icon_window.png \
803 data/sign_close.png \
804 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100805 data/sign_minimize.png
806
807if ENABLE_IVI_SHELL
808dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900809 data/background.png \
810 data/tiling.png \
811 data/fullscreen.png \
812 data/panel.png \
813 data/random.png \
814 data/sidebyside.png \
815 data/home.png \
816 data/icon_ivi_clickdot.png \
817 data/icon_ivi_flower.png \
818 data/icon_ivi_simple-egl.png \
819 data/icon_ivi_simple-shm.png \
820 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100821endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800822
823
824if BUILD_WCAP_TOOLS
825bin_PROGRAMS += wcap-decode
826
827wcap_decode_SOURCES = \
828 wcap/main.c \
829 wcap/wcap-decode.c \
830 wcap/wcap-decode.h
831
Derek Foreman4ff38742015-06-18 11:43:11 -0500832wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800833wcap_decode_LDADD = $(WCAP_LIBS)
834endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800835
836
837if ENABLE_DESKTOP_SHELL
838
839module_LTLIBRARIES += desktop-shell.la
840
841desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100842 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800843 -I$(top_srcdir)/shared \
844 -I$(top_srcdir)/src \
845 -I$(top_builddir)/src \
846 -I$(top_builddir)/desktop-shell \
847 -DDATADIR='"$(datadir)"' \
848 -DMODULEDIR='"$(moduledir)"' \
849 -DLIBEXECDIR='"$(libexecdir)"' \
850 -DIN_WESTON
851
852desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800853desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500854desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800855desktop_shell_la_SOURCES = \
856 desktop-shell/shell.h \
857 desktop-shell/shell.c \
858 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700859 desktop-shell/input-panel.c \
860 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800861nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800862 protocol/weston-desktop-shell-protocol.c \
863 protocol/weston-desktop-shell-server-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800864 protocol/xdg-shell-unstable-v5-protocol.c \
865 protocol/xdg-shell-unstable-v5-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800866
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800867BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800868endif
869
Jason Ekstrand946a9482014-04-02 19:53:47 -0500870if ENABLE_FULLSCREEN_SHELL
871
872module_LTLIBRARIES += fullscreen-shell.la
873
874fullscreen_shell_la_CPPFLAGS = \
875 -I$(top_builddir)/protocol \
876 -I$(top_srcdir)/shared \
877 -I$(top_srcdir)/src \
878 -I$(top_builddir)/src \
879 -DIN_WESTON
880
881fullscreen_shell_la_LDFLAGS = -module -avoid-version
882fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500883fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500884fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700885 fullscreen-shell/fullscreen-shell.c \
886 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500887nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800888 protocol/fullscreen-shell-unstable-v1-protocol.c \
889 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500890
891BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
892endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800893
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900894if ENABLE_IVI_SHELL
895
896module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900897 $(ivi_shell) \
898 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900899
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900900ivi_shell = ivi-shell.la
901ivi_shell_la_LDFLAGS = -module -avoid-version
902ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500903ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900904ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900905 ivi-shell/ivi-layout-export.h \
906 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +0200907 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900908 ivi-shell/ivi-layout.c \
909 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900910 ivi-shell/ivi-shell.h \
911 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700912 ivi-shell/input-panel-ivi.c \
913 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900914nodist_ivi_shell_la_SOURCES = \
915 protocol/ivi-application-protocol.c \
916 protocol/ivi-application-server-protocol.h
917
918BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
919
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900920hmi_controller = hmi-controller.la
921hmi_controller_la_LDFLAGS = -module -avoid-version
922hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500923hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900924hmi_controller_la_SOURCES = \
925 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700926 ivi-shell/hmi-controller.c \
927 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900928nodist_hmi_controller_la_SOURCES = \
929 protocol/ivi-hmi-controller-protocol.c \
930 protocol/ivi-hmi-controller-server-protocol.h
931
932BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
933
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900934endif
935
936
Jason Ekstrand47928d82014-04-02 19:54:01 -0500937if ENABLE_SCREEN_SHARING
938
939module_LTLIBRARIES += screen-share.la
940
941screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
942screen_share_la_LDFLAGS = -module -avoid-version
943screen_share_la_LIBADD = \
944 $(COMPOSITOR_LIBS) \
945 $(SCREEN_SHARE_LIBS) \
946 libshared-cairo.la
947screen_share_la_CFLAGS = \
948 $(COMPOSITOR_CFLAGS) \
949 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500950 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -0500951screen_share_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700952 src/screen-share.c \
953 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500954nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800955 protocol/fullscreen-shell-unstable-v1-protocol.c \
956 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500957
958endif
959
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800960if ENABLE_XWAYLAND
961
962module_LTLIBRARIES += xwayland.la
963
964xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100965 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800966 -I$(top_srcdir)/shared \
967 -I$(top_srcdir)/src \
968 -I$(top_builddir)/src \
969 -I$(top_builddir)/xwayland \
970 -DDATADIR='"$(datadir)"' \
971 -DMODULEDIR='"$(moduledir)"' \
972 -DLIBEXECDIR='"$(libexecdir)"' \
973 -DXSERVER_PATH='"@XSERVER_PATH@"'
974
975xwayland_la_LDFLAGS = -module -avoid-version
976xwayland_la_LIBADD = \
977 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800978 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800979xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500980 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800981 $(COMPOSITOR_CFLAGS) \
982 $(PIXMAN_CFLAGS) \
983 $(CAIRO_CFLAGS)
984xwayland_la_SOURCES = \
985 xwayland/xwayland.h \
986 xwayland/window-manager.c \
987 xwayland/selection.c \
988 xwayland/dnd.c \
989 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800990 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700991 xwayland/hash.h \
992 shared/helpers.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800993endif
994
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800995
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800996#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800997# Shared utilities
998#
999
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001000noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
1001 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001002
Derek Foreman4ff38742015-06-18 11:43:11 -05001003libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001004
1005libshared_la_SOURCES = \
1006 shared/config-parser.c \
1007 shared/option-parser.c \
1008 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +02001009 shared/file-util.c \
1010 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001011 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001012 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -07001013 shared/os-compatibility.h \
1014 shared/xalloc.c \
1015 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001016
1017libshared_cairo_la_CFLAGS = \
1018 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001019 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001020 $(COMPOSITOR_CFLAGS) \
1021 $(PIXMAN_CFLAGS) \
1022 $(CAIRO_CFLAGS) \
1023 $(PNG_CFLAGS) \
1024 $(WEBP_CFLAGS)
1025
1026libshared_cairo_la_LIBADD = \
1027 $(PIXMAN_LIBS) \
1028 $(CAIRO_LIBS) \
1029 $(PNG_LIBS) \
1030 $(WEBP_LIBS) \
1031 $(JPEG_LIBS)
1032
1033libshared_cairo_la_SOURCES = \
1034 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001035 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001036 shared/image-loader.c \
1037 shared/image-loader.h \
1038 shared/cairo-util.c \
1039 shared/frame.c \
1040 shared/cairo-util.h
1041
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001042libzunitc_la_SOURCES = \
1043 tools/zunitc/inc/zunitc/zunitc.h \
1044 tools/zunitc/inc/zunitc/zunitc_impl.h \
1045 tools/zunitc/src/zuc_base_logger.c \
1046 tools/zunitc/src/zuc_base_logger.h \
1047 tools/zunitc/src/zuc_collector.c \
1048 tools/zunitc/src/zuc_collector.h \
1049 tools/zunitc/src/zuc_context.h \
1050 tools/zunitc/src/zuc_event.h \
1051 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001052 tools/zunitc/src/zuc_junit_reporter.c \
1053 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001054 tools/zunitc/src/zuc_types.h \
1055 tools/zunitc/src/zunitc_impl.c \
1056 shared/helpers.h
1057
1058libzunitc_la_CFLAGS = \
1059 $(AM_CFLAGS) \
1060 -I$(top_srcdir)/tools/zunitc/inc
1061
1062libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001063 libshared.la \
1064 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001065
Jon A. Cruz646aef52015-07-15 19:22:41 -07001066if ENABLE_JUNIT_XML
1067libzunitc_la_CFLAGS += \
1068 $(LIBXML2_CFLAGS)
1069libzunitc_la_LIBADD += \
1070 $(LIBXML2_LIBS)
1071endif
1072
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001073libzunitcmain_la_SOURCES = \
1074 tools/zunitc/src/main.c
1075
1076libzunitcmain_la_CFLAGS = \
1077 $(AM_CFLAGS) \
1078 -I$(top_srcdir)/tools/zunitc/inc
1079
1080libzunitcmain_la_LIBADD = \
1081 libzunitc.la \
1082 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001083
1084#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001085# tests subdirectory
1086#
1087
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001088TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1089
1090internal_tests = \
1091 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001092
1093shared_tests = \
1094 config-parser.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001095 vertex-clip.test \
1096 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001097
1098module_tests = \
1099 surface-test.la \
1100 surface-global-test.la
1101
1102weston_tests = \
1103 bad_buffer.weston \
1104 keyboard.weston \
1105 event.weston \
1106 button.weston \
1107 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001108 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001109 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001110 subsurface.weston \
1111 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001112
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001113ivi_tests =
1114
1115$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001116
1117AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001118 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1119 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001120
1121TEST_EXTENSIONS = .la .weston
1122LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1123WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1124
1125clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001126 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001127 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001128
1129# To remove when automake 1.11 support is dropped
1130export abs_builddir
1131
1132noinst_LTLIBRARIES += \
1133 weston-test.la \
1134 $(module_tests) \
1135 libtest-runner.la \
1136 libtest-client.la
1137
1138noinst_PROGRAMS += \
1139 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001140 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001141 $(shared_tests) \
1142 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001143 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001144 matrix-test
1145
1146test_module_ldflags = \
1147 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1148
1149surface_global_test_la_SOURCES = tests/surface-global-test.c
1150surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001151surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001152
1153surface_test_la_SOURCES = tests/surface-test.c
1154surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001155surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001156
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001157weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001158weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001159weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001160weston_test_la_SOURCES = \
1161 tests/weston-test.c \
1162 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001163nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001164 protocol/weston-test-protocol.c \
1165 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001166
1167if ENABLE_EGL
1168weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1169weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1170endif
1171
1172libtest_runner_la_SOURCES = \
1173 tests/weston-test-runner.c \
1174 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001175libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001176
1177config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001178config_parser_test_LDADD = \
1179 libshared.la \
1180 $(COMPOSITOR_LIBS) \
1181 libzunitc.la \
1182 libzunitcmain.la
1183config_parser_test_CFLAGS = \
1184 $(AM_CFLAGS) \
1185 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001186
1187vertex_clip_test_SOURCES = \
1188 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001189 shared/helpers.h \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001190 src/vertex-clipping.c \
1191 src/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001192vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001193
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001194libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001195 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001196 tests/weston-test-client-helper.h
1197nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001198 protocol/weston-test-protocol.c \
1199 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001200libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1201libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) $(CAIRO_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001202
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001203
1204#
1205# Internal tests - tests functionality of the testsuite itself
1206#
1207
1208internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001209internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1210internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001211
1212
1213#
1214# Weston Tests
1215#
1216
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001217bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001218bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001219bad_buffer_weston_LDADD = libtest-client.la
1220
1221keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001222keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001223keyboard_weston_LDADD = libtest-client.la
1224
1225event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001226event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001227event_weston_LDADD = libtest-client.la
1228
1229button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001230button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001231button_weston_LDADD = libtest-client.la
1232
Marek Chalupa5fd81402015-03-30 09:21:29 -04001233devices_weston_SOURCES = tests/devices-test.c
1234devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1235devices_weston_LDADD = libtest-client.la
1236
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001237text_weston_SOURCES = tests/text-test.c
1238nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001239 protocol/text-input-unstable-v1-protocol.c \
1240 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001241text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001242text_weston_LDADD = libtest-client.la
1243
1244subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001245subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001246subsurface_weston_LDADD = libtest-client.la
1247
Jon A. Cruzb09da242015-06-16 13:15:13 -07001248presentation_weston_SOURCES = \
1249 tests/presentation-test.c \
1250 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001251nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001252 protocol/presentation-time-protocol.c \
1253 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001254presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1255presentation_weston_LDADD = libtest-client.la
1256
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001257roles_weston_SOURCES = tests/roles-test.c
1258roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1259roles_weston_LDADD = libtest-client.la
1260
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001261if ENABLE_EGL
1262weston_tests += buffer-count.weston
1263buffer_count_weston_SOURCES = tests/buffer-count-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001264buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001265buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1266endif
1267
1268if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001269weston_tests += xwayland-test.weston
1270xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001271xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001272xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001273endif
1274
1275matrix_test_SOURCES = \
1276 tests/matrix-test.c \
1277 shared/matrix.c \
1278 shared/matrix.h
1279matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001280matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001281
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001282if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001283module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001284 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001285 ivi-layout-test.la
1286
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001287ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1288ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001289ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001290ivi_layout_internal_test_la_SOURCES = \
1291 tests/ivi_layout-internal-test.c
1292
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001293ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1294ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001295ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001296ivi_layout_test_la_SOURCES = \
1297 tests/ivi_layout-test-plugin.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_test_la_SOURCES = \
1301 protocol/weston-test-protocol.c \
1302 protocol/weston-test-server-protocol.h
1303
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001304ivi_tests += \
1305 ivi-shell-app.weston
1306
1307ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1308nodist_ivi_shell_app_weston_SOURCES = \
1309 protocol/ivi-application-protocol.c \
1310 protocol/ivi-application-client-protocol.h
1311ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1312ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001313
1314noinst_PROGRAMS += ivi-layout.ivi
1315
1316ivi_layout_ivi_SOURCES = \
1317 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001318 tests/ivi-test.h \
1319 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001320nodist_ivi_layout_ivi_SOURCES = \
1321 protocol/ivi-application-protocol.c \
1322 protocol/ivi-application-client-protocol.h
1323ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1324ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001325endif
1326
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001327if BUILD_SETBACKLIGHT
1328noinst_PROGRAMS += setbacklight
1329setbacklight_SOURCES = \
1330 tests/setbacklight.c \
1331 src/libbacklight.c \
1332 src/libbacklight.h
1333setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1334setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1335endif
1336
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001337all-local: zuctest$(EXEEXT)
1338
1339noinst_PROGRAMS += zuctest$(EXEEXT)
1340
1341zuctest_LDADD = \
1342 libzunitc.la \
1343 libzunitcmain.la
1344
1345zuctest_CFLAGS = \
1346 $(AM_CFLAGS) \
1347 -I$(top_srcdir)/tools/zunitc/inc
1348
1349zuctest_SOURCES = \
1350 tools/zunitc/test/fixtures_test.c \
1351 tools/zunitc/test/zunitc_test.c
1352
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001353EXTRA_DIST += \
1354 tests/weston-tests-env \
1355 tests/internal-screenshot.ini \
1356 tests/reference/internal-screenshot-bad-00.png \
1357 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001358
1359BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001360 protocol/weston-test-protocol.c \
1361 protocol/weston-test-server-protocol.h \
1362 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001363 protocol/text-input-unstable-v1-protocol.c \
1364 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001365
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001366EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001367 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001368 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001369 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001370 protocol/weston-test.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001371 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001372 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001373 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001374
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001375#
1376# manual test modules in tests subdirectory
1377#
1378
1379noinst_LTLIBRARIES += \
1380 surface-screenshot.la
1381
1382surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1383surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001384surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001385surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1386
1387
1388#
1389# Documentation
1390#
1391
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001392man_MANS = weston.1 weston.ini.5
1393
1394if ENABLE_DRM_COMPOSITOR
1395man_MANS += weston-drm.7
1396endif
1397
1398MAN_SUBSTS = \
1399 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1400 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1401 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1402 -e 's|__version__|$(PACKAGE_VERSION)|g'
1403
1404SUFFIXES = .1 .5 .7 .man
1405
1406%.1 %.5 %.7 : man/%.man
1407 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1408
1409EXTRA_DIST += \
1410 man/weston.man \
1411 man/weston-drm.man \
1412 man/weston.ini.man
1413
1414CLEANFILES += $(man_MANS)
1415
Jon A. Cruz179c1862015-07-15 19:22:43 -07001416if ENABLE_DEVDOCS
1417DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1418
1419docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1420 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1421
1422docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1423 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1424endif
1425
1426DOCDIRS = \
1427 docs/developer \
1428 docs/tools
1429
1430$(DOCDIRS):
1431 $(MKDIR_P) $@
1432
1433.PHONY: doc $(DOXYGEN_INDICES)
1434
1435doc: $(DOXYGEN_INDICES)
1436
Jonas Ådahl496adb32015-11-17 16:00:27 +08001437.SECONDEXPANSION:
1438
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001439define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001440$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001441endef
1442
1443define protoname
1444$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1445endef
1446
1447protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001448 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1449
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001450protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001451 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1452
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001453protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001454 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1455
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001456protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1457 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001458
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001459protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1460 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001461
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001462protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1463 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@