blob: c042c6877ba62285025dba1ce0a396d91c22c181 [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 Gschwind3c530942016-04-15 20:28:32 -070075 src/compositor-headless.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080076 src/input.c \
77 src/data-device.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080078 src/screenshooter.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080079 src/clipboard.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080080 src/zoom.c \
81 src/text-backend.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080082 src/bindings.c \
83 src/animation.c \
84 src/noop-renderer.c \
85 src/pixman-renderer.c \
86 src/pixman-renderer.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +020087 src/timeline.c \
88 src/timeline.h \
89 src/timeline-object.h \
Giulio Camuffobab996e2014-10-12 00:24:25 +030090 src/main.c \
Pekka Paalanen230f3b12014-09-29 14:18:40 -040091 src/linux-dmabuf.c \
92 src/linux-dmabuf.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -070093 shared/helpers.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080094 shared/matrix.c \
95 shared/matrix.h \
Pekka Paalanenaa21f622015-07-03 15:44:50 +030096 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080097 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +010098 shared/platform.h \
Egor Starkov94fd9a52015-09-29 14:50:41 +030099 src/weston-egl-ext.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300100
101if SYSTEMD_NOTIFY_SUPPORT
102module_LTLIBRARIES += systemd-notify.la
103systemd_notify_la_LDFLAGS = -module -avoid-version
104systemd_notify_la_LIBADD = $(SYSTEMD_DAEMON_LIBS)
105systemd_notify_la_CFLAGS = \
Pekka Paalanenaff703e2016-04-05 14:08:11 +0300106 $(COMPOSITOR_CFLAGS) \
107 $(SYSTEMD_DAEMON_CFLAGS) \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300108 $(PIXMAN_CFLAGS) \
109 $(AM_CFLAGS)
110systemd_notify_la_SOURCES = \
111 src/systemd-notify.c \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300112 shared/helpers.h \
113 shared/zalloc.h \
Bryce Harringtona0dd5b42015-09-25 15:16:25 -0700114 src/compositor.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300115endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800116
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800117nodist_weston_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800118 protocol/weston-screenshooter-protocol.c \
119 protocol/weston-screenshooter-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800120 protocol/text-cursor-position-protocol.c \
121 protocol/text-cursor-position-server-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800122 protocol/text-input-unstable-v1-protocol.c \
123 protocol/text-input-unstable-v1-server-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800124 protocol/input-method-unstable-v1-protocol.c \
125 protocol/input-method-unstable-v1-server-protocol.h \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200126 protocol/presentation-time-protocol.c \
127 protocol/presentation-time-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800128 protocol/scaler-protocol.c \
Pekka Paalanen23ab7152014-09-29 14:08:29 -0400129 protocol/scaler-server-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800130 protocol/linux-dmabuf-unstable-v1-protocol.c \
131 protocol/linux-dmabuf-unstable-v1-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800132
133BUILT_SOURCES += $(nodist_weston_SOURCES)
134
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800135# Track this dependency explicitly instead of using BUILT_SOURCES. We
136# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
137# in case we're building from tarballs.
138
139src/compositor.c : $(top_builddir)/src/git-version.h
140
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800141noinst_LTLIBRARIES += \
142 libsession-helper.la
143
144libsession_helper_la_SOURCES = \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800145 src/launcher-util.c \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700146 src/launcher-util.h \
Derek Foremancb156202015-09-24 09:26:48 -0500147 src/launcher-impl.h \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700148 src/weston-launch.h \
149 src/launcher-weston-launch.c \
150 src/launcher-direct.c
Derek Foreman4ff38742015-06-18 11:43:11 -0500151libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800152libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
153
154if ENABLE_DBUS
155if HAVE_SYSTEMD_LOGIN
156libsession_helper_la_SOURCES += \
157 src/dbus.h \
158 src/dbus.c \
Jasper St. Pierre30bcf352015-09-23 10:46:46 -0700159 src/launcher-logind.c
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800160libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
161libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
162endif
163endif
164
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800165if HAVE_GIT_REPO
166src/git-version.h : $(top_srcdir)/.git/logs/HEAD
167 $(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 -0800168else
169src/git-version.h :
170 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
171
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800172endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800173
174.FORCE :
175
176if BUILD_WESTON_LAUNCH
177bin_PROGRAMS += weston-launch
178weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
179weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
180weston_launch_CFLAGS= \
Derek Foreman4ff38742015-06-18 11:43:11 -0500181 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800182 $(PAM_CFLAGS) \
183 $(SYSTEMD_LOGIN_CFLAGS) \
184 $(LIBDRM_CFLAGS)
185weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
186
187if ENABLE_SETUID_INSTALL
188install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700189 can_suid_files=no; \
190 chown root $(DESTDIR)$(bindir)/weston-launch \
191 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
192 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500193 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700194 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
195 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
196 false; \
197 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800198endif
199
200endif # BUILD_WESTON_LAUNCH
201
202pkgconfigdir = $(libdir)/pkgconfig
203pkgconfig_DATA = src/weston.pc
204
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100205wayland_sessiondir = $(datadir)/wayland-sessions
Ross Burton315476f2015-07-16 20:56:32 +0100206dist_wayland_session_DATA = src/weston.desktop
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100207
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800208westonincludedir = $(includedir)/weston
209westoninclude_HEADERS = \
210 src/version.h \
211 src/compositor.h \
Benoit Gschwind3c530942016-04-15 20:28:32 -0700212 src/compositor-headless.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200213 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800214 shared/matrix.h \
215 shared/config-parser.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100216 shared/zalloc.h \
217 shared/platform.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800218
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000219if ENABLE_IVI_SHELL
220westoninclude_HEADERS += \
221 ivi-shell/ivi-layout-export.h
222endif
223
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800224if ENABLE_EGL
225module_LTLIBRARIES += gl-renderer.la
226gl_renderer_la_LDFLAGS = -module -avoid-version
227gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
228gl_renderer_la_CFLAGS = \
229 $(COMPOSITOR_CFLAGS) \
230 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300231 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500232 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800233gl_renderer_la_SOURCES = \
234 src/gl-renderer.h \
235 src/gl-renderer.c \
236 src/vertex-clipping.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700237 src/vertex-clipping.h \
238 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800239endif
240
241if ENABLE_X11_COMPOSITOR
242module_LTLIBRARIES += x11-backend.la
243x11_backend_la_LDFLAGS = -module -avoid-version
244x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800245 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800246x11_backend_la_CFLAGS = \
247 $(COMPOSITOR_CFLAGS) \
248 $(EGL_CFLAGS) \
249 $(PIXMAN_CFLAGS) \
250 $(CAIRO_CFLAGS) \
251 $(X11_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500252 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700253x11_backend_la_SOURCES = \
254 src/compositor-x11.c \
255 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800256endif
257
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100258INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000259INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100260 src/libinput-seat.c \
261 src/libinput-seat.h \
262 src/libinput-device.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700263 src/libinput-device.h \
264 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100265
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800266if ENABLE_DRM_COMPOSITOR
267module_LTLIBRARIES += drm-backend.la
268drm_backend_la_LDFLAGS = -module -avoid-version
269drm_backend_la_LIBADD = \
270 $(COMPOSITOR_LIBS) \
271 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100272 $(INPUT_BACKEND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300273 libshared.la \
274 $(CLOCK_GETTIME_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800275 libsession-helper.la
276drm_backend_la_CFLAGS = \
277 $(COMPOSITOR_CFLAGS) \
278 $(EGL_CFLAGS) \
279 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500280 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800281drm_backend_la_SOURCES = \
282 src/compositor-drm.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100283 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700284 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200285 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800286 src/libbacklight.c \
287 src/libbacklight.h
288
289if ENABLE_VAAPI_RECORDER
290drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
291drm_backend_la_LIBADD += $(LIBVA_LIBS)
292drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
293endif
294endif
295
296if ENABLE_WAYLAND_COMPOSITOR
297module_LTLIBRARIES += wayland-backend.la
298wayland_backend_la_LDFLAGS = -module -avoid-version
299wayland_backend_la_LIBADD = \
300 $(COMPOSITOR_LIBS) \
301 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800302 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800303wayland_backend_la_CFLAGS = \
304 $(COMPOSITOR_CFLAGS) \
305 $(EGL_CFLAGS) \
306 $(PIXMAN_CFLAGS) \
307 $(CAIRO_CFLAGS) \
308 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500309 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700310wayland_backend_la_SOURCES = \
311 src/compositor-wayland.c \
312 shared/helpers.h
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500313nodist_wayland_backend_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800314 protocol/fullscreen-shell-unstable-v1-protocol.c \
315 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800316endif
317
318if ENABLE_RPI_COMPOSITOR
319if INSTALL_RPI_COMPOSITOR
320module_LTLIBRARIES += rpi-backend.la
321else
322noinst_LTLIBRARIES += rpi-backend.la
323endif
324
325rpi_backend_la_LDFLAGS = -module -avoid-version
326rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
327 $(RPI_COMPOSITOR_LIBS) \
328 $(RPI_BCM_HOST_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100329 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800330 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800331 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800332rpi_backend_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500333 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800334 $(COMPOSITOR_CFLAGS) \
335 $(RPI_COMPOSITOR_CFLAGS) \
336 $(RPI_BCM_HOST_CFLAGS)
337rpi_backend_la_SOURCES = \
338 src/compositor-rpi.c \
339 src/rpi-renderer.c \
340 src/rpi-renderer.h \
341 src/rpi-bcm-stubs.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700342 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100343 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800344
345if ENABLE_EGL
346rpi_backend_la_LIBADD += $(EGL_LIBS)
347rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
348endif
349
350endif
351
352if ENABLE_HEADLESS_COMPOSITOR
353module_LTLIBRARIES += headless-backend.la
354headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800355headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500356headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700357headless_backend_la_SOURCES = \
358 src/compositor-headless.c \
Benoit Gschwind3c530942016-04-15 20:28:32 -0700359 src/compositor-headless.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700360 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800361endif
362
363if ENABLE_FBDEV_COMPOSITOR
364module_LTLIBRARIES += fbdev-backend.la
365fbdev_backend_la_LDFLAGS = -module -avoid-version
366fbdev_backend_la_LIBADD = \
367 $(COMPOSITOR_LIBS) \
368 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100369 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800370 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800371 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800372fbdev_backend_la_CFLAGS = \
373 $(COMPOSITOR_CFLAGS) \
374 $(EGL_CFLAGS) \
375 $(FBDEV_COMPOSITOR_CFLAGS) \
376 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500377 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800378fbdev_backend_la_SOURCES = \
379 src/compositor-fbdev.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700380 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100381 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800382endif
383
384if ENABLE_RDP_COMPOSITOR
385module_LTLIBRARIES += rdp-backend.la
386rdp_backend_la_LDFLAGS = -module -avoid-version
387rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
388 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800389 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800390rdp_backend_la_CFLAGS = \
391 $(COMPOSITOR_CFLAGS) \
392 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500393 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700394rdp_backend_la_SOURCES = \
395 src/compositor-rdp.c \
396 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800397endif
398
399if HAVE_LCMS
400module_LTLIBRARIES += cms-static.la
401cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800402cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500403cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800404cms_static_la_SOURCES = \
405 src/cms-static.c \
406 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700407 src/cms-helper.h \
408 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800409if ENABLE_COLORD
410module_LTLIBRARIES += cms-colord.la
411cms_colord_la_LDFLAGS = -module -avoid-version
412cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500413cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800414cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100415 src/cms-colord.c \
416 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700417 src/cms-helper.h \
418 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800419endif
420endif
421
422noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500423spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800424spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
425spring_tool_SOURCES = \
426 src/spring-tool.c \
427 src/animation.c \
428 shared/matrix.c \
429 shared/matrix.h \
430 src/compositor.h
431
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800432if BUILD_CLIENTS
433
434bin_PROGRAMS += weston-terminal weston-info
435
436libexec_PROGRAMS += \
437 weston-desktop-shell \
438 weston-screenshooter \
439 weston-keyboard \
440 weston-simple-im
441
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900442if ENABLE_IVI_SHELL
443libexec_PROGRAMS += \
444 weston-ivi-shell-user-interface
445endif
446
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800447demo_clients = \
448 weston-flower \
449 weston-image \
450 weston-cliptest \
451 weston-dnd \
452 weston-smoke \
453 weston-resizor \
454 weston-eventdemo \
455 weston-clickdot \
456 weston-transformed \
457 weston-fullscreen \
458 weston-stacking \
459 weston-calibrator \
460 weston-scaler
461
462if INSTALL_DEMO_CLIENTS
463bin_PROGRAMS += $(demo_clients)
464else
465noinst_PROGRAMS += $(demo_clients)
466endif
467
468
469if BUILD_SIMPLE_CLIENTS
470demo_clients += \
471 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500472 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800473 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400474 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800475 weston-multi-resource
476
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800477weston_simple_shm_SOURCES = clients/simple-shm.c
478nodist_weston_simple_shm_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800479 protocol/xdg-shell-unstable-v5-protocol.c \
480 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800481 protocol/fullscreen-shell-unstable-v1-protocol.c \
482 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900483 protocol/ivi-application-protocol.c \
484 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800485weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800486weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800487
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500488weston_simple_damage_SOURCES = clients/simple-damage.c
489nodist_weston_simple_damage_SOURCES = \
490 protocol/scaler-protocol.c \
491 protocol/scaler-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800492 protocol/xdg-shell-unstable-v5-protocol.c \
493 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800494 protocol/fullscreen-shell-unstable-v1-protocol.c \
495 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500496weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
497weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
498
Jon A. Cruzb09da242015-06-16 13:15:13 -0700499weston_simple_touch_SOURCES = \
500 clients/simple-touch.c \
501 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800502weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800503weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800504
Jon A. Cruzb09da242015-06-16 13:15:13 -0700505weston_presentation_shm_SOURCES = \
506 clients/presentation-shm.c \
507 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400508nodist_weston_presentation_shm_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200509 protocol/presentation-time-protocol.c \
510 protocol/presentation-time-client-protocol.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400511weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300512weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400513
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800514weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800515weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300516weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800517endif
518
519if BUILD_SIMPLE_EGL_CLIENTS
520demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800521weston_simple_egl_SOURCES = clients/simple-egl.c
522nodist_weston_simple_egl_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800523 protocol/xdg-shell-unstable-v5-protocol.c \
524 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900525 protocol/ivi-application-protocol.c \
526 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800527weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800528weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
529endif
530
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000531if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
532demo_clients += weston-simple-dmabuf-intel
533weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
534nodist_weston_simple_dmabuf_intel_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800535 protocol/xdg-shell-unstable-v5-protocol.c \
536 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800537 protocol/fullscreen-shell-unstable-v1-protocol.c \
538 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800539 protocol/linux-dmabuf-unstable-v1-protocol.c \
540 protocol/linux-dmabuf-unstable-v1-client-protocol.h
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000541weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
542weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800543BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200544endif
545
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000546if BUILD_SIMPLE_DMABUF_V4L_CLIENT
547demo_clients += weston-simple-dmabuf-v4l
548weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
549nodist_weston_simple_dmabuf_v4l_SOURCES = \
550 protocol/xdg-shell-unstable-v5-protocol.c \
551 protocol/xdg-shell-unstable-v5-client-protocol.h \
552 protocol/fullscreen-shell-unstable-v1-protocol.c \
553 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
554 protocol/linux-dmabuf-unstable-v1-protocol.c \
555 protocol/linux-dmabuf-unstable-v1-client-protocol.h
556weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
557weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
558BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
559endif
560
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800561noinst_LTLIBRARIES += libtoytoolkit.la
562
563libtoytoolkit_la_SOURCES = \
564 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700565 clients/window.h \
566 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800567
568nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100569 protocol/text-cursor-position-protocol.c \
570 protocol/text-cursor-position-client-protocol.h \
571 protocol/scaler-protocol.c \
572 protocol/scaler-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800573 protocol/xdg-shell-unstable-v5-protocol.c \
574 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900575 protocol/ivi-application-protocol.c \
576 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500577
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800578BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
579
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800580
581libtoytoolkit_la_LIBADD = \
582 $(CLIENT_LIBS) \
583 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300584 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800585libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800586
587weston_flower_SOURCES = clients/flower.c
588weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800589weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800590
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100591weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800592 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800593nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800594 protocol/weston-screenshooter-protocol.c \
595 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800596weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800597weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800598
Jon A. Cruzb09da242015-06-16 13:15:13 -0700599weston_terminal_SOURCES = \
600 clients/terminal.c \
601 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800602weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800603weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800604
605weston_image_SOURCES = clients/image.c
606weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800607weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800608
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300609weston_cliptest_SOURCES = \
610 clients/cliptest.c \
611 src/vertex-clipping.c \
612 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800613weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800614weston_cliptest_LDADD = libtoytoolkit.la
615
Jon A. Cruzb09da242015-06-16 13:15:13 -0700616weston_dnd_SOURCES = \
617 clients/dnd.c \
618 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800619weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800620weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800621
622weston_smoke_SOURCES = clients/smoke.c
623weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800624weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800625
626weston_resizor_SOURCES = clients/resizor.c
627weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800628weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800629
630weston_scaler_SOURCES = clients/scaler.c
631weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800632weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800633
634if HAVE_CAIRO_GLESV2
635demo_clients += weston-nested weston-nested-client
636
Jon A. Cruzb09da242015-06-16 13:15:13 -0700637weston_nested_SOURCES = \
638 clients/nested.c \
639 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800640weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800641weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800642
643weston_nested_client_SOURCES = clients/nested-client.c
644weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800645weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800646endif
647
Jon A. Cruzb09da242015-06-16 13:15:13 -0700648weston_eventdemo_SOURCES = \
649 clients/eventdemo.c \
650 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800651weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800652weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800653
Jon A. Cruzb09da242015-06-16 13:15:13 -0700654weston_clickdot_SOURCES = \
655 clients/clickdot.c \
656 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800657weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800658weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800659
660weston_transformed_SOURCES = clients/transformed.c
661weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800662weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800663
664weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500665nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800666 protocol/fullscreen-shell-unstable-v1-protocol.c \
667 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800668weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800669weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800670
Jon A. Cruzb09da242015-06-16 13:15:13 -0700671weston_stacking_SOURCES = \
672 clients/stacking.c \
673 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800674weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800675weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800676
Jon A. Cruzb09da242015-06-16 13:15:13 -0700677weston_calibrator_SOURCES = \
678 clients/calibrator.c \
679 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800680 shared/matrix.c \
681 shared/matrix.h
682weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800683weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800684
685if BUILD_SUBSURFACES_CLIENT
686demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700687weston_subsurfaces_SOURCES = \
688 clients/subsurfaces.c \
689 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800690weston_subsurfaces_CFLAGS = \
691 $(AM_CFLAGS) \
692 $(SIMPLE_EGL_CLIENT_CFLAGS) \
693 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800694weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
695endif
696
697if HAVE_PANGO
698demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700699weston_editor_SOURCES = \
700 clients/editor.c \
701 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800702nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800703 protocol/text-input-unstable-v1-protocol.c \
704 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800705weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800706weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800707endif
708
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800709weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800710nodist_weston_keyboard_SOURCES = \
711 protocol/weston-desktop-shell-client-protocol.h \
712 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800713 protocol/input-method-unstable-v1-protocol.c \
714 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800715weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800716weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800717
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800718weston_simple_im_SOURCES = clients/weston-simple-im.c
719nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800720 protocol/input-method-unstable-v1-protocol.c \
721 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800722weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800723weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800724
Jon A. Cruzb09da242015-06-16 13:15:13 -0700725weston_info_SOURCES = \
726 clients/weston-info.c \
727 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400728nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200729 protocol/presentation-time-protocol.c \
730 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800731weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200732weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800733
Jon A. Cruzb09da242015-06-16 13:15:13 -0700734weston_desktop_shell_SOURCES = \
735 clients/desktop-shell.c \
736 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800737nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800738 protocol/weston-desktop-shell-client-protocol.h \
739 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800740weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800741weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800742
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900743if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700744weston_ivi_shell_user_interface_SOURCES = \
745 clients/ivi-shell-user-interface.c \
746 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900747nodist_weston_ivi_shell_user_interface_SOURCES = \
748 protocol/ivi-hmi-controller-client-protocol.h \
749 protocol/ivi-hmi-controller-protocol.c \
750 protocol/ivi-application-client-protocol.h \
751 protocol/ivi-application-protocol.c
752weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
753weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
754endif
755
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800756if BUILD_FULL_GL_CLIENTS
757demo_clients += weston-gears
758weston_gears_SOURCES = clients/gears.c
759weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800760weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800761endif
762
763endif
764
765BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800766 protocol/weston-screenshooter-protocol.c \
767 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100768 protocol/text-cursor-position-client-protocol.h \
769 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800770 protocol/text-input-unstable-v1-protocol.c \
771 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800772 protocol/input-method-unstable-v1-protocol.c \
773 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800774 protocol/weston-desktop-shell-client-protocol.h \
775 protocol/weston-desktop-shell-protocol.c \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100776 protocol/scaler-client-protocol.h \
777 protocol/scaler-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200778 protocol/presentation-time-protocol.c \
779 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800780 protocol/fullscreen-shell-unstable-v1-protocol.c \
781 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800782 protocol/xdg-shell-unstable-v5-protocol.c \
783 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900784 protocol/ivi-hmi-controller-protocol.c \
785 protocol/ivi-hmi-controller-client-protocol.h \
786 protocol/ivi-application-protocol.c \
787 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800788
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800789westondatadir = $(datadir)/weston
790dist_westondata_DATA = \
791 data/wayland.svg \
792 data/wayland.png \
793 data/pattern.png \
794 data/terminal.png \
795 data/border.png \
796 data/icon_window.png \
797 data/sign_close.png \
798 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100799 data/sign_minimize.png
800
801if ENABLE_IVI_SHELL
802dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900803 data/background.png \
804 data/tiling.png \
805 data/fullscreen.png \
806 data/panel.png \
807 data/random.png \
808 data/sidebyside.png \
809 data/home.png \
810 data/icon_ivi_clickdot.png \
811 data/icon_ivi_flower.png \
812 data/icon_ivi_simple-egl.png \
813 data/icon_ivi_simple-shm.png \
814 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100815endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800816
817
818if BUILD_WCAP_TOOLS
819bin_PROGRAMS += wcap-decode
820
821wcap_decode_SOURCES = \
822 wcap/main.c \
823 wcap/wcap-decode.c \
824 wcap/wcap-decode.h
825
Derek Foreman4ff38742015-06-18 11:43:11 -0500826wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800827wcap_decode_LDADD = $(WCAP_LIBS)
828endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800829
830
831if ENABLE_DESKTOP_SHELL
832
833module_LTLIBRARIES += desktop-shell.la
834
835desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100836 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800837 -I$(top_srcdir)/shared \
838 -I$(top_srcdir)/src \
839 -I$(top_builddir)/src \
840 -I$(top_builddir)/desktop-shell \
841 -DDATADIR='"$(datadir)"' \
842 -DMODULEDIR='"$(moduledir)"' \
843 -DLIBEXECDIR='"$(libexecdir)"' \
844 -DIN_WESTON
845
846desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800847desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500848desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800849desktop_shell_la_SOURCES = \
850 desktop-shell/shell.h \
851 desktop-shell/shell.c \
852 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700853 desktop-shell/input-panel.c \
854 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800855nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800856 protocol/weston-desktop-shell-protocol.c \
857 protocol/weston-desktop-shell-server-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800858 protocol/xdg-shell-unstable-v5-protocol.c \
859 protocol/xdg-shell-unstable-v5-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800860
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800861BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800862endif
863
Jason Ekstrand946a9482014-04-02 19:53:47 -0500864if ENABLE_FULLSCREEN_SHELL
865
866module_LTLIBRARIES += fullscreen-shell.la
867
868fullscreen_shell_la_CPPFLAGS = \
869 -I$(top_builddir)/protocol \
870 -I$(top_srcdir)/shared \
871 -I$(top_srcdir)/src \
872 -I$(top_builddir)/src \
873 -DIN_WESTON
874
875fullscreen_shell_la_LDFLAGS = -module -avoid-version
876fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500877fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500878fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700879 fullscreen-shell/fullscreen-shell.c \
880 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500881nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800882 protocol/fullscreen-shell-unstable-v1-protocol.c \
883 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500884
885BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
886endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800887
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900888if ENABLE_IVI_SHELL
889
890module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900891 $(ivi_shell) \
892 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900893
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900894ivi_shell = ivi-shell.la
895ivi_shell_la_LDFLAGS = -module -avoid-version
896ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500897ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900898ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900899 ivi-shell/ivi-layout-export.h \
900 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +0200901 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900902 ivi-shell/ivi-layout.c \
903 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900904 ivi-shell/ivi-shell.h \
905 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700906 ivi-shell/input-panel-ivi.c \
907 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900908nodist_ivi_shell_la_SOURCES = \
909 protocol/ivi-application-protocol.c \
910 protocol/ivi-application-server-protocol.h
911
912BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
913
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900914hmi_controller = hmi-controller.la
915hmi_controller_la_LDFLAGS = -module -avoid-version
916hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500917hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900918hmi_controller_la_SOURCES = \
919 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700920 ivi-shell/hmi-controller.c \
921 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900922nodist_hmi_controller_la_SOURCES = \
923 protocol/ivi-hmi-controller-protocol.c \
924 protocol/ivi-hmi-controller-server-protocol.h
925
926BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
927
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900928endif
929
930
Jason Ekstrand47928d82014-04-02 19:54:01 -0500931if ENABLE_SCREEN_SHARING
932
933module_LTLIBRARIES += screen-share.la
934
935screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
936screen_share_la_LDFLAGS = -module -avoid-version
937screen_share_la_LIBADD = \
938 $(COMPOSITOR_LIBS) \
939 $(SCREEN_SHARE_LIBS) \
940 libshared-cairo.la
941screen_share_la_CFLAGS = \
942 $(COMPOSITOR_CFLAGS) \
943 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500944 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -0500945screen_share_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700946 src/screen-share.c \
947 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500948nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800949 protocol/fullscreen-shell-unstable-v1-protocol.c \
950 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500951
952endif
953
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800954if ENABLE_XWAYLAND
955
956module_LTLIBRARIES += xwayland.la
957
958xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100959 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800960 -I$(top_srcdir)/shared \
961 -I$(top_srcdir)/src \
962 -I$(top_builddir)/src \
963 -I$(top_builddir)/xwayland \
964 -DDATADIR='"$(datadir)"' \
965 -DMODULEDIR='"$(moduledir)"' \
966 -DLIBEXECDIR='"$(libexecdir)"' \
967 -DXSERVER_PATH='"@XSERVER_PATH@"'
968
969xwayland_la_LDFLAGS = -module -avoid-version
970xwayland_la_LIBADD = \
971 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800972 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800973xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500974 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800975 $(COMPOSITOR_CFLAGS) \
976 $(PIXMAN_CFLAGS) \
977 $(CAIRO_CFLAGS)
978xwayland_la_SOURCES = \
979 xwayland/xwayland.h \
980 xwayland/window-manager.c \
981 xwayland/selection.c \
982 xwayland/dnd.c \
983 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800984 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700985 xwayland/hash.h \
986 shared/helpers.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800987endif
988
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800989
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800990#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800991# Shared utilities
992#
993
Jon A. Cruz5a75a412015-07-02 23:36:44 -0700994noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
995 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800996
Derek Foreman4ff38742015-06-18 11:43:11 -0500997libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800998
999libshared_la_SOURCES = \
1000 shared/config-parser.c \
1001 shared/option-parser.c \
1002 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +02001003 shared/file-util.c \
1004 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001005 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001006 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -07001007 shared/os-compatibility.h \
1008 shared/xalloc.c \
1009 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001010
1011libshared_cairo_la_CFLAGS = \
1012 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001013 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001014 $(COMPOSITOR_CFLAGS) \
1015 $(PIXMAN_CFLAGS) \
1016 $(CAIRO_CFLAGS) \
1017 $(PNG_CFLAGS) \
1018 $(WEBP_CFLAGS)
1019
1020libshared_cairo_la_LIBADD = \
1021 $(PIXMAN_LIBS) \
1022 $(CAIRO_LIBS) \
1023 $(PNG_LIBS) \
1024 $(WEBP_LIBS) \
1025 $(JPEG_LIBS)
1026
1027libshared_cairo_la_SOURCES = \
1028 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001029 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001030 shared/image-loader.c \
1031 shared/image-loader.h \
1032 shared/cairo-util.c \
1033 shared/frame.c \
1034 shared/cairo-util.h
1035
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001036libzunitc_la_SOURCES = \
1037 tools/zunitc/inc/zunitc/zunitc.h \
1038 tools/zunitc/inc/zunitc/zunitc_impl.h \
1039 tools/zunitc/src/zuc_base_logger.c \
1040 tools/zunitc/src/zuc_base_logger.h \
1041 tools/zunitc/src/zuc_collector.c \
1042 tools/zunitc/src/zuc_collector.h \
1043 tools/zunitc/src/zuc_context.h \
1044 tools/zunitc/src/zuc_event.h \
1045 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001046 tools/zunitc/src/zuc_junit_reporter.c \
1047 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001048 tools/zunitc/src/zuc_types.h \
1049 tools/zunitc/src/zunitc_impl.c \
1050 shared/helpers.h
1051
1052libzunitc_la_CFLAGS = \
1053 $(AM_CFLAGS) \
1054 -I$(top_srcdir)/tools/zunitc/inc
1055
1056libzunitc_la_LIBADD = \
1057 libshared.la
1058
Jon A. Cruz646aef52015-07-15 19:22:41 -07001059if ENABLE_JUNIT_XML
1060libzunitc_la_CFLAGS += \
1061 $(LIBXML2_CFLAGS)
1062libzunitc_la_LIBADD += \
1063 $(LIBXML2_LIBS)
1064endif
1065
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001066libzunitcmain_la_SOURCES = \
1067 tools/zunitc/src/main.c
1068
1069libzunitcmain_la_CFLAGS = \
1070 $(AM_CFLAGS) \
1071 -I$(top_srcdir)/tools/zunitc/inc
1072
1073libzunitcmain_la_LIBADD = \
1074 libzunitc.la \
1075 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001076
1077#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001078# tests subdirectory
1079#
1080
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001081TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1082
1083internal_tests = \
1084 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001085
1086shared_tests = \
1087 config-parser.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001088 vertex-clip.test \
1089 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001090
1091module_tests = \
1092 surface-test.la \
1093 surface-global-test.la
1094
1095weston_tests = \
1096 bad_buffer.weston \
1097 keyboard.weston \
1098 event.weston \
1099 button.weston \
1100 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001101 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001102 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001103 subsurface.weston \
1104 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001105
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001106ivi_tests =
1107
1108$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001109
1110AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001111 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1112 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001113
1114TEST_EXTENSIONS = .la .weston
1115LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1116WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1117
1118clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001119 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001120 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001121
1122# To remove when automake 1.11 support is dropped
1123export abs_builddir
1124
1125noinst_LTLIBRARIES += \
1126 weston-test.la \
1127 $(module_tests) \
1128 libtest-runner.la \
1129 libtest-client.la
1130
1131noinst_PROGRAMS += \
1132 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001133 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001134 $(shared_tests) \
1135 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001136 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001137 matrix-test
1138
1139test_module_ldflags = \
1140 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1141
1142surface_global_test_la_SOURCES = tests/surface-global-test.c
1143surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001144surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001145
1146surface_test_la_SOURCES = tests/surface-test.c
1147surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001148surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001149
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001150weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001151weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001152weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001153weston_test_la_SOURCES = \
1154 tests/weston-test.c \
1155 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001156nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001157 protocol/weston-test-protocol.c \
1158 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001159
1160if ENABLE_EGL
1161weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1162weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1163endif
1164
1165libtest_runner_la_SOURCES = \
1166 tests/weston-test-runner.c \
1167 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001168libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001169
1170config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001171config_parser_test_LDADD = \
1172 libshared.la \
1173 $(COMPOSITOR_LIBS) \
1174 libzunitc.la \
1175 libzunitcmain.la
1176config_parser_test_CFLAGS = \
1177 $(AM_CFLAGS) \
1178 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001179
1180vertex_clip_test_SOURCES = \
1181 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001182 shared/helpers.h \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001183 src/vertex-clipping.c \
1184 src/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001185vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001186
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001187libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001188 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001189 tests/weston-test-client-helper.h
1190nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001191 protocol/weston-test-protocol.c \
1192 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001193libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1194libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) $(CAIRO_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001195
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001196
1197#
1198# Internal tests - tests functionality of the testsuite itself
1199#
1200
1201internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001202internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1203internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001204
1205
1206#
1207# Weston Tests
1208#
1209
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001210bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001211bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001212bad_buffer_weston_LDADD = libtest-client.la
1213
1214keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001215keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001216keyboard_weston_LDADD = libtest-client.la
1217
1218event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001219event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001220event_weston_LDADD = libtest-client.la
1221
1222button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001223button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001224button_weston_LDADD = libtest-client.la
1225
Marek Chalupa5fd81402015-03-30 09:21:29 -04001226devices_weston_SOURCES = tests/devices-test.c
1227devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1228devices_weston_LDADD = libtest-client.la
1229
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001230text_weston_SOURCES = tests/text-test.c
1231nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001232 protocol/text-input-unstable-v1-protocol.c \
1233 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001234text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001235text_weston_LDADD = libtest-client.la
1236
1237subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001238subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001239subsurface_weston_LDADD = libtest-client.la
1240
Jon A. Cruzb09da242015-06-16 13:15:13 -07001241presentation_weston_SOURCES = \
1242 tests/presentation-test.c \
1243 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001244nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001245 protocol/presentation-time-protocol.c \
1246 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001247presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1248presentation_weston_LDADD = libtest-client.la
1249
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001250roles_weston_SOURCES = tests/roles-test.c
1251roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1252roles_weston_LDADD = libtest-client.la
1253
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001254if ENABLE_EGL
1255weston_tests += buffer-count.weston
1256buffer_count_weston_SOURCES = tests/buffer-count-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001257buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001258buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1259endif
1260
1261if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001262weston_tests += xwayland-test.weston
1263xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001264xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001265xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001266endif
1267
1268matrix_test_SOURCES = \
1269 tests/matrix-test.c \
1270 shared/matrix.c \
1271 shared/matrix.h
1272matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001273matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001274
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001275if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001276module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001277 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001278 ivi-layout-test.la
1279
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001280ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1281ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001282ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001283ivi_layout_internal_test_la_SOURCES = \
1284 tests/ivi_layout-internal-test.c
1285
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001286ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1287ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001288ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001289ivi_layout_test_la_SOURCES = \
1290 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001291 tests/ivi-test.h \
1292 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001293nodist_ivi_layout_test_la_SOURCES = \
1294 protocol/weston-test-protocol.c \
1295 protocol/weston-test-server-protocol.h
1296
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001297ivi_tests += \
1298 ivi-shell-app.weston
1299
1300ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1301nodist_ivi_shell_app_weston_SOURCES = \
1302 protocol/ivi-application-protocol.c \
1303 protocol/ivi-application-client-protocol.h
1304ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1305ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001306
1307noinst_PROGRAMS += ivi-layout.ivi
1308
1309ivi_layout_ivi_SOURCES = \
1310 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001311 tests/ivi-test.h \
1312 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001313nodist_ivi_layout_ivi_SOURCES = \
1314 protocol/ivi-application-protocol.c \
1315 protocol/ivi-application-client-protocol.h
1316ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1317ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001318endif
1319
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001320if BUILD_SETBACKLIGHT
1321noinst_PROGRAMS += setbacklight
1322setbacklight_SOURCES = \
1323 tests/setbacklight.c \
1324 src/libbacklight.c \
1325 src/libbacklight.h
1326setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1327setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1328endif
1329
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001330all-local: zuctest$(EXEEXT)
1331
1332noinst_PROGRAMS += zuctest$(EXEEXT)
1333
1334zuctest_LDADD = \
1335 libzunitc.la \
1336 libzunitcmain.la
1337
1338zuctest_CFLAGS = \
1339 $(AM_CFLAGS) \
1340 -I$(top_srcdir)/tools/zunitc/inc
1341
1342zuctest_SOURCES = \
1343 tools/zunitc/test/fixtures_test.c \
1344 tools/zunitc/test/zunitc_test.c
1345
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001346EXTRA_DIST += \
1347 tests/weston-tests-env \
1348 tests/internal-screenshot.ini \
1349 tests/reference/internal-screenshot-bad-00.png \
1350 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001351
1352BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001353 protocol/weston-test-protocol.c \
1354 protocol/weston-test-server-protocol.h \
1355 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001356 protocol/text-input-unstable-v1-protocol.c \
1357 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001358
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001359EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001360 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001361 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001362 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001363 protocol/weston-test.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001364 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001365 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001366 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001367
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001368#
1369# manual test modules in tests subdirectory
1370#
1371
1372noinst_LTLIBRARIES += \
1373 surface-screenshot.la
1374
1375surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1376surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001377surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001378surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1379
1380
1381#
1382# Documentation
1383#
1384
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001385man_MANS = weston.1 weston.ini.5
1386
1387if ENABLE_DRM_COMPOSITOR
1388man_MANS += weston-drm.7
1389endif
1390
1391MAN_SUBSTS = \
1392 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1393 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1394 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1395 -e 's|__version__|$(PACKAGE_VERSION)|g'
1396
1397SUFFIXES = .1 .5 .7 .man
1398
1399%.1 %.5 %.7 : man/%.man
1400 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1401
1402EXTRA_DIST += \
1403 man/weston.man \
1404 man/weston-drm.man \
1405 man/weston.ini.man
1406
1407CLEANFILES += $(man_MANS)
1408
Jon A. Cruz179c1862015-07-15 19:22:43 -07001409if ENABLE_DEVDOCS
1410DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1411
1412docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1413 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1414
1415docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1416 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1417endif
1418
1419DOCDIRS = \
1420 docs/developer \
1421 docs/tools
1422
1423$(DOCDIRS):
1424 $(MKDIR_P) $@
1425
1426.PHONY: doc $(DOXYGEN_INDICES)
1427
1428doc: $(DOXYGEN_INDICES)
1429
Jonas Ådahl496adb32015-11-17 16:00:27 +08001430.SECONDEXPANSION:
1431
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001432define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001433$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001434endef
1435
1436define protoname
1437$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1438endef
1439
1440protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001441 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1442
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001443protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001444 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1445
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001446protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001447 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1448
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001449protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1450 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001451
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001452protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1453 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001454
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001455protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1456 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@