blob: e860e0e7f732c99d0370f5b65313be7612e0c18a [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 \
59 $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080060
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080061bin_PROGRAMS += weston
62
63weston_LDFLAGS = -export-dynamic
64weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
65weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
66weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -080067 $(DLOPEN_LIBS) -lm libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080068
69weston_SOURCES = \
70 src/git-version.h \
71 src/log.c \
72 src/compositor.c \
73 src/compositor.h \
74 src/input.c \
75 src/data-device.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080076 src/screenshooter.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080077 src/clipboard.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080078 src/zoom.c \
79 src/text-backend.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080080 src/bindings.c \
81 src/animation.c \
82 src/noop-renderer.c \
83 src/pixman-renderer.c \
84 src/pixman-renderer.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +020085 src/timeline.c \
86 src/timeline.h \
87 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080088 shared/matrix.c \
89 shared/matrix.h \
90 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +010091 shared/platform.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080092 src/weston-egl-ext.h
93
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -080094nodist_weston_SOURCES = \
95 protocol/screenshooter-protocol.c \
96 protocol/screenshooter-server-protocol.h \
97 protocol/text-cursor-position-protocol.c \
98 protocol/text-cursor-position-server-protocol.h \
99 protocol/text-protocol.c \
100 protocol/text-server-protocol.h \
101 protocol/input-method-protocol.c \
102 protocol/input-method-server-protocol.h \
103 protocol/workspaces-protocol.c \
104 protocol/workspaces-server-protocol.h \
Pekka Paalanen7e62d252014-09-23 22:08:42 -0400105 protocol/presentation_timing-protocol.c \
106 protocol/presentation_timing-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800107 protocol/scaler-protocol.c \
108 protocol/scaler-server-protocol.h
109
110BUILT_SOURCES += $(nodist_weston_SOURCES)
111
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800112# Track this dependency explicitly instead of using BUILT_SOURCES. We
113# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
114# in case we're building from tarballs.
115
116src/compositor.c : $(top_builddir)/src/git-version.h
117
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800118noinst_LTLIBRARIES += \
119 libsession-helper.la
120
121libsession_helper_la_SOURCES = \
122 src/weston-launch.h \
123 src/launcher-util.c \
124 src/launcher-util.h
125libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
126libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
127
128if ENABLE_DBUS
129if HAVE_SYSTEMD_LOGIN
130libsession_helper_la_SOURCES += \
131 src/dbus.h \
132 src/dbus.c \
133 src/logind-util.h \
134 src/logind-util.c
135libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
136libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
137endif
138endif
139
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800140if HAVE_GIT_REPO
141src/git-version.h : $(top_srcdir)/.git/logs/HEAD
142 $(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 -0800143else
144src/git-version.h :
145 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
146
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800147endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800148
149.FORCE :
150
151if BUILD_WESTON_LAUNCH
152bin_PROGRAMS += weston-launch
153weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
154weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
155weston_launch_CFLAGS= \
156 $(GCC_CFLAGS) \
157 $(PAM_CFLAGS) \
158 $(SYSTEMD_LOGIN_CFLAGS) \
159 $(LIBDRM_CFLAGS)
160weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
161
162if ENABLE_SETUID_INSTALL
163install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700164 can_suid_files=no; \
165 chown root $(DESTDIR)$(bindir)/weston-launch \
166 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
167 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500168 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700169 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
170 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
171 false; \
172 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800173endif
174
175endif # BUILD_WESTON_LAUNCH
176
177pkgconfigdir = $(libdir)/pkgconfig
178pkgconfig_DATA = src/weston.pc
179
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100180wayland_sessiondir = $(datadir)/wayland-sessions
181wayland_session_DATA = src/weston.desktop
Marek Chalupa194ca2b2015-01-22 10:03:03 +0100182dist_wayland_session_DATA = $(wayland_session_DATA)
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100183
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800184westonincludedir = $(includedir)/weston
185westoninclude_HEADERS = \
186 src/version.h \
187 src/compositor.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200188 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800189 shared/matrix.h \
190 shared/config-parser.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100191 shared/zalloc.h \
192 shared/platform.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800193
194if ENABLE_EGL
195module_LTLIBRARIES += gl-renderer.la
196gl_renderer_la_LDFLAGS = -module -avoid-version
197gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
198gl_renderer_la_CFLAGS = \
199 $(COMPOSITOR_CFLAGS) \
200 $(EGL_CFLAGS) \
201 $(GCC_CFLAGS)
202gl_renderer_la_SOURCES = \
203 src/gl-renderer.h \
204 src/gl-renderer.c \
205 src/vertex-clipping.c \
206 src/vertex-clipping.h
207endif
208
209if ENABLE_X11_COMPOSITOR
210module_LTLIBRARIES += x11-backend.la
211x11_backend_la_LDFLAGS = -module -avoid-version
212x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800213 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800214x11_backend_la_CFLAGS = \
215 $(COMPOSITOR_CFLAGS) \
216 $(EGL_CFLAGS) \
217 $(PIXMAN_CFLAGS) \
218 $(CAIRO_CFLAGS) \
219 $(X11_COMPOSITOR_CFLAGS) \
220 $(GCC_CFLAGS)
221x11_backend_la_SOURCES = src/compositor-x11.c
222endif
223
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100224INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000225INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100226 src/libinput-seat.c \
227 src/libinput-seat.h \
228 src/libinput-device.c \
229 src/libinput-device.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100230
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800231if ENABLE_DRM_COMPOSITOR
232module_LTLIBRARIES += drm-backend.la
233drm_backend_la_LDFLAGS = -module -avoid-version
234drm_backend_la_LIBADD = \
235 $(COMPOSITOR_LIBS) \
236 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100237 $(INPUT_BACKEND_LIBS) \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100238 libshared.la -lrt \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800239 libsession-helper.la
240drm_backend_la_CFLAGS = \
241 $(COMPOSITOR_CFLAGS) \
242 $(EGL_CFLAGS) \
243 $(DRM_COMPOSITOR_CFLAGS) \
244 $(GCC_CFLAGS)
245drm_backend_la_SOURCES = \
246 src/compositor-drm.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100247 $(INPUT_BACKEND_SOURCES) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800248 src/libbacklight.c \
249 src/libbacklight.h
250
251if ENABLE_VAAPI_RECORDER
252drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
253drm_backend_la_LIBADD += $(LIBVA_LIBS)
254drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
255endif
256endif
257
258if ENABLE_WAYLAND_COMPOSITOR
259module_LTLIBRARIES += wayland-backend.la
260wayland_backend_la_LDFLAGS = -module -avoid-version
261wayland_backend_la_LIBADD = \
262 $(COMPOSITOR_LIBS) \
263 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800264 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800265wayland_backend_la_CFLAGS = \
266 $(COMPOSITOR_CFLAGS) \
267 $(EGL_CFLAGS) \
268 $(PIXMAN_CFLAGS) \
269 $(CAIRO_CFLAGS) \
270 $(WAYLAND_COMPOSITOR_CFLAGS) \
271 $(GCC_CFLAGS)
272wayland_backend_la_SOURCES = src/compositor-wayland.c
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500273nodist_wayland_backend_la_SOURCES = \
274 protocol/fullscreen-shell-protocol.c \
275 protocol/fullscreen-shell-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800276endif
277
278if ENABLE_RPI_COMPOSITOR
279if INSTALL_RPI_COMPOSITOR
280module_LTLIBRARIES += rpi-backend.la
281else
282noinst_LTLIBRARIES += rpi-backend.la
283endif
284
285rpi_backend_la_LDFLAGS = -module -avoid-version
286rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
287 $(RPI_COMPOSITOR_LIBS) \
288 $(RPI_BCM_HOST_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100289 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800290 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800291 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800292rpi_backend_la_CFLAGS = \
293 $(GCC_CFLAGS) \
294 $(COMPOSITOR_CFLAGS) \
295 $(RPI_COMPOSITOR_CFLAGS) \
296 $(RPI_BCM_HOST_CFLAGS)
297rpi_backend_la_SOURCES = \
298 src/compositor-rpi.c \
299 src/rpi-renderer.c \
300 src/rpi-renderer.h \
301 src/rpi-bcm-stubs.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100302 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800303
304if ENABLE_EGL
305rpi_backend_la_LIBADD += $(EGL_LIBS)
306rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
307endif
308
309endif
310
311if ENABLE_HEADLESS_COMPOSITOR
312module_LTLIBRARIES += headless-backend.la
313headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800314headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
315headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800316headless_backend_la_SOURCES = src/compositor-headless.c
317endif
318
319if ENABLE_FBDEV_COMPOSITOR
320module_LTLIBRARIES += fbdev-backend.la
321fbdev_backend_la_LDFLAGS = -module -avoid-version
322fbdev_backend_la_LIBADD = \
323 $(COMPOSITOR_LIBS) \
324 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100325 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800326 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800327 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800328fbdev_backend_la_CFLAGS = \
329 $(COMPOSITOR_CFLAGS) \
330 $(EGL_CFLAGS) \
331 $(FBDEV_COMPOSITOR_CFLAGS) \
332 $(PIXMAN_CFLAGS) \
333 $(GCC_CFLAGS)
334fbdev_backend_la_SOURCES = \
335 src/compositor-fbdev.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100336 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800337endif
338
339if ENABLE_RDP_COMPOSITOR
340module_LTLIBRARIES += rdp-backend.la
341rdp_backend_la_LDFLAGS = -module -avoid-version
342rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
343 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800344 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800345rdp_backend_la_CFLAGS = \
346 $(COMPOSITOR_CFLAGS) \
347 $(RDP_COMPOSITOR_CFLAGS) \
348 $(GCC_CFLAGS)
349rdp_backend_la_SOURCES = src/compositor-rdp.c
350endif
351
352if HAVE_LCMS
353module_LTLIBRARIES += cms-static.la
354cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800355cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800356cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
357cms_static_la_SOURCES = \
358 src/cms-static.c \
359 src/cms-helper.c \
360 src/cms-helper.h
361if ENABLE_COLORD
362module_LTLIBRARIES += cms-colord.la
363cms_colord_la_LDFLAGS = -module -avoid-version
364cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
365cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
366cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100367 src/cms-colord.c \
368 src/cms-helper.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800369 src/cms-helper.h
370endif
371endif
372
373noinst_PROGRAMS += spring-tool
374spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
375spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
376spring_tool_SOURCES = \
377 src/spring-tool.c \
378 src/animation.c \
379 shared/matrix.c \
380 shared/matrix.h \
381 src/compositor.h
382
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800383if BUILD_CLIENTS
384
385bin_PROGRAMS += weston-terminal weston-info
386
387libexec_PROGRAMS += \
388 weston-desktop-shell \
389 weston-screenshooter \
390 weston-keyboard \
391 weston-simple-im
392
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900393if ENABLE_IVI_SHELL
394libexec_PROGRAMS += \
395 weston-ivi-shell-user-interface
396endif
397
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800398demo_clients = \
399 weston-flower \
400 weston-image \
401 weston-cliptest \
402 weston-dnd \
403 weston-smoke \
404 weston-resizor \
405 weston-eventdemo \
406 weston-clickdot \
407 weston-transformed \
408 weston-fullscreen \
409 weston-stacking \
410 weston-calibrator \
411 weston-scaler
412
413if INSTALL_DEMO_CLIENTS
414bin_PROGRAMS += $(demo_clients)
415else
416noinst_PROGRAMS += $(demo_clients)
417endif
418
419
420if BUILD_SIMPLE_CLIENTS
421demo_clients += \
422 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500423 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800424 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400425 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800426 weston-multi-resource
427
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800428weston_simple_shm_SOURCES = clients/simple-shm.c
429nodist_weston_simple_shm_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800430 protocol/xdg-shell-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500431 protocol/xdg-shell-client-protocol.h \
432 protocol/fullscreen-shell-protocol.c \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900433 protocol/fullscreen-shell-client-protocol.h \
434 protocol/ivi-application-protocol.c \
435 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800436weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800437weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800438
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500439weston_simple_damage_SOURCES = clients/simple-damage.c
440nodist_weston_simple_damage_SOURCES = \
441 protocol/scaler-protocol.c \
442 protocol/scaler-client-protocol.h \
443 protocol/xdg-shell-protocol.c \
444 protocol/xdg-shell-client-protocol.h \
445 protocol/fullscreen-shell-protocol.c \
446 protocol/fullscreen-shell-client-protocol.h
447weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
448weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
449
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800450weston_simple_touch_SOURCES = clients/simple-touch.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800451weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800452weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800453
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400454weston_presentation_shm_SOURCES = clients/presentation-shm.c
455nodist_weston_presentation_shm_SOURCES = \
456 protocol/presentation_timing-protocol.c \
457 protocol/presentation_timing-client-protocol.h
458weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
459weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
460
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800461weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800462weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Javier Jardónc47931e2014-10-27 15:13:19 +0000463weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800464endif
465
466if BUILD_SIMPLE_EGL_CLIENTS
467demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800468weston_simple_egl_SOURCES = clients/simple-egl.c
469nodist_weston_simple_egl_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800470 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900471 protocol/xdg-shell-client-protocol.h \
472 protocol/ivi-application-protocol.c \
473 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800474weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800475weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
476endif
477
478noinst_LTLIBRARIES += libtoytoolkit.la
479
480libtoytoolkit_la_SOURCES = \
481 clients/window.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800482 clients/window.h
483
484nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100485 protocol/text-cursor-position-protocol.c \
486 protocol/text-cursor-position-client-protocol.h \
487 protocol/scaler-protocol.c \
488 protocol/scaler-client-protocol.h \
489 protocol/workspaces-protocol.c \
490 protocol/workspaces-client-protocol.h \
Pekka Paalanen7e62d252014-09-23 22:08:42 -0400491 protocol/presentation_timing-protocol.c \
492 protocol/presentation_timing-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100493 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900494 protocol/xdg-shell-client-protocol.h \
495 protocol/ivi-application-protocol.c \
496 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500497
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800498BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
499
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800500
501libtoytoolkit_la_LIBADD = \
502 $(CLIENT_LIBS) \
503 $(CAIRO_EGL_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800504 libshared-cairo.la -lrt -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800505libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800506
507weston_flower_SOURCES = clients/flower.c
508weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800509weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800510
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100511weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800512 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800513nodist_weston_screenshooter_SOURCES = \
514 protocol/screenshooter-protocol.c \
515 protocol/screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800516weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800517weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800518
519weston_terminal_SOURCES = clients/terminal.c
520weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800521weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800522
523weston_image_SOURCES = clients/image.c
524weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800525weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800526
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300527weston_cliptest_SOURCES = \
528 clients/cliptest.c \
529 src/vertex-clipping.c \
530 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800531weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800532weston_cliptest_LDADD = libtoytoolkit.la
533
534weston_dnd_SOURCES = clients/dnd.c
535weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800536weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800537
538weston_smoke_SOURCES = clients/smoke.c
539weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800540weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800541
542weston_resizor_SOURCES = clients/resizor.c
543weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800544weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800545
546weston_scaler_SOURCES = clients/scaler.c
547weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800548weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800549
550if HAVE_CAIRO_GLESV2
551demo_clients += weston-nested weston-nested-client
552
553weston_nested_SOURCES = clients/nested.c
554weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800555weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800556
557weston_nested_client_SOURCES = clients/nested-client.c
558weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800559weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800560endif
561
562weston_eventdemo_SOURCES = clients/eventdemo.c
563weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800564weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800565
566weston_clickdot_SOURCES = clients/clickdot.c
567weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800568weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800569
570weston_transformed_SOURCES = clients/transformed.c
571weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800572weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800573
574weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500575nodist_weston_fullscreen_SOURCES = \
576 protocol/fullscreen-shell-protocol.c \
577 protocol/fullscreen-shell-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800578weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800579weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800580
581weston_stacking_SOURCES = clients/stacking.c
582weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800583weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800584
585weston_calibrator_SOURCES = clients/calibrator.c \
586 shared/matrix.c \
587 shared/matrix.h
588weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800589weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800590
591if BUILD_SUBSURFACES_CLIENT
592demo_clients += weston-subsurfaces
593weston_subsurfaces_SOURCES = clients/subsurfaces.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800594weston_subsurfaces_CFLAGS = \
595 $(AM_CFLAGS) \
596 $(SIMPLE_EGL_CLIENT_CFLAGS) \
597 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800598weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
599endif
600
601if HAVE_PANGO
602demo_clients += weston-editor
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800603weston_editor_SOURCES = clients/editor.c
604nodist_weston_editor_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100605 protocol/text-protocol.c \
606 protocol/text-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800607weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800608weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800609endif
610
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800611weston_keyboard_SOURCES = clients/keyboard.c
612nodist_weston_keyboard_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100613 protocol/desktop-shell-client-protocol.h \
614 protocol/desktop-shell-protocol.c \
615 protocol/input-method-protocol.c \
616 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800617weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800618weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800619
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800620weston_simple_im_SOURCES = clients/weston-simple-im.c
621nodist_weston_simple_im_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100622 protocol/input-method-protocol.c \
623 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800624weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800625weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800626
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800627weston_info_SOURCES = clients/weston-info.c
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400628nodist_weston_info_SOURCES = \
629 protocol/presentation_timing-protocol.c \
630 protocol/presentation_timing-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800631weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200632weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800633
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800634weston_desktop_shell_SOURCES = clients/desktop-shell.c
635nodist_weston_desktop_shell_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100636 protocol/desktop-shell-client-protocol.h \
637 protocol/desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800638weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800639weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800640
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900641if ENABLE_IVI_SHELL
642weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
643nodist_weston_ivi_shell_user_interface_SOURCES = \
644 protocol/ivi-hmi-controller-client-protocol.h \
645 protocol/ivi-hmi-controller-protocol.c \
646 protocol/ivi-application-client-protocol.h \
647 protocol/ivi-application-protocol.c
648weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
649weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
650endif
651
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800652if BUILD_FULL_GL_CLIENTS
653demo_clients += weston-gears
654weston_gears_SOURCES = clients/gears.c
655weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800656weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800657
658if HAVE_GLU
659libexec_PROGRAMS += weston-screensaver
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100660weston_screensaver_SOURCES = \
661 clients/wscreensaver.c \
662 clients/wscreensaver.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100663 clients/wscreensaver-glue.c \
664 clients/wscreensaver-glue.h \
665 clients/glmatrix.c \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800666 clients/matrix3.xpm
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800667nodist_weston_screensaver_SOURCES = \
668 protocol/desktop-shell-client-protocol.h \
669 protocol/desktop-shell-protocol.c
670
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800671weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800672weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800673
674endif
675
676endif
677
678endif
679
680BUILT_SOURCES += \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100681 protocol/screenshooter-protocol.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800682 protocol/screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100683 protocol/text-cursor-position-client-protocol.h \
684 protocol/text-cursor-position-protocol.c \
685 protocol/text-protocol.c \
686 protocol/text-client-protocol.h \
687 protocol/input-method-protocol.c \
688 protocol/input-method-client-protocol.h \
689 protocol/desktop-shell-client-protocol.h \
690 protocol/desktop-shell-protocol.c \
691 protocol/scaler-client-protocol.h \
692 protocol/scaler-protocol.c \
693 protocol/workspaces-client-protocol.h \
694 protocol/workspaces-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500695 protocol/fullscreen-shell-protocol.c \
696 protocol/fullscreen-shell-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100697 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900698 protocol/xdg-shell-client-protocol.h \
699 protocol/ivi-hmi-controller-protocol.c \
700 protocol/ivi-hmi-controller-client-protocol.h \
701 protocol/ivi-application-protocol.c \
702 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800703
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800704westondatadir = $(datadir)/weston
705dist_westondata_DATA = \
706 data/wayland.svg \
707 data/wayland.png \
708 data/pattern.png \
709 data/terminal.png \
710 data/border.png \
711 data/icon_window.png \
712 data/sign_close.png \
713 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100714 data/sign_minimize.png
715
716if ENABLE_IVI_SHELL
717dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900718 data/background.png \
719 data/tiling.png \
720 data/fullscreen.png \
721 data/panel.png \
722 data/random.png \
723 data/sidebyside.png \
724 data/home.png \
725 data/icon_ivi_clickdot.png \
726 data/icon_ivi_flower.png \
727 data/icon_ivi_simple-egl.png \
728 data/icon_ivi_simple-shm.png \
729 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100730endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800731
732
733if BUILD_WCAP_TOOLS
734bin_PROGRAMS += wcap-decode
735
736wcap_decode_SOURCES = \
737 wcap/main.c \
738 wcap/wcap-decode.c \
739 wcap/wcap-decode.h
740
741wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
742wcap_decode_LDADD = $(WCAP_LIBS)
743endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800744
745
746if ENABLE_DESKTOP_SHELL
747
748module_LTLIBRARIES += desktop-shell.la
749
750desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100751 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800752 -I$(top_srcdir)/shared \
753 -I$(top_srcdir)/src \
754 -I$(top_builddir)/src \
755 -I$(top_builddir)/desktop-shell \
756 -DDATADIR='"$(datadir)"' \
757 -DMODULEDIR='"$(moduledir)"' \
758 -DLIBEXECDIR='"$(libexecdir)"' \
759 -DIN_WESTON
760
761desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800762desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800763desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
764desktop_shell_la_SOURCES = \
765 desktop-shell/shell.h \
766 desktop-shell/shell.c \
767 desktop-shell/exposay.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800768 desktop-shell/input-panel.c
769nodist_desktop_shell_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100770 protocol/desktop-shell-protocol.c \
771 protocol/desktop-shell-server-protocol.h \
772 protocol/xdg-shell-protocol.c \
773 protocol/xdg-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800774
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800775BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800776endif
777
Jason Ekstrand946a9482014-04-02 19:53:47 -0500778if ENABLE_FULLSCREEN_SHELL
779
780module_LTLIBRARIES += fullscreen-shell.la
781
782fullscreen_shell_la_CPPFLAGS = \
783 -I$(top_builddir)/protocol \
784 -I$(top_srcdir)/shared \
785 -I$(top_srcdir)/src \
786 -I$(top_builddir)/src \
787 -DIN_WESTON
788
789fullscreen_shell_la_LDFLAGS = -module -avoid-version
790fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
791fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
792fullscreen_shell_la_SOURCES = \
793 fullscreen-shell/fullscreen-shell.c
794nodist_fullscreen_shell_la_SOURCES = \
795 protocol/fullscreen-shell-protocol.c \
796 protocol/fullscreen-shell-server-protocol.h
797
798BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
799endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800800
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900801if ENABLE_IVI_SHELL
802
803module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900804 $(ivi_shell) \
805 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900806
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900807ivi_shell = ivi-shell.la
808ivi_shell_la_LDFLAGS = -module -avoid-version
809ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
810ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
811ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900812 ivi-shell/ivi-layout-export.h \
813 ivi-shell/ivi-layout-private.h \
814 ivi-shell/ivi-layout.c \
815 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900816 ivi-shell/ivi-shell.h \
817 ivi-shell/ivi-shell.c \
Nobuhiko Tanibata0038b732014-11-27 13:25:34 +0900818 ivi-shell/input-panel-ivi.c
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900819nodist_ivi_shell_la_SOURCES = \
820 protocol/ivi-application-protocol.c \
821 protocol/ivi-application-server-protocol.h
822
823BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
824
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900825hmi_controller = hmi-controller.la
826hmi_controller_la_LDFLAGS = -module -avoid-version
827hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
828hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
829hmi_controller_la_SOURCES = \
830 ivi-shell/ivi-layout-export.h \
831 ivi-shell/hmi-controller.c
832nodist_hmi_controller_la_SOURCES = \
833 protocol/ivi-hmi-controller-protocol.c \
834 protocol/ivi-hmi-controller-server-protocol.h
835
836BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
837
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900838endif
839
840
Jason Ekstrand47928d82014-04-02 19:54:01 -0500841if ENABLE_SCREEN_SHARING
842
843module_LTLIBRARIES += screen-share.la
844
845screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
846screen_share_la_LDFLAGS = -module -avoid-version
847screen_share_la_LIBADD = \
848 $(COMPOSITOR_LIBS) \
849 $(SCREEN_SHARE_LIBS) \
850 libshared-cairo.la
851screen_share_la_CFLAGS = \
852 $(COMPOSITOR_CFLAGS) \
853 $(SCREEN_SHARE_CFLAGS) \
854 $(GCC_CFLAGS)
855screen_share_la_SOURCES = \
856 src/screen-share.c
857nodist_screen_share_la_SOURCES = \
858 protocol/fullscreen-shell-protocol.c \
859 protocol/fullscreen-shell-client-protocol.h
860
861endif
862
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800863if ENABLE_XWAYLAND
864
865module_LTLIBRARIES += xwayland.la
866
867xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100868 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800869 -I$(top_srcdir)/shared \
870 -I$(top_srcdir)/src \
871 -I$(top_builddir)/src \
872 -I$(top_builddir)/xwayland \
873 -DDATADIR='"$(datadir)"' \
874 -DMODULEDIR='"$(moduledir)"' \
875 -DLIBEXECDIR='"$(libexecdir)"' \
876 -DXSERVER_PATH='"@XSERVER_PATH@"'
877
878xwayland_la_LDFLAGS = -module -avoid-version
879xwayland_la_LIBADD = \
880 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800881 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800882xwayland_la_CFLAGS = \
883 $(GCC_CFLAGS) \
884 $(COMPOSITOR_CFLAGS) \
885 $(PIXMAN_CFLAGS) \
886 $(CAIRO_CFLAGS)
887xwayland_la_SOURCES = \
888 xwayland/xwayland.h \
889 xwayland/window-manager.c \
890 xwayland/selection.c \
891 xwayland/dnd.c \
892 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800893 xwayland/hash.c \
894 xwayland/hash.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800895endif
896
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800897
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800898#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800899# Shared utilities
900#
901
902noinst_LTLIBRARIES += libshared.la libshared-cairo.la
903
904libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
905
906libshared_la_SOURCES = \
907 shared/config-parser.c \
908 shared/option-parser.c \
909 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +0200910 shared/file-util.c \
911 shared/file-util.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800912 shared/os-compatibility.c \
913 shared/os-compatibility.h
914
915libshared_cairo_la_CFLAGS = \
916 -DDATADIR='"$(datadir)"' \
917 $(GCC_CFLAGS) \
918 $(COMPOSITOR_CFLAGS) \
919 $(PIXMAN_CFLAGS) \
920 $(CAIRO_CFLAGS) \
921 $(PNG_CFLAGS) \
922 $(WEBP_CFLAGS)
923
924libshared_cairo_la_LIBADD = \
925 $(PIXMAN_LIBS) \
926 $(CAIRO_LIBS) \
927 $(PNG_LIBS) \
928 $(WEBP_LIBS) \
929 $(JPEG_LIBS)
930
931libshared_cairo_la_SOURCES = \
932 $(libshared_la_SOURCES) \
933 shared/image-loader.c \
934 shared/image-loader.h \
935 shared/cairo-util.c \
936 shared/frame.c \
937 shared/cairo-util.h
938
939
940#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800941# tests subdirectory
942#
943
Bryce Harringtonfb9089d2014-11-04 16:39:38 -0800944TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
945
946internal_tests = \
947 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800948
949shared_tests = \
950 config-parser.test \
951 vertex-clip.test
952
953module_tests = \
954 surface-test.la \
955 surface-global-test.la
956
957weston_tests = \
958 bad_buffer.weston \
959 keyboard.weston \
960 event.weston \
961 button.weston \
962 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -0400963 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +0300964 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -0400965 subsurface.weston \
966 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800967
Pekka Paalanenf3a34532015-03-24 13:51:05 +0200968ivi_tests =
969
970$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800971
972AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -0700973 abs_builddir='$(abs_builddir)'; export abs_builddir; \
974 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800975
976TEST_EXTENSIONS = .la .weston
977LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
978WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
979
980clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +0300981 -rm -rf logs
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800982
983# To remove when automake 1.11 support is dropped
984export abs_builddir
985
986noinst_LTLIBRARIES += \
987 weston-test.la \
988 $(module_tests) \
989 libtest-runner.la \
990 libtest-client.la
991
992noinst_PROGRAMS += \
993 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -0800994 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800995 $(shared_tests) \
996 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +0200997 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800998 matrix-test
999
1000test_module_ldflags = \
1001 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1002
1003surface_global_test_la_SOURCES = tests/surface-global-test.c
1004surface_global_test_la_LDFLAGS = $(test_module_ldflags)
1005surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1006
1007surface_test_la_SOURCES = tests/surface-test.c
1008surface_test_la_LDFLAGS = $(test_module_ldflags)
1009surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1010
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001011weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001012weston_test_la_LDFLAGS = $(test_module_ldflags)
1013weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001014weston_test_la_SOURCES = tests/weston-test.c
1015nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001016 protocol/weston-test-protocol.c \
1017 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001018
1019if ENABLE_EGL
1020weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1021weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1022endif
1023
1024libtest_runner_la_SOURCES = \
1025 tests/weston-test-runner.c \
1026 tests/weston-test-runner.h
1027libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1028
1029config_parser_test_SOURCES = tests/config-parser-test.c
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001030config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001031
1032vertex_clip_test_SOURCES = \
1033 tests/vertex-clip-test.c \
1034 src/vertex-clipping.c \
1035 src/vertex-clipping.h
1036vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
1037
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001038libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001039 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001040 tests/weston-test-client-helper.h
1041nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001042 protocol/weston-test-protocol.c \
1043 protocol/weston-test-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001044libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001045libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001046
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001047
1048#
1049# Internal tests - tests functionality of the testsuite itself
1050#
1051
1052internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
1053internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1054internal_screenshot_weston_LDADD = libtest-client.la $(CAIRO_LIBS)
1055
1056
1057#
1058# Weston Tests
1059#
1060
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001061bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001062bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001063bad_buffer_weston_LDADD = libtest-client.la
1064
1065keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001066keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001067keyboard_weston_LDADD = libtest-client.la
1068
1069event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001070event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001071event_weston_LDADD = libtest-client.la
1072
1073button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001074button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001075button_weston_LDADD = libtest-client.la
1076
Marek Chalupa5fd81402015-03-30 09:21:29 -04001077devices_weston_SOURCES = tests/devices-test.c
1078devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1079devices_weston_LDADD = libtest-client.la
1080
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001081text_weston_SOURCES = tests/text-test.c
1082nodist_text_weston_SOURCES = \
1083 protocol/text-protocol.c \
1084 protocol/text-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001085text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001086text_weston_LDADD = libtest-client.la
1087
1088subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001089subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001090subsurface_weston_LDADD = libtest-client.la
1091
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001092presentation_weston_SOURCES = tests/presentation-test.c
1093nodist_presentation_weston_SOURCES = \
1094 protocol/presentation_timing-protocol.c \
1095 protocol/presentation_timing-client-protocol.h
1096presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1097presentation_weston_LDADD = libtest-client.la
1098
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001099roles_weston_SOURCES = tests/roles-test.c
1100roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1101roles_weston_LDADD = libtest-client.la
1102
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001103if ENABLE_EGL
1104weston_tests += buffer-count.weston
1105buffer_count_weston_SOURCES = tests/buffer-count-test.c
1106buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1107buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1108endif
1109
1110if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001111weston_tests += xwayland-test.weston
1112xwayland_test_weston_SOURCES = tests/xwayland-test.c
1113xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1114xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001115endif
1116
1117matrix_test_SOURCES = \
1118 tests/matrix-test.c \
1119 shared/matrix.c \
1120 shared/matrix.h
1121matrix_test_CPPFLAGS = -DUNIT_TEST
1122matrix_test_LDADD = -lm -lrt
1123
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001124if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001125module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001126 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001127 ivi-layout-test.la
1128
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001129ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1130ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
1131ivi_layout_internal_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1132ivi_layout_internal_test_la_SOURCES = \
1133 tests/ivi_layout-internal-test.c
1134
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001135ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1136ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
1137ivi_layout_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1138ivi_layout_test_la_SOURCES = \
1139 tests/ivi_layout-test-plugin.c \
1140 tests/ivi-test.h
1141nodist_ivi_layout_test_la_SOURCES = \
1142 protocol/weston-test-protocol.c \
1143 protocol/weston-test-server-protocol.h
1144
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001145ivi_tests += \
1146 ivi-shell-app.weston
1147
1148ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1149nodist_ivi_shell_app_weston_SOURCES = \
1150 protocol/ivi-application-protocol.c \
1151 protocol/ivi-application-client-protocol.h
1152ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1153ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001154
1155noinst_PROGRAMS += ivi-layout.ivi
1156
1157ivi_layout_ivi_SOURCES = \
1158 tests/ivi_layout-test.c \
1159 tests/ivi-test.h
1160nodist_ivi_layout_ivi_SOURCES = \
1161 protocol/ivi-application-protocol.c \
1162 protocol/ivi-application-client-protocol.h
1163ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1164ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001165endif
1166
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001167if BUILD_SETBACKLIGHT
1168noinst_PROGRAMS += setbacklight
1169setbacklight_SOURCES = \
1170 tests/setbacklight.c \
1171 src/libbacklight.c \
1172 src/libbacklight.h
1173setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1174setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1175endif
1176
1177EXTRA_DIST += tests/weston-tests-env
1178
1179BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001180 protocol/weston-test-protocol.c \
1181 protocol/weston-test-server-protocol.h \
1182 protocol/weston-test-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001183 protocol/text-protocol.c \
1184 protocol/text-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001185
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001186EXTRA_DIST += \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001187 protocol/desktop-shell.xml \
1188 protocol/screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001189 protocol/text.xml \
1190 protocol/input-method.xml \
1191 protocol/workspaces.xml \
1192 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001193 protocol/weston-test.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001194 protocol/xdg-shell.xml \
Jason Ekstrand27e11672014-04-02 19:53:44 -05001195 protocol/fullscreen-shell.xml \
Pekka Paalanen7e62d252014-09-23 22:08:42 -04001196 protocol/presentation_timing.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001197 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001198 protocol/ivi-application.xml \
1199 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001200
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001201#
1202# manual test modules in tests subdirectory
1203#
1204
1205noinst_LTLIBRARIES += \
1206 surface-screenshot.la
1207
1208surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1209surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
1210surface_screenshot_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1211surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1212
1213
1214#
1215# Documentation
1216#
1217
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001218man_MANS = weston.1 weston.ini.5
1219
1220if ENABLE_DRM_COMPOSITOR
1221man_MANS += weston-drm.7
1222endif
1223
1224MAN_SUBSTS = \
1225 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1226 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1227 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1228 -e 's|__version__|$(PACKAGE_VERSION)|g'
1229
1230SUFFIXES = .1 .5 .7 .man
1231
1232%.1 %.5 %.7 : man/%.man
1233 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1234
1235EXTRA_DIST += \
1236 man/weston.man \
1237 man/weston-drm.man \
1238 man/weston.ini.man
1239
1240CLEANFILES += $(man_MANS)
1241
1242
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001243protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1244 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001245
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001246protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1247 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001248
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001249protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1250 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@