1 ACLOCAL_AMFLAGS = -I m4
6 moduledir = $(libdir)/weston
11 AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
13 EXTRA_DIST = weston.ini.in ivi-shell/weston.ini.in
15 weston.ini : $(srcdir)/weston.ini.in
17 -e 's|@bindir[@]|$(bindir)|g' \
18 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
19 -e 's|@libexecdir[@]|$(libexecdir)|g' \
22 ivi-shell/weston.ini : $(srcdir)/ivi-shell/weston.ini.in
24 -e 's|@bindir[@]|$(bindir)|g' \
25 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
26 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
27 -e 's|@libexecdir[@]|$(libexecdir)|g' \
28 -e 's|@plugin_prefix[@]||g' \
31 tests/weston-ivi.ini : $(srcdir)/ivi-shell/weston.ini.in
33 -e 's|@bindir[@]|$(bindir)|g' \
34 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
35 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
36 -e 's|@libexecdir[@]|$(libexecdir)|g' \
37 -e 's|@plugin_prefix[@]|$(abs_top_builddir)/.libs/|g' \
40 all-local : weston.ini ivi-shell/weston.ini
42 AM_CFLAGS = $(GCC_CFLAGS)
46 -I$(top_builddir)/src \
47 -I$(top_builddir)/clients \
48 -I$(top_builddir)/tests \
49 -I$(top_srcdir)/shared \
50 -I$(top_builddir)/protocol \
51 -DDATADIR='"$(datadir)"' \
52 -DMODULEDIR='"$(moduledir)"' \
53 -DLIBEXECDIR='"$(libexecdir)"' \
54 -DBINDIR='"$(bindir)"'
56 CLEANFILES = weston.ini \
57 ivi-shell/weston.ini \
58 tests/weston-ivi.ini \
59 internal-screenshot-00.png \
62 bin_PROGRAMS += weston
64 weston_LDFLAGS = -export-dynamic
65 weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
66 weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
67 weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
68 $(DLOPEN_LIBS) -lm libshared.la
84 src/pixman-renderer.c \
85 src/pixman-renderer.h \
88 src/timeline-object.h \
95 nodist_weston_SOURCES = \
96 protocol/screenshooter-protocol.c \
97 protocol/screenshooter-server-protocol.h \
98 protocol/text-cursor-position-protocol.c \
99 protocol/text-cursor-position-server-protocol.h \
100 protocol/text-protocol.c \
101 protocol/text-server-protocol.h \
102 protocol/input-method-protocol.c \
103 protocol/input-method-server-protocol.h \
104 protocol/workspaces-protocol.c \
105 protocol/workspaces-server-protocol.h \
106 protocol/presentation_timing-protocol.c \
107 protocol/presentation_timing-server-protocol.h \
108 protocol/scaler-protocol.c \
109 protocol/scaler-server-protocol.h
111 BUILT_SOURCES += $(nodist_weston_SOURCES)
113 # Track this dependency explicitly instead of using BUILT_SOURCES. We
114 # add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
115 # in case we're building from tarballs.
117 src/compositor.c : $(top_builddir)/src/git-version.h
119 noinst_LTLIBRARIES += \
122 libsession_helper_la_SOURCES = \
123 src/weston-launch.h \
124 src/launcher-util.c \
126 libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
127 libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
130 if HAVE_SYSTEMD_LOGIN
131 libsession_helper_la_SOURCES += \
136 libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
137 libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
142 src/git-version.h : $(top_srcdir)/.git/logs/HEAD
143 $(AM_V_GEN)echo "#define BUILD_ID \"$(shell git --git-dir=$(top_srcdir)/.git describe --always --dirty) $(shell git --git-dir=$(top_srcdir)/.git log -1 --format='%s (%ci)')\"" > $@
146 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
152 if BUILD_WESTON_LAUNCH
153 bin_PROGRAMS += weston-launch
154 weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
155 weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
156 weston_launch_CFLAGS= \
159 $(SYSTEMD_LOGIN_CFLAGS) \
161 weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
163 if ENABLE_SETUID_INSTALL
166 chown root $(DESTDIR)$(bindir)/weston-launch \
167 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
168 && can_suid_files=yes;\
169 if test $$can_suid_files = no; then \
170 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
171 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
176 endif # BUILD_WESTON_LAUNCH
178 pkgconfigdir = $(libdir)/pkgconfig
179 pkgconfig_DATA = src/weston.pc
181 wayland_sessiondir = $(datadir)/wayland-sessions
182 wayland_session_DATA = src/weston.desktop
183 dist_wayland_session_DATA = $(wayland_session_DATA)
185 westonincludedir = $(includedir)/weston
186 westoninclude_HEADERS = \
189 src/timeline-object.h \
191 shared/config-parser.h \
196 module_LTLIBRARIES += gl-renderer.la
197 gl_renderer_la_LDFLAGS = -module -avoid-version
198 gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
199 gl_renderer_la_CFLAGS = \
200 $(COMPOSITOR_CFLAGS) \
203 gl_renderer_la_SOURCES = \
206 src/vertex-clipping.c \
207 src/vertex-clipping.h
210 if ENABLE_X11_COMPOSITOR
211 module_LTLIBRARIES += x11-backend.la
212 x11_backend_la_LDFLAGS = -module -avoid-version
213 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
215 x11_backend_la_CFLAGS = \
216 $(COMPOSITOR_CFLAGS) \
220 $(X11_COMPOSITOR_CFLAGS) \
222 x11_backend_la_SOURCES = src/compositor-x11.c
225 INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
226 INPUT_BACKEND_SOURCES = \
227 src/libinput-seat.c \
228 src/libinput-seat.h \
229 src/libinput-device.c \
230 src/libinput-device.h
232 if ENABLE_DRM_COMPOSITOR
233 module_LTLIBRARIES += drm-backend.la
234 drm_backend_la_LDFLAGS = -module -avoid-version
235 drm_backend_la_LIBADD = \
237 $(DRM_COMPOSITOR_LIBS) \
238 $(INPUT_BACKEND_LIBS) \
241 drm_backend_la_CFLAGS = \
242 $(COMPOSITOR_CFLAGS) \
244 $(DRM_COMPOSITOR_CFLAGS) \
246 drm_backend_la_SOURCES = \
247 src/compositor-drm.c \
248 $(INPUT_BACKEND_SOURCES) \
252 if ENABLE_VAAPI_RECORDER
253 drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
254 drm_backend_la_LIBADD += $(LIBVA_LIBS)
255 drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
259 if ENABLE_WAYLAND_COMPOSITOR
260 module_LTLIBRARIES += wayland-backend.la
261 wayland_backend_la_LDFLAGS = -module -avoid-version
262 wayland_backend_la_LIBADD = \
264 $(WAYLAND_COMPOSITOR_LIBS) \
266 wayland_backend_la_CFLAGS = \
267 $(COMPOSITOR_CFLAGS) \
271 $(WAYLAND_COMPOSITOR_CFLAGS) \
273 wayland_backend_la_SOURCES = src/compositor-wayland.c
274 nodist_wayland_backend_la_SOURCES = \
275 protocol/fullscreen-shell-protocol.c \
276 protocol/fullscreen-shell-client-protocol.h
279 if ENABLE_RPI_COMPOSITOR
280 if INSTALL_RPI_COMPOSITOR
281 module_LTLIBRARIES += rpi-backend.la
283 noinst_LTLIBRARIES += rpi-backend.la
286 rpi_backend_la_LDFLAGS = -module -avoid-version
287 rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
288 $(RPI_COMPOSITOR_LIBS) \
289 $(RPI_BCM_HOST_LIBS) \
290 $(INPUT_BACKEND_LIBS) \
291 libsession-helper.la \
293 rpi_backend_la_CFLAGS = \
295 $(COMPOSITOR_CFLAGS) \
296 $(RPI_COMPOSITOR_CFLAGS) \
297 $(RPI_BCM_HOST_CFLAGS)
298 rpi_backend_la_SOURCES = \
299 src/compositor-rpi.c \
302 src/rpi-bcm-stubs.h \
303 $(INPUT_BACKEND_SOURCES)
306 rpi_backend_la_LIBADD += $(EGL_LIBS)
307 rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
312 if ENABLE_HEADLESS_COMPOSITOR
313 module_LTLIBRARIES += headless-backend.la
314 headless_backend_la_LDFLAGS = -module -avoid-version
315 headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
316 headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
317 headless_backend_la_SOURCES = src/compositor-headless.c
320 if ENABLE_FBDEV_COMPOSITOR
321 module_LTLIBRARIES += fbdev-backend.la
322 fbdev_backend_la_LDFLAGS = -module -avoid-version
323 fbdev_backend_la_LIBADD = \
325 $(FBDEV_COMPOSITOR_LIBS) \
326 $(INPUT_BACKEND_LIBS) \
327 libsession-helper.la \
329 fbdev_backend_la_CFLAGS = \
330 $(COMPOSITOR_CFLAGS) \
332 $(FBDEV_COMPOSITOR_CFLAGS) \
335 fbdev_backend_la_SOURCES = \
336 src/compositor-fbdev.c \
337 $(INPUT_BACKEND_SOURCES)
340 if ENABLE_RDP_COMPOSITOR
341 module_LTLIBRARIES += rdp-backend.la
342 rdp_backend_la_LDFLAGS = -module -avoid-version
343 rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
344 $(RDP_COMPOSITOR_LIBS) \
346 rdp_backend_la_CFLAGS = \
347 $(COMPOSITOR_CFLAGS) \
348 $(RDP_COMPOSITOR_CFLAGS) \
350 rdp_backend_la_SOURCES = src/compositor-rdp.c
354 module_LTLIBRARIES += cms-static.la
355 cms_static_la_LDFLAGS = -module -avoid-version
356 cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
357 cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
358 cms_static_la_SOURCES = \
363 module_LTLIBRARIES += cms-colord.la
364 cms_colord_la_LDFLAGS = -module -avoid-version
365 cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
366 cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
367 cms_colord_la_SOURCES = \
374 noinst_PROGRAMS += spring-tool
375 spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
376 spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
377 spring_tool_SOURCES = \
386 bin_PROGRAMS += weston-terminal weston-info
388 libexec_PROGRAMS += \
389 weston-desktop-shell \
390 weston-screenshooter \
395 libexec_PROGRAMS += \
396 weston-ivi-shell-user-interface
414 if INSTALL_DEMO_CLIENTS
415 bin_PROGRAMS += $(demo_clients)
417 noinst_PROGRAMS += $(demo_clients)
421 if BUILD_SIMPLE_CLIENTS
424 weston-simple-damage \
425 weston-simple-touch \
426 weston-presentation-shm \
427 weston-multi-resource
429 weston_simple_shm_SOURCES = clients/simple-shm.c
430 nodist_weston_simple_shm_SOURCES = \
431 protocol/xdg-shell-protocol.c \
432 protocol/xdg-shell-client-protocol.h \
433 protocol/fullscreen-shell-protocol.c \
434 protocol/fullscreen-shell-client-protocol.h \
435 protocol/ivi-application-protocol.c \
436 protocol/ivi-application-client-protocol.h
437 weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
438 weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
440 weston_simple_damage_SOURCES = clients/simple-damage.c
441 nodist_weston_simple_damage_SOURCES = \
442 protocol/scaler-protocol.c \
443 protocol/scaler-client-protocol.h \
444 protocol/xdg-shell-protocol.c \
445 protocol/xdg-shell-client-protocol.h \
446 protocol/fullscreen-shell-protocol.c \
447 protocol/fullscreen-shell-client-protocol.h
448 weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
449 weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
451 weston_simple_touch_SOURCES = clients/simple-touch.c
452 weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
453 weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
455 weston_presentation_shm_SOURCES = clients/presentation-shm.c
456 nodist_weston_presentation_shm_SOURCES = \
457 protocol/presentation_timing-protocol.c \
458 protocol/presentation_timing-client-protocol.h
459 weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
460 weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
462 weston_multi_resource_SOURCES = clients/multi-resource.c
463 weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
464 weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm
467 if BUILD_SIMPLE_EGL_CLIENTS
468 demo_clients += weston-simple-egl
469 weston_simple_egl_SOURCES = clients/simple-egl.c
470 nodist_weston_simple_egl_SOURCES = \
471 protocol/xdg-shell-protocol.c \
472 protocol/xdg-shell-client-protocol.h \
473 protocol/ivi-application-protocol.c \
474 protocol/ivi-application-client-protocol.h
475 weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
476 weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
479 noinst_LTLIBRARIES += libtoytoolkit.la
481 libtoytoolkit_la_SOURCES = \
485 nodist_libtoytoolkit_la_SOURCES = \
486 protocol/text-cursor-position-protocol.c \
487 protocol/text-cursor-position-client-protocol.h \
488 protocol/scaler-protocol.c \
489 protocol/scaler-client-protocol.h \
490 protocol/workspaces-protocol.c \
491 protocol/workspaces-client-protocol.h \
492 protocol/presentation_timing-protocol.c \
493 protocol/presentation_timing-client-protocol.h \
494 protocol/xdg-shell-protocol.c \
495 protocol/xdg-shell-client-protocol.h \
496 protocol/ivi-application-protocol.c \
497 protocol/ivi-application-client-protocol.h
499 BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
502 libtoytoolkit_la_LIBADD = \
505 libshared-cairo.la -lrt -lm
506 libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
508 weston_flower_SOURCES = clients/flower.c
509 weston_flower_LDADD = libtoytoolkit.la
510 weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
512 weston_screenshooter_SOURCES = \
514 nodist_weston_screenshooter_SOURCES = \
515 protocol/screenshooter-protocol.c \
516 protocol/screenshooter-client-protocol.h
517 weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
518 weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
520 weston_terminal_SOURCES = clients/terminal.c
521 weston_terminal_LDADD = libtoytoolkit.la -lutil
522 weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
524 weston_image_SOURCES = clients/image.c
525 weston_image_LDADD = libtoytoolkit.la
526 weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
528 weston_cliptest_SOURCES = \
530 src/vertex-clipping.c \
531 src/vertex-clipping.h
532 weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
533 weston_cliptest_LDADD = libtoytoolkit.la
535 weston_dnd_SOURCES = clients/dnd.c
536 weston_dnd_LDADD = libtoytoolkit.la
537 weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
539 weston_smoke_SOURCES = clients/smoke.c
540 weston_smoke_LDADD = libtoytoolkit.la
541 weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
543 weston_resizor_SOURCES = clients/resizor.c
544 weston_resizor_LDADD = libtoytoolkit.la
545 weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
547 weston_scaler_SOURCES = clients/scaler.c
548 weston_scaler_LDADD = libtoytoolkit.la
549 weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
552 demo_clients += weston-nested weston-nested-client
554 weston_nested_SOURCES = clients/nested.c
555 weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
556 weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
558 weston_nested_client_SOURCES = clients/nested-client.c
559 weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
560 weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
563 weston_eventdemo_SOURCES = clients/eventdemo.c
564 weston_eventdemo_LDADD = libtoytoolkit.la
565 weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
567 weston_clickdot_SOURCES = clients/clickdot.c
568 weston_clickdot_LDADD = libtoytoolkit.la
569 weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
571 weston_transformed_SOURCES = clients/transformed.c
572 weston_transformed_LDADD = libtoytoolkit.la
573 weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
575 weston_fullscreen_SOURCES = clients/fullscreen.c
576 nodist_weston_fullscreen_SOURCES = \
577 protocol/fullscreen-shell-protocol.c \
578 protocol/fullscreen-shell-client-protocol.h
579 weston_fullscreen_LDADD = libtoytoolkit.la
580 weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
582 weston_stacking_SOURCES = clients/stacking.c
583 weston_stacking_LDADD = libtoytoolkit.la
584 weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
586 weston_calibrator_SOURCES = clients/calibrator.c \
589 weston_calibrator_LDADD = libtoytoolkit.la
590 weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
592 if BUILD_SUBSURFACES_CLIENT
593 demo_clients += weston-subsurfaces
594 weston_subsurfaces_SOURCES = clients/subsurfaces.c
595 weston_subsurfaces_CFLAGS = \
597 $(SIMPLE_EGL_CLIENT_CFLAGS) \
599 weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
603 demo_clients += weston-editor
604 weston_editor_SOURCES = clients/editor.c
605 nodist_weston_editor_SOURCES = \
606 protocol/text-protocol.c \
607 protocol/text-client-protocol.h
608 weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
609 weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
612 weston_keyboard_SOURCES = clients/keyboard.c
613 nodist_weston_keyboard_SOURCES = \
614 protocol/desktop-shell-client-protocol.h \
615 protocol/desktop-shell-protocol.c \
616 protocol/input-method-protocol.c \
617 protocol/input-method-client-protocol.h
618 weston_keyboard_LDADD = libtoytoolkit.la
619 weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
621 weston_simple_im_SOURCES = clients/weston-simple-im.c
622 nodist_weston_simple_im_SOURCES = \
623 protocol/input-method-protocol.c \
624 protocol/input-method-client-protocol.h
625 weston_simple_im_LDADD = $(CLIENT_LIBS)
626 weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
628 weston_info_SOURCES = clients/weston-info.c
629 nodist_weston_info_SOURCES = \
630 protocol/presentation_timing-protocol.c \
631 protocol/presentation_timing-client-protocol.h
632 weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
633 weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
635 weston_desktop_shell_SOURCES = clients/desktop-shell.c
636 nodist_weston_desktop_shell_SOURCES = \
637 protocol/desktop-shell-client-protocol.h \
638 protocol/desktop-shell-protocol.c
639 weston_desktop_shell_LDADD = libtoytoolkit.la
640 weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
643 weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
644 nodist_weston_ivi_shell_user_interface_SOURCES = \
645 protocol/ivi-hmi-controller-client-protocol.h \
646 protocol/ivi-hmi-controller-protocol.c \
647 protocol/ivi-application-client-protocol.h \
648 protocol/ivi-application-protocol.c
649 weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
650 weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
653 if BUILD_FULL_GL_CLIENTS
654 demo_clients += weston-gears
655 weston_gears_SOURCES = clients/gears.c
656 weston_gears_LDADD = libtoytoolkit.la
657 weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
660 libexec_PROGRAMS += weston-screensaver
661 weston_screensaver_SOURCES = \
662 clients/wscreensaver.c \
663 clients/wscreensaver.h \
664 clients/wscreensaver-glue.c \
665 clients/wscreensaver-glue.h \
668 nodist_weston_screensaver_SOURCES = \
669 protocol/desktop-shell-client-protocol.h \
670 protocol/desktop-shell-protocol.c
672 weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
673 weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
682 protocol/screenshooter-protocol.c \
683 protocol/screenshooter-client-protocol.h \
684 protocol/text-cursor-position-client-protocol.h \
685 protocol/text-cursor-position-protocol.c \
686 protocol/text-protocol.c \
687 protocol/text-client-protocol.h \
688 protocol/input-method-protocol.c \
689 protocol/input-method-client-protocol.h \
690 protocol/desktop-shell-client-protocol.h \
691 protocol/desktop-shell-protocol.c \
692 protocol/scaler-client-protocol.h \
693 protocol/scaler-protocol.c \
694 protocol/workspaces-client-protocol.h \
695 protocol/workspaces-protocol.c \
696 protocol/fullscreen-shell-protocol.c \
697 protocol/fullscreen-shell-client-protocol.h \
698 protocol/xdg-shell-protocol.c \
699 protocol/xdg-shell-client-protocol.h \
700 protocol/ivi-hmi-controller-protocol.c \
701 protocol/ivi-hmi-controller-client-protocol.h \
702 protocol/ivi-application-protocol.c \
703 protocol/ivi-application-client-protocol.h
705 westondatadir = $(datadir)/weston
706 dist_westondata_DATA = \
712 data/icon_window.png \
713 data/sign_close.png \
714 data/sign_maximize.png \
715 data/sign_minimize.png
718 dist_westondata_DATA += \
719 data/background.png \
721 data/fullscreen.png \
724 data/sidebyside.png \
726 data/icon_ivi_clickdot.png \
727 data/icon_ivi_flower.png \
728 data/icon_ivi_simple-egl.png \
729 data/icon_ivi_simple-shm.png \
730 data/icon_ivi_smoke.png
735 bin_PROGRAMS += wcap-decode
737 wcap_decode_SOURCES = \
742 wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
743 wcap_decode_LDADD = $(WCAP_LIBS)
747 if ENABLE_DESKTOP_SHELL
749 module_LTLIBRARIES += desktop-shell.la
751 desktop_shell_la_CPPFLAGS = \
752 -I$(top_builddir)/protocol \
753 -I$(top_srcdir)/shared \
754 -I$(top_srcdir)/src \
755 -I$(top_builddir)/src \
756 -I$(top_builddir)/desktop-shell \
757 -DDATADIR='"$(datadir)"' \
758 -DMODULEDIR='"$(moduledir)"' \
759 -DLIBEXECDIR='"$(libexecdir)"' \
762 desktop_shell_la_LDFLAGS = -module -avoid-version
763 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
764 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
765 desktop_shell_la_SOURCES = \
766 desktop-shell/shell.h \
767 desktop-shell/shell.c \
768 desktop-shell/exposay.c \
769 desktop-shell/input-panel.c
770 nodist_desktop_shell_la_SOURCES = \
771 protocol/desktop-shell-protocol.c \
772 protocol/desktop-shell-server-protocol.h \
773 protocol/xdg-shell-protocol.c \
774 protocol/xdg-shell-server-protocol.h
776 BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
779 if ENABLE_FULLSCREEN_SHELL
781 module_LTLIBRARIES += fullscreen-shell.la
783 fullscreen_shell_la_CPPFLAGS = \
784 -I$(top_builddir)/protocol \
785 -I$(top_srcdir)/shared \
786 -I$(top_srcdir)/src \
787 -I$(top_builddir)/src \
790 fullscreen_shell_la_LDFLAGS = -module -avoid-version
791 fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
792 fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
793 fullscreen_shell_la_SOURCES = \
794 fullscreen-shell/fullscreen-shell.c
795 nodist_fullscreen_shell_la_SOURCES = \
796 protocol/fullscreen-shell-protocol.c \
797 protocol/fullscreen-shell-server-protocol.h
799 BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
804 module_LTLIBRARIES += \
808 ivi_shell = ivi-shell.la
809 ivi_shell_la_LDFLAGS = -module -avoid-version
810 ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
811 ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
812 ivi_shell_la_SOURCES = \
813 ivi-shell/ivi-layout-export.h \
814 ivi-shell/ivi-layout-private.h \
815 ivi-shell/ivi-layout.c \
816 ivi-shell/ivi-layout-transition.c \
817 ivi-shell/ivi-shell.h \
818 ivi-shell/ivi-shell.c \
819 ivi-shell/input-panel-ivi.c
820 nodist_ivi_shell_la_SOURCES = \
821 protocol/ivi-application-protocol.c \
822 protocol/ivi-application-server-protocol.h
824 BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
826 hmi_controller = hmi-controller.la
827 hmi_controller_la_LDFLAGS = -module -avoid-version
828 hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
829 hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
830 hmi_controller_la_SOURCES = \
831 ivi-shell/ivi-layout-export.h \
832 ivi-shell/hmi-controller.c
833 nodist_hmi_controller_la_SOURCES = \
834 protocol/ivi-hmi-controller-protocol.c \
835 protocol/ivi-hmi-controller-server-protocol.h
837 BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
842 if ENABLE_SCREEN_SHARING
844 module_LTLIBRARIES += screen-share.la
846 screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
847 screen_share_la_LDFLAGS = -module -avoid-version
848 screen_share_la_LIBADD = \
850 $(SCREEN_SHARE_LIBS) \
852 screen_share_la_CFLAGS = \
853 $(COMPOSITOR_CFLAGS) \
854 $(SCREEN_SHARE_CFLAGS) \
856 screen_share_la_SOURCES = \
858 nodist_screen_share_la_SOURCES = \
859 protocol/fullscreen-shell-protocol.c \
860 protocol/fullscreen-shell-client-protocol.h
866 module_LTLIBRARIES += xwayland.la
868 xwayland_la_CPPFLAGS = \
869 -I$(top_builddir)/protocol \
870 -I$(top_srcdir)/shared \
871 -I$(top_srcdir)/src \
872 -I$(top_builddir)/src \
873 -I$(top_builddir)/xwayland \
874 -DDATADIR='"$(datadir)"' \
875 -DMODULEDIR='"$(moduledir)"' \
876 -DLIBEXECDIR='"$(libexecdir)"' \
877 -DXSERVER_PATH='"@XSERVER_PATH@"'
879 xwayland_la_LDFLAGS = -module -avoid-version
880 xwayland_la_LIBADD = \
882 $(top_builddir)/libshared-cairo.la
883 xwayland_la_CFLAGS = \
885 $(COMPOSITOR_CFLAGS) \
888 xwayland_la_SOURCES = \
889 xwayland/xwayland.h \
890 xwayland/window-manager.c \
891 xwayland/selection.c \
893 xwayland/launcher.c \
903 noinst_LTLIBRARIES += libshared.la libshared-cairo.la
905 libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
907 libshared_la_SOURCES = \
908 shared/config-parser.c \
909 shared/option-parser.c \
910 shared/config-parser.h \
913 shared/os-compatibility.c \
914 shared/os-compatibility.h
916 libshared_cairo_la_CFLAGS = \
917 -DDATADIR='"$(datadir)"' \
919 $(COMPOSITOR_CFLAGS) \
925 libshared_cairo_la_LIBADD = \
932 libshared_cairo_la_SOURCES = \
933 $(libshared_la_SOURCES) \
934 shared/image-loader.c \
935 shared/image-loader.h \
936 shared/cairo-util.c \
945 TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
948 internal-screenshot.weston
956 surface-global-test.la
964 presentation.weston \
971 $(ivi_tests) : $(builddir)/tests/weston-ivi.ini
973 AM_TESTS_ENVIRONMENT = \
974 abs_builddir='$(abs_builddir)'; export abs_builddir; \
975 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
977 TEST_EXTENSIONS = .la .weston
978 LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
979 WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
984 # To remove when automake 1.11 support is dropped
987 noinst_LTLIBRARIES += \
1001 test_module_ldflags = \
1002 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1004 surface_global_test_la_SOURCES = tests/surface-global-test.c
1005 surface_global_test_la_LDFLAGS = $(test_module_ldflags)
1006 surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1008 surface_test_la_SOURCES = tests/surface-test.c
1009 surface_test_la_LDFLAGS = $(test_module_ldflags)
1010 surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1012 weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1013 weston_test_la_LDFLAGS = $(test_module_ldflags)
1014 weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1015 weston_test_la_SOURCES = tests/weston-test.c
1016 nodist_weston_test_la_SOURCES = \
1017 protocol/weston-test-protocol.c \
1018 protocol/weston-test-server-protocol.h
1021 weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1022 weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1025 libtest_runner_la_SOURCES = \
1026 tests/weston-test-runner.c \
1027 tests/weston-test-runner.h
1028 libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1030 config_parser_test_SOURCES = tests/config-parser-test.c
1031 config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
1033 vertex_clip_test_SOURCES = \
1034 tests/vertex-clip-test.c \
1035 src/vertex-clipping.c \
1036 src/vertex-clipping.h
1037 vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
1039 libtest_client_la_SOURCES = \
1040 tests/weston-test-client-helper.c \
1041 tests/weston-test-client-helper.h
1042 nodist_libtest_client_la_SOURCES = \
1043 protocol/weston-test-protocol.c \
1044 protocol/weston-test-client-protocol.h
1045 libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1046 libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
1050 # Internal tests - tests functionality of the testsuite itself
1053 internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
1054 internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1055 internal_screenshot_weston_LDADD = libtest-client.la $(CAIRO_LIBS)
1062 bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
1063 bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1064 bad_buffer_weston_LDADD = libtest-client.la
1066 keyboard_weston_SOURCES = tests/keyboard-test.c
1067 keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1068 keyboard_weston_LDADD = libtest-client.la
1070 event_weston_SOURCES = tests/event-test.c
1071 event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1072 event_weston_LDADD = libtest-client.la
1074 button_weston_SOURCES = tests/button-test.c
1075 button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1076 button_weston_LDADD = libtest-client.la
1078 devices_weston_SOURCES = tests/devices-test.c
1079 devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1080 devices_weston_LDADD = libtest-client.la
1082 text_weston_SOURCES = tests/text-test.c
1083 nodist_text_weston_SOURCES = \
1084 protocol/text-protocol.c \
1085 protocol/text-client-protocol.h
1086 text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1087 text_weston_LDADD = libtest-client.la
1089 subsurface_weston_SOURCES = tests/subsurface-test.c
1090 subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1091 subsurface_weston_LDADD = libtest-client.la
1093 presentation_weston_SOURCES = tests/presentation-test.c
1094 nodist_presentation_weston_SOURCES = \
1095 protocol/presentation_timing-protocol.c \
1096 protocol/presentation_timing-client-protocol.h
1097 presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1098 presentation_weston_LDADD = libtest-client.la
1100 roles_weston_SOURCES = tests/roles-test.c
1101 roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1102 roles_weston_LDADD = libtest-client.la
1105 weston_tests += buffer-count.weston
1106 buffer_count_weston_SOURCES = tests/buffer-count-test.c
1107 buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1108 buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1111 if ENABLE_XWAYLAND_TEST
1112 weston_tests += xwayland-test.weston
1113 xwayland_test_weston_SOURCES = tests/xwayland-test.c
1114 xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1115 xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
1118 matrix_test_SOURCES = \
1119 tests/matrix-test.c \
1122 matrix_test_CPPFLAGS = -DUNIT_TEST
1123 matrix_test_LDADD = -lm -lrt
1127 ivi-layout-internal-test.la \
1130 ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1131 ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
1132 ivi_layout_internal_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1133 ivi_layout_internal_test_la_SOURCES = \
1134 tests/ivi_layout-internal-test.c
1136 ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1137 ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
1138 ivi_layout_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1139 ivi_layout_test_la_SOURCES = \
1140 tests/ivi_layout-test-plugin.c \
1142 nodist_ivi_layout_test_la_SOURCES = \
1143 protocol/weston-test-protocol.c \
1144 protocol/weston-test-server-protocol.h
1147 ivi-shell-app.weston
1149 ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1150 nodist_ivi_shell_app_weston_SOURCES = \
1151 protocol/ivi-application-protocol.c \
1152 protocol/ivi-application-client-protocol.h
1153 ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1154 ivi_shell_app_weston_LDADD = libtest-client.la
1156 noinst_PROGRAMS += ivi-layout.ivi
1158 ivi_layout_ivi_SOURCES = \
1159 tests/ivi_layout-test.c \
1161 nodist_ivi_layout_ivi_SOURCES = \
1162 protocol/ivi-application-protocol.c \
1163 protocol/ivi-application-client-protocol.h
1164 ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1165 ivi_layout_ivi_LDADD = libtest-client.la
1168 if BUILD_SETBACKLIGHT
1169 noinst_PROGRAMS += setbacklight
1170 setbacklight_SOURCES = \
1171 tests/setbacklight.c \
1172 src/libbacklight.c \
1174 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1175 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1179 tests/weston-tests-env \
1180 tests/internal-screenshot.ini \
1181 tests/reference/internal-screenshot-bad-00.png \
1182 tests/reference/internal-screenshot-good-00.png
1185 protocol/weston-test-protocol.c \
1186 protocol/weston-test-server-protocol.h \
1187 protocol/weston-test-client-protocol.h \
1188 protocol/text-protocol.c \
1189 protocol/text-client-protocol.h
1192 protocol/desktop-shell.xml \
1193 protocol/screenshooter.xml \
1195 protocol/input-method.xml \
1196 protocol/workspaces.xml \
1197 protocol/text-cursor-position.xml \
1198 protocol/weston-test.xml \
1199 protocol/xdg-shell.xml \
1200 protocol/fullscreen-shell.xml \
1201 protocol/presentation_timing.xml \
1202 protocol/scaler.xml \
1203 protocol/ivi-application.xml \
1204 protocol/ivi-hmi-controller.xml
1207 # manual test modules in tests subdirectory
1210 noinst_LTLIBRARIES += \
1211 surface-screenshot.la
1213 surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1214 surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
1215 surface_screenshot_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1216 surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1223 man_MANS = weston.1 weston.ini.5
1225 if ENABLE_DRM_COMPOSITOR
1226 man_MANS += weston-drm.7
1230 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1231 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1232 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1233 -e 's|__version__|$(PACKAGE_VERSION)|g'
1235 SUFFIXES = .1 .5 .7 .man
1237 %.1 %.5 %.7 : man/%.man
1238 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1242 man/weston-drm.man \
1245 CLEANFILES += $(man_MANS)
1248 protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1249 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1251 protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1252 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1254 protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1255 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@