4 moduledir = $(libdir)/weston
9 DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
11 EXTRA_DIST = weston.ini.in
13 weston.ini : $(srcdir)/weston.ini.in
15 -e 's|@bindir[@]|$(bindir)|g' \
16 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
17 -e 's|@libexecdir[@]|$(libexecdir)|g' \
20 all-local : weston.ini
22 AM_CFLAGS = $(GCC_CFLAGS)
26 -I$(top_builddir)/src \
27 -I$(top_builddir)/clients \
28 -I$(top_builddir)/tests \
29 -I$(top_srcdir)/shared \
30 -DDATADIR='"$(datadir)"' \
31 -DMODULEDIR='"$(moduledir)"' \
32 -DLIBEXECDIR='"$(libexecdir)"' \
33 -DBINDIR='"$(bindir)"'
35 CLEANFILES = weston.ini $(BUILT_SOURCES)
37 bin_PROGRAMS += weston
39 weston_LDFLAGS = -export-dynamic
40 weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
41 weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
42 weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
43 $(DLOPEN_LIBS) -lm libshared.la
55 src/screenshooter-protocol.c \
56 src/screenshooter-server-protocol.h \
58 src/text-cursor-position-protocol.c \
59 src/text-cursor-position-server-protocol.h \
63 src/text-server-protocol.h \
64 src/input-method-protocol.c \
65 src/input-method-server-protocol.h \
66 src/workspaces-protocol.c \
67 src/workspaces-server-protocol.h \
68 src/scaler-protocol.c \
69 src/scaler-server-protocol.h \
73 src/pixman-renderer.c \
74 src/pixman-renderer.h \
80 # Track this dependency explicitly instead of using BUILT_SOURCES. We
81 # add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
82 # in case we're building from tarballs.
84 src/compositor.c : $(top_builddir)/src/git-version.h
86 noinst_LTLIBRARIES += \
89 libsession_helper_la_SOURCES = \
93 libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
94 libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
98 libsession_helper_la_SOURCES += \
103 libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
104 libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
109 src/git-version.h : $(top_srcdir)/.git/logs/HEAD
110 $(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)')\"" > $@
115 if BUILD_WESTON_LAUNCH
116 bin_PROGRAMS += weston-launch
117 weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
118 weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
119 weston_launch_CFLAGS= \
122 $(SYSTEMD_LOGIN_CFLAGS) \
124 weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
126 if ENABLE_SETUID_INSTALL
128 chown root $(DESTDIR)$(bindir)/weston-launch
129 chmod u+s $(DESTDIR)$(bindir)/weston-launch
132 endif # BUILD_WESTON_LAUNCH
134 pkgconfigdir = $(libdir)/pkgconfig
135 pkgconfig_DATA = src/weston.pc
137 westonincludedir = $(includedir)/weston
138 westoninclude_HEADERS = \
142 shared/config-parser.h \
146 module_LTLIBRARIES += gl-renderer.la
147 gl_renderer_la_LDFLAGS = -module -avoid-version
148 gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
149 gl_renderer_la_CFLAGS = \
150 $(COMPOSITOR_CFLAGS) \
153 gl_renderer_la_SOURCES = \
156 src/vertex-clipping.c \
157 src/vertex-clipping.h
160 if ENABLE_X11_COMPOSITOR
161 module_LTLIBRARIES += x11-backend.la
162 x11_backend_la_LDFLAGS = -module -avoid-version
163 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
165 x11_backend_la_CFLAGS = \
166 $(COMPOSITOR_CFLAGS) \
170 $(X11_COMPOSITOR_CFLAGS) \
172 x11_backend_la_SOURCES = src/compositor-x11.c
175 if ENABLE_DRM_COMPOSITOR
176 module_LTLIBRARIES += drm-backend.la
177 drm_backend_la_LDFLAGS = -module -avoid-version
178 drm_backend_la_LIBADD = \
180 $(DRM_COMPOSITOR_LIBS) \
183 drm_backend_la_CFLAGS = \
184 $(COMPOSITOR_CFLAGS) \
186 $(DRM_COMPOSITOR_CFLAGS) \
188 drm_backend_la_SOURCES = \
189 src/compositor-drm.c \
194 src/evdev-touchpad.c \
198 if ENABLE_VAAPI_RECORDER
199 drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
200 drm_backend_la_LIBADD += $(LIBVA_LIBS)
201 drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
205 if ENABLE_WAYLAND_COMPOSITOR
206 module_LTLIBRARIES += wayland-backend.la
207 wayland_backend_la_LDFLAGS = -module -avoid-version
208 wayland_backend_la_LIBADD = \
210 $(WAYLAND_COMPOSITOR_LIBS) \
212 wayland_backend_la_CFLAGS = \
213 $(COMPOSITOR_CFLAGS) \
217 $(WAYLAND_COMPOSITOR_CFLAGS) \
219 wayland_backend_la_SOURCES = src/compositor-wayland.c
222 if ENABLE_RPI_COMPOSITOR
223 if INSTALL_RPI_COMPOSITOR
224 module_LTLIBRARIES += rpi-backend.la
226 noinst_LTLIBRARIES += rpi-backend.la
229 rpi_backend_la_LDFLAGS = -module -avoid-version
230 rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
231 $(RPI_COMPOSITOR_LIBS) \
232 $(RPI_BCM_HOST_LIBS) \
233 libsession-helper.la \
235 rpi_backend_la_CFLAGS = \
237 $(COMPOSITOR_CFLAGS) \
238 $(RPI_COMPOSITOR_CFLAGS) \
239 $(RPI_BCM_HOST_CFLAGS)
240 rpi_backend_la_SOURCES = \
241 src/compositor-rpi.c \
244 src/rpi-bcm-stubs.h \
252 rpi_backend_la_LIBADD += $(EGL_LIBS)
253 rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
258 if ENABLE_HEADLESS_COMPOSITOR
259 module_LTLIBRARIES += headless-backend.la
260 headless_backend_la_LDFLAGS = -module -avoid-version
261 headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
263 headless_backend_la_CFLAGS = \
264 $(COMPOSITOR_CFLAGS) \
266 headless_backend_la_SOURCES = src/compositor-headless.c
269 if ENABLE_FBDEV_COMPOSITOR
270 module_LTLIBRARIES += fbdev-backend.la
271 fbdev_backend_la_LDFLAGS = -module -avoid-version
272 fbdev_backend_la_LIBADD = \
274 $(FBDEV_COMPOSITOR_LIBS) \
275 libsession-helper.la \
277 fbdev_backend_la_CFLAGS = \
278 $(COMPOSITOR_CFLAGS) \
280 $(FBDEV_COMPOSITOR_CFLAGS) \
283 fbdev_backend_la_SOURCES = \
284 src/compositor-fbdev.c \
292 if ENABLE_RDP_COMPOSITOR
293 module_LTLIBRARIES += rdp-backend.la
294 rdp_backend_la_LDFLAGS = -module -avoid-version
295 rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
296 $(RDP_COMPOSITOR_LIBS) \
298 rdp_backend_la_CFLAGS = \
299 $(COMPOSITOR_CFLAGS) \
300 $(RDP_COMPOSITOR_CFLAGS) \
302 rdp_backend_la_SOURCES = src/compositor-rdp.c
306 module_LTLIBRARIES += cms-static.la
307 cms_static_la_LDFLAGS = -module -avoid-version
308 cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
309 cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
310 cms_static_la_SOURCES = \
315 module_LTLIBRARIES += cms-colord.la
316 cms_colord_la_LDFLAGS = -module -avoid-version
317 cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
318 cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
319 cms_colord_la_SOURCES = \
326 noinst_PROGRAMS += spring-tool
327 spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
328 spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
329 spring_tool_SOURCES = \
337 src/screenshooter-server-protocol.h \
338 src/screenshooter-protocol.c \
339 src/text-cursor-position-server-protocol.h \
340 src/text-cursor-position-protocol.c \
341 src/text-protocol.c \
342 src/text-server-protocol.h \
343 src/input-method-protocol.c \
344 src/input-method-server-protocol.h \
345 src/workspaces-server-protocol.h \
346 src/workspaces-protocol.c \
347 src/scaler-server-protocol.h \
348 src/scaler-protocol.c
352 bin_PROGRAMS += weston-terminal weston-info
354 libexec_PROGRAMS += \
355 weston-desktop-shell \
356 weston-screenshooter \
375 if INSTALL_DEMO_CLIENTS
376 bin_PROGRAMS += $(demo_clients)
378 noinst_PROGRAMS += $(demo_clients)
382 if BUILD_SIMPLE_CLIENTS
385 weston-simple-touch \
386 weston-multi-resource
388 weston_simple_shm_SOURCES = \
389 clients/simple-shm.c \
390 shared/os-compatibility.c \
391 shared/os-compatibility.h
392 weston_simple_shm_CPPFLAGS = $(SIMPLE_CLIENT_CFLAGS)
393 weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS)
395 weston_simple_touch_SOURCES = \
396 clients/simple-touch.c \
397 shared/os-compatibility.c \
398 shared/os-compatibility.h
399 weston_simple_touch_CPPFLAGS = $(SIMPLE_CLIENT_CFLAGS)
400 weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS)
402 weston_multi_resource_SOURCES = \
403 clients/multi-resource.c \
404 shared/os-compatibility.c \
405 shared/os-compatibility.h
406 weston_multi_resource_CPPFLAGS = $(SIMPLE_CLIENT_CFLAGS)
407 weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) -lm
410 if BUILD_SIMPLE_EGL_CLIENTS
411 demo_clients += weston-simple-egl
412 weston_simple_egl_SOURCES = clients/simple-egl.c
413 weston_simple_egl_CPPFLAGS = $(SIMPLE_EGL_CLIENT_CFLAGS)
414 weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
417 noinst_LTLIBRARIES += libtoytoolkit.la
419 libtoytoolkit_la_SOURCES = \
422 clients/text-cursor-position-protocol.c \
423 clients/text-cursor-position-client-protocol.h \
424 clients/scaler-protocol.c \
425 clients/scaler-client-protocol.h \
426 clients/workspaces-protocol.c \
427 clients/workspaces-client-protocol.h \
428 clients/xdg-shell-protocol.c \
429 clients/xdg-shell-client-protocol.h
432 libtoytoolkit_la_LIBADD = \
435 libshared-cairo.la -lrt -lm
436 libtoytoolkit_la_CFLAGS = $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
438 weston_flower_SOURCES = clients/flower.c
439 weston_flower_LDADD = libtoytoolkit.la
440 weston_flower_CFLAGS = $(CLIENT_CFLAGS)
442 weston_screenshooter_SOURCES = \
443 clients/screenshot.c \
444 clients/screenshooter-protocol.c \
445 clients/screenshooter-client-protocol.h \
446 shared/os-compatibility.c \
447 shared/os-compatibility.h
448 weston_screenshooter_LDADD = $(CLIENT_LIBS)
449 weston_screenshooter_CFLAGS = $(CLIENT_CFLAGS)
451 weston_terminal_SOURCES = clients/terminal.c
452 weston_terminal_LDADD = libtoytoolkit.la -lutil
453 weston_terminal_CFLAGS = $(CLIENT_CFLAGS)
455 weston_image_SOURCES = clients/image.c
456 weston_image_LDADD = libtoytoolkit.la
457 weston_image_CFLAGS = $(CLIENT_CFLAGS)
459 weston_cliptest_SOURCES = clients/cliptest.c
460 weston_cliptest_CFLAGS = $(AM_CPPFLAGS) $(CLIENT_CFLAGS)
461 weston_cliptest_LDADD = libtoytoolkit.la
463 weston_dnd_SOURCES = clients/dnd.c
464 weston_dnd_LDADD = libtoytoolkit.la
465 weston_dnd_CFLAGS = $(CLIENT_CFLAGS)
467 weston_smoke_SOURCES = clients/smoke.c
468 weston_smoke_LDADD = libtoytoolkit.la
469 weston_smoke_CFLAGS = $(CLIENT_CFLAGS)
471 weston_resizor_SOURCES = clients/resizor.c
472 weston_resizor_LDADD = libtoytoolkit.la
473 weston_resizor_CFLAGS = $(CLIENT_CFLAGS)
475 weston_scaler_SOURCES = clients/scaler.c
476 weston_scaler_LDADD = libtoytoolkit.la
477 weston_scaler_CFLAGS = $(CLIENT_CFLAGS)
480 demo_clients += weston-nested weston-nested-client
482 weston_nested_SOURCES = clients/nested.c
483 weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
484 weston_nested_CFLAGS = $(CLIENT_CFLAGS)
486 weston_nested_client_SOURCES = clients/nested-client.c
487 weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
490 weston_eventdemo_SOURCES = clients/eventdemo.c
491 weston_eventdemo_LDADD = libtoytoolkit.la
492 weston_eventdemo_CFLAGS = $(CLIENT_CFLAGS)
494 weston_clickdot_SOURCES = clients/clickdot.c
495 weston_clickdot_LDADD = libtoytoolkit.la
496 weston_clickdot_CFLAGS = $(CLIENT_CFLAGS)
498 weston_transformed_SOURCES = clients/transformed.c
499 weston_transformed_LDADD = libtoytoolkit.la
500 weston_transformed_CFLAGS = $(CLIENT_CFLAGS)
502 weston_fullscreen_SOURCES = clients/fullscreen.c
503 weston_fullscreen_LDADD = libtoytoolkit.la
504 weston_fullscreen_CFLAGS = $(CLIENT_CFLAGS)
506 weston_stacking_SOURCES = clients/stacking.c
507 weston_stacking_LDADD = libtoytoolkit.la
508 weston_stacking_CFLAGS = $(CLIENT_CFLAGS)
510 weston_calibrator_SOURCES = clients/calibrator.c \
513 weston_calibrator_LDADD = libtoytoolkit.la
514 weston_calibrator_CFLAGS = $(CLIENT_CFLAGS)
516 if BUILD_SUBSURFACES_CLIENT
517 demo_clients += weston-subsurfaces
518 weston_subsurfaces_SOURCES = clients/subsurfaces.c
519 weston_subsurfaces_CFLAGS = $(SIMPLE_EGL_CLIENT_CFLAGS) $(CLIENT_CFLAGS)
520 weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
524 demo_clients += weston-editor
525 weston_editor_SOURCES = \
527 clients/text-protocol.c \
528 clients/text-client-protocol.h
529 weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
530 weston_editor_CFLAGS = $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
533 weston_keyboard_SOURCES = \
535 clients/desktop-shell-client-protocol.h \
536 clients/desktop-shell-protocol.c \
537 clients/input-method-protocol.c \
538 clients/input-method-client-protocol.h
539 weston_keyboard_LDADD = libtoytoolkit.la
540 weston_keyboard_CFLAGS = $(CLIENT_CFLAGS)
542 weston_simple_im_SOURCES = \
543 clients/weston-simple-im.c \
544 clients/input-method-protocol.c \
545 clients/input-method-client-protocol.h
546 weston_simple_im_LDADD = $(CLIENT_LIBS)
547 weston_simple_im_CFLAGS = $(CLIENT_CFLAGS)
549 weston_info_SOURCES = \
550 clients/weston-info.c \
551 shared/os-compatibility.c \
552 shared/os-compatibility.h
553 weston_info_LDADD = $(WESTON_INFO_LIBS)
555 weston_desktop_shell_SOURCES = \
556 clients/desktop-shell.c \
557 clients/desktop-shell-client-protocol.h \
558 clients/desktop-shell-protocol.c
559 weston_desktop_shell_LDADD = libtoytoolkit.la
560 weston_desktop_shell_CFLAGS = $(CLIENT_CFLAGS)
562 if BUILD_FULL_GL_CLIENTS
563 demo_clients += weston-gears
564 weston_gears_SOURCES = clients/gears.c
565 weston_gears_LDADD = libtoytoolkit.la
566 weston_gears_CFLAGS = $(CLIENT_CFLAGS)
569 libexec_PROGRAMS += weston-screensaver
570 weston_screensaver_SOURCES = \
571 clients/wscreensaver.c \
572 clients/wscreensaver.h \
573 clients/desktop-shell-client-protocol.h \
574 clients/desktop-shell-protocol.c \
575 clients/wscreensaver-glue.c \
576 clients/wscreensaver-glue.h \
579 weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
580 weston_screensaver_CFLAGS = $(GLU_CFLAGS) $(CLIENT_CFLAGS)
589 clients/screenshooter-client-protocol.h \
590 clients/screenshooter-protocol.c \
591 clients/text-cursor-position-client-protocol.h \
592 clients/text-cursor-position-protocol.c \
593 clients/text-protocol.c \
594 clients/text-client-protocol.h \
595 clients/input-method-protocol.c \
596 clients/input-method-client-protocol.h \
597 clients/desktop-shell-client-protocol.h \
598 clients/desktop-shell-protocol.c \
599 clients/scaler-client-protocol.h \
600 clients/scaler-protocol.c \
601 clients/workspaces-client-protocol.h \
602 clients/workspaces-protocol.c \
603 clients/xdg-shell-protocol.c \
604 clients/xdg-shell-client-protocol.h
607 westondatadir = $(datadir)/weston
608 dist_westondata_DATA = \
614 data/icon_window.png \
615 data/sign_close.png \
616 data/sign_maximize.png \
617 data/sign_minimize.png
621 bin_PROGRAMS += wcap-decode
623 wcap_decode_SOURCES = \
628 wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
629 wcap_decode_LDADD = $(WCAP_LIBS)
633 if ENABLE_DESKTOP_SHELL
635 module_LTLIBRARIES += desktop-shell.la
637 desktop_shell_la_CPPFLAGS = \
638 -I$(top_srcdir)/shared \
639 -I$(top_srcdir)/src \
640 -I$(top_builddir)/src \
641 -I$(top_builddir)/desktop-shell \
642 -DDATADIR='"$(datadir)"' \
643 -DMODULEDIR='"$(moduledir)"' \
644 -DLIBEXECDIR='"$(libexecdir)"' \
647 desktop_shell_la_LDFLAGS = -module -avoid-version
648 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) \
650 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
651 desktop_shell_la_SOURCES = \
652 desktop-shell/shell.h \
653 desktop-shell/shell.c \
654 desktop-shell/exposay.c \
655 desktop-shell/input-panel.c \
656 desktop-shell/desktop-shell-protocol.c \
657 desktop-shell/desktop-shell-server-protocol.h \
658 desktop-shell/xdg-shell-protocol.c \
659 desktop-shell/xdg-shell-server-protocol.h
662 desktop-shell/desktop-shell-protocol.c \
663 desktop-shell/desktop-shell-server-protocol.h \
664 desktop-shell/xdg-shell-protocol.c \
665 desktop-shell/xdg-shell-server-protocol.h
671 module_LTLIBRARIES += xwayland.la
673 xwayland_la_CPPFLAGS = \
674 -I$(top_srcdir)/shared \
675 -I$(top_srcdir)/src \
676 -I$(top_builddir)/src \
677 -I$(top_builddir)/xwayland \
678 -DDATADIR='"$(datadir)"' \
679 -DMODULEDIR='"$(moduledir)"' \
680 -DLIBEXECDIR='"$(libexecdir)"' \
681 -DXSERVER_PATH='"@XSERVER_PATH@"'
683 xwayland_la_LDFLAGS = -module -avoid-version
684 xwayland_la_LIBADD = \
686 $(top_builddir)/libshared-cairo.la
687 xwayland_la_CFLAGS = \
689 $(COMPOSITOR_CFLAGS) \
692 xwayland_la_SOURCES = \
693 xwayland/xwayland.h \
694 xwayland/window-manager.c \
695 xwayland/selection.c \
697 xwayland/launcher.c \
698 xwayland/xserver-protocol.c \
699 xwayland/xserver-server-protocol.h \
704 xwayland/xserver-protocol.c \
705 xwayland/xserver-server-protocol.h
713 noinst_LTLIBRARIES += libshared.la libshared-cairo.la
715 libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
717 libshared_la_SOURCES = \
718 shared/config-parser.c \
719 shared/option-parser.c \
720 shared/config-parser.h \
721 shared/os-compatibility.c \
722 shared/os-compatibility.h
724 libshared_cairo_la_CFLAGS = \
725 -DDATADIR='"$(datadir)"' \
727 $(COMPOSITOR_CFLAGS) \
733 libshared_cairo_la_LIBADD = \
740 libshared_cairo_la_SOURCES = \
741 $(libshared_la_SOURCES) \
742 shared/image-loader.c \
743 shared/image-loader.h \
744 shared/cairo-util.c \
753 TESTS = $(shared_tests) $(module_tests) $(weston_tests)
761 surface-global-test.la
772 AM_TESTS_ENVIRONMENT = \
773 abs_builddir='$(abs_builddir)'; export abs_builddir;
775 TEST_EXTENSIONS = .la .weston
776 LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
777 WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
782 # To remove when automake 1.11 support is dropped
785 noinst_LTLIBRARIES += \
797 test_module_ldflags = \
798 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
800 surface_global_test_la_SOURCES = tests/surface-global-test.c
801 surface_global_test_la_LDFLAGS = $(test_module_ldflags)
802 surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
804 surface_test_la_SOURCES = tests/surface-test.c
805 surface_test_la_LDFLAGS = $(test_module_ldflags)
806 surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
808 weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
809 weston_test_la_LDFLAGS = $(test_module_ldflags)
810 weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
811 weston_test_la_SOURCES = \
812 tests/weston-test.c \
813 tests/wayland-test-protocol.c \
814 tests/wayland-test-server-protocol.h
817 weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
818 weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
821 libtest_runner_la_SOURCES = \
822 tests/weston-test-runner.c \
823 tests/weston-test-runner.h
824 libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
826 config_parser_test_SOURCES = tests/config-parser-test.c
827 config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
829 vertex_clip_test_SOURCES = \
830 tests/vertex-clip-test.c \
831 src/vertex-clipping.c \
832 src/vertex-clipping.h
833 vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
835 libtest_client_la_SOURCES = \
836 tests/weston-test-client-helper.c \
837 tests/weston-test-client-helper.h \
838 tests/wayland-test-protocol.c \
839 tests/wayland-test-client-protocol.h
840 libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
842 bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
843 bad_buffer_weston_LDADD = libtest-client.la
845 keyboard_weston_SOURCES = tests/keyboard-test.c
846 keyboard_weston_LDADD = libtest-client.la
848 event_weston_SOURCES = tests/event-test.c
849 event_weston_LDADD = libtest-client.la
851 button_weston_SOURCES = tests/button-test.c
852 button_weston_LDADD = libtest-client.la
854 text_weston_SOURCES = tests/text-test.c tests/text-protocol.c
855 text_weston_LDADD = libtest-client.la
857 subsurface_weston_SOURCES = tests/subsurface-test.c
858 subsurface_weston_LDADD = libtest-client.la
861 weston_tests += buffer-count.weston
862 buffer_count_weston_SOURCES = tests/buffer-count-test.c
863 buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
864 buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
867 if ENABLE_XWAYLAND_TEST
868 weston_tests += xwayland.weston
869 xwayland_weston_SOURCES = tests/xwayland-test.c
870 xwayland_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
871 xwayland_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
874 matrix_test_SOURCES = \
875 tests/matrix-test.c \
878 matrix_test_CPPFLAGS = -DUNIT_TEST
879 matrix_test_LDADD = -lm -lrt
881 if BUILD_SETBACKLIGHT
882 noinst_PROGRAMS += setbacklight
883 setbacklight_SOURCES = \
884 tests/setbacklight.c \
887 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
888 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
891 EXTRA_DIST += tests/weston-tests-env
894 tests/wayland-test-protocol.c \
895 tests/wayland-test-server-protocol.h \
896 tests/wayland-test-client-protocol.h \
897 tests/text-protocol.c \
898 tests/text-client-protocol.h
901 protocol/desktop-shell.xml \
902 protocol/screenshooter.xml \
903 protocol/xserver.xml \
905 protocol/input-method.xml \
906 protocol/workspaces.xml \
907 protocol/text-cursor-position.xml \
908 protocol/wayland-test.xml \
909 protocol/xdg-shell.xml \
912 man_MANS = weston.1 weston.ini.5
914 if ENABLE_DRM_COMPOSITOR
915 man_MANS += weston-drm.7
919 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
920 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
921 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
922 -e 's|__version__|$(PACKAGE_VERSION)|g'
924 SUFFIXES = .1 .5 .7 .man
926 %.1 %.5 %.7 : man/%.man
927 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
934 CLEANFILES += $(man_MANS)
937 wayland_protocoldir = $(top_srcdir)/protocol
939 %-protocol.c : $(wayland_protocoldir)/%.xml
940 $(AM_V_GEN)$(wayland_scanner) code < $< > $@
942 %-server-protocol.h : $(wayland_protocoldir)/%.xml
943 $(AM_V_GEN)$(wayland_scanner) server-header < $< > $@
945 %-client-protocol.h : $(wayland_protocoldir)/%.xml
946 $(AM_V_GEN)$(wayland_scanner) client-header < $< > $@