blob: 261798c72b54f9d825c440c36e4451ee4f76d323 [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
23 $(AM_V_GEN)$(SED) \
24 -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
32 $(AM_V_GEN)$(SED) \
33 -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' \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020036 -e 's|@libexecdir[@]|$(libexecdir)|g' \
37 -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
66weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
67weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -080068 $(DLOPEN_LIBS) -lm 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 \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080089 shared/matrix.c \
90 shared/matrix.h \
91 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +010092 shared/platform.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080093 src/weston-egl-ext.h
94
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -080095nodist_weston_SOURCES = \
96 protocol/screenshooter-protocol.c \
97 protocol/screenshooter-server-protocol.h \
98 protocol/text-cursor-position-protocol.c \
99 protocol/text-cursor-position-server-protocol.h \
100 protocol/text-protocol.c \
101 protocol/text-server-protocol.h \
102 protocol/input-method-protocol.c \
103 protocol/input-method-server-protocol.h \
104 protocol/workspaces-protocol.c \
105 protocol/workspaces-server-protocol.h \
Pekka Paalanen7e62d252014-09-23 22:08:42 -0400106 protocol/presentation_timing-protocol.c \
107 protocol/presentation_timing-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800108 protocol/scaler-protocol.c \
109 protocol/scaler-server-protocol.h
110
111BUILT_SOURCES += $(nodist_weston_SOURCES)
112
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800113# Track this dependency explicitly instead of using BUILT_SOURCES. We
114# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
115# in case we're building from tarballs.
116
117src/compositor.c : $(top_builddir)/src/git-version.h
118
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800119noinst_LTLIBRARIES += \
120 libsession-helper.la
121
122libsession_helper_la_SOURCES = \
123 src/weston-launch.h \
124 src/launcher-util.c \
125 src/launcher-util.h
126libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
127libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
128
129if ENABLE_DBUS
130if HAVE_SYSTEMD_LOGIN
131libsession_helper_la_SOURCES += \
132 src/dbus.h \
133 src/dbus.c \
134 src/logind-util.h \
135 src/logind-util.c
136libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
137libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
138endif
139endif
140
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800141if HAVE_GIT_REPO
142src/git-version.h : $(top_srcdir)/.git/logs/HEAD
143 $(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 -0800144else
145src/git-version.h :
146 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
147
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800148endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800149
150.FORCE :
151
152if BUILD_WESTON_LAUNCH
153bin_PROGRAMS += weston-launch
154weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
155weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
156weston_launch_CFLAGS= \
157 $(GCC_CFLAGS) \
158 $(PAM_CFLAGS) \
159 $(SYSTEMD_LOGIN_CFLAGS) \
160 $(LIBDRM_CFLAGS)
161weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
162
163if ENABLE_SETUID_INSTALL
164install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700165 can_suid_files=no; \
166 chown root $(DESTDIR)$(bindir)/weston-launch \
167 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
168 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500169 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700170 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
171 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
172 false; \
173 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800174endif
175
176endif # BUILD_WESTON_LAUNCH
177
178pkgconfigdir = $(libdir)/pkgconfig
179pkgconfig_DATA = src/weston.pc
180
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100181wayland_sessiondir = $(datadir)/wayland-sessions
182wayland_session_DATA = src/weston.desktop
Marek Chalupa194ca2b2015-01-22 10:03:03 +0100183dist_wayland_session_DATA = $(wayland_session_DATA)
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100184
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800185westonincludedir = $(includedir)/weston
186westoninclude_HEADERS = \
187 src/version.h \
188 src/compositor.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200189 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800190 shared/matrix.h \
191 shared/config-parser.h \
Jon Cruz35b2eaa2015-06-15 15:37:08 -0700192 shared/helpers.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100193 shared/zalloc.h \
194 shared/platform.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800195
196if ENABLE_EGL
197module_LTLIBRARIES += gl-renderer.la
198gl_renderer_la_LDFLAGS = -module -avoid-version
199gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
200gl_renderer_la_CFLAGS = \
201 $(COMPOSITOR_CFLAGS) \
202 $(EGL_CFLAGS) \
203 $(GCC_CFLAGS)
204gl_renderer_la_SOURCES = \
205 src/gl-renderer.h \
206 src/gl-renderer.c \
207 src/vertex-clipping.c \
208 src/vertex-clipping.h
209endif
210
211if ENABLE_X11_COMPOSITOR
212module_LTLIBRARIES += x11-backend.la
213x11_backend_la_LDFLAGS = -module -avoid-version
214x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800215 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800216x11_backend_la_CFLAGS = \
217 $(COMPOSITOR_CFLAGS) \
218 $(EGL_CFLAGS) \
219 $(PIXMAN_CFLAGS) \
220 $(CAIRO_CFLAGS) \
221 $(X11_COMPOSITOR_CFLAGS) \
222 $(GCC_CFLAGS)
223x11_backend_la_SOURCES = src/compositor-x11.c
224endif
225
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100226INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000227INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100228 src/libinput-seat.c \
229 src/libinput-seat.h \
230 src/libinput-device.c \
231 src/libinput-device.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100232
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800233if ENABLE_DRM_COMPOSITOR
234module_LTLIBRARIES += drm-backend.la
235drm_backend_la_LDFLAGS = -module -avoid-version
236drm_backend_la_LIBADD = \
237 $(COMPOSITOR_LIBS) \
238 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100239 $(INPUT_BACKEND_LIBS) \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100240 libshared.la -lrt \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800241 libsession-helper.la
242drm_backend_la_CFLAGS = \
243 $(COMPOSITOR_CFLAGS) \
244 $(EGL_CFLAGS) \
245 $(DRM_COMPOSITOR_CFLAGS) \
246 $(GCC_CFLAGS)
247drm_backend_la_SOURCES = \
248 src/compositor-drm.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100249 $(INPUT_BACKEND_SOURCES) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800250 src/libbacklight.c \
251 src/libbacklight.h
252
253if ENABLE_VAAPI_RECORDER
254drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
255drm_backend_la_LIBADD += $(LIBVA_LIBS)
256drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
257endif
258endif
259
260if ENABLE_WAYLAND_COMPOSITOR
261module_LTLIBRARIES += wayland-backend.la
262wayland_backend_la_LDFLAGS = -module -avoid-version
263wayland_backend_la_LIBADD = \
264 $(COMPOSITOR_LIBS) \
265 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800266 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800267wayland_backend_la_CFLAGS = \
268 $(COMPOSITOR_CFLAGS) \
269 $(EGL_CFLAGS) \
270 $(PIXMAN_CFLAGS) \
271 $(CAIRO_CFLAGS) \
272 $(WAYLAND_COMPOSITOR_CFLAGS) \
273 $(GCC_CFLAGS)
274wayland_backend_la_SOURCES = src/compositor-wayland.c
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500275nodist_wayland_backend_la_SOURCES = \
276 protocol/fullscreen-shell-protocol.c \
277 protocol/fullscreen-shell-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800278endif
279
280if ENABLE_RPI_COMPOSITOR
281if INSTALL_RPI_COMPOSITOR
282module_LTLIBRARIES += rpi-backend.la
283else
284noinst_LTLIBRARIES += rpi-backend.la
285endif
286
287rpi_backend_la_LDFLAGS = -module -avoid-version
288rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
289 $(RPI_COMPOSITOR_LIBS) \
290 $(RPI_BCM_HOST_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100291 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800292 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800293 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800294rpi_backend_la_CFLAGS = \
295 $(GCC_CFLAGS) \
296 $(COMPOSITOR_CFLAGS) \
297 $(RPI_COMPOSITOR_CFLAGS) \
298 $(RPI_BCM_HOST_CFLAGS)
299rpi_backend_la_SOURCES = \
300 src/compositor-rpi.c \
301 src/rpi-renderer.c \
302 src/rpi-renderer.h \
303 src/rpi-bcm-stubs.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100304 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800305
306if ENABLE_EGL
307rpi_backend_la_LIBADD += $(EGL_LIBS)
308rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
309endif
310
311endif
312
313if ENABLE_HEADLESS_COMPOSITOR
314module_LTLIBRARIES += headless-backend.la
315headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800316headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
317headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800318headless_backend_la_SOURCES = src/compositor-headless.c
319endif
320
321if ENABLE_FBDEV_COMPOSITOR
322module_LTLIBRARIES += fbdev-backend.la
323fbdev_backend_la_LDFLAGS = -module -avoid-version
324fbdev_backend_la_LIBADD = \
325 $(COMPOSITOR_LIBS) \
326 $(FBDEV_COMPOSITOR_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 -0800330fbdev_backend_la_CFLAGS = \
331 $(COMPOSITOR_CFLAGS) \
332 $(EGL_CFLAGS) \
333 $(FBDEV_COMPOSITOR_CFLAGS) \
334 $(PIXMAN_CFLAGS) \
335 $(GCC_CFLAGS)
336fbdev_backend_la_SOURCES = \
337 src/compositor-fbdev.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100338 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800339endif
340
341if ENABLE_RDP_COMPOSITOR
342module_LTLIBRARIES += rdp-backend.la
343rdp_backend_la_LDFLAGS = -module -avoid-version
344rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
345 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800346 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800347rdp_backend_la_CFLAGS = \
348 $(COMPOSITOR_CFLAGS) \
349 $(RDP_COMPOSITOR_CFLAGS) \
350 $(GCC_CFLAGS)
351rdp_backend_la_SOURCES = src/compositor-rdp.c
352endif
353
354if HAVE_LCMS
355module_LTLIBRARIES += cms-static.la
356cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800357cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800358cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
359cms_static_la_SOURCES = \
360 src/cms-static.c \
361 src/cms-helper.c \
362 src/cms-helper.h
363if ENABLE_COLORD
364module_LTLIBRARIES += cms-colord.la
365cms_colord_la_LDFLAGS = -module -avoid-version
366cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
367cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
368cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100369 src/cms-colord.c \
370 src/cms-helper.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800371 src/cms-helper.h
372endif
373endif
374
375noinst_PROGRAMS += spring-tool
376spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
377spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
378spring_tool_SOURCES = \
379 src/spring-tool.c \
380 src/animation.c \
381 shared/matrix.c \
382 shared/matrix.h \
383 src/compositor.h
384
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800385if BUILD_CLIENTS
386
387bin_PROGRAMS += weston-terminal weston-info
388
389libexec_PROGRAMS += \
390 weston-desktop-shell \
391 weston-screenshooter \
392 weston-keyboard \
393 weston-simple-im
394
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900395if ENABLE_IVI_SHELL
396libexec_PROGRAMS += \
397 weston-ivi-shell-user-interface
398endif
399
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800400demo_clients = \
401 weston-flower \
402 weston-image \
403 weston-cliptest \
404 weston-dnd \
405 weston-smoke \
406 weston-resizor \
407 weston-eventdemo \
408 weston-clickdot \
409 weston-transformed \
410 weston-fullscreen \
411 weston-stacking \
412 weston-calibrator \
413 weston-scaler
414
415if INSTALL_DEMO_CLIENTS
416bin_PROGRAMS += $(demo_clients)
417else
418noinst_PROGRAMS += $(demo_clients)
419endif
420
421
422if BUILD_SIMPLE_CLIENTS
423demo_clients += \
424 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500425 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800426 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400427 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800428 weston-multi-resource
429
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800430weston_simple_shm_SOURCES = clients/simple-shm.c
431nodist_weston_simple_shm_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800432 protocol/xdg-shell-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500433 protocol/xdg-shell-client-protocol.h \
434 protocol/fullscreen-shell-protocol.c \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900435 protocol/fullscreen-shell-client-protocol.h \
436 protocol/ivi-application-protocol.c \
437 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800438weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800439weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800440
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500441weston_simple_damage_SOURCES = clients/simple-damage.c
442nodist_weston_simple_damage_SOURCES = \
443 protocol/scaler-protocol.c \
444 protocol/scaler-client-protocol.h \
445 protocol/xdg-shell-protocol.c \
446 protocol/xdg-shell-client-protocol.h \
447 protocol/fullscreen-shell-protocol.c \
448 protocol/fullscreen-shell-client-protocol.h
449weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
450weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
451
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800452weston_simple_touch_SOURCES = clients/simple-touch.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800453weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800454weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800455
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400456weston_presentation_shm_SOURCES = clients/presentation-shm.c
457nodist_weston_presentation_shm_SOURCES = \
458 protocol/presentation_timing-protocol.c \
459 protocol/presentation_timing-client-protocol.h
460weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
461weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
462
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800463weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800464weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Javier Jardónc47931e2014-10-27 15:13:19 +0000465weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800466endif
467
468if BUILD_SIMPLE_EGL_CLIENTS
469demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800470weston_simple_egl_SOURCES = clients/simple-egl.c
471nodist_weston_simple_egl_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800472 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900473 protocol/xdg-shell-client-protocol.h \
474 protocol/ivi-application-protocol.c \
475 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800476weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800477weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
478endif
479
480noinst_LTLIBRARIES += libtoytoolkit.la
481
482libtoytoolkit_la_SOURCES = \
483 clients/window.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800484 clients/window.h
485
486nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100487 protocol/text-cursor-position-protocol.c \
488 protocol/text-cursor-position-client-protocol.h \
489 protocol/scaler-protocol.c \
490 protocol/scaler-client-protocol.h \
491 protocol/workspaces-protocol.c \
492 protocol/workspaces-client-protocol.h \
Pekka Paalanen7e62d252014-09-23 22:08:42 -0400493 protocol/presentation_timing-protocol.c \
494 protocol/presentation_timing-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100495 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900496 protocol/xdg-shell-client-protocol.h \
497 protocol/ivi-application-protocol.c \
498 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500499
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800500BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
501
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800502
503libtoytoolkit_la_LIBADD = \
504 $(CLIENT_LIBS) \
505 $(CAIRO_EGL_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800506 libshared-cairo.la -lrt -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800507libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800508
509weston_flower_SOURCES = clients/flower.c
510weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800511weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800512
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100513weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800514 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800515nodist_weston_screenshooter_SOURCES = \
516 protocol/screenshooter-protocol.c \
517 protocol/screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800518weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800519weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800520
521weston_terminal_SOURCES = clients/terminal.c
522weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800523weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800524
525weston_image_SOURCES = clients/image.c
526weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800527weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800528
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300529weston_cliptest_SOURCES = \
530 clients/cliptest.c \
531 src/vertex-clipping.c \
532 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800533weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800534weston_cliptest_LDADD = libtoytoolkit.la
535
536weston_dnd_SOURCES = clients/dnd.c
537weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800538weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800539
540weston_smoke_SOURCES = clients/smoke.c
541weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800542weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800543
544weston_resizor_SOURCES = clients/resizor.c
545weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800546weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800547
548weston_scaler_SOURCES = clients/scaler.c
549weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800550weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800551
552if HAVE_CAIRO_GLESV2
553demo_clients += weston-nested weston-nested-client
554
555weston_nested_SOURCES = clients/nested.c
556weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800557weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800558
559weston_nested_client_SOURCES = clients/nested-client.c
560weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800561weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800562endif
563
564weston_eventdemo_SOURCES = clients/eventdemo.c
565weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800566weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800567
568weston_clickdot_SOURCES = clients/clickdot.c
569weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800570weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800571
572weston_transformed_SOURCES = clients/transformed.c
573weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800574weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800575
576weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500577nodist_weston_fullscreen_SOURCES = \
578 protocol/fullscreen-shell-protocol.c \
579 protocol/fullscreen-shell-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800580weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800581weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800582
583weston_stacking_SOURCES = clients/stacking.c
584weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800585weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800586
587weston_calibrator_SOURCES = clients/calibrator.c \
588 shared/matrix.c \
589 shared/matrix.h
590weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800591weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800592
593if BUILD_SUBSURFACES_CLIENT
594demo_clients += weston-subsurfaces
595weston_subsurfaces_SOURCES = clients/subsurfaces.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800596weston_subsurfaces_CFLAGS = \
597 $(AM_CFLAGS) \
598 $(SIMPLE_EGL_CLIENT_CFLAGS) \
599 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800600weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
601endif
602
603if HAVE_PANGO
604demo_clients += weston-editor
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800605weston_editor_SOURCES = clients/editor.c
606nodist_weston_editor_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100607 protocol/text-protocol.c \
608 protocol/text-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800609weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800610weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800611endif
612
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800613weston_keyboard_SOURCES = clients/keyboard.c
614nodist_weston_keyboard_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100615 protocol/desktop-shell-client-protocol.h \
616 protocol/desktop-shell-protocol.c \
617 protocol/input-method-protocol.c \
618 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800619weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800620weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800621
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800622weston_simple_im_SOURCES = clients/weston-simple-im.c
623nodist_weston_simple_im_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100624 protocol/input-method-protocol.c \
625 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800626weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800627weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800628
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800629weston_info_SOURCES = clients/weston-info.c
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400630nodist_weston_info_SOURCES = \
631 protocol/presentation_timing-protocol.c \
632 protocol/presentation_timing-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800633weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200634weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800635
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800636weston_desktop_shell_SOURCES = clients/desktop-shell.c
637nodist_weston_desktop_shell_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100638 protocol/desktop-shell-client-protocol.h \
639 protocol/desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800640weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800641weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800642
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900643if ENABLE_IVI_SHELL
644weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
645nodist_weston_ivi_shell_user_interface_SOURCES = \
646 protocol/ivi-hmi-controller-client-protocol.h \
647 protocol/ivi-hmi-controller-protocol.c \
648 protocol/ivi-application-client-protocol.h \
649 protocol/ivi-application-protocol.c
650weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
651weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
652endif
653
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800654if BUILD_FULL_GL_CLIENTS
655demo_clients += weston-gears
656weston_gears_SOURCES = clients/gears.c
657weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800658weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800659
660if HAVE_GLU
661libexec_PROGRAMS += weston-screensaver
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100662weston_screensaver_SOURCES = \
663 clients/wscreensaver.c \
664 clients/wscreensaver.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100665 clients/wscreensaver-glue.c \
666 clients/wscreensaver-glue.h \
667 clients/glmatrix.c \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800668 clients/matrix3.xpm
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800669nodist_weston_screensaver_SOURCES = \
670 protocol/desktop-shell-client-protocol.h \
671 protocol/desktop-shell-protocol.c
672
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800673weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800674weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800675
676endif
677
678endif
679
680endif
681
682BUILT_SOURCES += \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100683 protocol/screenshooter-protocol.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800684 protocol/screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100685 protocol/text-cursor-position-client-protocol.h \
686 protocol/text-cursor-position-protocol.c \
687 protocol/text-protocol.c \
688 protocol/text-client-protocol.h \
689 protocol/input-method-protocol.c \
690 protocol/input-method-client-protocol.h \
691 protocol/desktop-shell-client-protocol.h \
692 protocol/desktop-shell-protocol.c \
693 protocol/scaler-client-protocol.h \
694 protocol/scaler-protocol.c \
695 protocol/workspaces-client-protocol.h \
696 protocol/workspaces-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500697 protocol/fullscreen-shell-protocol.c \
698 protocol/fullscreen-shell-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100699 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900700 protocol/xdg-shell-client-protocol.h \
701 protocol/ivi-hmi-controller-protocol.c \
702 protocol/ivi-hmi-controller-client-protocol.h \
703 protocol/ivi-application-protocol.c \
704 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800705
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800706westondatadir = $(datadir)/weston
707dist_westondata_DATA = \
708 data/wayland.svg \
709 data/wayland.png \
710 data/pattern.png \
711 data/terminal.png \
712 data/border.png \
713 data/icon_window.png \
714 data/sign_close.png \
715 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100716 data/sign_minimize.png
717
718if ENABLE_IVI_SHELL
719dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900720 data/background.png \
721 data/tiling.png \
722 data/fullscreen.png \
723 data/panel.png \
724 data/random.png \
725 data/sidebyside.png \
726 data/home.png \
727 data/icon_ivi_clickdot.png \
728 data/icon_ivi_flower.png \
729 data/icon_ivi_simple-egl.png \
730 data/icon_ivi_simple-shm.png \
731 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100732endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800733
734
735if BUILD_WCAP_TOOLS
736bin_PROGRAMS += wcap-decode
737
738wcap_decode_SOURCES = \
739 wcap/main.c \
740 wcap/wcap-decode.c \
741 wcap/wcap-decode.h
742
743wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
744wcap_decode_LDADD = $(WCAP_LIBS)
745endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800746
747
748if ENABLE_DESKTOP_SHELL
749
750module_LTLIBRARIES += desktop-shell.la
751
752desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100753 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800754 -I$(top_srcdir)/shared \
755 -I$(top_srcdir)/src \
756 -I$(top_builddir)/src \
757 -I$(top_builddir)/desktop-shell \
758 -DDATADIR='"$(datadir)"' \
759 -DMODULEDIR='"$(moduledir)"' \
760 -DLIBEXECDIR='"$(libexecdir)"' \
761 -DIN_WESTON
762
763desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800764desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800765desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
766desktop_shell_la_SOURCES = \
767 desktop-shell/shell.h \
768 desktop-shell/shell.c \
769 desktop-shell/exposay.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800770 desktop-shell/input-panel.c
771nodist_desktop_shell_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100772 protocol/desktop-shell-protocol.c \
773 protocol/desktop-shell-server-protocol.h \
774 protocol/xdg-shell-protocol.c \
775 protocol/xdg-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800776
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800777BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800778endif
779
Jason Ekstrand946a9482014-04-02 19:53:47 -0500780if ENABLE_FULLSCREEN_SHELL
781
782module_LTLIBRARIES += fullscreen-shell.la
783
784fullscreen_shell_la_CPPFLAGS = \
785 -I$(top_builddir)/protocol \
786 -I$(top_srcdir)/shared \
787 -I$(top_srcdir)/src \
788 -I$(top_builddir)/src \
789 -DIN_WESTON
790
791fullscreen_shell_la_LDFLAGS = -module -avoid-version
792fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
793fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
794fullscreen_shell_la_SOURCES = \
795 fullscreen-shell/fullscreen-shell.c
796nodist_fullscreen_shell_la_SOURCES = \
797 protocol/fullscreen-shell-protocol.c \
798 protocol/fullscreen-shell-server-protocol.h
799
800BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
801endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800802
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900803if ENABLE_IVI_SHELL
804
805module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900806 $(ivi_shell) \
807 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900808
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900809ivi_shell = ivi-shell.la
810ivi_shell_la_LDFLAGS = -module -avoid-version
811ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
812ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
813ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900814 ivi-shell/ivi-layout-export.h \
815 ivi-shell/ivi-layout-private.h \
816 ivi-shell/ivi-layout.c \
817 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900818 ivi-shell/ivi-shell.h \
819 ivi-shell/ivi-shell.c \
Nobuhiko Tanibata0038b732014-11-27 13:25:34 +0900820 ivi-shell/input-panel-ivi.c
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900821nodist_ivi_shell_la_SOURCES = \
822 protocol/ivi-application-protocol.c \
823 protocol/ivi-application-server-protocol.h
824
825BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
826
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900827hmi_controller = hmi-controller.la
828hmi_controller_la_LDFLAGS = -module -avoid-version
829hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
830hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
831hmi_controller_la_SOURCES = \
832 ivi-shell/ivi-layout-export.h \
833 ivi-shell/hmi-controller.c
834nodist_hmi_controller_la_SOURCES = \
835 protocol/ivi-hmi-controller-protocol.c \
836 protocol/ivi-hmi-controller-server-protocol.h
837
838BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
839
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900840endif
841
842
Jason Ekstrand47928d82014-04-02 19:54:01 -0500843if ENABLE_SCREEN_SHARING
844
845module_LTLIBRARIES += screen-share.la
846
847screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
848screen_share_la_LDFLAGS = -module -avoid-version
849screen_share_la_LIBADD = \
850 $(COMPOSITOR_LIBS) \
851 $(SCREEN_SHARE_LIBS) \
852 libshared-cairo.la
853screen_share_la_CFLAGS = \
854 $(COMPOSITOR_CFLAGS) \
855 $(SCREEN_SHARE_CFLAGS) \
856 $(GCC_CFLAGS)
857screen_share_la_SOURCES = \
858 src/screen-share.c
859nodist_screen_share_la_SOURCES = \
860 protocol/fullscreen-shell-protocol.c \
861 protocol/fullscreen-shell-client-protocol.h
862
863endif
864
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800865if ENABLE_XWAYLAND
866
867module_LTLIBRARIES += xwayland.la
868
869xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100870 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800871 -I$(top_srcdir)/shared \
872 -I$(top_srcdir)/src \
873 -I$(top_builddir)/src \
874 -I$(top_builddir)/xwayland \
875 -DDATADIR='"$(datadir)"' \
876 -DMODULEDIR='"$(moduledir)"' \
877 -DLIBEXECDIR='"$(libexecdir)"' \
878 -DXSERVER_PATH='"@XSERVER_PATH@"'
879
880xwayland_la_LDFLAGS = -module -avoid-version
881xwayland_la_LIBADD = \
882 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800883 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800884xwayland_la_CFLAGS = \
885 $(GCC_CFLAGS) \
886 $(COMPOSITOR_CFLAGS) \
887 $(PIXMAN_CFLAGS) \
888 $(CAIRO_CFLAGS)
889xwayland_la_SOURCES = \
890 xwayland/xwayland.h \
891 xwayland/window-manager.c \
892 xwayland/selection.c \
893 xwayland/dnd.c \
894 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800895 xwayland/hash.c \
896 xwayland/hash.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800897endif
898
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800899
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800900#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800901# Shared utilities
902#
903
904noinst_LTLIBRARIES += libshared.la libshared-cairo.la
905
906libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
907
908libshared_la_SOURCES = \
909 shared/config-parser.c \
910 shared/option-parser.c \
911 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +0200912 shared/file-util.c \
913 shared/file-util.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800914 shared/os-compatibility.c \
915 shared/os-compatibility.h
916
917libshared_cairo_la_CFLAGS = \
918 -DDATADIR='"$(datadir)"' \
919 $(GCC_CFLAGS) \
920 $(COMPOSITOR_CFLAGS) \
921 $(PIXMAN_CFLAGS) \
922 $(CAIRO_CFLAGS) \
923 $(PNG_CFLAGS) \
924 $(WEBP_CFLAGS)
925
926libshared_cairo_la_LIBADD = \
927 $(PIXMAN_LIBS) \
928 $(CAIRO_LIBS) \
929 $(PNG_LIBS) \
930 $(WEBP_LIBS) \
931 $(JPEG_LIBS)
932
933libshared_cairo_la_SOURCES = \
934 $(libshared_la_SOURCES) \
935 shared/image-loader.c \
936 shared/image-loader.h \
937 shared/cairo-util.c \
938 shared/frame.c \
939 shared/cairo-util.h
940
941
942#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800943# tests subdirectory
944#
945
Bryce Harringtonfb9089d2014-11-04 16:39:38 -0800946TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
947
948internal_tests = \
949 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800950
951shared_tests = \
952 config-parser.test \
953 vertex-clip.test
954
955module_tests = \
956 surface-test.la \
957 surface-global-test.la
958
959weston_tests = \
960 bad_buffer.weston \
961 keyboard.weston \
962 event.weston \
963 button.weston \
964 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -0400965 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +0300966 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -0400967 subsurface.weston \
968 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800969
Pekka Paalanenf3a34532015-03-24 13:51:05 +0200970ivi_tests =
971
972$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800973
974AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -0700975 abs_builddir='$(abs_builddir)'; export abs_builddir; \
976 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800977
978TEST_EXTENSIONS = .la .weston
979LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
980WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
981
982clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +0300983 -rm -rf logs
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800984
985# To remove when automake 1.11 support is dropped
986export abs_builddir
987
988noinst_LTLIBRARIES += \
989 weston-test.la \
990 $(module_tests) \
991 libtest-runner.la \
992 libtest-client.la
993
994noinst_PROGRAMS += \
995 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -0800996 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800997 $(shared_tests) \
998 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +0200999 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001000 matrix-test
1001
1002test_module_ldflags = \
1003 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1004
1005surface_global_test_la_SOURCES = tests/surface-global-test.c
1006surface_global_test_la_LDFLAGS = $(test_module_ldflags)
1007surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1008
1009surface_test_la_SOURCES = tests/surface-test.c
1010surface_test_la_LDFLAGS = $(test_module_ldflags)
1011surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1012
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001013weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001014weston_test_la_LDFLAGS = $(test_module_ldflags)
1015weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001016weston_test_la_SOURCES = tests/weston-test.c
1017nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001018 protocol/weston-test-protocol.c \
1019 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001020
1021if ENABLE_EGL
1022weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1023weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1024endif
1025
1026libtest_runner_la_SOURCES = \
1027 tests/weston-test-runner.c \
1028 tests/weston-test-runner.h
1029libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1030
1031config_parser_test_SOURCES = tests/config-parser-test.c
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001032config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001033
1034vertex_clip_test_SOURCES = \
1035 tests/vertex-clip-test.c \
1036 src/vertex-clipping.c \
1037 src/vertex-clipping.h
1038vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
1039
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001040libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001041 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001042 tests/weston-test-client-helper.h
1043nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001044 protocol/weston-test-protocol.c \
1045 protocol/weston-test-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001046libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001047libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001048
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001049
1050#
1051# Internal tests - tests functionality of the testsuite itself
1052#
1053
1054internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
1055internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1056internal_screenshot_weston_LDADD = libtest-client.la $(CAIRO_LIBS)
1057
1058
1059#
1060# Weston Tests
1061#
1062
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001063bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001064bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001065bad_buffer_weston_LDADD = libtest-client.la
1066
1067keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001068keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001069keyboard_weston_LDADD = libtest-client.la
1070
1071event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001072event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001073event_weston_LDADD = libtest-client.la
1074
1075button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001076button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001077button_weston_LDADD = libtest-client.la
1078
Marek Chalupa5fd81402015-03-30 09:21:29 -04001079devices_weston_SOURCES = tests/devices-test.c
1080devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1081devices_weston_LDADD = libtest-client.la
1082
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001083text_weston_SOURCES = tests/text-test.c
1084nodist_text_weston_SOURCES = \
1085 protocol/text-protocol.c \
1086 protocol/text-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001087text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001088text_weston_LDADD = libtest-client.la
1089
1090subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001091subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001092subsurface_weston_LDADD = libtest-client.la
1093
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001094presentation_weston_SOURCES = tests/presentation-test.c
1095nodist_presentation_weston_SOURCES = \
1096 protocol/presentation_timing-protocol.c \
1097 protocol/presentation_timing-client-protocol.h
1098presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1099presentation_weston_LDADD = libtest-client.la
1100
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001101roles_weston_SOURCES = tests/roles-test.c
1102roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1103roles_weston_LDADD = libtest-client.la
1104
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001105if ENABLE_EGL
1106weston_tests += buffer-count.weston
1107buffer_count_weston_SOURCES = tests/buffer-count-test.c
1108buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1109buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1110endif
1111
1112if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001113weston_tests += xwayland-test.weston
1114xwayland_test_weston_SOURCES = tests/xwayland-test.c
1115xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1116xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001117endif
1118
1119matrix_test_SOURCES = \
1120 tests/matrix-test.c \
1121 shared/matrix.c \
1122 shared/matrix.h
1123matrix_test_CPPFLAGS = -DUNIT_TEST
1124matrix_test_LDADD = -lm -lrt
1125
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001126if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001127module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001128 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001129 ivi-layout-test.la
1130
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001131ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1132ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
1133ivi_layout_internal_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1134ivi_layout_internal_test_la_SOURCES = \
1135 tests/ivi_layout-internal-test.c
1136
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001137ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1138ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
1139ivi_layout_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1140ivi_layout_test_la_SOURCES = \
1141 tests/ivi_layout-test-plugin.c \
1142 tests/ivi-test.h
1143nodist_ivi_layout_test_la_SOURCES = \
1144 protocol/weston-test-protocol.c \
1145 protocol/weston-test-server-protocol.h
1146
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001147ivi_tests += \
1148 ivi-shell-app.weston
1149
1150ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1151nodist_ivi_shell_app_weston_SOURCES = \
1152 protocol/ivi-application-protocol.c \
1153 protocol/ivi-application-client-protocol.h
1154ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1155ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001156
1157noinst_PROGRAMS += ivi-layout.ivi
1158
1159ivi_layout_ivi_SOURCES = \
1160 tests/ivi_layout-test.c \
1161 tests/ivi-test.h
1162nodist_ivi_layout_ivi_SOURCES = \
1163 protocol/ivi-application-protocol.c \
1164 protocol/ivi-application-client-protocol.h
1165ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1166ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001167endif
1168
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001169if BUILD_SETBACKLIGHT
1170noinst_PROGRAMS += setbacklight
1171setbacklight_SOURCES = \
1172 tests/setbacklight.c \
1173 src/libbacklight.c \
1174 src/libbacklight.h
1175setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1176setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1177endif
1178
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001179EXTRA_DIST += \
1180 tests/weston-tests-env \
1181 tests/internal-screenshot.ini \
1182 tests/reference/internal-screenshot-bad-00.png \
1183 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001184
1185BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001186 protocol/weston-test-protocol.c \
1187 protocol/weston-test-server-protocol.h \
1188 protocol/weston-test-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001189 protocol/text-protocol.c \
1190 protocol/text-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001191
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001192EXTRA_DIST += \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001193 protocol/desktop-shell.xml \
1194 protocol/screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001195 protocol/text.xml \
1196 protocol/input-method.xml \
1197 protocol/workspaces.xml \
1198 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001199 protocol/weston-test.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001200 protocol/xdg-shell.xml \
Jason Ekstrand27e11672014-04-02 19:53:44 -05001201 protocol/fullscreen-shell.xml \
Pekka Paalanen7e62d252014-09-23 22:08:42 -04001202 protocol/presentation_timing.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001203 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001204 protocol/ivi-application.xml \
1205 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001206
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001207#
1208# manual test modules in tests subdirectory
1209#
1210
1211noinst_LTLIBRARIES += \
1212 surface-screenshot.la
1213
1214surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1215surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
1216surface_screenshot_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1217surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1218
1219
1220#
1221# Documentation
1222#
1223
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001224man_MANS = weston.1 weston.ini.5
1225
1226if ENABLE_DRM_COMPOSITOR
1227man_MANS += weston-drm.7
1228endif
1229
1230MAN_SUBSTS = \
1231 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1232 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1233 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1234 -e 's|__version__|$(PACKAGE_VERSION)|g'
1235
1236SUFFIXES = .1 .5 .7 .man
1237
1238%.1 %.5 %.7 : man/%.man
1239 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1240
1241EXTRA_DIST += \
1242 man/weston.man \
1243 man/weston-drm.man \
1244 man/weston.ini.man
1245
1246CLEANFILES += $(man_MANS)
1247
1248
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001249protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1250 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001251
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001252protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1253 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001254
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001255protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1256 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@