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_LIBS = $(LIBINPUT_BACKEND_LIBS)
188 INPUT_BACKEND_SOURCES = \
189 src/libinput-seat.c \
190 src/libinput-seat.h \
191 src/libinput-device.c \
192 src/libinput-device.h
194 if ENABLE_DRM_COMPOSITOR
195 module_LTLIBRARIES += drm-backend.la
196 drm_backend_la_LDFLAGS = -module -avoid-version
197 drm_backend_la_LIBADD = \
199 $(DRM_COMPOSITOR_LIBS) \
200 $(INPUT_BACKEND_LIBS) \
203 drm_backend_la_CFLAGS = \
204 $(COMPOSITOR_CFLAGS) \
206 $(DRM_COMPOSITOR_CFLAGS) \
208 drm_backend_la_SOURCES = \
209 src/compositor-drm.c \
210 $(INPUT_BACKEND_SOURCES) \
214 if ENABLE_VAAPI_RECORDER
215 drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
216 drm_backend_la_LIBADD += $(LIBVA_LIBS)
217 drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
221 if ENABLE_WAYLAND_COMPOSITOR
222 module_LTLIBRARIES += wayland-backend.la
223 wayland_backend_la_LDFLAGS = -module -avoid-version
224 wayland_backend_la_LIBADD = \
226 $(WAYLAND_COMPOSITOR_LIBS) \
228 wayland_backend_la_CFLAGS = \
229 $(COMPOSITOR_CFLAGS) \
233 $(WAYLAND_COMPOSITOR_CFLAGS) \
235 wayland_backend_la_SOURCES = src/compositor-wayland.c
236 nodist_wayland_backend_la_SOURCES = \
237 protocol/fullscreen-shell-protocol.c \
238 protocol/fullscreen-shell-client-protocol.h
241 if ENABLE_RPI_COMPOSITOR
242 if INSTALL_RPI_COMPOSITOR
243 module_LTLIBRARIES += rpi-backend.la
245 noinst_LTLIBRARIES += rpi-backend.la
248 rpi_backend_la_LDFLAGS = -module -avoid-version
249 rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
250 $(RPI_COMPOSITOR_LIBS) \
251 $(RPI_BCM_HOST_LIBS) \
252 $(INPUT_BACKEND_LIBS) \
253 libsession-helper.la \
255 rpi_backend_la_CFLAGS = \
257 $(COMPOSITOR_CFLAGS) \
258 $(RPI_COMPOSITOR_CFLAGS) \
259 $(RPI_BCM_HOST_CFLAGS)
260 rpi_backend_la_SOURCES = \
261 src/compositor-rpi.c \
264 src/rpi-bcm-stubs.h \
265 $(INPUT_BACKEND_SOURCES)
268 rpi_backend_la_LIBADD += $(EGL_LIBS)
269 rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
274 if ENABLE_HEADLESS_COMPOSITOR
275 module_LTLIBRARIES += headless-backend.la
276 headless_backend_la_LDFLAGS = -module -avoid-version
277 headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
278 headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
279 headless_backend_la_SOURCES = src/compositor-headless.c
282 if ENABLE_FBDEV_COMPOSITOR
283 module_LTLIBRARIES += fbdev-backend.la
284 fbdev_backend_la_LDFLAGS = -module -avoid-version
285 fbdev_backend_la_LIBADD = \
287 $(FBDEV_COMPOSITOR_LIBS) \
288 $(INPUT_BACKEND_LIBS) \
289 libsession-helper.la \
291 fbdev_backend_la_CFLAGS = \
292 $(COMPOSITOR_CFLAGS) \
294 $(FBDEV_COMPOSITOR_CFLAGS) \
297 fbdev_backend_la_SOURCES = \
298 src/compositor-fbdev.c \
299 $(INPUT_BACKEND_SOURCES)
302 if ENABLE_RDP_COMPOSITOR
303 module_LTLIBRARIES += rdp-backend.la
304 rdp_backend_la_LDFLAGS = -module -avoid-version
305 rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
306 $(RDP_COMPOSITOR_LIBS) \
308 rdp_backend_la_CFLAGS = \
309 $(COMPOSITOR_CFLAGS) \
310 $(RDP_COMPOSITOR_CFLAGS) \
312 rdp_backend_la_SOURCES = src/compositor-rdp.c
316 module_LTLIBRARIES += cms-static.la
317 cms_static_la_LDFLAGS = -module -avoid-version
318 cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
319 cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
320 cms_static_la_SOURCES = \
325 module_LTLIBRARIES += cms-colord.la
326 cms_colord_la_LDFLAGS = -module -avoid-version
327 cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
328 cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
329 cms_colord_la_SOURCES = \
336 noinst_PROGRAMS += spring-tool
337 spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
338 spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
339 spring_tool_SOURCES = \
348 bin_PROGRAMS += weston-terminal weston-info
350 libexec_PROGRAMS += \
351 weston-desktop-shell \
352 weston-screenshooter \
371 if INSTALL_DEMO_CLIENTS
372 bin_PROGRAMS += $(demo_clients)
374 noinst_PROGRAMS += $(demo_clients)
378 if BUILD_SIMPLE_CLIENTS
381 weston-simple-damage \
382 weston-simple-touch \
383 weston-presentation-shm \
384 weston-multi-resource
386 weston_simple_shm_SOURCES = clients/simple-shm.c
387 nodist_weston_simple_shm_SOURCES = \
388 protocol/xdg-shell-protocol.c \
389 protocol/xdg-shell-client-protocol.h \
390 protocol/fullscreen-shell-protocol.c \
391 protocol/fullscreen-shell-client-protocol.h
392 weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
393 weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
395 weston_simple_damage_SOURCES = clients/simple-damage.c
396 nodist_weston_simple_damage_SOURCES = \
397 protocol/scaler-protocol.c \
398 protocol/scaler-client-protocol.h \
399 protocol/xdg-shell-protocol.c \
400 protocol/xdg-shell-client-protocol.h \
401 protocol/fullscreen-shell-protocol.c \
402 protocol/fullscreen-shell-client-protocol.h
403 weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
404 weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
406 weston_simple_touch_SOURCES = clients/simple-touch.c
407 weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
408 weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
410 weston_presentation_shm_SOURCES = clients/presentation-shm.c
411 nodist_weston_presentation_shm_SOURCES = \
412 protocol/presentation_timing-protocol.c \
413 protocol/presentation_timing-client-protocol.h
414 weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
415 weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
417 weston_multi_resource_SOURCES = clients/multi-resource.c
418 weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
419 weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm
422 if BUILD_SIMPLE_EGL_CLIENTS
423 demo_clients += weston-simple-egl
424 weston_simple_egl_SOURCES = clients/simple-egl.c
425 nodist_weston_simple_egl_SOURCES = \
426 protocol/xdg-shell-protocol.c \
427 protocol/xdg-shell-client-protocol.h
428 weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
429 weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
432 noinst_LTLIBRARIES += libtoytoolkit.la
434 libtoytoolkit_la_SOURCES = \
438 nodist_libtoytoolkit_la_SOURCES = \
439 protocol/text-cursor-position-protocol.c \
440 protocol/text-cursor-position-client-protocol.h \
441 protocol/scaler-protocol.c \
442 protocol/scaler-client-protocol.h \
443 protocol/workspaces-protocol.c \
444 protocol/workspaces-client-protocol.h \
445 protocol/presentation_timing-protocol.c \
446 protocol/presentation_timing-client-protocol.h \
447 protocol/xdg-shell-protocol.c \
448 protocol/xdg-shell-client-protocol.h \
449 protocol/ivi-application-protocol.c \
450 protocol/ivi-application-client-protocol.h
452 BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
455 libtoytoolkit_la_LIBADD = \
458 libshared-cairo.la -lrt -lm
459 libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
461 weston_flower_SOURCES = clients/flower.c
462 weston_flower_LDADD = libtoytoolkit.la
463 weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
465 weston_screenshooter_SOURCES = \
467 nodist_weston_screenshooter_SOURCES = \
468 protocol/screenshooter-protocol.c \
469 protocol/screenshooter-client-protocol.h
470 weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
471 weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
473 weston_terminal_SOURCES = clients/terminal.c
474 weston_terminal_LDADD = libtoytoolkit.la -lutil
475 weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
477 weston_image_SOURCES = clients/image.c
478 weston_image_LDADD = libtoytoolkit.la
479 weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
481 weston_cliptest_SOURCES = \
483 src/vertex-clipping.c \
484 src/vertex-clipping.h
485 weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
486 weston_cliptest_LDADD = libtoytoolkit.la
488 weston_dnd_SOURCES = clients/dnd.c
489 weston_dnd_LDADD = libtoytoolkit.la
490 weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
492 weston_smoke_SOURCES = clients/smoke.c
493 weston_smoke_LDADD = libtoytoolkit.la
494 weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
496 weston_resizor_SOURCES = clients/resizor.c
497 weston_resizor_LDADD = libtoytoolkit.la
498 weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
500 weston_scaler_SOURCES = clients/scaler.c
501 weston_scaler_LDADD = libtoytoolkit.la
502 weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
505 demo_clients += weston-nested weston-nested-client
507 weston_nested_SOURCES = clients/nested.c
508 weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
509 weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
511 weston_nested_client_SOURCES = clients/nested-client.c
512 weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
513 weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
516 weston_eventdemo_SOURCES = clients/eventdemo.c
517 weston_eventdemo_LDADD = libtoytoolkit.la
518 weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
520 weston_clickdot_SOURCES = clients/clickdot.c
521 weston_clickdot_LDADD = libtoytoolkit.la
522 weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
524 weston_transformed_SOURCES = clients/transformed.c
525 weston_transformed_LDADD = libtoytoolkit.la
526 weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
528 weston_fullscreen_SOURCES = clients/fullscreen.c
529 nodist_weston_fullscreen_SOURCES = \
530 protocol/fullscreen-shell-protocol.c \
531 protocol/fullscreen-shell-client-protocol.h
532 weston_fullscreen_LDADD = libtoytoolkit.la
533 weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
535 weston_stacking_SOURCES = clients/stacking.c
536 weston_stacking_LDADD = libtoytoolkit.la
537 weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
539 weston_calibrator_SOURCES = clients/calibrator.c \
542 weston_calibrator_LDADD = libtoytoolkit.la
543 weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
545 if BUILD_SUBSURFACES_CLIENT
546 demo_clients += weston-subsurfaces
547 weston_subsurfaces_SOURCES = clients/subsurfaces.c
548 weston_subsurfaces_CFLAGS = \
550 $(SIMPLE_EGL_CLIENT_CFLAGS) \
552 weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
556 demo_clients += weston-editor
557 weston_editor_SOURCES = clients/editor.c
558 nodist_weston_editor_SOURCES = \
559 protocol/text-protocol.c \
560 protocol/text-client-protocol.h
561 weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
562 weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
565 weston_keyboard_SOURCES = clients/keyboard.c
566 nodist_weston_keyboard_SOURCES = \
567 protocol/desktop-shell-client-protocol.h \
568 protocol/desktop-shell-protocol.c \
569 protocol/input-method-protocol.c \
570 protocol/input-method-client-protocol.h
571 weston_keyboard_LDADD = libtoytoolkit.la
572 weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
574 weston_simple_im_SOURCES = clients/weston-simple-im.c
575 nodist_weston_simple_im_SOURCES = \
576 protocol/input-method-protocol.c \
577 protocol/input-method-client-protocol.h
578 weston_simple_im_LDADD = $(CLIENT_LIBS)
579 weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
581 weston_info_SOURCES = clients/weston-info.c
582 nodist_weston_info_SOURCES = \
583 protocol/presentation_timing-protocol.c \
584 protocol/presentation_timing-client-protocol.h
585 weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
586 weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
588 weston_desktop_shell_SOURCES = clients/desktop-shell.c
589 nodist_weston_desktop_shell_SOURCES = \
590 protocol/desktop-shell-client-protocol.h \
591 protocol/desktop-shell-protocol.c
592 weston_desktop_shell_LDADD = libtoytoolkit.la
593 weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
595 if BUILD_FULL_GL_CLIENTS
596 demo_clients += weston-gears
597 weston_gears_SOURCES = clients/gears.c
598 weston_gears_LDADD = libtoytoolkit.la
599 weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
602 libexec_PROGRAMS += weston-screensaver
603 weston_screensaver_SOURCES = \
604 clients/wscreensaver.c \
605 clients/wscreensaver.h \
606 clients/wscreensaver-glue.c \
607 clients/wscreensaver-glue.h \
610 nodist_weston_screensaver_SOURCES = \
611 protocol/desktop-shell-client-protocol.h \
612 protocol/desktop-shell-protocol.c
614 weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
615 weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
624 protocol/screenshooter-protocol.c \
625 protocol/screenshooter-client-protocol.h \
626 protocol/text-cursor-position-client-protocol.h \
627 protocol/text-cursor-position-protocol.c \
628 protocol/text-protocol.c \
629 protocol/text-client-protocol.h \
630 protocol/input-method-protocol.c \
631 protocol/input-method-client-protocol.h \
632 protocol/desktop-shell-client-protocol.h \
633 protocol/desktop-shell-protocol.c \
634 protocol/scaler-client-protocol.h \
635 protocol/scaler-protocol.c \
636 protocol/workspaces-client-protocol.h \
637 protocol/workspaces-protocol.c \
638 protocol/fullscreen-shell-protocol.c \
639 protocol/fullscreen-shell-client-protocol.h \
640 protocol/xdg-shell-protocol.c \
641 protocol/xdg-shell-client-protocol.h
644 westondatadir = $(datadir)/weston
645 dist_westondata_DATA = \
651 data/icon_window.png \
652 data/sign_close.png \
653 data/sign_maximize.png \
654 data/sign_minimize.png
658 bin_PROGRAMS += wcap-decode
660 wcap_decode_SOURCES = \
665 wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
666 wcap_decode_LDADD = $(WCAP_LIBS)
670 if ENABLE_DESKTOP_SHELL
672 module_LTLIBRARIES += desktop-shell.la
674 desktop_shell_la_CPPFLAGS = \
675 -I$(top_builddir)/protocol \
676 -I$(top_srcdir)/shared \
677 -I$(top_srcdir)/src \
678 -I$(top_builddir)/src \
679 -I$(top_builddir)/desktop-shell \
680 -DDATADIR='"$(datadir)"' \
681 -DMODULEDIR='"$(moduledir)"' \
682 -DLIBEXECDIR='"$(libexecdir)"' \
685 desktop_shell_la_LDFLAGS = -module -avoid-version
686 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
687 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
688 desktop_shell_la_SOURCES = \
689 desktop-shell/shell.h \
690 desktop-shell/shell.c \
691 desktop-shell/exposay.c \
692 desktop-shell/input-panel.c
693 nodist_desktop_shell_la_SOURCES = \
694 protocol/desktop-shell-protocol.c \
695 protocol/desktop-shell-server-protocol.h \
696 protocol/xdg-shell-protocol.c \
697 protocol/xdg-shell-server-protocol.h
699 BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
702 if ENABLE_FULLSCREEN_SHELL
704 module_LTLIBRARIES += fullscreen-shell.la
706 fullscreen_shell_la_CPPFLAGS = \
707 -I$(top_builddir)/protocol \
708 -I$(top_srcdir)/shared \
709 -I$(top_srcdir)/src \
710 -I$(top_builddir)/src \
713 fullscreen_shell_la_LDFLAGS = -module -avoid-version
714 fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
715 fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
716 fullscreen_shell_la_SOURCES = \
717 fullscreen-shell/fullscreen-shell.c
718 nodist_fullscreen_shell_la_SOURCES = \
719 protocol/fullscreen-shell-protocol.c \
720 protocol/fullscreen-shell-server-protocol.h
722 BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
727 module_LTLIBRARIES += \
730 ivi_layout = ivi-layout.la
731 ivi_layout_la_LDFLAGS = -module -avoid-version
732 ivi_layout_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
733 ivi_layout_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
734 ivi_layout_la_SOURCES = \
735 ivi-shell/ivi-layout-export.h \
736 ivi-shell/ivi-layout-private.h \
737 ivi-shell/ivi-layout.c \
738 ivi-shell/ivi-layout-transition.c
743 if ENABLE_SCREEN_SHARING
745 module_LTLIBRARIES += screen-share.la
747 screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
748 screen_share_la_LDFLAGS = -module -avoid-version
749 screen_share_la_LIBADD = \
751 $(SCREEN_SHARE_LIBS) \
753 screen_share_la_CFLAGS = \
754 $(COMPOSITOR_CFLAGS) \
755 $(SCREEN_SHARE_CFLAGS) \
757 screen_share_la_SOURCES = \
759 nodist_screen_share_la_SOURCES = \
760 protocol/fullscreen-shell-protocol.c \
761 protocol/fullscreen-shell-client-protocol.h
767 module_LTLIBRARIES += xwayland.la
769 xwayland_la_CPPFLAGS = \
770 -I$(top_builddir)/protocol \
771 -I$(top_srcdir)/shared \
772 -I$(top_srcdir)/src \
773 -I$(top_builddir)/src \
774 -I$(top_builddir)/xwayland \
775 -DDATADIR='"$(datadir)"' \
776 -DMODULEDIR='"$(moduledir)"' \
777 -DLIBEXECDIR='"$(libexecdir)"' \
778 -DXSERVER_PATH='"@XSERVER_PATH@"'
780 xwayland_la_LDFLAGS = -module -avoid-version
781 xwayland_la_LIBADD = \
783 $(top_builddir)/libshared-cairo.la
784 xwayland_la_CFLAGS = \
786 $(COMPOSITOR_CFLAGS) \
789 xwayland_la_SOURCES = \
790 xwayland/xwayland.h \
791 xwayland/window-manager.c \
792 xwayland/selection.c \
794 xwayland/launcher.c \
804 noinst_LTLIBRARIES += libshared.la libshared-cairo.la
806 libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
808 libshared_la_SOURCES = \
809 shared/config-parser.c \
810 shared/option-parser.c \
811 shared/config-parser.h \
812 shared/os-compatibility.c \
813 shared/os-compatibility.h
815 libshared_cairo_la_CFLAGS = \
816 -DDATADIR='"$(datadir)"' \
818 $(COMPOSITOR_CFLAGS) \
824 libshared_cairo_la_LIBADD = \
831 libshared_cairo_la_SOURCES = \
832 $(libshared_la_SOURCES) \
833 shared/image-loader.c \
834 shared/image-loader.h \
835 shared/cairo-util.c \
844 TESTS = $(shared_tests) $(module_tests) $(weston_tests)
852 surface-global-test.la
860 presentation.weston \
865 AM_TESTS_ENVIRONMENT = \
866 abs_builddir='$(abs_builddir)'; export abs_builddir;
868 TEST_EXTENSIONS = .la .weston
869 LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
870 WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
875 # To remove when automake 1.11 support is dropped
878 noinst_LTLIBRARIES += \
890 test_module_ldflags = \
891 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
893 surface_global_test_la_SOURCES = tests/surface-global-test.c
894 surface_global_test_la_LDFLAGS = $(test_module_ldflags)
895 surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
897 surface_test_la_SOURCES = tests/surface-test.c
898 surface_test_la_LDFLAGS = $(test_module_ldflags)
899 surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
901 weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
902 weston_test_la_LDFLAGS = $(test_module_ldflags)
903 weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
904 weston_test_la_SOURCES = tests/weston-test.c
905 nodist_weston_test_la_SOURCES = \
906 protocol/wayland-test-protocol.c \
907 protocol/wayland-test-server-protocol.h
910 weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
911 weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
914 libtest_runner_la_SOURCES = \
915 tests/weston-test-runner.c \
916 tests/weston-test-runner.h
917 libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
919 config_parser_test_SOURCES = tests/config-parser-test.c
920 config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
922 vertex_clip_test_SOURCES = \
923 tests/vertex-clip-test.c \
924 src/vertex-clipping.c \
925 src/vertex-clipping.h
926 vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
928 libtest_client_la_SOURCES = \
929 tests/weston-test-client-helper.c \
930 tests/weston-test-client-helper.h
931 nodist_libtest_client_la_SOURCES = \
932 protocol/wayland-test-protocol.c \
933 protocol/wayland-test-client-protocol.h
934 libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
935 libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
937 bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
938 bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
939 bad_buffer_weston_LDADD = libtest-client.la
941 keyboard_weston_SOURCES = tests/keyboard-test.c
942 keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
943 keyboard_weston_LDADD = libtest-client.la
945 event_weston_SOURCES = tests/event-test.c
946 event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
947 event_weston_LDADD = libtest-client.la
949 button_weston_SOURCES = tests/button-test.c
950 button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
951 button_weston_LDADD = libtest-client.la
953 text_weston_SOURCES = tests/text-test.c
954 nodist_text_weston_SOURCES = \
955 protocol/text-protocol.c \
956 protocol/text-client-protocol.h
957 text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
958 text_weston_LDADD = libtest-client.la
960 subsurface_weston_SOURCES = tests/subsurface-test.c
961 subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
962 subsurface_weston_LDADD = libtest-client.la
964 presentation_weston_SOURCES = tests/presentation-test.c
965 nodist_presentation_weston_SOURCES = \
966 protocol/presentation_timing-protocol.c \
967 protocol/presentation_timing-client-protocol.h
968 presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
969 presentation_weston_LDADD = libtest-client.la
971 roles_weston_SOURCES = tests/roles-test.c
972 roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
973 roles_weston_LDADD = libtest-client.la
976 weston_tests += buffer-count.weston
977 buffer_count_weston_SOURCES = tests/buffer-count-test.c
978 buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
979 buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
982 if ENABLE_XWAYLAND_TEST
983 weston_tests += xwayland-test.weston
984 xwayland_test_weston_SOURCES = tests/xwayland-test.c
985 xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
986 xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
989 matrix_test_SOURCES = \
990 tests/matrix-test.c \
993 matrix_test_CPPFLAGS = -DUNIT_TEST
994 matrix_test_LDADD = -lm -lrt
996 if BUILD_SETBACKLIGHT
997 noinst_PROGRAMS += setbacklight
998 setbacklight_SOURCES = \
999 tests/setbacklight.c \
1000 src/libbacklight.c \
1002 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1003 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1006 EXTRA_DIST += tests/weston-tests-env
1009 protocol/wayland-test-protocol.c \
1010 protocol/wayland-test-server-protocol.h \
1011 protocol/wayland-test-client-protocol.h \
1012 protocol/text-protocol.c \
1013 protocol/text-client-protocol.h
1016 protocol/desktop-shell.xml \
1017 protocol/screenshooter.xml \
1019 protocol/input-method.xml \
1020 protocol/workspaces.xml \
1021 protocol/text-cursor-position.xml \
1022 protocol/wayland-test.xml \
1023 protocol/xdg-shell.xml \
1024 protocol/fullscreen-shell.xml \
1025 protocol/presentation_timing.xml \
1026 protocol/scaler.xml \
1027 protocol/ivi-application.xml
1029 man_MANS = weston.1 weston.ini.5
1031 if ENABLE_DRM_COMPOSITOR
1032 man_MANS += weston-drm.7
1036 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1037 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1038 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1039 -e 's|__version__|$(PACKAGE_VERSION)|g'
1041 SUFFIXES = .1 .5 .7 .man
1043 %.1 %.5 %.7 : man/%.man
1044 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1048 man/weston-drm.man \
1051 CLEANFILES += $(man_MANS)
1054 protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1055 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1057 protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1058 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1060 protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1061 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@