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
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 all-local : weston.ini
25 AM_CFLAGS = $(GCC_CFLAGS)
29 -I$(top_builddir)/src \
30 -I$(top_builddir)/clients \
31 -I$(top_builddir)/tests \
32 -I$(top_srcdir)/shared \
33 -I$(top_builddir)/protocol \
34 -DDATADIR='"$(datadir)"' \
35 -DMODULEDIR='"$(moduledir)"' \
36 -DLIBEXECDIR='"$(libexecdir)"' \
37 -DBINDIR='"$(bindir)"'
39 CLEANFILES = weston.ini $(BUILT_SOURCES)
41 bin_PROGRAMS += weston
43 weston_LDFLAGS = -export-dynamic
44 weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
45 weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
46 weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
47 $(DLOPEN_LIBS) -lm libshared.la
63 src/pixman-renderer.c \
64 src/pixman-renderer.h \
70 nodist_weston_SOURCES = \
71 protocol/screenshooter-protocol.c \
72 protocol/screenshooter-server-protocol.h \
73 protocol/text-cursor-position-protocol.c \
74 protocol/text-cursor-position-server-protocol.h \
75 protocol/text-protocol.c \
76 protocol/text-server-protocol.h \
77 protocol/input-method-protocol.c \
78 protocol/input-method-server-protocol.h \
79 protocol/workspaces-protocol.c \
80 protocol/workspaces-server-protocol.h \
81 protocol/presentation_timing-protocol.c \
82 protocol/presentation_timing-server-protocol.h \
83 protocol/scaler-protocol.c \
84 protocol/scaler-server-protocol.h
86 BUILT_SOURCES += $(nodist_weston_SOURCES)
88 # Track this dependency explicitly instead of using BUILT_SOURCES. We
89 # add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
90 # in case we're building from tarballs.
92 src/compositor.c : $(top_builddir)/src/git-version.h
94 noinst_LTLIBRARIES += \
97 libsession_helper_la_SOURCES = \
101 libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
102 libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
105 if HAVE_SYSTEMD_LOGIN
106 libsession_helper_la_SOURCES += \
111 libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
112 libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
117 src/git-version.h : $(top_srcdir)/.git/logs/HEAD
118 $(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)')\"" > $@
121 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
127 if BUILD_WESTON_LAUNCH
128 bin_PROGRAMS += weston-launch
129 weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
130 weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
131 weston_launch_CFLAGS= \
134 $(SYSTEMD_LOGIN_CFLAGS) \
136 weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
138 if ENABLE_SETUID_INSTALL
140 chown root $(DESTDIR)$(bindir)/weston-launch
141 chmod u+s $(DESTDIR)$(bindir)/weston-launch
144 endif # BUILD_WESTON_LAUNCH
146 pkgconfigdir = $(libdir)/pkgconfig
147 pkgconfig_DATA = src/weston.pc
149 westonincludedir = $(includedir)/weston
150 westoninclude_HEADERS = \
154 shared/config-parser.h \
158 module_LTLIBRARIES += gl-renderer.la
159 gl_renderer_la_LDFLAGS = -module -avoid-version
160 gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
161 gl_renderer_la_CFLAGS = \
162 $(COMPOSITOR_CFLAGS) \
165 gl_renderer_la_SOURCES = \
168 src/vertex-clipping.c \
169 src/vertex-clipping.h
172 if ENABLE_X11_COMPOSITOR
173 module_LTLIBRARIES += x11-backend.la
174 x11_backend_la_LDFLAGS = -module -avoid-version
175 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
177 x11_backend_la_CFLAGS = \
178 $(COMPOSITOR_CFLAGS) \
182 $(X11_COMPOSITOR_CFLAGS) \
184 x11_backend_la_SOURCES = src/compositor-x11.c
187 INPUT_BACKEND_SOURCES = src/udev-input.h
189 if ENABLE_LIBINPUT_BACKEND
190 INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
191 INPUT_BACKEND_SOURCES += \
192 src/libinput-seat.c \
193 src/libinput-seat.h \
194 src/libinput-device.c \
195 src/libinput-device.h
197 INPUT_BACKEND_SOURCES += \
207 if ENABLE_DRM_COMPOSITOR
208 module_LTLIBRARIES += drm-backend.la
209 drm_backend_la_LDFLAGS = -module -avoid-version
210 drm_backend_la_LIBADD = \
212 $(DRM_COMPOSITOR_LIBS) \
213 $(INPUT_BACKEND_LIBS) \
216 drm_backend_la_CFLAGS = \
217 $(COMPOSITOR_CFLAGS) \
219 $(DRM_COMPOSITOR_CFLAGS) \
221 drm_backend_la_SOURCES = \
222 src/compositor-drm.c \
223 $(INPUT_BACKEND_SOURCES) \
227 if ENABLE_VAAPI_RECORDER
228 drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
229 drm_backend_la_LIBADD += $(LIBVA_LIBS)
230 drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
234 if ENABLE_WAYLAND_COMPOSITOR
235 module_LTLIBRARIES += wayland-backend.la
236 wayland_backend_la_LDFLAGS = -module -avoid-version
237 wayland_backend_la_LIBADD = \
239 $(WAYLAND_COMPOSITOR_LIBS) \
241 wayland_backend_la_CFLAGS = \
242 $(COMPOSITOR_CFLAGS) \
246 $(WAYLAND_COMPOSITOR_CFLAGS) \
248 wayland_backend_la_SOURCES = src/compositor-wayland.c
249 nodist_wayland_backend_la_SOURCES = \
250 protocol/fullscreen-shell-protocol.c \
251 protocol/fullscreen-shell-client-protocol.h
254 if ENABLE_RPI_COMPOSITOR
255 if INSTALL_RPI_COMPOSITOR
256 module_LTLIBRARIES += rpi-backend.la
258 noinst_LTLIBRARIES += rpi-backend.la
261 rpi_backend_la_LDFLAGS = -module -avoid-version
262 rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
263 $(RPI_COMPOSITOR_LIBS) \
264 $(RPI_BCM_HOST_LIBS) \
265 $(INPUT_BACKEND_LIBS) \
266 libsession-helper.la \
268 rpi_backend_la_CFLAGS = \
270 $(COMPOSITOR_CFLAGS) \
271 $(RPI_COMPOSITOR_CFLAGS) \
272 $(RPI_BCM_HOST_CFLAGS)
273 rpi_backend_la_SOURCES = \
274 src/compositor-rpi.c \
277 src/rpi-bcm-stubs.h \
278 $(INPUT_BACKEND_SOURCES)
281 rpi_backend_la_LIBADD += $(EGL_LIBS)
282 rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
287 if ENABLE_HEADLESS_COMPOSITOR
288 module_LTLIBRARIES += headless-backend.la
289 headless_backend_la_LDFLAGS = -module -avoid-version
290 headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
291 headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
292 headless_backend_la_SOURCES = src/compositor-headless.c
295 if ENABLE_FBDEV_COMPOSITOR
296 module_LTLIBRARIES += fbdev-backend.la
297 fbdev_backend_la_LDFLAGS = -module -avoid-version
298 fbdev_backend_la_LIBADD = \
300 $(FBDEV_COMPOSITOR_LIBS) \
301 $(INPUT_BACKEND_LIBS) \
302 libsession-helper.la \
304 fbdev_backend_la_CFLAGS = \
305 $(COMPOSITOR_CFLAGS) \
307 $(FBDEV_COMPOSITOR_CFLAGS) \
310 fbdev_backend_la_SOURCES = \
311 src/compositor-fbdev.c \
312 $(INPUT_BACKEND_SOURCES)
315 if ENABLE_RDP_COMPOSITOR
316 module_LTLIBRARIES += rdp-backend.la
317 rdp_backend_la_LDFLAGS = -module -avoid-version
318 rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
319 $(RDP_COMPOSITOR_LIBS) \
321 rdp_backend_la_CFLAGS = \
322 $(COMPOSITOR_CFLAGS) \
323 $(RDP_COMPOSITOR_CFLAGS) \
325 rdp_backend_la_SOURCES = src/compositor-rdp.c
329 module_LTLIBRARIES += cms-static.la
330 cms_static_la_LDFLAGS = -module -avoid-version
331 cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
332 cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
333 cms_static_la_SOURCES = \
338 module_LTLIBRARIES += cms-colord.la
339 cms_colord_la_LDFLAGS = -module -avoid-version
340 cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
341 cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
342 cms_colord_la_SOURCES = \
349 noinst_PROGRAMS += spring-tool
350 spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
351 spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
352 spring_tool_SOURCES = \
361 bin_PROGRAMS += weston-terminal weston-info
363 libexec_PROGRAMS += \
364 weston-desktop-shell \
365 weston-screenshooter \
384 if INSTALL_DEMO_CLIENTS
385 bin_PROGRAMS += $(demo_clients)
387 noinst_PROGRAMS += $(demo_clients)
391 if BUILD_SIMPLE_CLIENTS
394 weston-simple-damage \
395 weston-simple-touch \
396 weston-presentation-shm \
397 weston-multi-resource
399 weston_simple_shm_SOURCES = clients/simple-shm.c
400 nodist_weston_simple_shm_SOURCES = \
401 protocol/xdg-shell-protocol.c \
402 protocol/xdg-shell-client-protocol.h \
403 protocol/fullscreen-shell-protocol.c \
404 protocol/fullscreen-shell-client-protocol.h
405 weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
406 weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
408 weston_simple_damage_SOURCES = clients/simple-damage.c
409 nodist_weston_simple_damage_SOURCES = \
410 protocol/scaler-protocol.c \
411 protocol/scaler-client-protocol.h \
412 protocol/xdg-shell-protocol.c \
413 protocol/xdg-shell-client-protocol.h \
414 protocol/fullscreen-shell-protocol.c \
415 protocol/fullscreen-shell-client-protocol.h
416 weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
417 weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
419 weston_simple_touch_SOURCES = clients/simple-touch.c
420 weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
421 weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
423 weston_presentation_shm_SOURCES = clients/presentation-shm.c
424 nodist_weston_presentation_shm_SOURCES = \
425 protocol/presentation_timing-protocol.c \
426 protocol/presentation_timing-client-protocol.h
427 weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
428 weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
430 weston_multi_resource_SOURCES = clients/multi-resource.c
431 weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
432 weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
435 if BUILD_SIMPLE_EGL_CLIENTS
436 demo_clients += weston-simple-egl
437 weston_simple_egl_SOURCES = clients/simple-egl.c
438 nodist_weston_simple_egl_SOURCES = \
439 protocol/xdg-shell-protocol.c \
440 protocol/xdg-shell-client-protocol.h
441 weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
442 weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
445 noinst_LTLIBRARIES += libtoytoolkit.la
447 libtoytoolkit_la_SOURCES = \
451 nodist_libtoytoolkit_la_SOURCES = \
452 protocol/text-cursor-position-protocol.c \
453 protocol/text-cursor-position-client-protocol.h \
454 protocol/scaler-protocol.c \
455 protocol/scaler-client-protocol.h \
456 protocol/workspaces-protocol.c \
457 protocol/workspaces-client-protocol.h \
458 protocol/presentation_timing-protocol.c \
459 protocol/presentation_timing-client-protocol.h \
460 protocol/xdg-shell-protocol.c \
461 protocol/xdg-shell-client-protocol.h
463 BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
466 libtoytoolkit_la_LIBADD = \
469 libshared-cairo.la -lrt -lm
470 libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
472 weston_flower_SOURCES = clients/flower.c
473 weston_flower_LDADD = libtoytoolkit.la
474 weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
476 weston_screenshooter_SOURCES = \
478 nodist_weston_screenshooter_SOURCES = \
479 protocol/screenshooter-protocol.c \
480 protocol/screenshooter-client-protocol.h
481 weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
482 weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
484 weston_terminal_SOURCES = clients/terminal.c
485 weston_terminal_LDADD = libtoytoolkit.la -lutil
486 weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
488 weston_image_SOURCES = clients/image.c
489 weston_image_LDADD = libtoytoolkit.la
490 weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
492 weston_cliptest_SOURCES = \
494 src/vertex-clipping.c \
495 src/vertex-clipping.h
496 weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
497 weston_cliptest_LDADD = libtoytoolkit.la
499 weston_dnd_SOURCES = clients/dnd.c
500 weston_dnd_LDADD = libtoytoolkit.la
501 weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
503 weston_smoke_SOURCES = clients/smoke.c
504 weston_smoke_LDADD = libtoytoolkit.la
505 weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
507 weston_resizor_SOURCES = clients/resizor.c
508 weston_resizor_LDADD = libtoytoolkit.la
509 weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
511 weston_scaler_SOURCES = clients/scaler.c
512 weston_scaler_LDADD = libtoytoolkit.la
513 weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
516 demo_clients += weston-nested weston-nested-client
518 weston_nested_SOURCES = clients/nested.c
519 weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
520 weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
522 weston_nested_client_SOURCES = clients/nested-client.c
523 weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
524 weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
527 weston_eventdemo_SOURCES = clients/eventdemo.c
528 weston_eventdemo_LDADD = libtoytoolkit.la
529 weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
531 weston_clickdot_SOURCES = clients/clickdot.c
532 weston_clickdot_LDADD = libtoytoolkit.la
533 weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
535 weston_transformed_SOURCES = clients/transformed.c
536 weston_transformed_LDADD = libtoytoolkit.la
537 weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
539 weston_fullscreen_SOURCES = clients/fullscreen.c
540 nodist_weston_fullscreen_SOURCES = \
541 protocol/fullscreen-shell-protocol.c \
542 protocol/fullscreen-shell-client-protocol.h
543 weston_fullscreen_LDADD = libtoytoolkit.la
544 weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
546 weston_stacking_SOURCES = clients/stacking.c
547 weston_stacking_LDADD = libtoytoolkit.la
548 weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
550 weston_calibrator_SOURCES = clients/calibrator.c \
553 weston_calibrator_LDADD = libtoytoolkit.la
554 weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
556 if BUILD_SUBSURFACES_CLIENT
557 demo_clients += weston-subsurfaces
558 weston_subsurfaces_SOURCES = clients/subsurfaces.c
559 weston_subsurfaces_CFLAGS = \
561 $(SIMPLE_EGL_CLIENT_CFLAGS) \
563 weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
567 demo_clients += weston-editor
568 weston_editor_SOURCES = clients/editor.c
569 nodist_weston_editor_SOURCES = \
570 protocol/text-protocol.c \
571 protocol/text-client-protocol.h
572 weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
573 weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
576 weston_keyboard_SOURCES = clients/keyboard.c
577 nodist_weston_keyboard_SOURCES = \
578 protocol/desktop-shell-client-protocol.h \
579 protocol/desktop-shell-protocol.c \
580 protocol/input-method-protocol.c \
581 protocol/input-method-client-protocol.h
582 weston_keyboard_LDADD = libtoytoolkit.la
583 weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
585 weston_simple_im_SOURCES = clients/weston-simple-im.c
586 nodist_weston_simple_im_SOURCES = \
587 protocol/input-method-protocol.c \
588 protocol/input-method-client-protocol.h
589 weston_simple_im_LDADD = $(CLIENT_LIBS)
590 weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
592 weston_info_SOURCES = clients/weston-info.c
593 nodist_weston_info_SOURCES = \
594 protocol/presentation_timing-protocol.c \
595 protocol/presentation_timing-client-protocol.h
596 weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
597 weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
599 weston_desktop_shell_SOURCES = clients/desktop-shell.c
600 nodist_weston_desktop_shell_SOURCES = \
601 protocol/desktop-shell-client-protocol.h \
602 protocol/desktop-shell-protocol.c
603 weston_desktop_shell_LDADD = libtoytoolkit.la
604 weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
606 if BUILD_FULL_GL_CLIENTS
607 demo_clients += weston-gears
608 weston_gears_SOURCES = clients/gears.c
609 weston_gears_LDADD = libtoytoolkit.la
610 weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
613 libexec_PROGRAMS += weston-screensaver
614 weston_screensaver_SOURCES = \
615 clients/wscreensaver.c \
616 clients/wscreensaver.h \
617 clients/wscreensaver-glue.c \
618 clients/wscreensaver-glue.h \
621 nodist_weston_screensaver_SOURCES = \
622 protocol/desktop-shell-client-protocol.h \
623 protocol/desktop-shell-protocol.c
625 weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
626 weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
635 protocol/screenshooter-protocol.c \
636 protocol/screenshooter-client-protocol.h \
637 protocol/text-cursor-position-client-protocol.h \
638 protocol/text-cursor-position-protocol.c \
639 protocol/text-protocol.c \
640 protocol/text-client-protocol.h \
641 protocol/input-method-protocol.c \
642 protocol/input-method-client-protocol.h \
643 protocol/desktop-shell-client-protocol.h \
644 protocol/desktop-shell-protocol.c \
645 protocol/scaler-client-protocol.h \
646 protocol/scaler-protocol.c \
647 protocol/workspaces-client-protocol.h \
648 protocol/workspaces-protocol.c \
649 protocol/fullscreen-shell-protocol.c \
650 protocol/fullscreen-shell-client-protocol.h \
651 protocol/xdg-shell-protocol.c \
652 protocol/xdg-shell-client-protocol.h
655 westondatadir = $(datadir)/weston
656 dist_westondata_DATA = \
662 data/icon_window.png \
663 data/sign_close.png \
664 data/sign_maximize.png \
665 data/sign_minimize.png
669 bin_PROGRAMS += wcap-decode
671 wcap_decode_SOURCES = \
676 wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
677 wcap_decode_LDADD = $(WCAP_LIBS)
681 if ENABLE_DESKTOP_SHELL
683 module_LTLIBRARIES += desktop-shell.la
685 desktop_shell_la_CPPFLAGS = \
686 -I$(top_builddir)/protocol \
687 -I$(top_srcdir)/shared \
688 -I$(top_srcdir)/src \
689 -I$(top_builddir)/src \
690 -I$(top_builddir)/desktop-shell \
691 -DDATADIR='"$(datadir)"' \
692 -DMODULEDIR='"$(moduledir)"' \
693 -DLIBEXECDIR='"$(libexecdir)"' \
696 desktop_shell_la_LDFLAGS = -module -avoid-version
697 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
698 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
699 desktop_shell_la_SOURCES = \
700 desktop-shell/shell.h \
701 desktop-shell/shell.c \
702 desktop-shell/exposay.c \
703 desktop-shell/input-panel.c
704 nodist_desktop_shell_la_SOURCES = \
705 protocol/desktop-shell-protocol.c \
706 protocol/desktop-shell-server-protocol.h \
707 protocol/xdg-shell-protocol.c \
708 protocol/xdg-shell-server-protocol.h
710 BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
713 if ENABLE_FULLSCREEN_SHELL
715 module_LTLIBRARIES += fullscreen-shell.la
717 fullscreen_shell_la_CPPFLAGS = \
718 -I$(top_builddir)/protocol \
719 -I$(top_srcdir)/shared \
720 -I$(top_srcdir)/src \
721 -I$(top_builddir)/src \
724 fullscreen_shell_la_LDFLAGS = -module -avoid-version
725 fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
726 fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
727 fullscreen_shell_la_SOURCES = \
728 fullscreen-shell/fullscreen-shell.c
729 nodist_fullscreen_shell_la_SOURCES = \
730 protocol/fullscreen-shell-protocol.c \
731 protocol/fullscreen-shell-server-protocol.h
733 BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
736 if ENABLE_SCREEN_SHARING
738 module_LTLIBRARIES += screen-share.la
740 screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
741 screen_share_la_LDFLAGS = -module -avoid-version
742 screen_share_la_LIBADD = \
744 $(SCREEN_SHARE_LIBS) \
746 screen_share_la_CFLAGS = \
747 $(COMPOSITOR_CFLAGS) \
748 $(SCREEN_SHARE_CFLAGS) \
750 screen_share_la_SOURCES = \
752 nodist_screen_share_la_SOURCES = \
753 protocol/fullscreen-shell-protocol.c \
754 protocol/fullscreen-shell-client-protocol.h
760 module_LTLIBRARIES += xwayland.la
762 xwayland_la_CPPFLAGS = \
763 -I$(top_builddir)/protocol \
764 -I$(top_srcdir)/shared \
765 -I$(top_srcdir)/src \
766 -I$(top_builddir)/src \
767 -I$(top_builddir)/xwayland \
768 -DDATADIR='"$(datadir)"' \
769 -DMODULEDIR='"$(moduledir)"' \
770 -DLIBEXECDIR='"$(libexecdir)"' \
771 -DXSERVER_PATH='"@XSERVER_PATH@"'
773 xwayland_la_LDFLAGS = -module -avoid-version
774 xwayland_la_LIBADD = \
776 $(top_builddir)/libshared-cairo.la
777 xwayland_la_CFLAGS = \
779 $(COMPOSITOR_CFLAGS) \
782 xwayland_la_SOURCES = \
783 xwayland/xwayland.h \
784 xwayland/window-manager.c \
785 xwayland/selection.c \
787 xwayland/launcher.c \
797 noinst_LTLIBRARIES += libshared.la libshared-cairo.la
799 libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
801 libshared_la_SOURCES = \
802 shared/config-parser.c \
803 shared/option-parser.c \
804 shared/config-parser.h \
805 shared/os-compatibility.c \
806 shared/os-compatibility.h
808 libshared_cairo_la_CFLAGS = \
809 -DDATADIR='"$(datadir)"' \
811 $(COMPOSITOR_CFLAGS) \
817 libshared_cairo_la_LIBADD = \
824 libshared_cairo_la_SOURCES = \
825 $(libshared_la_SOURCES) \
826 shared/image-loader.c \
827 shared/image-loader.h \
828 shared/cairo-util.c \
837 TESTS = $(shared_tests) $(module_tests) $(weston_tests)
845 surface-global-test.la
853 presentation.weston \
857 AM_TESTS_ENVIRONMENT = \
858 abs_builddir='$(abs_builddir)'; export abs_builddir;
860 TEST_EXTENSIONS = .la .weston
861 LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
862 WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
867 # To remove when automake 1.11 support is dropped
870 noinst_LTLIBRARIES += \
882 test_module_ldflags = \
883 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
885 surface_global_test_la_SOURCES = tests/surface-global-test.c
886 surface_global_test_la_LDFLAGS = $(test_module_ldflags)
887 surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
889 surface_test_la_SOURCES = tests/surface-test.c
890 surface_test_la_LDFLAGS = $(test_module_ldflags)
891 surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
893 weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
894 weston_test_la_LDFLAGS = $(test_module_ldflags)
895 weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
896 weston_test_la_SOURCES = tests/weston-test.c
897 nodist_weston_test_la_SOURCES = \
898 protocol/wayland-test-protocol.c \
899 protocol/wayland-test-server-protocol.h
902 weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
903 weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
906 libtest_runner_la_SOURCES = \
907 tests/weston-test-runner.c \
908 tests/weston-test-runner.h
909 libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
911 config_parser_test_SOURCES = tests/config-parser-test.c
912 config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
914 vertex_clip_test_SOURCES = \
915 tests/vertex-clip-test.c \
916 src/vertex-clipping.c \
917 src/vertex-clipping.h
918 vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
920 libtest_client_la_SOURCES = \
921 tests/weston-test-client-helper.c \
922 tests/weston-test-client-helper.h
923 nodist_libtest_client_la_SOURCES = \
924 protocol/wayland-test-protocol.c \
925 protocol/wayland-test-client-protocol.h
926 libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
927 libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
929 bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
930 bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
931 bad_buffer_weston_LDADD = libtest-client.la
933 keyboard_weston_SOURCES = tests/keyboard-test.c
934 keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
935 keyboard_weston_LDADD = libtest-client.la
937 event_weston_SOURCES = tests/event-test.c
938 event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
939 event_weston_LDADD = libtest-client.la
941 button_weston_SOURCES = tests/button-test.c
942 button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
943 button_weston_LDADD = libtest-client.la
945 text_weston_SOURCES = tests/text-test.c
946 nodist_text_weston_SOURCES = \
947 protocol/text-protocol.c \
948 protocol/text-client-protocol.h
949 text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
950 text_weston_LDADD = libtest-client.la
952 subsurface_weston_SOURCES = tests/subsurface-test.c
953 subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
954 subsurface_weston_LDADD = libtest-client.la
956 presentation_weston_SOURCES = tests/presentation-test.c
957 nodist_presentation_weston_SOURCES = \
958 protocol/presentation_timing-protocol.c \
959 protocol/presentation_timing-client-protocol.h
960 presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
961 presentation_weston_LDADD = libtest-client.la
964 weston_tests += buffer-count.weston
965 buffer_count_weston_SOURCES = tests/buffer-count-test.c
966 buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
967 buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
970 if ENABLE_XWAYLAND_TEST
971 weston_tests += xwayland-test.weston
972 xwayland_test_weston_SOURCES = tests/xwayland-test.c
973 xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
974 xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
977 matrix_test_SOURCES = \
978 tests/matrix-test.c \
981 matrix_test_CPPFLAGS = -DUNIT_TEST
982 matrix_test_LDADD = -lm -lrt
984 if BUILD_SETBACKLIGHT
985 noinst_PROGRAMS += setbacklight
986 setbacklight_SOURCES = \
987 tests/setbacklight.c \
990 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
991 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
994 EXTRA_DIST += tests/weston-tests-env
997 protocol/wayland-test-protocol.c \
998 protocol/wayland-test-server-protocol.h \
999 protocol/wayland-test-client-protocol.h \
1000 protocol/text-protocol.c \
1001 protocol/text-client-protocol.h
1004 protocol/desktop-shell.xml \
1005 protocol/screenshooter.xml \
1007 protocol/input-method.xml \
1008 protocol/workspaces.xml \
1009 protocol/text-cursor-position.xml \
1010 protocol/wayland-test.xml \
1011 protocol/xdg-shell.xml \
1012 protocol/fullscreen-shell.xml \
1013 protocol/presentation_timing.xml \
1016 man_MANS = weston.1 weston.ini.5
1018 if ENABLE_DRM_COMPOSITOR
1019 man_MANS += weston-drm.7
1023 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1024 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1025 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1026 -e 's|__version__|$(PACKAGE_VERSION)|g'
1028 SUFFIXES = .1 .5 .7 .man
1030 %.1 %.5 %.7 : man/%.man
1031 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1035 man/weston-drm.man \
1038 CLEANFILES += $(man_MANS)
1041 protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1042 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1044 protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1045 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1047 protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1048 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@