1 ACLOCAL_AMFLAGS = -I m4
6 moduledir = $(libdir)/weston
8 libweston_moduledir = $(libdir)/libweston-$(LIBWESTON_MAJOR)
9 libweston_module_LTLIBRARIES =
13 AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
15 EXTRA_DIST = weston.ini.in ivi-shell/weston.ini.in
17 weston.ini : $(srcdir)/weston.ini.in
19 -e 's|@bindir[@]|$(bindir)|g' \
20 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
21 -e 's|@libexecdir[@]|$(libexecdir)|g' \
24 ivi-shell/weston.ini : $(srcdir)/ivi-shell/weston.ini.in
25 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
26 -e 's|@bindir[@]|$(bindir)|g' \
27 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
28 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
29 -e 's|@libexecdir[@]|$(libexecdir)|g' \
30 -e 's|@plugin_prefix[@]||g' \
33 all-local : weston.ini ivi-shell/weston.ini
35 AM_CFLAGS = $(GCC_CFLAGS)
38 -I$(top_builddir)/libweston \
39 -I$(top_srcdir)/libweston \
40 -I$(top_builddir)/clients \
41 -I$(top_builddir)/tests \
42 -I$(top_srcdir)/shared \
43 -I$(top_builddir)/protocol \
44 -DLIBWESTON_MODULEDIR='"$(libweston_moduledir)"' \
45 -DLIBEXECDIR='"$(libexecdir)"' \
46 -DBINDIR='"$(bindir)"'
48 CLEANFILES = weston.ini \
49 ivi-shell/weston.ini \
50 internal-screenshot-00.png \
54 # libweston-desktop depends on libweston, and desktop-shell depends on both.
55 # This leads to a libtool race at installation, because libtool re-links
57 # If you add more fixes, you may need a workaround to keep automake generated
58 # targets. See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
59 install-libweston_moduleLTLIBRARIES install-moduleLTLIBRARIES: install-libLTLIBRARIES
61 lib_LTLIBRARIES = libweston-@LIBWESTON_MAJOR@.la
62 libweston_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
63 libweston_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) \
64 $(COMPOSITOR_CFLAGS) $(EGL_CFLAGS) $(LIBDRM_CFLAGS)
65 libweston_@LIBWESTON_MAJOR@_la_LIBADD = $(COMPOSITOR_LIBS) \
66 $(DL_LIBS) -lm $(CLOCK_GETTIME_LIBS) \
67 $(LIBINPUT_BACKEND_LIBS) libshared.la
68 libweston_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
70 libweston_@LIBWESTON_MAJOR@_la_SOURCES = \
71 libweston/git-version.h \
73 libweston/compositor.c \
74 libweston/compositor.h \
75 libweston/compositor-drm.h \
76 libweston/compositor-fbdev.h \
77 libweston/compositor-headless.h \
78 libweston/compositor-rdp.h \
79 libweston/compositor-wayland.h \
80 libweston/compositor-x11.h \
82 libweston/data-device.c \
83 libweston/screenshooter.c \
84 libweston/clipboard.c \
86 libweston/bindings.c \
87 libweston/animation.c \
88 libweston/noop-renderer.c \
89 libweston/pixman-renderer.c \
90 libweston/pixman-renderer.h \
91 libweston/plugin-registry.c \
92 libweston/plugin-registry.h \
93 libweston/timeline.c \
94 libweston/timeline.h \
95 libweston/timeline-object.h \
96 libweston/linux-dmabuf.c \
97 libweston/linux-dmabuf.h \
98 libweston/pixel-formats.c \
99 libweston/pixel-formats.h \
103 shared/timespec-util.h \
106 shared/weston-egl-ext.h
108 lib_LTLIBRARIES += libweston-desktop-@LIBWESTON_MAJOR@.la
109 libweston_desktop_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
110 libweston_desktop_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
111 libweston_desktop_@LIBWESTON_MAJOR@_la_LIBADD = \
112 libweston-@LIBWESTON_MAJOR@.la \
114 libweston_desktop_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
116 libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES = \
117 libweston-desktop/client.c \
118 libweston-desktop/internal.h \
119 libweston-desktop/libweston-desktop.c \
120 libweston-desktop/libweston-desktop.h \
121 libweston-desktop/seat.c \
122 libweston-desktop/surface.c \
123 libweston-desktop/wl-shell.c \
124 libweston-desktop/xdg-shell-v6.c \
125 libweston-desktop/xwayland.c
127 nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES = \
128 protocol/xdg-shell-unstable-v6-protocol.c \
129 protocol/xdg-shell-unstable-v6-server-protocol.h
131 BUILT_SOURCES += $(nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES)
133 libweston-desktop-@LIBWESTON_MAJOR@.la libweston-desktop/libweston_desktop_@LIBWESTON_MAJOR@_la-xdg-shell-v6.lo: protocol/xdg-shell-unstable-v6-server-protocol.h
135 if SYSTEMD_NOTIFY_SUPPORT
136 module_LTLIBRARIES += systemd-notify.la
137 systemd_notify_la_LDFLAGS = -module -avoid-version
138 systemd_notify_la_LIBADD = libweston-@LIBWESTON_MAJOR@.la $(SYSTEMD_DAEMON_LIBS)
139 systemd_notify_la_CFLAGS = \
140 $(COMPOSITOR_CFLAGS) \
141 $(SYSTEMD_DAEMON_CFLAGS) \
144 systemd_notify_la_SOURCES = \
145 compositor/systemd-notify.c \
148 libweston/compositor.h
151 nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES = \
152 protocol/weston-screenshooter-protocol.c \
153 protocol/weston-screenshooter-server-protocol.h \
154 protocol/text-cursor-position-protocol.c \
155 protocol/text-cursor-position-server-protocol.h \
156 protocol/text-input-unstable-v1-protocol.c \
157 protocol/text-input-unstable-v1-server-protocol.h \
158 protocol/input-method-unstable-v1-protocol.c \
159 protocol/input-method-unstable-v1-server-protocol.h \
160 protocol/presentation-time-protocol.c \
161 protocol/presentation-time-server-protocol.h \
162 protocol/viewporter-protocol.c \
163 protocol/viewporter-server-protocol.h \
164 protocol/linux-dmabuf-unstable-v1-protocol.c \
165 protocol/linux-dmabuf-unstable-v1-server-protocol.h \
166 protocol/relative-pointer-unstable-v1-protocol.c \
167 protocol/relative-pointer-unstable-v1-server-protocol.h \
168 protocol/pointer-constraints-unstable-v1-protocol.c \
169 protocol/pointer-constraints-unstable-v1-server-protocol.h \
170 protocol/input-timestamps-unstable-v1-protocol.c \
171 protocol/input-timestamps-unstable-v1-server-protocol.h
173 BUILT_SOURCES += $(nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES)
175 bin_PROGRAMS += weston
177 weston_LDFLAGS = -export-dynamic
178 weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON \
179 -DMODULEDIR='"$(moduledir)"' \
180 -DXSERVER_PATH='"@XSERVER_PATH@"'
181 weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBINPUT_BACKEND_CFLAGS)
182 weston_LDADD = libshared.la libweston-@LIBWESTON_MAJOR@.la \
184 $(DL_LIBS) $(LIBINPUT_BACKEND_LIBS) \
185 $(CLOCK_GETRES_LIBS) \
190 compositor/weston-screenshooter.c \
191 compositor/text-backend.c \
192 compositor/xwayland.c
194 # Track this dependency explicitly instead of using BUILT_SOURCES. We
195 # add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
196 # in case we're building from tarballs.
198 compositor/main.c : $(top_builddir)/libweston/git-version.h
199 libweston/compositor.c : $(top_builddir)/libweston/git-version.h
201 noinst_LTLIBRARIES += \
204 libsession_helper_la_SOURCES = \
205 libweston/launcher-util.c \
206 libweston/launcher-util.h \
207 libweston/launcher-impl.h \
208 libweston/weston-launch.h \
209 libweston/launcher-weston-launch.c \
210 libweston/launcher-direct.c
211 libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
212 libsession_helper_la_LIBADD = libweston-@LIBWESTON_MAJOR@.la
214 if ENABLE_DRM_COMPOSITOR
215 libsession_helper_la_LIBADD += $(LIBDRM_LIBS)
219 if HAVE_SYSTEMD_LOGIN
220 libsession_helper_la_SOURCES += \
223 libweston/launcher-logind.c
224 libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
225 libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
230 libweston/git-version.h : $(top_srcdir)/.git/logs/HEAD
231 $(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)')\"" > $@
233 libweston/git-version.h :
234 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
240 if BUILD_WESTON_LAUNCH
241 bin_PROGRAMS += weston-launch
242 weston_launch_SOURCES = libweston/weston-launch.c libweston/weston-launch.h
243 weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
244 weston_launch_CFLAGS= \
247 $(SYSTEMD_LOGIN_CFLAGS) \
249 weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS)
251 if ENABLE_DRM_COMPOSITOR
252 weston_launch_LDADD += $(LIBDRM_LIBS)
255 if ENABLE_SETUID_INSTALL
258 chown root $(DESTDIR)$(bindir)/weston-launch \
259 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
260 && can_suid_files=yes;\
261 if test $$can_suid_files = no; then \
262 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
263 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
268 endif # BUILD_WESTON_LAUNCH
270 pkgconfigdir = $(libdir)/pkgconfig
272 libweston/libweston-${LIBWESTON_MAJOR}.pc \
273 libweston-desktop/libweston-desktop-${LIBWESTON_MAJOR}.pc \
276 wayland_sessiondir = $(datadir)/wayland-sessions
277 dist_wayland_session_DATA = compositor/weston.desktop
279 libwestonincludedir = $(includedir)/libweston-${LIBWESTON_MAJOR}
280 libwestoninclude_HEADERS = \
281 libweston/version.h \
282 libweston/compositor.h \
283 libweston/compositor-drm.h \
284 libweston/compositor-fbdev.h \
285 libweston/compositor-headless.h \
286 libweston/compositor-rdp.h \
287 libweston/compositor-wayland.h \
288 libweston/compositor-x11.h \
289 libweston/windowed-output-api.h \
290 libweston/plugin-registry.h \
291 libweston/timeline-object.h \
293 shared/config-parser.h \
296 libwestoninclude_HEADERS += \
297 libweston-desktop/libweston-desktop.h
299 westonincludedir = $(includedir)/weston
300 westoninclude_HEADERS = compositor/weston.h
303 westoninclude_HEADERS += \
304 ivi-shell/ivi-layout-export.h
308 libweston_module_LTLIBRARIES += gl-renderer.la
309 gl_renderer_la_LDFLAGS = -module -avoid-version
310 gl_renderer_la_LIBADD = \
311 libweston-@LIBWESTON_MAJOR@.la \
314 gl_renderer_la_CFLAGS = \
315 $(COMPOSITOR_CFLAGS) \
319 gl_renderer_la_SOURCES = \
320 libweston/gl-renderer.h \
321 libweston/gl-renderer.c \
322 libweston/vertex-clipping.c \
323 libweston/vertex-clipping.h \
324 libweston/weston-sync-file.h \
328 if ENABLE_X11_COMPOSITOR
329 libweston_module_LTLIBRARIES += x11-backend.la
330 x11_backend_la_LDFLAGS = -module -avoid-version
331 x11_backend_la_LIBADD = \
333 libweston-@LIBWESTON_MAJOR@.la \
334 $(X11_COMPOSITOR_LIBS) \
336 x11_backend_la_CFLAGS = \
338 $(COMPOSITOR_CFLAGS) \
342 $(X11_COMPOSITOR_CFLAGS)
343 x11_backend_la_SOURCES = \
344 libweston/compositor-x11.c \
345 libweston/compositor-x11.h \
349 INPUT_BACKEND_CFLAGS = $(LIBINPUT_BACKEND_CFLAGS)
350 INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
351 INPUT_BACKEND_SOURCES = \
352 libweston/libinput-seat.c \
353 libweston/libinput-seat.h \
354 libweston/libinput-device.c \
355 libweston/libinput-device.h \
358 if ENABLE_DRM_COMPOSITOR
359 libweston_module_LTLIBRARIES += drm-backend.la
360 drm_backend_la_LDFLAGS = -module -avoid-version
361 drm_backend_la_LIBADD = \
362 libsession-helper.la \
363 libweston-@LIBWESTON_MAJOR@.la \
365 $(DRM_COMPOSITOR_LIBS) \
366 $(INPUT_BACKEND_LIBS) \
368 $(CLOCK_GETTIME_LIBS)
369 drm_backend_la_CFLAGS = \
370 $(COMPOSITOR_CFLAGS) \
372 $(DRM_COMPOSITOR_CFLAGS) \
373 $(INPUT_BACKEND_CFLAGS) \
375 drm_backend_la_SOURCES = \
376 libweston/compositor-drm.c \
377 libweston/compositor-drm.h \
378 $(INPUT_BACKEND_SOURCES) \
380 shared/timespec-util.h \
381 libweston/libbacklight.c \
382 libweston/libbacklight.h
384 if ENABLE_VAAPI_RECORDER
385 drm_backend_la_SOURCES += libweston/vaapi-recorder.c libweston/vaapi-recorder.h
386 drm_backend_la_LIBADD += $(LIBVA_LIBS)
387 drm_backend_la_LDFLAGS += -pthread
388 drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
392 if ENABLE_WAYLAND_COMPOSITOR
393 libweston_module_LTLIBRARIES += wayland-backend.la
394 wayland_backend_la_LDFLAGS = -module -avoid-version
395 wayland_backend_la_LIBADD = \
397 libweston-@LIBWESTON_MAJOR@.la \
399 $(WAYLAND_COMPOSITOR_EGL_LIBS) \
400 $(WAYLAND_COMPOSITOR_LIBS)
401 wayland_backend_la_CFLAGS = \
402 $(COMPOSITOR_CFLAGS) \
406 $(WAYLAND_COMPOSITOR_CFLAGS) \
408 wayland_backend_la_SOURCES = \
409 libweston/compositor-wayland.c \
410 libweston/compositor-wayland.h \
412 nodist_wayland_backend_la_SOURCES = \
413 protocol/fullscreen-shell-unstable-v1-protocol.c \
414 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
415 protocol/xdg-shell-unstable-v6-protocol.c \
416 protocol/xdg-shell-unstable-v6-client-protocol.h
419 if ENABLE_HEADLESS_COMPOSITOR
420 libweston_module_LTLIBRARIES += headless-backend.la
421 headless_backend_la_LDFLAGS = -module -avoid-version
422 headless_backend_la_LIBADD = \
424 libweston-@LIBWESTON_MAJOR@.la \
426 headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
427 headless_backend_la_SOURCES = \
428 libweston/compositor-headless.c \
429 libweston/compositor-headless.h \
433 if ENABLE_FBDEV_COMPOSITOR
434 libweston_module_LTLIBRARIES += fbdev-backend.la
435 fbdev_backend_la_LDFLAGS = -module -avoid-version
436 fbdev_backend_la_LIBADD = \
438 libsession-helper.la \
439 libweston-@LIBWESTON_MAJOR@.la \
441 $(FBDEV_COMPOSITOR_LIBS) \
442 $(INPUT_BACKEND_LIBS)
443 fbdev_backend_la_CFLAGS = \
444 $(COMPOSITOR_CFLAGS) \
446 $(FBDEV_COMPOSITOR_CFLAGS) \
448 $(INPUT_BACKEND_CFLAGS) \
450 fbdev_backend_la_SOURCES = \
451 libweston/compositor-fbdev.c \
452 libweston/compositor-fbdev.h \
454 $(INPUT_BACKEND_SOURCES)
457 if ENABLE_RDP_COMPOSITOR
458 libweston_module_LTLIBRARIES += rdp-backend.la
459 rdp_backend_la_LDFLAGS = -module -avoid-version
460 rdp_backend_la_LIBADD = \
462 libweston-@LIBWESTON_MAJOR@.la \
464 $(RDP_COMPOSITOR_LIBS)
465 rdp_backend_la_CFLAGS = \
466 $(COMPOSITOR_CFLAGS) \
467 $(RDP_COMPOSITOR_CFLAGS) \
469 rdp_backend_la_SOURCES = \
470 libweston/compositor-rdp.c \
471 libweston/compositor-rdp.h \
476 module_LTLIBRARIES += cms-static.la
477 cms_static_la_LDFLAGS = -module -avoid-version
478 cms_static_la_LIBADD = \
480 libweston-@LIBWESTON_MAJOR@.la \
483 cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
484 cms_static_la_SOURCES = \
485 compositor/cms-static.c \
486 compositor/cms-helper.c \
487 compositor/cms-helper.h \
490 module_LTLIBRARIES += cms-colord.la
491 cms_colord_la_LDFLAGS = -module -avoid-version
492 cms_colord_la_LIBADD = \
494 libweston-@LIBWESTON_MAJOR@.la \
498 cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
499 cms_colord_la_SOURCES = \
500 compositor/cms-colord.c \
501 compositor/cms-helper.c \
502 compositor/cms-helper.h \
507 noinst_PROGRAMS += spring-tool
508 spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
509 spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
510 spring_tool_SOURCES = \
511 libweston/spring-tool.c \
512 libweston/animation.c \
515 libweston/compositor.h
519 bin_PROGRAMS += weston-terminal weston-info
521 libexec_PROGRAMS += \
522 weston-desktop-shell \
523 weston-screenshooter \
528 libexec_PROGRAMS += \
529 weston-ivi-shell-user-interface
548 if INSTALL_DEMO_CLIENTS
549 bin_PROGRAMS += $(demo_clients)
551 noinst_PROGRAMS += $(demo_clients)
555 if BUILD_SIMPLE_CLIENTS
558 weston-simple-damage \
559 weston-simple-touch \
560 weston-presentation-shm \
561 weston-multi-resource
563 weston_simple_shm_SOURCES = clients/simple-shm.c
564 nodist_weston_simple_shm_SOURCES = \
565 protocol/xdg-shell-unstable-v6-protocol.c \
566 protocol/xdg-shell-unstable-v6-client-protocol.h \
567 protocol/fullscreen-shell-unstable-v1-protocol.c \
568 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
569 protocol/ivi-application-protocol.c \
570 protocol/ivi-application-client-protocol.h
571 weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
572 weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
574 weston_simple_damage_SOURCES = clients/simple-damage.c
575 nodist_weston_simple_damage_SOURCES = \
576 protocol/viewporter-protocol.c \
577 protocol/viewporter-client-protocol.h \
578 protocol/xdg-shell-unstable-v6-protocol.c \
579 protocol/xdg-shell-unstable-v6-client-protocol.h \
580 protocol/fullscreen-shell-unstable-v1-protocol.c \
581 protocol/fullscreen-shell-unstable-v1-client-protocol.h
582 weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
583 weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
585 weston_simple_touch_SOURCES = \
586 clients/simple-touch.c \
588 weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
589 weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
591 weston_presentation_shm_SOURCES = \
592 clients/presentation-shm.c \
594 nodist_weston_presentation_shm_SOURCES = \
595 protocol/presentation-time-protocol.c \
596 protocol/presentation-time-client-protocol.h
597 weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
598 weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
600 weston_multi_resource_SOURCES = clients/multi-resource.c
601 weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
602 weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
605 if BUILD_SIMPLE_EGL_CLIENTS
606 demo_clients += weston-simple-egl
607 weston_simple_egl_SOURCES = clients/simple-egl.c
608 nodist_weston_simple_egl_SOURCES = \
609 protocol/xdg-shell-unstable-v6-protocol.c \
610 protocol/xdg-shell-unstable-v6-client-protocol.h \
611 protocol/ivi-application-protocol.c \
612 protocol/ivi-application-client-protocol.h
613 weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
614 weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
617 if BUILD_SIMPLE_DMABUF_DRM_CLIENT
618 demo_clients += weston-simple-dmabuf-drm
619 weston_simple_dmabuf_drm_SOURCES = \
620 clients/simple-dmabuf-drm.c \
621 clients/simple-dmabuf-drm-data.h
622 nodist_weston_simple_dmabuf_drm_SOURCES = \
623 protocol/xdg-shell-unstable-v6-protocol.c \
624 protocol/xdg-shell-unstable-v6-client-protocol.h \
625 protocol/fullscreen-shell-unstable-v1-protocol.c \
626 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
627 protocol/linux-dmabuf-unstable-v1-protocol.c \
628 protocol/linux-dmabuf-unstable-v1-client-protocol.h
629 weston_simple_dmabuf_drm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_DRM_CLIENT_CFLAGS)
630 weston_simple_dmabuf_drm_LDADD = $(SIMPLE_DMABUF_DRM_CLIENT_LIBS) \
631 $(LIBDRM_PLATFORM_FREEDRENO_LIBS) \
632 $(LIBDRM_PLATFORM_ETNAVIV_LIBS) \
633 $(LIBDRM_PLATFORM_INTEL_LIBS) \
637 if BUILD_SIMPLE_DMABUF_V4L_CLIENT
638 demo_clients += weston-simple-dmabuf-v4l
639 weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
640 nodist_weston_simple_dmabuf_v4l_SOURCES = \
641 protocol/xdg-shell-unstable-v6-protocol.c \
642 protocol/xdg-shell-unstable-v6-client-protocol.h \
643 protocol/fullscreen-shell-unstable-v1-protocol.c \
644 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
645 protocol/linux-dmabuf-unstable-v1-protocol.c \
646 protocol/linux-dmabuf-unstable-v1-client-protocol.h
647 weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
648 weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
651 noinst_LTLIBRARIES += libtoytoolkit.la
653 libtoytoolkit_la_SOURCES = \
658 nodist_libtoytoolkit_la_SOURCES = \
659 protocol/text-cursor-position-protocol.c \
660 protocol/text-cursor-position-client-protocol.h \
661 protocol/viewporter-protocol.c \
662 protocol/viewporter-client-protocol.h \
663 protocol/xdg-shell-unstable-v6-protocol.c \
664 protocol/xdg-shell-unstable-v6-client-protocol.h \
665 protocol/ivi-application-protocol.c \
666 protocol/ivi-application-client-protocol.h \
667 protocol/pointer-constraints-unstable-v1-protocol.c \
668 protocol/pointer-constraints-unstable-v1-client-protocol.h \
669 protocol/relative-pointer-unstable-v1-protocol.c \
670 protocol/relative-pointer-unstable-v1-client-protocol.h
672 BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
675 libtoytoolkit_la_LIBADD = \
678 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
679 libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
681 weston_flower_SOURCES = clients/flower.c
682 weston_flower_LDADD = libtoytoolkit.la
683 weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
685 weston_screenshooter_SOURCES = \
687 nodist_weston_screenshooter_SOURCES = \
688 protocol/weston-screenshooter-protocol.c \
689 protocol/weston-screenshooter-client-protocol.h
690 weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
691 weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
693 weston_terminal_SOURCES = \
696 weston_terminal_LDADD = libtoytoolkit.la -lutil
697 weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
699 weston_image_SOURCES = clients/image.c
700 weston_image_LDADD = libtoytoolkit.la
701 weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
703 weston_cliptest_SOURCES = \
705 libweston/vertex-clipping.c \
706 libweston/vertex-clipping.h
707 weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
708 weston_cliptest_LDADD = libtoytoolkit.la
710 weston_dnd_SOURCES = \
713 weston_dnd_LDADD = libtoytoolkit.la
714 weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
716 weston_smoke_SOURCES = clients/smoke.c
717 weston_smoke_LDADD = libtoytoolkit.la
718 weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
720 weston_resizor_SOURCES = clients/resizor.c
721 weston_resizor_LDADD = libtoytoolkit.la
722 weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
724 weston_scaler_SOURCES = clients/scaler.c
725 weston_scaler_LDADD = libtoytoolkit.la
726 weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
729 demo_clients += weston-nested weston-nested-client
731 weston_nested_SOURCES = \
734 weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
735 weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
737 weston_nested_client_SOURCES = clients/nested-client.c
738 weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
739 weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
742 weston_eventdemo_SOURCES = \
743 clients/eventdemo.c \
745 weston_eventdemo_LDADD = libtoytoolkit.la
746 weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
748 weston_clickdot_SOURCES = \
751 weston_clickdot_LDADD = libtoytoolkit.la
752 weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
754 weston_confine_SOURCES = \
757 weston_confine_LDADD = libtoytoolkit.la
758 weston_confine_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
760 weston_transformed_SOURCES = clients/transformed.c
761 weston_transformed_LDADD = libtoytoolkit.la
762 weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
764 weston_fullscreen_SOURCES = clients/fullscreen.c
765 nodist_weston_fullscreen_SOURCES = \
766 protocol/fullscreen-shell-unstable-v1-protocol.c \
767 protocol/fullscreen-shell-unstable-v1-client-protocol.h
768 weston_fullscreen_LDADD = libtoytoolkit.la
769 weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
771 weston_stacking_SOURCES = \
774 weston_stacking_LDADD = libtoytoolkit.la
775 weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
777 weston_calibrator_SOURCES = \
778 clients/calibrator.c \
782 weston_calibrator_LDADD = libtoytoolkit.la
783 weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
785 if BUILD_SUBSURFACES_CLIENT
786 demo_clients += weston-subsurfaces
787 weston_subsurfaces_SOURCES = \
788 clients/subsurfaces.c \
790 weston_subsurfaces_CFLAGS = \
792 $(SIMPLE_EGL_CLIENT_CFLAGS) \
794 weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
798 demo_clients += weston-editor
799 weston_editor_SOURCES = \
802 nodist_weston_editor_SOURCES = \
803 protocol/text-input-unstable-v1-protocol.c \
804 protocol/text-input-unstable-v1-client-protocol.h
805 weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
806 weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
809 weston_keyboard_SOURCES = clients/keyboard.c
810 nodist_weston_keyboard_SOURCES = \
811 protocol/weston-desktop-shell-client-protocol.h \
812 protocol/weston-desktop-shell-protocol.c \
813 protocol/input-method-unstable-v1-protocol.c \
814 protocol/input-method-unstable-v1-client-protocol.h
815 weston_keyboard_LDADD = libtoytoolkit.la
816 weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
818 weston_simple_im_SOURCES = clients/simple-im.c
819 nodist_weston_simple_im_SOURCES = \
820 protocol/input-method-unstable-v1-protocol.c \
821 protocol/input-method-unstable-v1-client-protocol.h
822 weston_simple_im_LDADD = $(CLIENT_LIBS)
823 weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
825 weston_info_SOURCES = \
826 clients/weston-info.c \
828 nodist_weston_info_SOURCES = \
829 protocol/presentation-time-protocol.c \
830 protocol/presentation-time-client-protocol.h \
831 protocol/linux-dmabuf-unstable-v1-protocol.c \
832 protocol/linux-dmabuf-unstable-v1-client-protocol.h \
833 protocol/tablet-unstable-v2-protocol.c \
834 protocol/tablet-unstable-v2-client-protocol.h
835 weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
836 weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
838 weston_desktop_shell_SOURCES = \
839 clients/desktop-shell.c \
841 nodist_weston_desktop_shell_SOURCES = \
842 protocol/weston-desktop-shell-client-protocol.h \
843 protocol/weston-desktop-shell-protocol.c
844 weston_desktop_shell_LDADD = libtoytoolkit.la
845 weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
848 weston_ivi_shell_user_interface_SOURCES = \
849 clients/ivi-shell-user-interface.c \
851 nodist_weston_ivi_shell_user_interface_SOURCES = \
852 protocol/ivi-hmi-controller-client-protocol.h \
853 protocol/ivi-hmi-controller-protocol.c \
854 protocol/ivi-application-client-protocol.h \
855 protocol/ivi-application-protocol.c
856 weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
857 weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
860 if BUILD_FULL_GL_CLIENTS
861 demo_clients += weston-gears
862 weston_gears_SOURCES = clients/gears.c
863 weston_gears_LDADD = libtoytoolkit.la
864 weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
870 protocol/weston-screenshooter-protocol.c \
871 protocol/weston-screenshooter-client-protocol.h \
872 protocol/text-cursor-position-client-protocol.h \
873 protocol/text-cursor-position-protocol.c \
874 protocol/text-input-unstable-v1-protocol.c \
875 protocol/text-input-unstable-v1-client-protocol.h \
876 protocol/input-method-unstable-v1-protocol.c \
877 protocol/input-method-unstable-v1-client-protocol.h \
878 protocol/weston-desktop-shell-client-protocol.h \
879 protocol/weston-desktop-shell-protocol.c \
880 protocol/viewporter-client-protocol.h \
881 protocol/viewporter-protocol.c \
882 protocol/presentation-time-protocol.c \
883 protocol/presentation-time-client-protocol.h \
884 protocol/fullscreen-shell-unstable-v1-protocol.c \
885 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
886 protocol/xdg-shell-unstable-v6-protocol.c \
887 protocol/xdg-shell-unstable-v6-client-protocol.h \
888 protocol/ivi-hmi-controller-protocol.c \
889 protocol/ivi-hmi-controller-client-protocol.h \
890 protocol/ivi-application-protocol.c \
891 protocol/ivi-application-client-protocol.h \
892 protocol/linux-dmabuf-unstable-v1-protocol.c \
893 protocol/linux-dmabuf-unstable-v1-client-protocol.h \
894 protocol/tablet-unstable-v2-protocol.c \
895 protocol/tablet-unstable-v2-client-protocol.h \
896 protocol/input-timestamps-unstable-v1-protocol.c \
897 protocol/input-timestamps-unstable-v1-client-protocol.h
899 westondatadir = $(datadir)/weston
900 dist_westondata_DATA = \
906 data/icon_editor.png \
907 data/icon_flower.png \
908 data/icon_terminal.png \
909 data/icon_window.png \
910 data/sign_close.png \
911 data/sign_maximize.png \
912 data/sign_minimize.png
915 dist_westondata_DATA += \
916 data/background.png \
918 data/fullscreen.png \
921 data/sidebyside.png \
923 data/icon_ivi_clickdot.png \
924 data/icon_ivi_flower.png \
925 data/icon_ivi_simple-egl.png \
926 data/icon_ivi_simple-shm.png \
927 data/icon_ivi_smoke.png
932 bin_PROGRAMS += wcap-decode
934 wcap_decode_SOURCES = \
939 wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
940 wcap_decode_LDADD = $(WCAP_LIBS)
944 if ENABLE_DESKTOP_SHELL
946 module_LTLIBRARIES += desktop-shell.la
948 desktop_shell_la_CPPFLAGS = \
949 -I$(top_builddir)/protocol \
950 -I$(top_srcdir)/shared \
951 -I$(top_builddir)/libweston \
952 -I$(top_srcdir)/libweston \
953 -I$(top_builddir)/desktop-shell \
954 -DMODULEDIR='"$(moduledir)"' \
955 -DLIBEXECDIR='"$(libexecdir)"' \
958 desktop_shell_la_LDFLAGS = -module -avoid-version
959 desktop_shell_la_LIBADD = libshared.la libweston-desktop-@LIBWESTON_MAJOR@.la $(COMPOSITOR_LIBS)
960 desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
961 desktop_shell_la_SOURCES = \
962 desktop-shell/shell.h \
963 desktop-shell/shell.c \
964 desktop-shell/exposay.c \
965 desktop-shell/input-panel.c \
967 nodist_desktop_shell_la_SOURCES = \
968 protocol/weston-desktop-shell-protocol.c \
969 protocol/weston-desktop-shell-server-protocol.h
971 BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
974 if ENABLE_FULLSCREEN_SHELL
976 module_LTLIBRARIES += fullscreen-shell.la
978 fullscreen_shell_la_CPPFLAGS = \
979 -I$(top_builddir)/protocol \
980 -I$(top_srcdir)/shared \
981 -I$(top_builddir)/libweston \
982 -I$(top_srcdir)/libweston \
985 fullscreen_shell_la_LDFLAGS = -module -avoid-version
986 fullscreen_shell_la_LIBADD = \
987 libweston-@LIBWESTON_MAJOR@.la \
989 fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
990 fullscreen_shell_la_SOURCES = \
991 fullscreen-shell/fullscreen-shell.c \
993 nodist_fullscreen_shell_la_SOURCES = \
994 protocol/fullscreen-shell-unstable-v1-protocol.c \
995 protocol/fullscreen-shell-unstable-v1-server-protocol.h
997 BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
1002 module_LTLIBRARIES += \
1006 ivi_shell = ivi-shell.la
1007 ivi_shell_la_LDFLAGS = -module -avoid-version
1008 ivi_shell_la_LIBADD = \
1010 libweston-@LIBWESTON_MAJOR@.la \
1012 ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1013 ivi_shell_la_SOURCES = \
1014 ivi-shell/ivi-layout-export.h \
1015 ivi-shell/ivi-layout-private.h \
1016 ivi-shell/ivi-layout-shell.h \
1017 ivi-shell/ivi-layout.c \
1018 ivi-shell/ivi-layout-transition.c \
1019 ivi-shell/ivi-shell.h \
1020 ivi-shell/ivi-shell.c \
1021 ivi-shell/input-panel-ivi.c \
1023 nodist_ivi_shell_la_SOURCES = \
1024 protocol/ivi-application-protocol.c \
1025 protocol/ivi-application-server-protocol.h
1027 BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
1029 hmi_controller = hmi-controller.la
1030 hmi_controller_la_LDFLAGS = -module -avoid-version
1031 hmi_controller_la_LIBADD = \
1033 libweston-@LIBWESTON_MAJOR@.la \
1035 hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1036 hmi_controller_la_SOURCES = \
1037 ivi-shell/ivi-layout-export.h \
1038 ivi-shell/hmi-controller.c \
1040 nodist_hmi_controller_la_SOURCES = \
1041 protocol/ivi-hmi-controller-protocol.c \
1042 protocol/ivi-hmi-controller-server-protocol.h
1044 BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
1049 if ENABLE_SCREEN_SHARING
1051 module_LTLIBRARIES += screen-share.la
1053 screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
1054 screen_share_la_LDFLAGS = -module -avoid-version
1055 screen_share_la_LIBADD = \
1056 libshared-cairo.la \
1057 libweston-@LIBWESTON_MAJOR@.la \
1058 $(COMPOSITOR_LIBS) \
1059 $(SCREEN_SHARE_LIBS)
1060 screen_share_la_CFLAGS = \
1061 $(COMPOSITOR_CFLAGS) \
1062 $(SCREEN_SHARE_CFLAGS) \
1064 screen_share_la_SOURCES = \
1065 compositor/screen-share.c \
1067 nodist_screen_share_la_SOURCES = \
1068 protocol/fullscreen-shell-unstable-v1-protocol.c \
1069 protocol/fullscreen-shell-unstable-v1-client-protocol.h
1075 libweston_module_LTLIBRARIES += xwayland.la
1077 xwayland_la_CPPFLAGS = \
1078 -I$(top_builddir)/protocol \
1079 -I$(top_srcdir)/shared \
1080 -I$(top_builddir)/libweston \
1081 -I$(top_srcdir)/libweston \
1082 -I$(top_builddir)/xwayland \
1083 -DMODULEDIR='"$(moduledir)"' \
1084 -DLIBEXECDIR='"$(libexecdir)"'
1086 xwayland_la_LDFLAGS = -module -avoid-version
1087 xwayland_la_LIBADD = \
1088 libshared-cairo.la \
1089 libweston-@LIBWESTON_MAJOR@.la \
1091 xwayland_la_CFLAGS = \
1093 $(COMPOSITOR_CFLAGS) \
1096 xwayland_la_SOURCES = \
1097 xwayland/xwayland.h \
1098 xwayland/xwayland-internal-interface.h \
1099 xwayland/window-manager.c \
1100 xwayland/selection.c \
1102 xwayland/launcher.c \
1107 libwestoninclude_HEADERS += xwayland/xwayland-api.h
1116 noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
1117 libzunitc.la libzunitcmain.la
1119 libshared_la_CPPFLAGS = \
1120 -DDATADIR='"$(datadir)"' \
1123 libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1125 libshared_la_SOURCES = \
1126 shared/config-parser.c \
1127 shared/option-parser.c \
1128 shared/config-parser.h \
1129 shared/file-util.c \
1130 shared/file-util.h \
1132 shared/os-compatibility.c \
1133 shared/os-compatibility.h \
1137 libshared_cairo_la_CPPFLAGS = $(libshared_la_CPPFLAGS)
1139 libshared_cairo_la_CFLAGS = \
1141 $(COMPOSITOR_CFLAGS) \
1148 libshared_cairo_la_LIBADD = \
1156 libshared_cairo_la_SOURCES = \
1157 $(libshared_la_SOURCES) \
1159 shared/image-loader.c \
1160 shared/image-loader.h \
1161 shared/cairo-util.c \
1165 libzunitc_la_SOURCES = \
1166 tools/zunitc/inc/zunitc/zunitc.h \
1167 tools/zunitc/inc/zunitc/zunitc_impl.h \
1168 tools/zunitc/src/zuc_base_logger.c \
1169 tools/zunitc/src/zuc_base_logger.h \
1170 tools/zunitc/src/zuc_collector.c \
1171 tools/zunitc/src/zuc_collector.h \
1172 tools/zunitc/src/zuc_context.h \
1173 tools/zunitc/src/zuc_event.h \
1174 tools/zunitc/src/zuc_event_listener.h \
1175 tools/zunitc/src/zuc_junit_reporter.c \
1176 tools/zunitc/src/zuc_junit_reporter.h \
1177 tools/zunitc/src/zuc_types.h \
1178 tools/zunitc/src/zunitc_impl.c \
1181 libzunitc_la_CFLAGS = \
1183 -I$(top_srcdir)/tools/zunitc/inc
1185 libzunitc_la_LIBADD = \
1187 $(CLOCK_GETTIME_LIBS)
1190 libzunitc_la_CFLAGS += \
1192 libzunitc_la_LIBADD += \
1196 libzunitcmain_la_SOURCES = \
1197 tools/zunitc/src/main.c
1199 libzunitcmain_la_CFLAGS = \
1201 -I$(top_srcdir)/tools/zunitc/inc
1203 libzunitcmain_la_LIBADD = \
1208 # tests subdirectory
1211 TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1214 internal-screenshot.weston
1217 config-parser.test \
1224 plugin-registry-test.la \
1226 surface-global-test.la
1234 presentation.weston \
1238 subsurface-shot.weston \
1242 AM_TESTS_ENVIRONMENT = \
1243 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1244 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
1246 TEST_EXTENSIONS = .la .weston
1247 LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1248 WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1254 # To remove when automake 1.11 support is dropped
1257 noinst_LTLIBRARIES += \
1259 weston-test-desktop-shell.la \
1264 noinst_PROGRAMS += \
1272 test_module_ldflags = -module -avoid-version -rpath $(libdir)
1273 test_module_libadd = \
1274 libweston-@LIBWESTON_MAJOR@.la \
1277 plugin_registry_test_la_SOURCES = tests/plugin-registry-test.c
1278 plugin_registry_test_la_LIBADD = $(test_module_libadd)
1279 plugin_registry_test_la_LDFLAGS = $(test_module_ldflags)
1280 plugin_registry_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1282 surface_global_test_la_SOURCES = tests/surface-global-test.c
1283 surface_global_test_la_LIBADD = $(test_module_libadd)
1284 surface_global_test_la_LDFLAGS = $(test_module_ldflags)
1285 surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1287 surface_test_la_SOURCES = tests/surface-test.c
1288 surface_test_la_LIBADD = $(test_module_libadd)
1289 surface_test_la_LDFLAGS = $(test_module_ldflags)
1290 surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1292 weston_test_la_LIBADD = libshared.la $(test_module_libadd)
1293 weston_test_la_LDFLAGS = $(test_module_ldflags)
1294 weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1295 weston_test_la_SOURCES = \
1296 tests/weston-test.c \
1298 nodist_weston_test_la_SOURCES = \
1299 protocol/weston-test-protocol.c \
1300 protocol/weston-test-server-protocol.h
1302 weston_test_desktop_shell_la_LIBADD = libshared.la libweston-desktop-@LIBWESTON_MAJOR@.la $(COMPOSITOR_LIBS)
1303 weston_test_desktop_shell_la_LDFLAGS = $(test_module_ldflags)
1304 weston_test_desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1305 weston_test_desktop_shell_la_SOURCES = \
1306 tests/weston-test-desktop-shell.c \
1310 weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1311 weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1314 libtest_runner_la_SOURCES = \
1315 tests/weston-test-runner.c \
1316 tests/weston-test-runner.h
1317 libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1319 config_parser_test_SOURCES = tests/config-parser-test.c
1320 config_parser_test_LDADD = \
1322 $(COMPOSITOR_LIBS) \
1325 config_parser_test_CFLAGS = \
1327 -I$(top_srcdir)/tools/zunitc/inc
1329 timespec_test_SOURCES = tests/timespec-test.c
1330 timespec_test_LDADD = \
1334 timespec_test_CFLAGS = \
1336 -I$(top_srcdir)/tools/zunitc/inc
1338 string_test_SOURCES = \
1339 tests/string-test.c \
1340 shared/string-helpers.h
1341 string_test_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1342 string_test_LDADD = libtest-client.la
1344 vertex_clip_test_SOURCES = \
1345 tests/vertex-clip-test.c \
1347 libweston/vertex-clipping.c \
1348 libweston/vertex-clipping.h
1349 vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
1351 libtest_client_la_SOURCES = \
1352 tests/weston-test-client-helper.c \
1353 tests/weston-test-client-helper.h \
1354 tests/input-timestamps-helper.c \
1355 tests/input-timestamps-helper.h
1356 nodist_libtest_client_la_SOURCES = \
1357 protocol/weston-test-protocol.c \
1358 protocol/weston-test-client-protocol.h \
1359 protocol/input-timestamps-unstable-v1-protocol.c \
1360 protocol/input-timestamps-unstable-v1-client-protocol.h
1361 libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1362 libtest_client_la_LIBADD = libshared.la libtest-runner.la $(TEST_CLIENT_LIBS) $(CAIRO_LIBS)
1366 # Internal tests - tests functionality of the testsuite itself
1369 internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
1370 internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1371 internal_screenshot_weston_LDADD = libtest-client.la
1378 bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
1379 bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1380 bad_buffer_weston_LDADD = libtest-client.la
1382 keyboard_weston_SOURCES = tests/keyboard-test.c
1383 keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1384 keyboard_weston_LDADD = libtest-client.la
1386 event_weston_SOURCES = tests/event-test.c
1387 event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1388 event_weston_LDADD = libtest-client.la
1390 pointer_weston_SOURCES = tests/pointer-test.c
1391 pointer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1392 pointer_weston_LDADD = libtest-client.la
1394 devices_weston_SOURCES = tests/devices-test.c
1395 devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1396 devices_weston_LDADD = libtest-client.la
1398 text_weston_SOURCES = tests/text-test.c
1399 nodist_text_weston_SOURCES = \
1400 protocol/text-input-unstable-v1-protocol.c \
1401 protocol/text-input-unstable-v1-client-protocol.h
1402 text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1403 text_weston_LDADD = libtest-client.la
1405 subsurface_weston_SOURCES = tests/subsurface-test.c
1406 subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1407 subsurface_weston_LDADD = libtest-client.la
1409 subsurface_shot_weston_SOURCES = tests/subsurface-shot-test.c
1410 subsurface_shot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1411 subsurface_shot_weston_LDADD = libtest-client.la
1413 presentation_weston_SOURCES = \
1414 tests/presentation-test.c \
1416 nodist_presentation_weston_SOURCES = \
1417 protocol/presentation-time-protocol.c \
1418 protocol/presentation-time-client-protocol.h
1419 presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1420 presentation_weston_LDADD = libtest-client.la
1422 roles_weston_SOURCES = tests/roles-test.c
1423 roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1424 roles_weston_LDADD = libtest-client.la
1426 viewporter_weston_SOURCES = \
1427 tests/viewporter-test.c \
1429 nodist_viewporter_weston_SOURCES = \
1430 protocol/viewporter-protocol.c \
1431 protocol/viewporter-client-protocol.h
1432 viewporter_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1433 viewporter_weston_LDADD = libtest-client.la
1435 touch_weston_SOURCES = tests/touch-test.c
1436 touch_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1437 touch_weston_LDADD = libtest-client.la
1439 if ENABLE_XWAYLAND_TEST
1440 weston_tests += xwayland-test.weston
1441 xwayland_test_weston_SOURCES = tests/xwayland-test.c
1442 xwayland_test_weston_CFLAGS = \
1443 $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS) -DXSERVER_PATH='"@XSERVER_PATH@"'
1444 xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
1447 matrix_test_SOURCES = \
1448 tests/matrix-test.c \
1451 matrix_test_CPPFLAGS = -DUNIT_TEST
1452 matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
1456 ivi-layout-internal-test.la \
1459 ivi_layout_internal_test_la_LIBADD = $(test_module_libadd)
1460 ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
1461 ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1462 ivi_layout_internal_test_la_SOURCES = \
1463 tests/ivi_layout-internal-test.c
1465 ivi_layout_test_la_LIBADD = $(test_module_libadd)
1466 ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
1467 ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1468 ivi_layout_test_la_SOURCES = \
1469 tests/ivi_layout-test-plugin.c \
1472 nodist_ivi_layout_test_la_SOURCES = \
1473 protocol/weston-test-protocol.c \
1474 protocol/weston-test-server-protocol.h
1477 ivi-shell-app.weston
1479 ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1480 nodist_ivi_shell_app_weston_SOURCES = \
1481 protocol/ivi-application-protocol.c \
1482 protocol/ivi-application-client-protocol.h
1483 ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1484 ivi_shell_app_weston_LDADD = libtest-client.la
1486 noinst_PROGRAMS += ivi-layout.ivi
1488 ivi_layout_ivi_SOURCES = \
1489 tests/ivi_layout-test.c \
1492 nodist_ivi_layout_ivi_SOURCES = \
1493 protocol/ivi-application-protocol.c \
1494 protocol/ivi-application-client-protocol.h
1495 ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1496 ivi_layout_ivi_LDADD = libtest-client.la
1499 if BUILD_SETBACKLIGHT
1500 noinst_PROGRAMS += setbacklight
1501 setbacklight_SOURCES = \
1502 tests/setbacklight.c \
1503 libweston/libbacklight.c \
1504 libweston/libbacklight.h
1505 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1506 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1509 all-local: zuctest$(EXEEXT)
1511 noinst_PROGRAMS += zuctest$(EXEEXT)
1519 -I$(top_srcdir)/tools/zunitc/inc
1522 tools/zunitc/test/fixtures_test.c \
1523 tools/zunitc/test/zunitc_test.c
1526 tests/internal-screenshot.ini \
1527 tests/reference/internal-screenshot-bad-00.png \
1528 tests/reference/internal-screenshot-good-00.png \
1529 tests/reference/subsurface_z_order-00.png \
1530 tests/reference/subsurface_z_order-01.png \
1531 tests/reference/subsurface_z_order-02.png \
1532 tests/reference/subsurface_z_order-03.png \
1533 tests/reference/subsurface_z_order-04.png \
1534 tests/weston-tests-env
1537 protocol/weston-test-protocol.c \
1538 protocol/weston-test-server-protocol.h \
1539 protocol/weston-test-client-protocol.h \
1540 protocol/text-input-unstable-v1-protocol.c \
1541 protocol/text-input-unstable-v1-client-protocol.h
1544 protocol/weston-desktop-shell.xml \
1545 protocol/weston-screenshooter.xml \
1546 protocol/text-cursor-position.xml \
1547 protocol/weston-test.xml \
1548 protocol/ivi-application.xml \
1549 protocol/ivi-hmi-controller.xml
1552 # manual test modules in tests subdirectory
1555 noinst_LTLIBRARIES += \
1556 surface-screenshot.la
1558 surface_screenshot_la_LIBADD = libshared.la $(test_module_libadd)
1559 surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
1560 surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1561 surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1568 man_MANS = weston.1 weston.ini.5
1570 if ENABLE_DRM_COMPOSITOR
1571 man_MANS += weston-drm.7
1574 if ENABLE_RDP_COMPOSITOR
1575 man_MANS += weston-rdp.7
1579 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1580 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1581 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1582 -e 's|__version__|$(PACKAGE_VERSION)|g'
1584 SUFFIXES = .1 .5 .7 .man
1586 %.1 %.5 %.7 : man/%.man
1587 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1591 man/weston-drm.man \
1592 man/weston-rdp.man \
1595 CLEANFILES += $(man_MANS)
1598 DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1600 docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1601 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1603 docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1604 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1614 .PHONY: doc $(DOXYGEN_INDICES)
1616 doc: $(DOXYGEN_INDICES)
1620 define protostability
1621 $(if $(findstring unstable,$1),unstable,stable)
1625 $(shell echo $1 | $(SED) 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1628 protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
1629 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1631 protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
1632 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1634 protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
1635 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1637 protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1638 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1640 protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1641 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1643 protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1644 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@