blob: 5819b1999eeee4ebc045174bdfb18fbf9b8e3519 [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 \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100192 shared/zalloc.h \
193 shared/platform.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800194
195if ENABLE_EGL
196module_LTLIBRARIES += gl-renderer.la
197gl_renderer_la_LDFLAGS = -module -avoid-version
198gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
199gl_renderer_la_CFLAGS = \
200 $(COMPOSITOR_CFLAGS) \
201 $(EGL_CFLAGS) \
202 $(GCC_CFLAGS)
203gl_renderer_la_SOURCES = \
204 src/gl-renderer.h \
205 src/gl-renderer.c \
206 src/vertex-clipping.c \
207 src/vertex-clipping.h
208endif
209
210if ENABLE_X11_COMPOSITOR
211module_LTLIBRARIES += x11-backend.la
212x11_backend_la_LDFLAGS = -module -avoid-version
213x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800214 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800215x11_backend_la_CFLAGS = \
216 $(COMPOSITOR_CFLAGS) \
217 $(EGL_CFLAGS) \
218 $(PIXMAN_CFLAGS) \
219 $(CAIRO_CFLAGS) \
220 $(X11_COMPOSITOR_CFLAGS) \
221 $(GCC_CFLAGS)
222x11_backend_la_SOURCES = src/compositor-x11.c
223endif
224
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100225INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000226INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100227 src/libinput-seat.c \
228 src/libinput-seat.h \
229 src/libinput-device.c \
230 src/libinput-device.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100231
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800232if ENABLE_DRM_COMPOSITOR
233module_LTLIBRARIES += drm-backend.la
234drm_backend_la_LDFLAGS = -module -avoid-version
235drm_backend_la_LIBADD = \
236 $(COMPOSITOR_LIBS) \
237 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100238 $(INPUT_BACKEND_LIBS) \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100239 libshared.la -lrt \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800240 libsession-helper.la
241drm_backend_la_CFLAGS = \
242 $(COMPOSITOR_CFLAGS) \
243 $(EGL_CFLAGS) \
244 $(DRM_COMPOSITOR_CFLAGS) \
245 $(GCC_CFLAGS)
246drm_backend_la_SOURCES = \
247 src/compositor-drm.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100248 $(INPUT_BACKEND_SOURCES) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800249 src/libbacklight.c \
250 src/libbacklight.h
251
252if ENABLE_VAAPI_RECORDER
253drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
254drm_backend_la_LIBADD += $(LIBVA_LIBS)
255drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
256endif
257endif
258
259if ENABLE_WAYLAND_COMPOSITOR
260module_LTLIBRARIES += wayland-backend.la
261wayland_backend_la_LDFLAGS = -module -avoid-version
262wayland_backend_la_LIBADD = \
263 $(COMPOSITOR_LIBS) \
264 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800265 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800266wayland_backend_la_CFLAGS = \
267 $(COMPOSITOR_CFLAGS) \
268 $(EGL_CFLAGS) \
269 $(PIXMAN_CFLAGS) \
270 $(CAIRO_CFLAGS) \
271 $(WAYLAND_COMPOSITOR_CFLAGS) \
272 $(GCC_CFLAGS)
273wayland_backend_la_SOURCES = src/compositor-wayland.c
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500274nodist_wayland_backend_la_SOURCES = \
275 protocol/fullscreen-shell-protocol.c \
276 protocol/fullscreen-shell-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800277endif
278
279if ENABLE_RPI_COMPOSITOR
280if INSTALL_RPI_COMPOSITOR
281module_LTLIBRARIES += rpi-backend.la
282else
283noinst_LTLIBRARIES += rpi-backend.la
284endif
285
286rpi_backend_la_LDFLAGS = -module -avoid-version
287rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
288 $(RPI_COMPOSITOR_LIBS) \
289 $(RPI_BCM_HOST_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100290 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800291 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800292 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800293rpi_backend_la_CFLAGS = \
294 $(GCC_CFLAGS) \
295 $(COMPOSITOR_CFLAGS) \
296 $(RPI_COMPOSITOR_CFLAGS) \
297 $(RPI_BCM_HOST_CFLAGS)
298rpi_backend_la_SOURCES = \
299 src/compositor-rpi.c \
300 src/rpi-renderer.c \
301 src/rpi-renderer.h \
302 src/rpi-bcm-stubs.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100303 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800304
305if ENABLE_EGL
306rpi_backend_la_LIBADD += $(EGL_LIBS)
307rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
308endif
309
310endif
311
312if ENABLE_HEADLESS_COMPOSITOR
313module_LTLIBRARIES += headless-backend.la
314headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800315headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
316headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800317headless_backend_la_SOURCES = src/compositor-headless.c
318endif
319
320if ENABLE_FBDEV_COMPOSITOR
321module_LTLIBRARIES += fbdev-backend.la
322fbdev_backend_la_LDFLAGS = -module -avoid-version
323fbdev_backend_la_LIBADD = \
324 $(COMPOSITOR_LIBS) \
325 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100326 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800327 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800328 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800329fbdev_backend_la_CFLAGS = \
330 $(COMPOSITOR_CFLAGS) \
331 $(EGL_CFLAGS) \
332 $(FBDEV_COMPOSITOR_CFLAGS) \
333 $(PIXMAN_CFLAGS) \
334 $(GCC_CFLAGS)
335fbdev_backend_la_SOURCES = \
336 src/compositor-fbdev.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100337 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800338endif
339
340if ENABLE_RDP_COMPOSITOR
341module_LTLIBRARIES += rdp-backend.la
342rdp_backend_la_LDFLAGS = -module -avoid-version
343rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
344 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800345 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800346rdp_backend_la_CFLAGS = \
347 $(COMPOSITOR_CFLAGS) \
348 $(RDP_COMPOSITOR_CFLAGS) \
349 $(GCC_CFLAGS)
350rdp_backend_la_SOURCES = src/compositor-rdp.c
351endif
352
353if HAVE_LCMS
354module_LTLIBRARIES += cms-static.la
355cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800356cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800357cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
358cms_static_la_SOURCES = \
359 src/cms-static.c \
360 src/cms-helper.c \
361 src/cms-helper.h
362if ENABLE_COLORD
363module_LTLIBRARIES += cms-colord.la
364cms_colord_la_LDFLAGS = -module -avoid-version
365cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
366cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
367cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100368 src/cms-colord.c \
369 src/cms-helper.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800370 src/cms-helper.h
371endif
372endif
373
374noinst_PROGRAMS += spring-tool
375spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
376spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
377spring_tool_SOURCES = \
378 src/spring-tool.c \
379 src/animation.c \
380 shared/matrix.c \
381 shared/matrix.h \
382 src/compositor.h
383
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800384if BUILD_CLIENTS
385
386bin_PROGRAMS += weston-terminal weston-info
387
388libexec_PROGRAMS += \
389 weston-desktop-shell \
390 weston-screenshooter \
391 weston-keyboard \
392 weston-simple-im
393
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900394if ENABLE_IVI_SHELL
395libexec_PROGRAMS += \
396 weston-ivi-shell-user-interface
397endif
398
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800399demo_clients = \
400 weston-flower \
401 weston-image \
402 weston-cliptest \
403 weston-dnd \
404 weston-smoke \
405 weston-resizor \
406 weston-eventdemo \
407 weston-clickdot \
408 weston-transformed \
409 weston-fullscreen \
410 weston-stacking \
411 weston-calibrator \
412 weston-scaler
413
414if INSTALL_DEMO_CLIENTS
415bin_PROGRAMS += $(demo_clients)
416else
417noinst_PROGRAMS += $(demo_clients)
418endif
419
420
421if BUILD_SIMPLE_CLIENTS
422demo_clients += \
423 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500424 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800425 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400426 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800427 weston-multi-resource
428
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800429weston_simple_shm_SOURCES = clients/simple-shm.c
430nodist_weston_simple_shm_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800431 protocol/xdg-shell-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500432 protocol/xdg-shell-client-protocol.h \
433 protocol/fullscreen-shell-protocol.c \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900434 protocol/fullscreen-shell-client-protocol.h \
435 protocol/ivi-application-protocol.c \
436 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800437weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800438weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800439
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500440weston_simple_damage_SOURCES = clients/simple-damage.c
441nodist_weston_simple_damage_SOURCES = \
442 protocol/scaler-protocol.c \
443 protocol/scaler-client-protocol.h \
444 protocol/xdg-shell-protocol.c \
445 protocol/xdg-shell-client-protocol.h \
446 protocol/fullscreen-shell-protocol.c \
447 protocol/fullscreen-shell-client-protocol.h
448weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
449weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
450
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800451weston_simple_touch_SOURCES = clients/simple-touch.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800452weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800453weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800454
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400455weston_presentation_shm_SOURCES = clients/presentation-shm.c
456nodist_weston_presentation_shm_SOURCES = \
457 protocol/presentation_timing-protocol.c \
458 protocol/presentation_timing-client-protocol.h
459weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
460weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
461
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800462weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800463weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Javier Jardónc47931e2014-10-27 15:13:19 +0000464weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800465endif
466
467if BUILD_SIMPLE_EGL_CLIENTS
468demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800469weston_simple_egl_SOURCES = clients/simple-egl.c
470nodist_weston_simple_egl_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800471 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900472 protocol/xdg-shell-client-protocol.h \
473 protocol/ivi-application-protocol.c \
474 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800475weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800476weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
477endif
478
479noinst_LTLIBRARIES += libtoytoolkit.la
480
481libtoytoolkit_la_SOURCES = \
482 clients/window.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800483 clients/window.h
484
485nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100486 protocol/text-cursor-position-protocol.c \
487 protocol/text-cursor-position-client-protocol.h \
488 protocol/scaler-protocol.c \
489 protocol/scaler-client-protocol.h \
490 protocol/workspaces-protocol.c \
491 protocol/workspaces-client-protocol.h \
Pekka Paalanen7e62d252014-09-23 22:08:42 -0400492 protocol/presentation_timing-protocol.c \
493 protocol/presentation_timing-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100494 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900495 protocol/xdg-shell-client-protocol.h \
496 protocol/ivi-application-protocol.c \
497 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500498
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800499BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
500
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800501
502libtoytoolkit_la_LIBADD = \
503 $(CLIENT_LIBS) \
504 $(CAIRO_EGL_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800505 libshared-cairo.la -lrt -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800506libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800507
508weston_flower_SOURCES = clients/flower.c
509weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800510weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800511
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100512weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800513 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800514nodist_weston_screenshooter_SOURCES = \
515 protocol/screenshooter-protocol.c \
516 protocol/screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800517weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800518weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800519
520weston_terminal_SOURCES = clients/terminal.c
521weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800522weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800523
524weston_image_SOURCES = clients/image.c
525weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800526weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800527
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300528weston_cliptest_SOURCES = \
529 clients/cliptest.c \
530 src/vertex-clipping.c \
531 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800532weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800533weston_cliptest_LDADD = libtoytoolkit.la
534
535weston_dnd_SOURCES = clients/dnd.c
536weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800537weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800538
539weston_smoke_SOURCES = clients/smoke.c
540weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800541weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800542
543weston_resizor_SOURCES = clients/resizor.c
544weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800545weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800546
547weston_scaler_SOURCES = clients/scaler.c
548weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800549weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800550
551if HAVE_CAIRO_GLESV2
552demo_clients += weston-nested weston-nested-client
553
554weston_nested_SOURCES = clients/nested.c
555weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800556weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800557
558weston_nested_client_SOURCES = clients/nested-client.c
559weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800560weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800561endif
562
563weston_eventdemo_SOURCES = clients/eventdemo.c
564weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800565weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800566
567weston_clickdot_SOURCES = clients/clickdot.c
568weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800569weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800570
571weston_transformed_SOURCES = clients/transformed.c
572weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800573weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800574
575weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500576nodist_weston_fullscreen_SOURCES = \
577 protocol/fullscreen-shell-protocol.c \
578 protocol/fullscreen-shell-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800579weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800580weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800581
582weston_stacking_SOURCES = clients/stacking.c
583weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800584weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800585
586weston_calibrator_SOURCES = clients/calibrator.c \
587 shared/matrix.c \
588 shared/matrix.h
589weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800590weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800591
592if BUILD_SUBSURFACES_CLIENT
593demo_clients += weston-subsurfaces
594weston_subsurfaces_SOURCES = clients/subsurfaces.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800595weston_subsurfaces_CFLAGS = \
596 $(AM_CFLAGS) \
597 $(SIMPLE_EGL_CLIENT_CFLAGS) \
598 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800599weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
600endif
601
602if HAVE_PANGO
603demo_clients += weston-editor
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800604weston_editor_SOURCES = clients/editor.c
605nodist_weston_editor_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100606 protocol/text-protocol.c \
607 protocol/text-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800608weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800609weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800610endif
611
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800612weston_keyboard_SOURCES = clients/keyboard.c
613nodist_weston_keyboard_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100614 protocol/desktop-shell-client-protocol.h \
615 protocol/desktop-shell-protocol.c \
616 protocol/input-method-protocol.c \
617 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800618weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800619weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800620
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800621weston_simple_im_SOURCES = clients/weston-simple-im.c
622nodist_weston_simple_im_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100623 protocol/input-method-protocol.c \
624 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800625weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800626weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800627
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800628weston_info_SOURCES = clients/weston-info.c
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400629nodist_weston_info_SOURCES = \
630 protocol/presentation_timing-protocol.c \
631 protocol/presentation_timing-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800632weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200633weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800634
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800635weston_desktop_shell_SOURCES = clients/desktop-shell.c
636nodist_weston_desktop_shell_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100637 protocol/desktop-shell-client-protocol.h \
638 protocol/desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800639weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800640weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800641
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900642if ENABLE_IVI_SHELL
643weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
644nodist_weston_ivi_shell_user_interface_SOURCES = \
645 protocol/ivi-hmi-controller-client-protocol.h \
646 protocol/ivi-hmi-controller-protocol.c \
647 protocol/ivi-application-client-protocol.h \
648 protocol/ivi-application-protocol.c
649weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
650weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
651endif
652
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800653if BUILD_FULL_GL_CLIENTS
654demo_clients += weston-gears
655weston_gears_SOURCES = clients/gears.c
656weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800657weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800658
659if HAVE_GLU
660libexec_PROGRAMS += weston-screensaver
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100661weston_screensaver_SOURCES = \
662 clients/wscreensaver.c \
663 clients/wscreensaver.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100664 clients/wscreensaver-glue.c \
665 clients/wscreensaver-glue.h \
666 clients/glmatrix.c \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800667 clients/matrix3.xpm
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800668nodist_weston_screensaver_SOURCES = \
669 protocol/desktop-shell-client-protocol.h \
670 protocol/desktop-shell-protocol.c
671
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800672weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800673weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800674
675endif
676
677endif
678
679endif
680
681BUILT_SOURCES += \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100682 protocol/screenshooter-protocol.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800683 protocol/screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100684 protocol/text-cursor-position-client-protocol.h \
685 protocol/text-cursor-position-protocol.c \
686 protocol/text-protocol.c \
687 protocol/text-client-protocol.h \
688 protocol/input-method-protocol.c \
689 protocol/input-method-client-protocol.h \
690 protocol/desktop-shell-client-protocol.h \
691 protocol/desktop-shell-protocol.c \
692 protocol/scaler-client-protocol.h \
693 protocol/scaler-protocol.c \
694 protocol/workspaces-client-protocol.h \
695 protocol/workspaces-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500696 protocol/fullscreen-shell-protocol.c \
697 protocol/fullscreen-shell-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100698 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900699 protocol/xdg-shell-client-protocol.h \
700 protocol/ivi-hmi-controller-protocol.c \
701 protocol/ivi-hmi-controller-client-protocol.h \
702 protocol/ivi-application-protocol.c \
703 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800704
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800705westondatadir = $(datadir)/weston
706dist_westondata_DATA = \
707 data/wayland.svg \
708 data/wayland.png \
709 data/pattern.png \
710 data/terminal.png \
711 data/border.png \
712 data/icon_window.png \
713 data/sign_close.png \
714 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100715 data/sign_minimize.png
716
717if ENABLE_IVI_SHELL
718dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900719 data/background.png \
720 data/tiling.png \
721 data/fullscreen.png \
722 data/panel.png \
723 data/random.png \
724 data/sidebyside.png \
725 data/home.png \
726 data/icon_ivi_clickdot.png \
727 data/icon_ivi_flower.png \
728 data/icon_ivi_simple-egl.png \
729 data/icon_ivi_simple-shm.png \
730 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100731endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800732
733
734if BUILD_WCAP_TOOLS
735bin_PROGRAMS += wcap-decode
736
737wcap_decode_SOURCES = \
738 wcap/main.c \
739 wcap/wcap-decode.c \
740 wcap/wcap-decode.h
741
742wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
743wcap_decode_LDADD = $(WCAP_LIBS)
744endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800745
746
747if ENABLE_DESKTOP_SHELL
748
749module_LTLIBRARIES += desktop-shell.la
750
751desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100752 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800753 -I$(top_srcdir)/shared \
754 -I$(top_srcdir)/src \
755 -I$(top_builddir)/src \
756 -I$(top_builddir)/desktop-shell \
757 -DDATADIR='"$(datadir)"' \
758 -DMODULEDIR='"$(moduledir)"' \
759 -DLIBEXECDIR='"$(libexecdir)"' \
760 -DIN_WESTON
761
762desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800763desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800764desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
765desktop_shell_la_SOURCES = \
766 desktop-shell/shell.h \
767 desktop-shell/shell.c \
768 desktop-shell/exposay.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800769 desktop-shell/input-panel.c
770nodist_desktop_shell_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100771 protocol/desktop-shell-protocol.c \
772 protocol/desktop-shell-server-protocol.h \
773 protocol/xdg-shell-protocol.c \
774 protocol/xdg-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800775
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800776BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800777endif
778
Jason Ekstrand946a9482014-04-02 19:53:47 -0500779if ENABLE_FULLSCREEN_SHELL
780
781module_LTLIBRARIES += fullscreen-shell.la
782
783fullscreen_shell_la_CPPFLAGS = \
784 -I$(top_builddir)/protocol \
785 -I$(top_srcdir)/shared \
786 -I$(top_srcdir)/src \
787 -I$(top_builddir)/src \
788 -DIN_WESTON
789
790fullscreen_shell_la_LDFLAGS = -module -avoid-version
791fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
792fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
793fullscreen_shell_la_SOURCES = \
794 fullscreen-shell/fullscreen-shell.c
795nodist_fullscreen_shell_la_SOURCES = \
796 protocol/fullscreen-shell-protocol.c \
797 protocol/fullscreen-shell-server-protocol.h
798
799BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
800endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800801
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900802if ENABLE_IVI_SHELL
803
804module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900805 $(ivi_shell) \
806 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900807
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900808ivi_shell = ivi-shell.la
809ivi_shell_la_LDFLAGS = -module -avoid-version
810ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
811ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
812ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900813 ivi-shell/ivi-layout-export.h \
814 ivi-shell/ivi-layout-private.h \
815 ivi-shell/ivi-layout.c \
816 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900817 ivi-shell/ivi-shell.h \
818 ivi-shell/ivi-shell.c \
Nobuhiko Tanibata0038b732014-11-27 13:25:34 +0900819 ivi-shell/input-panel-ivi.c
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900820nodist_ivi_shell_la_SOURCES = \
821 protocol/ivi-application-protocol.c \
822 protocol/ivi-application-server-protocol.h
823
824BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
825
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900826hmi_controller = hmi-controller.la
827hmi_controller_la_LDFLAGS = -module -avoid-version
828hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
829hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
830hmi_controller_la_SOURCES = \
831 ivi-shell/ivi-layout-export.h \
832 ivi-shell/hmi-controller.c
833nodist_hmi_controller_la_SOURCES = \
834 protocol/ivi-hmi-controller-protocol.c \
835 protocol/ivi-hmi-controller-server-protocol.h
836
837BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
838
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900839endif
840
841
Jason Ekstrand47928d82014-04-02 19:54:01 -0500842if ENABLE_SCREEN_SHARING
843
844module_LTLIBRARIES += screen-share.la
845
846screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
847screen_share_la_LDFLAGS = -module -avoid-version
848screen_share_la_LIBADD = \
849 $(COMPOSITOR_LIBS) \
850 $(SCREEN_SHARE_LIBS) \
851 libshared-cairo.la
852screen_share_la_CFLAGS = \
853 $(COMPOSITOR_CFLAGS) \
854 $(SCREEN_SHARE_CFLAGS) \
855 $(GCC_CFLAGS)
856screen_share_la_SOURCES = \
857 src/screen-share.c
858nodist_screen_share_la_SOURCES = \
859 protocol/fullscreen-shell-protocol.c \
860 protocol/fullscreen-shell-client-protocol.h
861
862endif
863
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800864if ENABLE_XWAYLAND
865
866module_LTLIBRARIES += xwayland.la
867
868xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100869 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800870 -I$(top_srcdir)/shared \
871 -I$(top_srcdir)/src \
872 -I$(top_builddir)/src \
873 -I$(top_builddir)/xwayland \
874 -DDATADIR='"$(datadir)"' \
875 -DMODULEDIR='"$(moduledir)"' \
876 -DLIBEXECDIR='"$(libexecdir)"' \
877 -DXSERVER_PATH='"@XSERVER_PATH@"'
878
879xwayland_la_LDFLAGS = -module -avoid-version
880xwayland_la_LIBADD = \
881 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800882 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800883xwayland_la_CFLAGS = \
884 $(GCC_CFLAGS) \
885 $(COMPOSITOR_CFLAGS) \
886 $(PIXMAN_CFLAGS) \
887 $(CAIRO_CFLAGS)
888xwayland_la_SOURCES = \
889 xwayland/xwayland.h \
890 xwayland/window-manager.c \
891 xwayland/selection.c \
892 xwayland/dnd.c \
893 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800894 xwayland/hash.c \
895 xwayland/hash.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800896endif
897
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800898
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800899#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800900# Shared utilities
901#
902
903noinst_LTLIBRARIES += libshared.la libshared-cairo.la
904
905libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
906
907libshared_la_SOURCES = \
908 shared/config-parser.c \
909 shared/option-parser.c \
910 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +0200911 shared/file-util.c \
912 shared/file-util.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800913 shared/os-compatibility.c \
914 shared/os-compatibility.h
915
916libshared_cairo_la_CFLAGS = \
917 -DDATADIR='"$(datadir)"' \
918 $(GCC_CFLAGS) \
919 $(COMPOSITOR_CFLAGS) \
920 $(PIXMAN_CFLAGS) \
921 $(CAIRO_CFLAGS) \
922 $(PNG_CFLAGS) \
923 $(WEBP_CFLAGS)
924
925libshared_cairo_la_LIBADD = \
926 $(PIXMAN_LIBS) \
927 $(CAIRO_LIBS) \
928 $(PNG_LIBS) \
929 $(WEBP_LIBS) \
930 $(JPEG_LIBS)
931
932libshared_cairo_la_SOURCES = \
933 $(libshared_la_SOURCES) \
934 shared/image-loader.c \
935 shared/image-loader.h \
936 shared/cairo-util.c \
937 shared/frame.c \
938 shared/cairo-util.h
939
940
941#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800942# tests subdirectory
943#
944
Bryce Harringtonfb9089d2014-11-04 16:39:38 -0800945TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
946
947internal_tests = \
948 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800949
950shared_tests = \
951 config-parser.test \
952 vertex-clip.test
953
954module_tests = \
955 surface-test.la \
956 surface-global-test.la
957
958weston_tests = \
959 bad_buffer.weston \
960 keyboard.weston \
961 event.weston \
962 button.weston \
963 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -0400964 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +0300965 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -0400966 subsurface.weston \
967 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800968
Pekka Paalanenf3a34532015-03-24 13:51:05 +0200969ivi_tests =
970
971$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800972
973AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -0700974 abs_builddir='$(abs_builddir)'; export abs_builddir; \
975 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800976
977TEST_EXTENSIONS = .la .weston
978LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
979WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
980
981clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +0300982 -rm -rf logs
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800983
984# To remove when automake 1.11 support is dropped
985export abs_builddir
986
987noinst_LTLIBRARIES += \
988 weston-test.la \
989 $(module_tests) \
990 libtest-runner.la \
991 libtest-client.la
992
993noinst_PROGRAMS += \
994 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -0800995 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800996 $(shared_tests) \
997 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +0200998 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800999 matrix-test
1000
1001test_module_ldflags = \
1002 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1003
1004surface_global_test_la_SOURCES = tests/surface-global-test.c
1005surface_global_test_la_LDFLAGS = $(test_module_ldflags)
1006surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1007
1008surface_test_la_SOURCES = tests/surface-test.c
1009surface_test_la_LDFLAGS = $(test_module_ldflags)
1010surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1011
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001012weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001013weston_test_la_LDFLAGS = $(test_module_ldflags)
1014weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001015weston_test_la_SOURCES = tests/weston-test.c
1016nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001017 protocol/weston-test-protocol.c \
1018 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001019
1020if ENABLE_EGL
1021weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1022weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1023endif
1024
1025libtest_runner_la_SOURCES = \
1026 tests/weston-test-runner.c \
1027 tests/weston-test-runner.h
1028libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1029
1030config_parser_test_SOURCES = tests/config-parser-test.c
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001031config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001032
1033vertex_clip_test_SOURCES = \
1034 tests/vertex-clip-test.c \
1035 src/vertex-clipping.c \
1036 src/vertex-clipping.h
1037vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
1038
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001039libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001040 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001041 tests/weston-test-client-helper.h
1042nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001043 protocol/weston-test-protocol.c \
1044 protocol/weston-test-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001045libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001046libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001047
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001048
1049#
1050# Internal tests - tests functionality of the testsuite itself
1051#
1052
1053internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
1054internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1055internal_screenshot_weston_LDADD = libtest-client.la $(CAIRO_LIBS)
1056
1057
1058#
1059# Weston Tests
1060#
1061
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001062bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001063bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001064bad_buffer_weston_LDADD = libtest-client.la
1065
1066keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001067keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001068keyboard_weston_LDADD = libtest-client.la
1069
1070event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001071event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001072event_weston_LDADD = libtest-client.la
1073
1074button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001075button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001076button_weston_LDADD = libtest-client.la
1077
Marek Chalupa5fd81402015-03-30 09:21:29 -04001078devices_weston_SOURCES = tests/devices-test.c
1079devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1080devices_weston_LDADD = libtest-client.la
1081
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001082text_weston_SOURCES = tests/text-test.c
1083nodist_text_weston_SOURCES = \
1084 protocol/text-protocol.c \
1085 protocol/text-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001086text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001087text_weston_LDADD = libtest-client.la
1088
1089subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001090subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001091subsurface_weston_LDADD = libtest-client.la
1092
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001093presentation_weston_SOURCES = tests/presentation-test.c
1094nodist_presentation_weston_SOURCES = \
1095 protocol/presentation_timing-protocol.c \
1096 protocol/presentation_timing-client-protocol.h
1097presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1098presentation_weston_LDADD = libtest-client.la
1099
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001100roles_weston_SOURCES = tests/roles-test.c
1101roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1102roles_weston_LDADD = libtest-client.la
1103
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001104if ENABLE_EGL
1105weston_tests += buffer-count.weston
1106buffer_count_weston_SOURCES = tests/buffer-count-test.c
1107buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1108buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1109endif
1110
1111if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001112weston_tests += xwayland-test.weston
1113xwayland_test_weston_SOURCES = tests/xwayland-test.c
1114xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1115xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001116endif
1117
1118matrix_test_SOURCES = \
1119 tests/matrix-test.c \
1120 shared/matrix.c \
1121 shared/matrix.h
1122matrix_test_CPPFLAGS = -DUNIT_TEST
1123matrix_test_LDADD = -lm -lrt
1124
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001125if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001126module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001127 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001128 ivi-layout-test.la
1129
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001130ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1131ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
1132ivi_layout_internal_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1133ivi_layout_internal_test_la_SOURCES = \
1134 tests/ivi_layout-internal-test.c
1135
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001136ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1137ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
1138ivi_layout_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1139ivi_layout_test_la_SOURCES = \
1140 tests/ivi_layout-test-plugin.c \
1141 tests/ivi-test.h
1142nodist_ivi_layout_test_la_SOURCES = \
1143 protocol/weston-test-protocol.c \
1144 protocol/weston-test-server-protocol.h
1145
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001146ivi_tests += \
1147 ivi-shell-app.weston
1148
1149ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1150nodist_ivi_shell_app_weston_SOURCES = \
1151 protocol/ivi-application-protocol.c \
1152 protocol/ivi-application-client-protocol.h
1153ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1154ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001155
1156noinst_PROGRAMS += ivi-layout.ivi
1157
1158ivi_layout_ivi_SOURCES = \
1159 tests/ivi_layout-test.c \
1160 tests/ivi-test.h
1161nodist_ivi_layout_ivi_SOURCES = \
1162 protocol/ivi-application-protocol.c \
1163 protocol/ivi-application-client-protocol.h
1164ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1165ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001166endif
1167
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001168if BUILD_SETBACKLIGHT
1169noinst_PROGRAMS += setbacklight
1170setbacklight_SOURCES = \
1171 tests/setbacklight.c \
1172 src/libbacklight.c \
1173 src/libbacklight.h
1174setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1175setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1176endif
1177
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001178EXTRA_DIST += \
1179 tests/weston-tests-env \
1180 tests/internal-screenshot.ini \
1181 tests/reference/internal-screenshot-bad-00.png \
1182 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001183
1184BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001185 protocol/weston-test-protocol.c \
1186 protocol/weston-test-server-protocol.h \
1187 protocol/weston-test-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001188 protocol/text-protocol.c \
1189 protocol/text-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001190
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001191EXTRA_DIST += \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001192 protocol/desktop-shell.xml \
1193 protocol/screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001194 protocol/text.xml \
1195 protocol/input-method.xml \
1196 protocol/workspaces.xml \
1197 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001198 protocol/weston-test.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001199 protocol/xdg-shell.xml \
Jason Ekstrand27e11672014-04-02 19:53:44 -05001200 protocol/fullscreen-shell.xml \
Pekka Paalanen7e62d252014-09-23 22:08:42 -04001201 protocol/presentation_timing.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001202 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001203 protocol/ivi-application.xml \
1204 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001205
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001206#
1207# manual test modules in tests subdirectory
1208#
1209
1210noinst_LTLIBRARIES += \
1211 surface-screenshot.la
1212
1213surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1214surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
1215surface_screenshot_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1216surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1217
1218
1219#
1220# Documentation
1221#
1222
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001223man_MANS = weston.1 weston.ini.5
1224
1225if ENABLE_DRM_COMPOSITOR
1226man_MANS += weston-drm.7
1227endif
1228
1229MAN_SUBSTS = \
1230 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1231 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1232 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1233 -e 's|__version__|$(PACKAGE_VERSION)|g'
1234
1235SUFFIXES = .1 .5 .7 .man
1236
1237%.1 %.5 %.7 : man/%.man
1238 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1239
1240EXTRA_DIST += \
1241 man/weston.man \
1242 man/weston-drm.man \
1243 man/weston.ini.man
1244
1245CLEANFILES += $(man_MANS)
1246
1247
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001248protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1249 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001250
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001251protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1252 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001253
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001254protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1255 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@