1 ACLOCAL_AMFLAGS = -I m4
6 moduledir = $(libdir)/weston
11 # Do not run xwayland test while it is known broken.
12 AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install --disable-xwayland-test
14 EXTRA_DIST = weston.ini.in ivi-shell/weston.ini.in
16 weston.ini : $(srcdir)/weston.ini.in
18 -e 's|@bindir[@]|$(bindir)|g' \
19 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
20 -e 's|@libexecdir[@]|$(libexecdir)|g' \
23 ivi-shell/weston.ini : $(srcdir)/ivi-shell/weston.ini.in
25 -e 's|@bindir[@]|$(bindir)|g' \
26 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
27 -e 's|@libexecdir[@]|$(libexecdir)|g' \
30 all-local : weston.ini ivi-shell/weston.ini
32 AM_CFLAGS = $(GCC_CFLAGS)
36 -I$(top_builddir)/src \
37 -I$(top_builddir)/clients \
38 -I$(top_builddir)/tests \
39 -I$(top_srcdir)/shared \
40 -I$(top_builddir)/protocol \
41 -DDATADIR='"$(datadir)"' \
42 -DMODULEDIR='"$(moduledir)"' \
43 -DLIBEXECDIR='"$(libexecdir)"' \
44 -DBINDIR='"$(bindir)"'
46 CLEANFILES = weston.ini ivi-shell/weston.ini $(BUILT_SOURCES)
48 bin_PROGRAMS += weston
50 weston_LDFLAGS = -export-dynamic
51 weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
52 weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
53 weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
54 $(DLOPEN_LIBS) -lm libshared.la
70 src/pixman-renderer.c \
71 src/pixman-renderer.h \
77 nodist_weston_SOURCES = \
78 protocol/screenshooter-protocol.c \
79 protocol/screenshooter-server-protocol.h \
80 protocol/text-cursor-position-protocol.c \
81 protocol/text-cursor-position-server-protocol.h \
82 protocol/text-protocol.c \
83 protocol/text-server-protocol.h \
84 protocol/input-method-protocol.c \
85 protocol/input-method-server-protocol.h \
86 protocol/workspaces-protocol.c \
87 protocol/workspaces-server-protocol.h \
88 protocol/scaler-protocol.c \
89 protocol/scaler-server-protocol.h
91 BUILT_SOURCES += $(nodist_weston_SOURCES)
93 # Track this dependency explicitly instead of using BUILT_SOURCES. We
94 # add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
95 # in case we're building from tarballs.
97 src/compositor.c : $(top_builddir)/src/git-version.h
99 noinst_LTLIBRARIES += \
102 libsession_helper_la_SOURCES = \
103 src/weston-launch.h \
104 src/launcher-util.c \
106 libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
107 libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
110 if HAVE_SYSTEMD_LOGIN
111 libsession_helper_la_SOURCES += \
116 libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
117 libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
122 src/git-version.h : $(top_srcdir)/.git/logs/HEAD
123 $(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)')\"" > $@
126 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
132 if BUILD_WESTON_LAUNCH
133 bin_PROGRAMS += weston-launch
134 weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
135 weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
136 weston_launch_CFLAGS= \
139 $(SYSTEMD_LOGIN_CFLAGS) \
141 weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
143 if ENABLE_SETUID_INSTALL
145 chown root $(DESTDIR)$(bindir)/weston-launch
146 chmod u+s $(DESTDIR)$(bindir)/weston-launch
149 endif # BUILD_WESTON_LAUNCH
151 pkgconfigdir = $(libdir)/pkgconfig
152 pkgconfig_DATA = src/weston.pc
154 westonincludedir = $(includedir)/weston
155 westoninclude_HEADERS = \
159 shared/config-parser.h \
163 module_LTLIBRARIES += gl-renderer.la
164 gl_renderer_la_LDFLAGS = -module -avoid-version
165 gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
166 gl_renderer_la_CFLAGS = \
167 $(COMPOSITOR_CFLAGS) \
170 gl_renderer_la_SOURCES = \
173 src/vertex-clipping.c \
174 src/vertex-clipping.h
177 if ENABLE_X11_COMPOSITOR
178 module_LTLIBRARIES += x11-backend.la
179 x11_backend_la_LDFLAGS = -module -avoid-version
180 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
182 x11_backend_la_CFLAGS = \
183 $(COMPOSITOR_CFLAGS) \
187 $(X11_COMPOSITOR_CFLAGS) \
189 x11_backend_la_SOURCES = src/compositor-x11.c
192 INPUT_BACKEND_SOURCES = src/udev-input.h
194 if ENABLE_LIBINPUT_BACKEND
195 INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
196 INPUT_BACKEND_SOURCES += \
197 src/libinput-seat.c \
198 src/libinput-seat.h \
199 src/libinput-device.c \
200 src/libinput-device.h
202 INPUT_BACKEND_SOURCES += \
212 if ENABLE_DRM_COMPOSITOR
213 module_LTLIBRARIES += drm-backend.la
214 drm_backend_la_LDFLAGS = -module -avoid-version
215 drm_backend_la_LIBADD = \
217 $(DRM_COMPOSITOR_LIBS) \
218 $(INPUT_BACKEND_LIBS) \
221 drm_backend_la_CFLAGS = \
222 $(COMPOSITOR_CFLAGS) \
224 $(DRM_COMPOSITOR_CFLAGS) \
226 drm_backend_la_SOURCES = \
227 src/compositor-drm.c \
228 $(INPUT_BACKEND_SOURCES) \
232 if ENABLE_VAAPI_RECORDER
233 drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
234 drm_backend_la_LIBADD += $(LIBVA_LIBS)
235 drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
239 if ENABLE_WAYLAND_COMPOSITOR
240 module_LTLIBRARIES += wayland-backend.la
241 wayland_backend_la_LDFLAGS = -module -avoid-version
242 wayland_backend_la_LIBADD = \
244 $(WAYLAND_COMPOSITOR_LIBS) \
246 wayland_backend_la_CFLAGS = \
247 $(COMPOSITOR_CFLAGS) \
251 $(WAYLAND_COMPOSITOR_CFLAGS) \
253 wayland_backend_la_SOURCES = src/compositor-wayland.c
254 nodist_wayland_backend_la_SOURCES = \
255 protocol/fullscreen-shell-protocol.c \
256 protocol/fullscreen-shell-client-protocol.h
259 if ENABLE_RPI_COMPOSITOR
260 if INSTALL_RPI_COMPOSITOR
261 module_LTLIBRARIES += rpi-backend.la
263 noinst_LTLIBRARIES += rpi-backend.la
266 rpi_backend_la_LDFLAGS = -module -avoid-version
267 rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
268 $(RPI_COMPOSITOR_LIBS) \
269 $(RPI_BCM_HOST_LIBS) \
270 $(INPUT_BACKEND_LIBS) \
271 libsession-helper.la \
273 rpi_backend_la_CFLAGS = \
275 $(COMPOSITOR_CFLAGS) \
276 $(RPI_COMPOSITOR_CFLAGS) \
277 $(RPI_BCM_HOST_CFLAGS)
278 rpi_backend_la_SOURCES = \
279 src/compositor-rpi.c \
282 src/rpi-bcm-stubs.h \
283 $(INPUT_BACKEND_SOURCES)
286 rpi_backend_la_LIBADD += $(EGL_LIBS)
287 rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
292 if ENABLE_HEADLESS_COMPOSITOR
293 module_LTLIBRARIES += headless-backend.la
294 headless_backend_la_LDFLAGS = -module -avoid-version
295 headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
296 headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
297 headless_backend_la_SOURCES = src/compositor-headless.c
300 if ENABLE_FBDEV_COMPOSITOR
301 module_LTLIBRARIES += fbdev-backend.la
302 fbdev_backend_la_LDFLAGS = -module -avoid-version
303 fbdev_backend_la_LIBADD = \
305 $(FBDEV_COMPOSITOR_LIBS) \
306 $(INPUT_BACKEND_LIBS) \
307 libsession-helper.la \
309 fbdev_backend_la_CFLAGS = \
310 $(COMPOSITOR_CFLAGS) \
312 $(FBDEV_COMPOSITOR_CFLAGS) \
315 fbdev_backend_la_SOURCES = \
316 src/compositor-fbdev.c \
317 $(INPUT_BACKEND_SOURCES)
320 if ENABLE_RDP_COMPOSITOR
321 module_LTLIBRARIES += rdp-backend.la
322 rdp_backend_la_LDFLAGS = -module -avoid-version
323 rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
324 $(RDP_COMPOSITOR_LIBS) \
326 rdp_backend_la_CFLAGS = \
327 $(COMPOSITOR_CFLAGS) \
328 $(RDP_COMPOSITOR_CFLAGS) \
330 rdp_backend_la_SOURCES = src/compositor-rdp.c
334 module_LTLIBRARIES += cms-static.la
335 cms_static_la_LDFLAGS = -module -avoid-version
336 cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
337 cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
338 cms_static_la_SOURCES = \
343 module_LTLIBRARIES += cms-colord.la
344 cms_colord_la_LDFLAGS = -module -avoid-version
345 cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
346 cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
347 cms_colord_la_SOURCES = \
354 noinst_PROGRAMS += spring-tool
355 spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
356 spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
357 spring_tool_SOURCES = \
366 bin_PROGRAMS += weston-terminal weston-info
368 libexec_PROGRAMS += \
369 weston-desktop-shell \
370 weston-screenshooter \
375 libexec_PROGRAMS += \
376 weston-ivi-shell-user-interface
394 if INSTALL_DEMO_CLIENTS
395 bin_PROGRAMS += $(demo_clients)
397 noinst_PROGRAMS += $(demo_clients)
401 if BUILD_SIMPLE_CLIENTS
404 weston-simple-damage \
405 weston-simple-touch \
406 weston-multi-resource
408 weston_simple_shm_SOURCES = clients/simple-shm.c
409 nodist_weston_simple_shm_SOURCES = \
410 protocol/xdg-shell-protocol.c \
411 protocol/xdg-shell-client-protocol.h \
412 protocol/fullscreen-shell-protocol.c \
413 protocol/fullscreen-shell-client-protocol.h \
414 protocol/ivi-application-protocol.c \
415 protocol/ivi-application-client-protocol.h
416 weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
417 weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
419 weston_simple_damage_SOURCES = clients/simple-damage.c
420 nodist_weston_simple_damage_SOURCES = \
421 protocol/scaler-protocol.c \
422 protocol/scaler-client-protocol.h \
423 protocol/xdg-shell-protocol.c \
424 protocol/xdg-shell-client-protocol.h \
425 protocol/fullscreen-shell-protocol.c \
426 protocol/fullscreen-shell-client-protocol.h
427 weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
428 weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
430 weston_simple_touch_SOURCES = clients/simple-touch.c
431 weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
432 weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
434 weston_multi_resource_SOURCES = clients/multi-resource.c
435 weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
436 weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
439 if BUILD_SIMPLE_EGL_CLIENTS
440 demo_clients += weston-simple-egl
441 weston_simple_egl_SOURCES = clients/simple-egl.c
442 nodist_weston_simple_egl_SOURCES = \
443 protocol/xdg-shell-protocol.c \
444 protocol/xdg-shell-client-protocol.h \
445 protocol/ivi-application-protocol.c \
446 protocol/ivi-application-client-protocol.h
447 weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
448 weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
451 noinst_LTLIBRARIES += libtoytoolkit.la
453 libtoytoolkit_la_SOURCES = \
457 nodist_libtoytoolkit_la_SOURCES = \
458 protocol/text-cursor-position-protocol.c \
459 protocol/text-cursor-position-client-protocol.h \
460 protocol/scaler-protocol.c \
461 protocol/scaler-client-protocol.h \
462 protocol/workspaces-protocol.c \
463 protocol/workspaces-client-protocol.h \
464 protocol/xdg-shell-protocol.c \
465 protocol/xdg-shell-client-protocol.h \
466 protocol/ivi-application-protocol.c \
467 protocol/ivi-application-client-protocol.h
469 BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
472 libtoytoolkit_la_LIBADD = \
475 libshared-cairo.la -lrt -lm
476 libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
478 weston_flower_SOURCES = clients/flower.c
479 weston_flower_LDADD = libtoytoolkit.la
480 weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
482 weston_screenshooter_SOURCES = \
484 nodist_weston_screenshooter_SOURCES = \
485 protocol/screenshooter-protocol.c \
486 protocol/screenshooter-client-protocol.h
487 weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
488 weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
490 weston_terminal_SOURCES = clients/terminal.c
491 weston_terminal_LDADD = libtoytoolkit.la -lutil
492 weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
494 weston_image_SOURCES = clients/image.c
495 weston_image_LDADD = libtoytoolkit.la
496 weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
498 weston_cliptest_SOURCES = \
500 src/vertex-clipping.c \
501 src/vertex-clipping.h
502 weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
503 weston_cliptest_LDADD = libtoytoolkit.la
505 weston_dnd_SOURCES = clients/dnd.c
506 weston_dnd_LDADD = libtoytoolkit.la
507 weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
509 weston_smoke_SOURCES = clients/smoke.c
510 weston_smoke_LDADD = libtoytoolkit.la
511 weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
513 weston_resizor_SOURCES = clients/resizor.c
514 weston_resizor_LDADD = libtoytoolkit.la
515 weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
517 weston_scaler_SOURCES = clients/scaler.c
518 weston_scaler_LDADD = libtoytoolkit.la
519 weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
522 demo_clients += weston-nested weston-nested-client
524 weston_nested_SOURCES = clients/nested.c
525 weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
526 weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
528 weston_nested_client_SOURCES = clients/nested-client.c
529 weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
530 weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
533 weston_eventdemo_SOURCES = clients/eventdemo.c
534 weston_eventdemo_LDADD = libtoytoolkit.la
535 weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
537 weston_clickdot_SOURCES = clients/clickdot.c
538 weston_clickdot_LDADD = libtoytoolkit.la
539 weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
541 weston_transformed_SOURCES = clients/transformed.c
542 weston_transformed_LDADD = libtoytoolkit.la
543 weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
545 weston_fullscreen_SOURCES = clients/fullscreen.c
546 nodist_weston_fullscreen_SOURCES = \
547 protocol/fullscreen-shell-protocol.c \
548 protocol/fullscreen-shell-client-protocol.h
549 weston_fullscreen_LDADD = libtoytoolkit.la
550 weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
552 weston_stacking_SOURCES = clients/stacking.c
553 weston_stacking_LDADD = libtoytoolkit.la
554 weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
556 weston_calibrator_SOURCES = clients/calibrator.c \
559 weston_calibrator_LDADD = libtoytoolkit.la
560 weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
562 if BUILD_SUBSURFACES_CLIENT
563 demo_clients += weston-subsurfaces
564 weston_subsurfaces_SOURCES = clients/subsurfaces.c
565 weston_subsurfaces_CFLAGS = \
567 $(SIMPLE_EGL_CLIENT_CFLAGS) \
569 weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
573 demo_clients += weston-editor
574 weston_editor_SOURCES = clients/editor.c
575 nodist_weston_editor_SOURCES = \
576 protocol/text-protocol.c \
577 protocol/text-client-protocol.h
578 weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
579 weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
582 weston_keyboard_SOURCES = clients/keyboard.c
583 nodist_weston_keyboard_SOURCES = \
584 protocol/desktop-shell-client-protocol.h \
585 protocol/desktop-shell-protocol.c \
586 protocol/input-method-protocol.c \
587 protocol/input-method-client-protocol.h
588 weston_keyboard_LDADD = libtoytoolkit.la
589 weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
591 weston_simple_im_SOURCES = clients/weston-simple-im.c
592 nodist_weston_simple_im_SOURCES = \
593 protocol/input-method-protocol.c \
594 protocol/input-method-client-protocol.h
595 weston_simple_im_LDADD = $(CLIENT_LIBS)
596 weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
598 weston_info_SOURCES = clients/weston-info.c
599 weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
600 weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
602 weston_desktop_shell_SOURCES = clients/desktop-shell.c
603 nodist_weston_desktop_shell_SOURCES = \
604 protocol/desktop-shell-client-protocol.h \
605 protocol/desktop-shell-protocol.c
606 weston_desktop_shell_LDADD = libtoytoolkit.la
607 weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
610 weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
611 nodist_weston_ivi_shell_user_interface_SOURCES = \
612 protocol/ivi-hmi-controller-client-protocol.h \
613 protocol/ivi-hmi-controller-protocol.c \
614 protocol/ivi-application-client-protocol.h \
615 protocol/ivi-application-protocol.c
616 weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
617 weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
620 if BUILD_FULL_GL_CLIENTS
621 demo_clients += weston-gears
622 weston_gears_SOURCES = clients/gears.c
623 weston_gears_LDADD = libtoytoolkit.la
624 weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
627 libexec_PROGRAMS += weston-screensaver
628 weston_screensaver_SOURCES = \
629 clients/wscreensaver.c \
630 clients/wscreensaver.h \
631 clients/wscreensaver-glue.c \
632 clients/wscreensaver-glue.h \
635 nodist_weston_screensaver_SOURCES = \
636 protocol/desktop-shell-client-protocol.h \
637 protocol/desktop-shell-protocol.c
639 weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
640 weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
649 protocol/screenshooter-protocol.c \
650 protocol/screenshooter-client-protocol.h \
651 protocol/text-cursor-position-client-protocol.h \
652 protocol/text-cursor-position-protocol.c \
653 protocol/text-protocol.c \
654 protocol/text-client-protocol.h \
655 protocol/input-method-protocol.c \
656 protocol/input-method-client-protocol.h \
657 protocol/desktop-shell-client-protocol.h \
658 protocol/desktop-shell-protocol.c \
659 protocol/scaler-client-protocol.h \
660 protocol/scaler-protocol.c \
661 protocol/workspaces-client-protocol.h \
662 protocol/workspaces-protocol.c \
663 protocol/fullscreen-shell-protocol.c \
664 protocol/fullscreen-shell-client-protocol.h \
665 protocol/xdg-shell-protocol.c \
666 protocol/xdg-shell-client-protocol.h \
667 protocol/ivi-hmi-controller-protocol.c \
668 protocol/ivi-hmi-controller-client-protocol.h \
669 protocol/ivi-application-protocol.c \
670 protocol/ivi-application-client-protocol.h
672 westondatadir = $(datadir)/weston
673 dist_westondata_DATA = \
679 data/icon_window.png \
680 data/sign_close.png \
681 data/sign_maximize.png \
682 data/sign_minimize.png \
683 data/background.png \
685 data/fullscreen.png \
688 data/sidebyside.png \
690 data/icon_ivi_clickdot.png \
691 data/icon_ivi_flower.png \
692 data/icon_ivi_simple-egl.png \
693 data/icon_ivi_simple-shm.png \
694 data/icon_ivi_smoke.png
698 bin_PROGRAMS += wcap-decode
700 wcap_decode_SOURCES = \
705 wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
706 wcap_decode_LDADD = $(WCAP_LIBS)
710 if ENABLE_DESKTOP_SHELL
712 module_LTLIBRARIES += desktop-shell.la
714 desktop_shell_la_CPPFLAGS = \
715 -I$(top_builddir)/protocol \
716 -I$(top_srcdir)/shared \
717 -I$(top_srcdir)/src \
718 -I$(top_builddir)/src \
719 -I$(top_builddir)/desktop-shell \
720 -DDATADIR='"$(datadir)"' \
721 -DMODULEDIR='"$(moduledir)"' \
722 -DLIBEXECDIR='"$(libexecdir)"' \
725 desktop_shell_la_LDFLAGS = -module -avoid-version
726 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
727 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
728 desktop_shell_la_SOURCES = \
729 desktop-shell/shell.h \
730 desktop-shell/shell.c \
731 desktop-shell/exposay.c \
732 desktop-shell/input-panel.c
733 nodist_desktop_shell_la_SOURCES = \
734 protocol/desktop-shell-protocol.c \
735 protocol/desktop-shell-server-protocol.h \
736 protocol/xdg-shell-protocol.c \
737 protocol/xdg-shell-server-protocol.h
739 BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
742 if ENABLE_FULLSCREEN_SHELL
744 module_LTLIBRARIES += fullscreen-shell.la
746 fullscreen_shell_la_CPPFLAGS = \
747 -I$(top_builddir)/protocol \
748 -I$(top_srcdir)/shared \
749 -I$(top_srcdir)/src \
750 -I$(top_builddir)/src \
753 fullscreen_shell_la_LDFLAGS = -module -avoid-version
754 fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
755 fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
756 fullscreen_shell_la_SOURCES = \
757 fullscreen-shell/fullscreen-shell.c
758 nodist_fullscreen_shell_la_SOURCES = \
759 protocol/fullscreen-shell-protocol.c \
760 protocol/fullscreen-shell-server-protocol.h
762 BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
767 module_LTLIBRARIES += \
772 ivi_layout = ivi-layout.la
773 ivi_layout_la_LDFLAGS = -module -avoid-version
774 ivi_layout_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
775 ivi_layout_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
776 ivi_layout_la_SOURCES = \
777 ivi-shell/ivi-layout-export.h \
778 ivi-shell/ivi-layout-private.h \
779 ivi-shell/ivi-layout.c \
780 ivi-shell/ivi-layout-transition.c
782 ivi_shell = ivi-shell.la
783 ivi_shell_la_LDFLAGS = -module -avoid-version
784 ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
785 ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
786 ivi_shell_la_SOURCES = \
787 ivi-shell/ivi-shell.h \
788 ivi-shell/ivi-shell.c \
789 ivi-shell/ivi-layout-private.h
790 nodist_ivi_shell_la_SOURCES = \
791 protocol/ivi-application-protocol.c \
792 protocol/ivi-application-server-protocol.h
794 BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
796 hmi_controller = hmi-controller.la
797 hmi_controller_la_LDFLAGS = -module -avoid-version
798 hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
799 hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
800 hmi_controller_la_SOURCES = \
801 ivi-shell/ivi-layout-export.h \
802 ivi-shell/hmi-controller.c
803 nodist_hmi_controller_la_SOURCES = \
804 protocol/ivi-hmi-controller-protocol.c \
805 protocol/ivi-hmi-controller-server-protocol.h
807 BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
812 if ENABLE_SCREEN_SHARING
814 module_LTLIBRARIES += screen-share.la
816 screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
817 screen_share_la_LDFLAGS = -module -avoid-version
818 screen_share_la_LIBADD = \
820 $(SCREEN_SHARE_LIBS) \
822 screen_share_la_CFLAGS = \
823 $(COMPOSITOR_CFLAGS) \
824 $(SCREEN_SHARE_CFLAGS) \
826 screen_share_la_SOURCES = \
828 nodist_screen_share_la_SOURCES = \
829 protocol/fullscreen-shell-protocol.c \
830 protocol/fullscreen-shell-client-protocol.h
836 module_LTLIBRARIES += xwayland.la
838 xwayland_la_CPPFLAGS = \
839 -I$(top_builddir)/protocol \
840 -I$(top_srcdir)/shared \
841 -I$(top_srcdir)/src \
842 -I$(top_builddir)/src \
843 -I$(top_builddir)/xwayland \
844 -DDATADIR='"$(datadir)"' \
845 -DMODULEDIR='"$(moduledir)"' \
846 -DLIBEXECDIR='"$(libexecdir)"' \
847 -DXSERVER_PATH='"@XSERVER_PATH@"'
849 xwayland_la_LDFLAGS = -module -avoid-version
850 xwayland_la_LIBADD = \
852 $(top_builddir)/libshared-cairo.la
853 xwayland_la_CFLAGS = \
855 $(COMPOSITOR_CFLAGS) \
858 xwayland_la_SOURCES = \
859 xwayland/xwayland.h \
860 xwayland/window-manager.c \
861 xwayland/selection.c \
863 xwayland/launcher.c \
873 noinst_LTLIBRARIES += libshared.la libshared-cairo.la
875 libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
877 libshared_la_SOURCES = \
878 shared/config-parser.c \
879 shared/option-parser.c \
880 shared/config-parser.h \
883 shared/os-compatibility.c \
884 shared/os-compatibility.h
886 libshared_cairo_la_CFLAGS = \
887 -DDATADIR='"$(datadir)"' \
889 $(COMPOSITOR_CFLAGS) \
895 libshared_cairo_la_LIBADD = \
902 libshared_cairo_la_SOURCES = \
903 $(libshared_la_SOURCES) \
904 shared/image-loader.c \
905 shared/image-loader.h \
906 shared/cairo-util.c \
915 TESTS = $(shared_tests) $(module_tests) $(weston_tests)
924 surface-global-test.la
935 AM_TESTS_ENVIRONMENT = \
936 abs_builddir='$(abs_builddir)'; export abs_builddir;
938 TEST_EXTENSIONS = .la .weston
939 LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
940 WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
945 # To remove when automake 1.11 support is dropped
948 noinst_LTLIBRARIES += \
960 test_module_ldflags = \
961 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
963 surface_global_test_la_SOURCES = tests/surface-global-test.c
964 surface_global_test_la_LDFLAGS = $(test_module_ldflags)
965 surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
967 surface_test_la_SOURCES = tests/surface-test.c
968 surface_test_la_LDFLAGS = $(test_module_ldflags)
969 surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
971 weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
972 weston_test_la_LDFLAGS = $(test_module_ldflags)
973 weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
974 weston_test_la_SOURCES = tests/weston-test.c
975 nodist_weston_test_la_SOURCES = \
976 protocol/wayland-test-protocol.c \
977 protocol/wayland-test-server-protocol.h
980 weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
981 weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
984 libtest_runner_la_SOURCES = \
985 tests/weston-test-runner.c \
986 tests/weston-test-runner.h
987 libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
989 config_parser_test_SOURCES = tests/config-parser-test.c
990 config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
992 strutil_test_SOURCES = tests/strutil-test.c
993 strutil_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
995 vertex_clip_test_SOURCES = \
996 tests/vertex-clip-test.c \
997 src/vertex-clipping.c \
998 src/vertex-clipping.h
999 vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
1001 libtest_client_la_SOURCES = \
1002 tests/weston-test-client-helper.c \
1003 tests/weston-test-client-helper.h
1004 nodist_libtest_client_la_SOURCES = \
1005 protocol/wayland-test-protocol.c \
1006 protocol/wayland-test-client-protocol.h
1007 libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1008 libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
1010 bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
1011 bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1012 bad_buffer_weston_LDADD = libtest-client.la
1014 keyboard_weston_SOURCES = tests/keyboard-test.c
1015 keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1016 keyboard_weston_LDADD = libtest-client.la
1018 event_weston_SOURCES = tests/event-test.c
1019 event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1020 event_weston_LDADD = libtest-client.la
1022 button_weston_SOURCES = tests/button-test.c
1023 button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1024 button_weston_LDADD = libtest-client.la
1026 text_weston_SOURCES = tests/text-test.c
1027 nodist_text_weston_SOURCES = \
1028 protocol/text-protocol.c \
1029 protocol/text-client-protocol.h
1030 text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1031 text_weston_LDADD = libtest-client.la
1033 subsurface_weston_SOURCES = tests/subsurface-test.c
1034 subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1035 subsurface_weston_LDADD = libtest-client.la
1038 weston_tests += buffer-count.weston
1039 buffer_count_weston_SOURCES = tests/buffer-count-test.c
1040 buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1041 buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1044 if ENABLE_XWAYLAND_TEST
1045 weston_tests += xwayland-test.weston
1046 xwayland_test_weston_SOURCES = tests/xwayland-test.c
1047 xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1048 xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
1051 matrix_test_SOURCES = \
1052 tests/matrix-test.c \
1055 matrix_test_CPPFLAGS = -DUNIT_TEST
1056 matrix_test_LDADD = -lm -lrt
1058 if BUILD_SETBACKLIGHT
1059 noinst_PROGRAMS += setbacklight
1060 setbacklight_SOURCES = \
1061 tests/setbacklight.c \
1064 src/libbacklight.c \
1066 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1067 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1070 EXTRA_DIST += tests/weston-tests-env
1073 protocol/wayland-test-protocol.c \
1074 protocol/wayland-test-server-protocol.h \
1075 protocol/wayland-test-client-protocol.h \
1076 protocol/text-protocol.c \
1077 protocol/text-client-protocol.h
1080 protocol/desktop-shell.xml \
1081 protocol/screenshooter.xml \
1083 protocol/input-method.xml \
1084 protocol/workspaces.xml \
1085 protocol/text-cursor-position.xml \
1086 protocol/wayland-test.xml \
1087 protocol/xdg-shell.xml \
1088 protocol/fullscreen-shell.xml \
1089 protocol/scaler.xml \
1090 protocol/ivi-application.xml \
1091 protocol/ivi-hmi-controller.xml
1093 man_MANS = weston.1 weston.ini.5
1095 if ENABLE_DRM_COMPOSITOR
1096 man_MANS += weston-drm.7
1100 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1101 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1102 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1103 -e 's|__version__|$(PACKAGE_VERSION)|g'
1105 SUFFIXES = .1 .5 .7 .man
1107 %.1 %.5 %.7 : man/%.man
1108 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1112 man/weston-drm.man \
1115 CLEANFILES += $(man_MANS)
1118 protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1119 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1121 protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1122 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1124 protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1125 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@