blob: 4c705593c006d7fa2b4c066939a060cd7cd32370 [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) \
Derek Foremane2926942015-06-29 14:05:38 -050068 $(DLOPEN_LIBS) -lm -lrt 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 \
75 src/input.c \
76 src/data-device.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080077 src/screenshooter.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080078 src/clipboard.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080079 src/zoom.c \
80 src/text-backend.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080081 src/bindings.c \
82 src/animation.c \
83 src/noop-renderer.c \
84 src/pixman-renderer.c \
85 src/pixman-renderer.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +020086 src/timeline.c \
87 src/timeline.h \
88 src/timeline-object.h \
Giulio Camuffobab996e2014-10-12 00:24:25 +030089 src/main.c \
Pekka Paalanen230f3b12014-09-29 14:18:40 -040090 src/linux-dmabuf.c \
91 src/linux-dmabuf.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -070092 shared/helpers.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080093 shared/matrix.c \
94 shared/matrix.h \
Pekka Paalanenaa21f622015-07-03 15:44:50 +030095 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080096 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +010097 shared/platform.h \
Egor Starkov94fd9a52015-09-29 14:50:41 +030098 src/weston-egl-ext.h
Egor Starkov7ce2e972015-09-25 18:00:27 +030099
100if SYSTEMD_NOTIFY_SUPPORT
101module_LTLIBRARIES += systemd-notify.la
102systemd_notify_la_LDFLAGS = -module -avoid-version
103systemd_notify_la_LIBADD = $(SYSTEMD_DAEMON_LIBS)
104systemd_notify_la_CFLAGS = \
105 $(SYSTEMD_DAEMON_LIBS) \
106 $(PIXMAN_CFLAGS) \
107 $(AM_CFLAGS)
108systemd_notify_la_SOURCES = \
109 src/systemd-notify.c \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300110 shared/helpers.h \
111 shared/zalloc.h \
Bryce Harringtona0dd5b42015-09-25 15:16:25 -0700112 src/compositor.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300113endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800114
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800115nodist_weston_SOURCES = \
116 protocol/screenshooter-protocol.c \
117 protocol/screenshooter-server-protocol.h \
118 protocol/text-cursor-position-protocol.c \
119 protocol/text-cursor-position-server-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800120 protocol/text-input-unstable-v1-protocol.c \
121 protocol/text-input-unstable-v1-server-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800122 protocol/input-method-unstable-v1-protocol.c \
123 protocol/input-method-unstable-v1-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800124 protocol/workspaces-protocol.c \
125 protocol/workspaces-server-protocol.h \
Pekka Paalanen7e62d252014-09-23 22:08:42 -0400126 protocol/presentation_timing-protocol.c \
127 protocol/presentation_timing-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 \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200212 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800213 shared/matrix.h \
214 shared/config-parser.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100215 shared/zalloc.h \
216 shared/platform.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800217
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000218if ENABLE_IVI_SHELL
219westoninclude_HEADERS += \
220 ivi-shell/ivi-layout-export.h
221endif
222
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800223if ENABLE_EGL
224module_LTLIBRARIES += gl-renderer.la
225gl_renderer_la_LDFLAGS = -module -avoid-version
226gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
227gl_renderer_la_CFLAGS = \
228 $(COMPOSITOR_CFLAGS) \
229 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300230 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500231 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800232gl_renderer_la_SOURCES = \
233 src/gl-renderer.h \
234 src/gl-renderer.c \
235 src/vertex-clipping.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700236 src/vertex-clipping.h \
237 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800238endif
239
240if ENABLE_X11_COMPOSITOR
241module_LTLIBRARIES += x11-backend.la
242x11_backend_la_LDFLAGS = -module -avoid-version
243x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800244 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800245x11_backend_la_CFLAGS = \
246 $(COMPOSITOR_CFLAGS) \
247 $(EGL_CFLAGS) \
248 $(PIXMAN_CFLAGS) \
249 $(CAIRO_CFLAGS) \
250 $(X11_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500251 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700252x11_backend_la_SOURCES = \
253 src/compositor-x11.c \
254 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800255endif
256
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100257INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000258INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100259 src/libinput-seat.c \
260 src/libinput-seat.h \
261 src/libinput-device.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700262 src/libinput-device.h \
263 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100264
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800265if ENABLE_DRM_COMPOSITOR
266module_LTLIBRARIES += drm-backend.la
267drm_backend_la_LDFLAGS = -module -avoid-version
268drm_backend_la_LIBADD = \
269 $(COMPOSITOR_LIBS) \
270 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100271 $(INPUT_BACKEND_LIBS) \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100272 libshared.la -lrt \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800273 libsession-helper.la
274drm_backend_la_CFLAGS = \
275 $(COMPOSITOR_CFLAGS) \
276 $(EGL_CFLAGS) \
277 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500278 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800279drm_backend_la_SOURCES = \
280 src/compositor-drm.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100281 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700282 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200283 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800284 src/libbacklight.c \
285 src/libbacklight.h
286
287if ENABLE_VAAPI_RECORDER
288drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
289drm_backend_la_LIBADD += $(LIBVA_LIBS)
290drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
291endif
292endif
293
294if ENABLE_WAYLAND_COMPOSITOR
295module_LTLIBRARIES += wayland-backend.la
296wayland_backend_la_LDFLAGS = -module -avoid-version
297wayland_backend_la_LIBADD = \
298 $(COMPOSITOR_LIBS) \
299 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800300 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800301wayland_backend_la_CFLAGS = \
302 $(COMPOSITOR_CFLAGS) \
303 $(EGL_CFLAGS) \
304 $(PIXMAN_CFLAGS) \
305 $(CAIRO_CFLAGS) \
306 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500307 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700308wayland_backend_la_SOURCES = \
309 src/compositor-wayland.c \
310 shared/helpers.h
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500311nodist_wayland_backend_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800312 protocol/fullscreen-shell-unstable-v1-protocol.c \
313 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800314endif
315
316if ENABLE_RPI_COMPOSITOR
317if INSTALL_RPI_COMPOSITOR
318module_LTLIBRARIES += rpi-backend.la
319else
320noinst_LTLIBRARIES += rpi-backend.la
321endif
322
323rpi_backend_la_LDFLAGS = -module -avoid-version
324rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
325 $(RPI_COMPOSITOR_LIBS) \
326 $(RPI_BCM_HOST_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100327 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800328 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800329 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800330rpi_backend_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500331 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800332 $(COMPOSITOR_CFLAGS) \
333 $(RPI_COMPOSITOR_CFLAGS) \
334 $(RPI_BCM_HOST_CFLAGS)
335rpi_backend_la_SOURCES = \
336 src/compositor-rpi.c \
337 src/rpi-renderer.c \
338 src/rpi-renderer.h \
339 src/rpi-bcm-stubs.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700340 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100341 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800342
343if ENABLE_EGL
344rpi_backend_la_LIBADD += $(EGL_LIBS)
345rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
346endif
347
348endif
349
350if ENABLE_HEADLESS_COMPOSITOR
351module_LTLIBRARIES += headless-backend.la
352headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800353headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500354headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700355headless_backend_la_SOURCES = \
356 src/compositor-headless.c \
357 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800358endif
359
360if ENABLE_FBDEV_COMPOSITOR
361module_LTLIBRARIES += fbdev-backend.la
362fbdev_backend_la_LDFLAGS = -module -avoid-version
363fbdev_backend_la_LIBADD = \
364 $(COMPOSITOR_LIBS) \
365 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100366 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800367 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800368 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800369fbdev_backend_la_CFLAGS = \
370 $(COMPOSITOR_CFLAGS) \
371 $(EGL_CFLAGS) \
372 $(FBDEV_COMPOSITOR_CFLAGS) \
373 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500374 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800375fbdev_backend_la_SOURCES = \
376 src/compositor-fbdev.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700377 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100378 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800379endif
380
381if ENABLE_RDP_COMPOSITOR
382module_LTLIBRARIES += rdp-backend.la
383rdp_backend_la_LDFLAGS = -module -avoid-version
384rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
385 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800386 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800387rdp_backend_la_CFLAGS = \
388 $(COMPOSITOR_CFLAGS) \
389 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500390 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700391rdp_backend_la_SOURCES = \
392 src/compositor-rdp.c \
393 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800394endif
395
396if HAVE_LCMS
397module_LTLIBRARIES += cms-static.la
398cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800399cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500400cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800401cms_static_la_SOURCES = \
402 src/cms-static.c \
403 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700404 src/cms-helper.h \
405 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800406if ENABLE_COLORD
407module_LTLIBRARIES += cms-colord.la
408cms_colord_la_LDFLAGS = -module -avoid-version
409cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500410cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800411cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100412 src/cms-colord.c \
413 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700414 src/cms-helper.h \
415 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800416endif
417endif
418
419noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500420spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800421spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
422spring_tool_SOURCES = \
423 src/spring-tool.c \
424 src/animation.c \
425 shared/matrix.c \
426 shared/matrix.h \
427 src/compositor.h
428
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800429if BUILD_CLIENTS
430
431bin_PROGRAMS += weston-terminal weston-info
432
433libexec_PROGRAMS += \
434 weston-desktop-shell \
435 weston-screenshooter \
436 weston-keyboard \
437 weston-simple-im
438
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900439if ENABLE_IVI_SHELL
440libexec_PROGRAMS += \
441 weston-ivi-shell-user-interface
442endif
443
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800444demo_clients = \
445 weston-flower \
446 weston-image \
447 weston-cliptest \
448 weston-dnd \
449 weston-smoke \
450 weston-resizor \
451 weston-eventdemo \
452 weston-clickdot \
453 weston-transformed \
454 weston-fullscreen \
455 weston-stacking \
456 weston-calibrator \
457 weston-scaler
458
459if INSTALL_DEMO_CLIENTS
460bin_PROGRAMS += $(demo_clients)
461else
462noinst_PROGRAMS += $(demo_clients)
463endif
464
465
466if BUILD_SIMPLE_CLIENTS
467demo_clients += \
468 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500469 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800470 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400471 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800472 weston-multi-resource
473
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800474weston_simple_shm_SOURCES = clients/simple-shm.c
475nodist_weston_simple_shm_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800476 protocol/xdg-shell-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500477 protocol/xdg-shell-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800478 protocol/fullscreen-shell-unstable-v1-protocol.c \
479 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900480 protocol/ivi-application-protocol.c \
481 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800482weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800483weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800484
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500485weston_simple_damage_SOURCES = clients/simple-damage.c
486nodist_weston_simple_damage_SOURCES = \
487 protocol/scaler-protocol.c \
488 protocol/scaler-client-protocol.h \
489 protocol/xdg-shell-protocol.c \
490 protocol/xdg-shell-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800491 protocol/fullscreen-shell-unstable-v1-protocol.c \
492 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500493weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
494weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
495
Jon A. Cruzb09da242015-06-16 13:15:13 -0700496weston_simple_touch_SOURCES = \
497 clients/simple-touch.c \
498 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800499weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800500weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800501
Jon A. Cruzb09da242015-06-16 13:15:13 -0700502weston_presentation_shm_SOURCES = \
503 clients/presentation-shm.c \
504 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400505nodist_weston_presentation_shm_SOURCES = \
506 protocol/presentation_timing-protocol.c \
507 protocol/presentation_timing-client-protocol.h
508weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Derek Foremane2926942015-06-29 14:05:38 -0500509weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm -lrt
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400510
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800511weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800512weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Javier Jardónc47931e2014-10-27 15:13:19 +0000513weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800514endif
515
516if BUILD_SIMPLE_EGL_CLIENTS
517demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800518weston_simple_egl_SOURCES = clients/simple-egl.c
519nodist_weston_simple_egl_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800520 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900521 protocol/xdg-shell-client-protocol.h \
522 protocol/ivi-application-protocol.c \
523 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800524weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800525weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
526endif
527
George Kiagiadakis53868982014-06-12 16:26:49 +0200528if BUILD_SIMPLE_INTEL_DMABUF_CLIENT
529demo_clients += weston-simple-dmabuf
530weston_simple_dmabuf_SOURCES = clients/simple-dmabuf.c
531nodist_weston_simple_dmabuf_SOURCES = \
532 protocol/xdg-shell-protocol.c \
533 protocol/xdg-shell-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800534 protocol/fullscreen-shell-unstable-v1-protocol.c \
535 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800536 protocol/linux-dmabuf-unstable-v1-protocol.c \
537 protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200538weston_simple_dmabuf_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_CLIENT_CFLAGS)
539weston_simple_dmabuf_LDADD = $(SIMPLE_DMABUF_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800540BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200541endif
542
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800543noinst_LTLIBRARIES += libtoytoolkit.la
544
545libtoytoolkit_la_SOURCES = \
546 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700547 clients/window.h \
548 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800549
550nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100551 protocol/text-cursor-position-protocol.c \
552 protocol/text-cursor-position-client-protocol.h \
553 protocol/scaler-protocol.c \
554 protocol/scaler-client-protocol.h \
555 protocol/workspaces-protocol.c \
556 protocol/workspaces-client-protocol.h \
Pekka Paalanen7e62d252014-09-23 22:08:42 -0400557 protocol/presentation_timing-protocol.c \
558 protocol/presentation_timing-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100559 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900560 protocol/xdg-shell-client-protocol.h \
561 protocol/ivi-application-protocol.c \
562 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500563
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800564BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
565
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800566
567libtoytoolkit_la_LIBADD = \
568 $(CLIENT_LIBS) \
569 $(CAIRO_EGL_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800570 libshared-cairo.la -lrt -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800571libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800572
573weston_flower_SOURCES = clients/flower.c
574weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800575weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800576
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100577weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800578 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800579nodist_weston_screenshooter_SOURCES = \
580 protocol/screenshooter-protocol.c \
581 protocol/screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800582weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800583weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800584
Jon A. Cruzb09da242015-06-16 13:15:13 -0700585weston_terminal_SOURCES = \
586 clients/terminal.c \
587 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800588weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800589weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800590
591weston_image_SOURCES = clients/image.c
592weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800593weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800594
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300595weston_cliptest_SOURCES = \
596 clients/cliptest.c \
597 src/vertex-clipping.c \
598 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800599weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800600weston_cliptest_LDADD = libtoytoolkit.la
601
Jon A. Cruzb09da242015-06-16 13:15:13 -0700602weston_dnd_SOURCES = \
603 clients/dnd.c \
604 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800605weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800606weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800607
608weston_smoke_SOURCES = clients/smoke.c
609weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800610weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800611
612weston_resizor_SOURCES = clients/resizor.c
613weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800614weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800615
616weston_scaler_SOURCES = clients/scaler.c
617weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800618weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800619
620if HAVE_CAIRO_GLESV2
621demo_clients += weston-nested weston-nested-client
622
Jon A. Cruzb09da242015-06-16 13:15:13 -0700623weston_nested_SOURCES = \
624 clients/nested.c \
625 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800626weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800627weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800628
629weston_nested_client_SOURCES = clients/nested-client.c
630weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800631weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800632endif
633
Jon A. Cruzb09da242015-06-16 13:15:13 -0700634weston_eventdemo_SOURCES = \
635 clients/eventdemo.c \
636 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800637weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800638weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800639
Jon A. Cruzb09da242015-06-16 13:15:13 -0700640weston_clickdot_SOURCES = \
641 clients/clickdot.c \
642 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800643weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800644weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800645
646weston_transformed_SOURCES = clients/transformed.c
647weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800648weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800649
650weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500651nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800652 protocol/fullscreen-shell-unstable-v1-protocol.c \
653 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800654weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800655weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800656
Jon A. Cruzb09da242015-06-16 13:15:13 -0700657weston_stacking_SOURCES = \
658 clients/stacking.c \
659 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800660weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800661weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800662
Jon A. Cruzb09da242015-06-16 13:15:13 -0700663weston_calibrator_SOURCES = \
664 clients/calibrator.c \
665 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800666 shared/matrix.c \
667 shared/matrix.h
668weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800669weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800670
671if BUILD_SUBSURFACES_CLIENT
672demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700673weston_subsurfaces_SOURCES = \
674 clients/subsurfaces.c \
675 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800676weston_subsurfaces_CFLAGS = \
677 $(AM_CFLAGS) \
678 $(SIMPLE_EGL_CLIENT_CFLAGS) \
679 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800680weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
681endif
682
683if HAVE_PANGO
684demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700685weston_editor_SOURCES = \
686 clients/editor.c \
687 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800688nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800689 protocol/text-input-unstable-v1-protocol.c \
690 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800691weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800692weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800693endif
694
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800695weston_keyboard_SOURCES = clients/keyboard.c
696nodist_weston_keyboard_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100697 protocol/desktop-shell-client-protocol.h \
698 protocol/desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800699 protocol/input-method-unstable-v1-protocol.c \
700 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800701weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800702weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800703
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800704weston_simple_im_SOURCES = clients/weston-simple-im.c
705nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800706 protocol/input-method-unstable-v1-protocol.c \
707 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800708weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800709weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800710
Jon A. Cruzb09da242015-06-16 13:15:13 -0700711weston_info_SOURCES = \
712 clients/weston-info.c \
713 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400714nodist_weston_info_SOURCES = \
715 protocol/presentation_timing-protocol.c \
716 protocol/presentation_timing-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800717weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200718weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800719
Jon A. Cruzb09da242015-06-16 13:15:13 -0700720weston_desktop_shell_SOURCES = \
721 clients/desktop-shell.c \
722 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800723nodist_weston_desktop_shell_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100724 protocol/desktop-shell-client-protocol.h \
725 protocol/desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800726weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800727weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800728
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900729if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700730weston_ivi_shell_user_interface_SOURCES = \
731 clients/ivi-shell-user-interface.c \
732 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900733nodist_weston_ivi_shell_user_interface_SOURCES = \
734 protocol/ivi-hmi-controller-client-protocol.h \
735 protocol/ivi-hmi-controller-protocol.c \
736 protocol/ivi-application-client-protocol.h \
737 protocol/ivi-application-protocol.c
738weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
739weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
740endif
741
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800742if BUILD_FULL_GL_CLIENTS
743demo_clients += weston-gears
744weston_gears_SOURCES = clients/gears.c
745weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800746weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800747endif
748
749endif
750
751BUILT_SOURCES += \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100752 protocol/screenshooter-protocol.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800753 protocol/screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100754 protocol/text-cursor-position-client-protocol.h \
755 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800756 protocol/text-input-unstable-v1-protocol.c \
757 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800758 protocol/input-method-unstable-v1-protocol.c \
759 protocol/input-method-unstable-v1-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100760 protocol/desktop-shell-client-protocol.h \
761 protocol/desktop-shell-protocol.c \
762 protocol/scaler-client-protocol.h \
763 protocol/scaler-protocol.c \
764 protocol/workspaces-client-protocol.h \
765 protocol/workspaces-protocol.c \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800766 protocol/fullscreen-shell-unstable-v1-protocol.c \
767 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100768 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900769 protocol/xdg-shell-client-protocol.h \
770 protocol/ivi-hmi-controller-protocol.c \
771 protocol/ivi-hmi-controller-client-protocol.h \
772 protocol/ivi-application-protocol.c \
773 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800774
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800775westondatadir = $(datadir)/weston
776dist_westondata_DATA = \
777 data/wayland.svg \
778 data/wayland.png \
779 data/pattern.png \
780 data/terminal.png \
781 data/border.png \
782 data/icon_window.png \
783 data/sign_close.png \
784 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100785 data/sign_minimize.png
786
787if ENABLE_IVI_SHELL
788dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900789 data/background.png \
790 data/tiling.png \
791 data/fullscreen.png \
792 data/panel.png \
793 data/random.png \
794 data/sidebyside.png \
795 data/home.png \
796 data/icon_ivi_clickdot.png \
797 data/icon_ivi_flower.png \
798 data/icon_ivi_simple-egl.png \
799 data/icon_ivi_simple-shm.png \
800 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100801endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800802
803
804if BUILD_WCAP_TOOLS
805bin_PROGRAMS += wcap-decode
806
807wcap_decode_SOURCES = \
808 wcap/main.c \
809 wcap/wcap-decode.c \
810 wcap/wcap-decode.h
811
Derek Foreman4ff38742015-06-18 11:43:11 -0500812wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800813wcap_decode_LDADD = $(WCAP_LIBS)
814endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800815
816
817if ENABLE_DESKTOP_SHELL
818
819module_LTLIBRARIES += desktop-shell.la
820
821desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100822 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800823 -I$(top_srcdir)/shared \
824 -I$(top_srcdir)/src \
825 -I$(top_builddir)/src \
826 -I$(top_builddir)/desktop-shell \
827 -DDATADIR='"$(datadir)"' \
828 -DMODULEDIR='"$(moduledir)"' \
829 -DLIBEXECDIR='"$(libexecdir)"' \
830 -DIN_WESTON
831
832desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800833desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500834desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800835desktop_shell_la_SOURCES = \
836 desktop-shell/shell.h \
837 desktop-shell/shell.c \
838 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700839 desktop-shell/input-panel.c \
840 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800841nodist_desktop_shell_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100842 protocol/desktop-shell-protocol.c \
843 protocol/desktop-shell-server-protocol.h \
844 protocol/xdg-shell-protocol.c \
845 protocol/xdg-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800846
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800847BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800848endif
849
Jason Ekstrand946a9482014-04-02 19:53:47 -0500850if ENABLE_FULLSCREEN_SHELL
851
852module_LTLIBRARIES += fullscreen-shell.la
853
854fullscreen_shell_la_CPPFLAGS = \
855 -I$(top_builddir)/protocol \
856 -I$(top_srcdir)/shared \
857 -I$(top_srcdir)/src \
858 -I$(top_builddir)/src \
859 -DIN_WESTON
860
861fullscreen_shell_la_LDFLAGS = -module -avoid-version
862fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500863fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500864fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700865 fullscreen-shell/fullscreen-shell.c \
866 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500867nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800868 protocol/fullscreen-shell-unstable-v1-protocol.c \
869 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500870
871BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
872endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800873
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900874if ENABLE_IVI_SHELL
875
876module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900877 $(ivi_shell) \
878 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900879
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900880ivi_shell = ivi-shell.la
881ivi_shell_la_LDFLAGS = -module -avoid-version
882ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500883ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900884ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900885 ivi-shell/ivi-layout-export.h \
886 ivi-shell/ivi-layout-private.h \
887 ivi-shell/ivi-layout.c \
888 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900889 ivi-shell/ivi-shell.h \
890 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700891 ivi-shell/input-panel-ivi.c \
892 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900893nodist_ivi_shell_la_SOURCES = \
894 protocol/ivi-application-protocol.c \
895 protocol/ivi-application-server-protocol.h
896
897BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
898
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900899hmi_controller = hmi-controller.la
900hmi_controller_la_LDFLAGS = -module -avoid-version
901hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500902hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900903hmi_controller_la_SOURCES = \
904 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700905 ivi-shell/hmi-controller.c \
906 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900907nodist_hmi_controller_la_SOURCES = \
908 protocol/ivi-hmi-controller-protocol.c \
909 protocol/ivi-hmi-controller-server-protocol.h
910
911BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
912
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900913endif
914
915
Jason Ekstrand47928d82014-04-02 19:54:01 -0500916if ENABLE_SCREEN_SHARING
917
918module_LTLIBRARIES += screen-share.la
919
920screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
921screen_share_la_LDFLAGS = -module -avoid-version
922screen_share_la_LIBADD = \
923 $(COMPOSITOR_LIBS) \
924 $(SCREEN_SHARE_LIBS) \
925 libshared-cairo.la
926screen_share_la_CFLAGS = \
927 $(COMPOSITOR_CFLAGS) \
928 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500929 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -0500930screen_share_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700931 src/screen-share.c \
932 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500933nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800934 protocol/fullscreen-shell-unstable-v1-protocol.c \
935 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500936
937endif
938
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800939if ENABLE_XWAYLAND
940
941module_LTLIBRARIES += xwayland.la
942
943xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100944 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800945 -I$(top_srcdir)/shared \
946 -I$(top_srcdir)/src \
947 -I$(top_builddir)/src \
948 -I$(top_builddir)/xwayland \
949 -DDATADIR='"$(datadir)"' \
950 -DMODULEDIR='"$(moduledir)"' \
951 -DLIBEXECDIR='"$(libexecdir)"' \
952 -DXSERVER_PATH='"@XSERVER_PATH@"'
953
954xwayland_la_LDFLAGS = -module -avoid-version
955xwayland_la_LIBADD = \
956 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800957 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800958xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500959 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800960 $(COMPOSITOR_CFLAGS) \
961 $(PIXMAN_CFLAGS) \
962 $(CAIRO_CFLAGS)
963xwayland_la_SOURCES = \
964 xwayland/xwayland.h \
965 xwayland/window-manager.c \
966 xwayland/selection.c \
967 xwayland/dnd.c \
968 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800969 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700970 xwayland/hash.h \
971 shared/helpers.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800972endif
973
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800974
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800975#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800976# Shared utilities
977#
978
Jon A. Cruz5a75a412015-07-02 23:36:44 -0700979noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
980 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800981
Derek Foreman4ff38742015-06-18 11:43:11 -0500982libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800983
984libshared_la_SOURCES = \
985 shared/config-parser.c \
986 shared/option-parser.c \
987 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +0200988 shared/file-util.c \
989 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700990 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800991 shared/os-compatibility.c \
992 shared/os-compatibility.h
993
994libshared_cairo_la_CFLAGS = \
995 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -0500996 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800997 $(COMPOSITOR_CFLAGS) \
998 $(PIXMAN_CFLAGS) \
999 $(CAIRO_CFLAGS) \
1000 $(PNG_CFLAGS) \
1001 $(WEBP_CFLAGS)
1002
1003libshared_cairo_la_LIBADD = \
1004 $(PIXMAN_LIBS) \
1005 $(CAIRO_LIBS) \
1006 $(PNG_LIBS) \
1007 $(WEBP_LIBS) \
1008 $(JPEG_LIBS)
1009
1010libshared_cairo_la_SOURCES = \
1011 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001012 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001013 shared/image-loader.c \
1014 shared/image-loader.h \
1015 shared/cairo-util.c \
1016 shared/frame.c \
1017 shared/cairo-util.h
1018
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001019libzunitc_la_SOURCES = \
1020 tools/zunitc/inc/zunitc/zunitc.h \
1021 tools/zunitc/inc/zunitc/zunitc_impl.h \
1022 tools/zunitc/src/zuc_base_logger.c \
1023 tools/zunitc/src/zuc_base_logger.h \
1024 tools/zunitc/src/zuc_collector.c \
1025 tools/zunitc/src/zuc_collector.h \
1026 tools/zunitc/src/zuc_context.h \
1027 tools/zunitc/src/zuc_event.h \
1028 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001029 tools/zunitc/src/zuc_junit_reporter.c \
1030 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001031 tools/zunitc/src/zuc_types.h \
1032 tools/zunitc/src/zunitc_impl.c \
1033 shared/helpers.h
1034
1035libzunitc_la_CFLAGS = \
1036 $(AM_CFLAGS) \
1037 -I$(top_srcdir)/tools/zunitc/inc
1038
1039libzunitc_la_LIBADD = \
1040 libshared.la
1041
Jon A. Cruz646aef52015-07-15 19:22:41 -07001042if ENABLE_JUNIT_XML
1043libzunitc_la_CFLAGS += \
1044 $(LIBXML2_CFLAGS)
1045libzunitc_la_LIBADD += \
1046 $(LIBXML2_LIBS)
1047endif
1048
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001049libzunitcmain_la_SOURCES = \
1050 tools/zunitc/src/main.c
1051
1052libzunitcmain_la_CFLAGS = \
1053 $(AM_CFLAGS) \
1054 -I$(top_srcdir)/tools/zunitc/inc
1055
1056libzunitcmain_la_LIBADD = \
1057 libzunitc.la \
1058 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001059
1060#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001061# tests subdirectory
1062#
1063
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001064TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1065
1066internal_tests = \
1067 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001068
1069shared_tests = \
1070 config-parser.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001071 vertex-clip.test \
1072 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001073
1074module_tests = \
1075 surface-test.la \
1076 surface-global-test.la
1077
1078weston_tests = \
1079 bad_buffer.weston \
1080 keyboard.weston \
1081 event.weston \
1082 button.weston \
1083 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001084 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001085 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001086 subsurface.weston \
1087 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001088
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001089ivi_tests =
1090
1091$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001092
1093AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001094 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1095 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001096
1097TEST_EXTENSIONS = .la .weston
1098LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1099WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1100
1101clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001102 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001103 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001104
1105# To remove when automake 1.11 support is dropped
1106export abs_builddir
1107
1108noinst_LTLIBRARIES += \
1109 weston-test.la \
1110 $(module_tests) \
1111 libtest-runner.la \
1112 libtest-client.la
1113
1114noinst_PROGRAMS += \
1115 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001116 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001117 $(shared_tests) \
1118 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001119 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001120 matrix-test
1121
1122test_module_ldflags = \
1123 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1124
1125surface_global_test_la_SOURCES = tests/surface-global-test.c
1126surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001127surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001128
1129surface_test_la_SOURCES = tests/surface-test.c
1130surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001131surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001132
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001133weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001134weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001135weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001136weston_test_la_SOURCES = \
1137 tests/weston-test.c \
1138 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001139nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001140 protocol/weston-test-protocol.c \
1141 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001142
1143if ENABLE_EGL
1144weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1145weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1146endif
1147
1148libtest_runner_la_SOURCES = \
1149 tests/weston-test-runner.c \
1150 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001151libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001152
1153config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001154config_parser_test_LDADD = \
1155 libshared.la \
1156 $(COMPOSITOR_LIBS) \
1157 libzunitc.la \
1158 libzunitcmain.la
1159config_parser_test_CFLAGS = \
1160 $(AM_CFLAGS) \
1161 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001162
1163vertex_clip_test_SOURCES = \
1164 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001165 shared/helpers.h \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001166 src/vertex-clipping.c \
1167 src/vertex-clipping.h
1168vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
1169
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001170libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001171 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001172 tests/weston-test-client-helper.h
1173nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001174 protocol/weston-test-protocol.c \
1175 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001176libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1177libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) $(CAIRO_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001178
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001179
1180#
1181# Internal tests - tests functionality of the testsuite itself
1182#
1183
1184internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001185internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1186internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001187
1188
1189#
1190# Weston Tests
1191#
1192
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001193bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001194bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001195bad_buffer_weston_LDADD = libtest-client.la
1196
1197keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001198keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001199keyboard_weston_LDADD = libtest-client.la
1200
1201event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001202event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001203event_weston_LDADD = libtest-client.la
1204
1205button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001206button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001207button_weston_LDADD = libtest-client.la
1208
Marek Chalupa5fd81402015-03-30 09:21:29 -04001209devices_weston_SOURCES = tests/devices-test.c
1210devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1211devices_weston_LDADD = libtest-client.la
1212
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001213text_weston_SOURCES = tests/text-test.c
1214nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001215 protocol/text-input-unstable-v1-protocol.c \
1216 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001217text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001218text_weston_LDADD = libtest-client.la
1219
1220subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001221subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001222subsurface_weston_LDADD = libtest-client.la
1223
Jon A. Cruzb09da242015-06-16 13:15:13 -07001224presentation_weston_SOURCES = \
1225 tests/presentation-test.c \
1226 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001227nodist_presentation_weston_SOURCES = \
1228 protocol/presentation_timing-protocol.c \
1229 protocol/presentation_timing-client-protocol.h
1230presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1231presentation_weston_LDADD = libtest-client.la
1232
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001233roles_weston_SOURCES = tests/roles-test.c
1234roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1235roles_weston_LDADD = libtest-client.la
1236
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001237if ENABLE_EGL
1238weston_tests += buffer-count.weston
1239buffer_count_weston_SOURCES = tests/buffer-count-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001240buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001241buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1242endif
1243
1244if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001245weston_tests += xwayland-test.weston
1246xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001247xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001248xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001249endif
1250
1251matrix_test_SOURCES = \
1252 tests/matrix-test.c \
1253 shared/matrix.c \
1254 shared/matrix.h
1255matrix_test_CPPFLAGS = -DUNIT_TEST
1256matrix_test_LDADD = -lm -lrt
1257
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001258if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001259module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001260 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001261 ivi-layout-test.la
1262
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001263ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1264ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001265ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001266ivi_layout_internal_test_la_SOURCES = \
1267 tests/ivi_layout-internal-test.c
1268
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001269ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1270ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001271ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001272ivi_layout_test_la_SOURCES = \
1273 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001274 tests/ivi-test.h \
1275 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001276nodist_ivi_layout_test_la_SOURCES = \
1277 protocol/weston-test-protocol.c \
1278 protocol/weston-test-server-protocol.h
1279
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001280ivi_tests += \
1281 ivi-shell-app.weston
1282
1283ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1284nodist_ivi_shell_app_weston_SOURCES = \
1285 protocol/ivi-application-protocol.c \
1286 protocol/ivi-application-client-protocol.h
1287ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1288ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001289
1290noinst_PROGRAMS += ivi-layout.ivi
1291
1292ivi_layout_ivi_SOURCES = \
1293 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001294 tests/ivi-test.h \
1295 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001296nodist_ivi_layout_ivi_SOURCES = \
1297 protocol/ivi-application-protocol.c \
1298 protocol/ivi-application-client-protocol.h
1299ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1300ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001301endif
1302
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001303if BUILD_SETBACKLIGHT
1304noinst_PROGRAMS += setbacklight
1305setbacklight_SOURCES = \
1306 tests/setbacklight.c \
1307 src/libbacklight.c \
1308 src/libbacklight.h
1309setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1310setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1311endif
1312
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001313all-local: zuctest$(EXEEXT)
1314
1315noinst_PROGRAMS += zuctest$(EXEEXT)
1316
1317zuctest_LDADD = \
1318 libzunitc.la \
1319 libzunitcmain.la
1320
1321zuctest_CFLAGS = \
1322 $(AM_CFLAGS) \
1323 -I$(top_srcdir)/tools/zunitc/inc
1324
1325zuctest_SOURCES = \
1326 tools/zunitc/test/fixtures_test.c \
1327 tools/zunitc/test/zunitc_test.c
1328
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001329EXTRA_DIST += \
1330 tests/weston-tests-env \
1331 tests/internal-screenshot.ini \
1332 tests/reference/internal-screenshot-bad-00.png \
1333 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001334
1335BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001336 protocol/weston-test-protocol.c \
1337 protocol/weston-test-server-protocol.h \
1338 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001339 protocol/text-input-unstable-v1-protocol.c \
1340 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001341
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001342EXTRA_DIST += \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001343 protocol/desktop-shell.xml \
1344 protocol/screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001345 protocol/workspaces.xml \
1346 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001347 protocol/weston-test.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001348 protocol/xdg-shell.xml \
Pekka Paalanen7e62d252014-09-23 22:08:42 -04001349 protocol/presentation_timing.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001350 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001351 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001352 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001353
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001354#
1355# manual test modules in tests subdirectory
1356#
1357
1358noinst_LTLIBRARIES += \
1359 surface-screenshot.la
1360
1361surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1362surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001363surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001364surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1365
1366
1367#
1368# Documentation
1369#
1370
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001371man_MANS = weston.1 weston.ini.5
1372
1373if ENABLE_DRM_COMPOSITOR
1374man_MANS += weston-drm.7
1375endif
1376
1377MAN_SUBSTS = \
1378 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1379 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1380 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1381 -e 's|__version__|$(PACKAGE_VERSION)|g'
1382
1383SUFFIXES = .1 .5 .7 .man
1384
1385%.1 %.5 %.7 : man/%.man
1386 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1387
1388EXTRA_DIST += \
1389 man/weston.man \
1390 man/weston-drm.man \
1391 man/weston.ini.man
1392
1393CLEANFILES += $(man_MANS)
1394
Jon A. Cruz179c1862015-07-15 19:22:43 -07001395if ENABLE_DEVDOCS
1396DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1397
1398docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1399 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1400
1401docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1402 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1403endif
1404
1405DOCDIRS = \
1406 docs/developer \
1407 docs/tools
1408
1409$(DOCDIRS):
1410 $(MKDIR_P) $@
1411
1412.PHONY: doc $(DOXYGEN_INDICES)
1413
1414doc: $(DOXYGEN_INDICES)
1415
Jonas Ådahl496adb32015-11-17 16:00:27 +08001416.SECONDEXPANSION:
1417
1418protocol/%-unstable-v1-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/unstable/$$*/$$*-unstable-v1.xml
1419 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1420
1421protocol/%-unstable-v1-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/unstable/$$*/$$*-unstable-v1.xml
1422 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1423
1424protocol/%-unstable-v1-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/unstable/$$*/$$*-unstable-v1.xml
1425 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1426
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001427protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1428 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001429
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001430protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1431 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001432
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001433protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1434 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@