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/presentation_timing-protocol.c \
89 protocol/presentation_timing-server-protocol.h \
90 protocol/scaler-protocol.c \
91 protocol/scaler-server-protocol.h
93 BUILT_SOURCES += $(nodist_weston_SOURCES)
95 # Track this dependency explicitly instead of using BUILT_SOURCES. We
96 # add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
97 # in case we're building from tarballs.
99 src/compositor.c : $(top_builddir)/src/git-version.h
101 noinst_LTLIBRARIES += \
104 libsession_helper_la_SOURCES = \
105 src/weston-launch.h \
106 src/launcher-util.c \
108 libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
109 libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
112 if HAVE_SYSTEMD_LOGIN
113 libsession_helper_la_SOURCES += \
118 libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
119 libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
124 src/git-version.h : $(top_srcdir)/.git/logs/HEAD
125 $(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)')\"" > $@
128 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
134 if BUILD_WESTON_LAUNCH
135 bin_PROGRAMS += weston-launch
136 weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
137 weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
138 weston_launch_CFLAGS= \
141 $(SYSTEMD_LOGIN_CFLAGS) \
143 weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
145 if ENABLE_SETUID_INSTALL
147 chown root $(DESTDIR)$(bindir)/weston-launch
148 chmod u+s $(DESTDIR)$(bindir)/weston-launch
151 endif # BUILD_WESTON_LAUNCH
153 pkgconfigdir = $(libdir)/pkgconfig
154 pkgconfig_DATA = src/weston.pc
156 westonincludedir = $(includedir)/weston
157 westoninclude_HEADERS = \
161 shared/config-parser.h \
165 module_LTLIBRARIES += gl-renderer.la
166 gl_renderer_la_LDFLAGS = -module -avoid-version
167 gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
168 gl_renderer_la_CFLAGS = \
169 $(COMPOSITOR_CFLAGS) \
172 gl_renderer_la_SOURCES = \
175 src/vertex-clipping.c \
176 src/vertex-clipping.h
179 if ENABLE_X11_COMPOSITOR
180 module_LTLIBRARIES += x11-backend.la
181 x11_backend_la_LDFLAGS = -module -avoid-version
182 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
184 x11_backend_la_CFLAGS = \
185 $(COMPOSITOR_CFLAGS) \
189 $(X11_COMPOSITOR_CFLAGS) \
191 x11_backend_la_SOURCES = src/compositor-x11.c
194 INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
195 INPUT_BACKEND_SOURCES = \
196 src/libinput-seat.c \
197 src/libinput-seat.h \
198 src/libinput-device.c \
199 src/libinput-device.h
201 if ENABLE_DRM_COMPOSITOR
202 module_LTLIBRARIES += drm-backend.la
203 drm_backend_la_LDFLAGS = -module -avoid-version
204 drm_backend_la_LIBADD = \
206 $(DRM_COMPOSITOR_LIBS) \
207 $(INPUT_BACKEND_LIBS) \
210 drm_backend_la_CFLAGS = \
211 $(COMPOSITOR_CFLAGS) \
213 $(DRM_COMPOSITOR_CFLAGS) \
215 drm_backend_la_SOURCES = \
216 src/compositor-drm.c \
217 $(INPUT_BACKEND_SOURCES) \
221 if ENABLE_VAAPI_RECORDER
222 drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
223 drm_backend_la_LIBADD += $(LIBVA_LIBS)
224 drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
228 if ENABLE_WAYLAND_COMPOSITOR
229 module_LTLIBRARIES += wayland-backend.la
230 wayland_backend_la_LDFLAGS = -module -avoid-version
231 wayland_backend_la_LIBADD = \
233 $(WAYLAND_COMPOSITOR_LIBS) \
235 wayland_backend_la_CFLAGS = \
236 $(COMPOSITOR_CFLAGS) \
240 $(WAYLAND_COMPOSITOR_CFLAGS) \
242 wayland_backend_la_SOURCES = src/compositor-wayland.c
243 nodist_wayland_backend_la_SOURCES = \
244 protocol/fullscreen-shell-protocol.c \
245 protocol/fullscreen-shell-client-protocol.h
248 if ENABLE_RPI_COMPOSITOR
249 if INSTALL_RPI_COMPOSITOR
250 module_LTLIBRARIES += rpi-backend.la
252 noinst_LTLIBRARIES += rpi-backend.la
255 rpi_backend_la_LDFLAGS = -module -avoid-version
256 rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
257 $(RPI_COMPOSITOR_LIBS) \
258 $(RPI_BCM_HOST_LIBS) \
259 $(INPUT_BACKEND_LIBS) \
260 libsession-helper.la \
262 rpi_backend_la_CFLAGS = \
264 $(COMPOSITOR_CFLAGS) \
265 $(RPI_COMPOSITOR_CFLAGS) \
266 $(RPI_BCM_HOST_CFLAGS)
267 rpi_backend_la_SOURCES = \
268 src/compositor-rpi.c \
271 src/rpi-bcm-stubs.h \
272 $(INPUT_BACKEND_SOURCES)
275 rpi_backend_la_LIBADD += $(EGL_LIBS)
276 rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
281 if ENABLE_HEADLESS_COMPOSITOR
282 module_LTLIBRARIES += headless-backend.la
283 headless_backend_la_LDFLAGS = -module -avoid-version
284 headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
285 headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
286 headless_backend_la_SOURCES = src/compositor-headless.c
289 if ENABLE_FBDEV_COMPOSITOR
290 module_LTLIBRARIES += fbdev-backend.la
291 fbdev_backend_la_LDFLAGS = -module -avoid-version
292 fbdev_backend_la_LIBADD = \
294 $(FBDEV_COMPOSITOR_LIBS) \
295 $(INPUT_BACKEND_LIBS) \
296 libsession-helper.la \
298 fbdev_backend_la_CFLAGS = \
299 $(COMPOSITOR_CFLAGS) \
301 $(FBDEV_COMPOSITOR_CFLAGS) \
304 fbdev_backend_la_SOURCES = \
305 src/compositor-fbdev.c \
306 $(INPUT_BACKEND_SOURCES)
309 if ENABLE_RDP_COMPOSITOR
310 module_LTLIBRARIES += rdp-backend.la
311 rdp_backend_la_LDFLAGS = -module -avoid-version
312 rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
313 $(RDP_COMPOSITOR_LIBS) \
315 rdp_backend_la_CFLAGS = \
316 $(COMPOSITOR_CFLAGS) \
317 $(RDP_COMPOSITOR_CFLAGS) \
319 rdp_backend_la_SOURCES = src/compositor-rdp.c
323 module_LTLIBRARIES += cms-static.la
324 cms_static_la_LDFLAGS = -module -avoid-version
325 cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
326 cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
327 cms_static_la_SOURCES = \
332 module_LTLIBRARIES += cms-colord.la
333 cms_colord_la_LDFLAGS = -module -avoid-version
334 cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
335 cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
336 cms_colord_la_SOURCES = \
343 noinst_PROGRAMS += spring-tool
344 spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
345 spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
346 spring_tool_SOURCES = \
355 bin_PROGRAMS += weston-terminal weston-info
357 libexec_PROGRAMS += \
358 weston-desktop-shell \
359 weston-screenshooter \
364 libexec_PROGRAMS += \
365 weston-ivi-shell-user-interface
383 if INSTALL_DEMO_CLIENTS
384 bin_PROGRAMS += $(demo_clients)
386 noinst_PROGRAMS += $(demo_clients)
390 if BUILD_SIMPLE_CLIENTS
393 weston-simple-damage \
394 weston-simple-touch \
395 weston-presentation-shm \
396 weston-multi-resource
398 weston_simple_shm_SOURCES = clients/simple-shm.c
399 nodist_weston_simple_shm_SOURCES = \
400 protocol/xdg-shell-protocol.c \
401 protocol/xdg-shell-client-protocol.h \
402 protocol/fullscreen-shell-protocol.c \
403 protocol/fullscreen-shell-client-protocol.h \
404 protocol/ivi-application-protocol.c \
405 protocol/ivi-application-client-protocol.h
406 weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
407 weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
409 weston_simple_damage_SOURCES = clients/simple-damage.c
410 nodist_weston_simple_damage_SOURCES = \
411 protocol/scaler-protocol.c \
412 protocol/scaler-client-protocol.h \
413 protocol/xdg-shell-protocol.c \
414 protocol/xdg-shell-client-protocol.h \
415 protocol/fullscreen-shell-protocol.c \
416 protocol/fullscreen-shell-client-protocol.h
417 weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
418 weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
420 weston_simple_touch_SOURCES = clients/simple-touch.c
421 weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
422 weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
424 weston_presentation_shm_SOURCES = clients/presentation-shm.c
425 nodist_weston_presentation_shm_SOURCES = \
426 protocol/presentation_timing-protocol.c \
427 protocol/presentation_timing-client-protocol.h
428 weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
429 weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
431 weston_multi_resource_SOURCES = clients/multi-resource.c
432 weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
433 weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm
436 if BUILD_SIMPLE_EGL_CLIENTS
437 demo_clients += weston-simple-egl
438 weston_simple_egl_SOURCES = clients/simple-egl.c
439 nodist_weston_simple_egl_SOURCES = \
440 protocol/xdg-shell-protocol.c \
441 protocol/xdg-shell-client-protocol.h \
442 protocol/ivi-application-protocol.c \
443 protocol/ivi-application-client-protocol.h
444 weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
445 weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
448 noinst_LTLIBRARIES += libtoytoolkit.la
450 libtoytoolkit_la_SOURCES = \
454 nodist_libtoytoolkit_la_SOURCES = \
455 protocol/text-cursor-position-protocol.c \
456 protocol/text-cursor-position-client-protocol.h \
457 protocol/scaler-protocol.c \
458 protocol/scaler-client-protocol.h \
459 protocol/workspaces-protocol.c \
460 protocol/workspaces-client-protocol.h \
461 protocol/presentation_timing-protocol.c \
462 protocol/presentation_timing-client-protocol.h \
463 protocol/xdg-shell-protocol.c \
464 protocol/xdg-shell-client-protocol.h \
465 protocol/ivi-application-protocol.c \
466 protocol/ivi-application-client-protocol.h
468 BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
471 libtoytoolkit_la_LIBADD = \
474 libshared-cairo.la -lrt -lm
475 libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
477 weston_flower_SOURCES = clients/flower.c
478 weston_flower_LDADD = libtoytoolkit.la
479 weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
481 weston_screenshooter_SOURCES = \
483 nodist_weston_screenshooter_SOURCES = \
484 protocol/screenshooter-protocol.c \
485 protocol/screenshooter-client-protocol.h
486 weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
487 weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
489 weston_terminal_SOURCES = clients/terminal.c
490 weston_terminal_LDADD = libtoytoolkit.la -lutil
491 weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
493 weston_image_SOURCES = clients/image.c
494 weston_image_LDADD = libtoytoolkit.la
495 weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
497 weston_cliptest_SOURCES = \
499 src/vertex-clipping.c \
500 src/vertex-clipping.h
501 weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
502 weston_cliptest_LDADD = libtoytoolkit.la
504 weston_dnd_SOURCES = clients/dnd.c
505 weston_dnd_LDADD = libtoytoolkit.la
506 weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
508 weston_smoke_SOURCES = clients/smoke.c
509 weston_smoke_LDADD = libtoytoolkit.la
510 weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
512 weston_resizor_SOURCES = clients/resizor.c
513 weston_resizor_LDADD = libtoytoolkit.la
514 weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
516 weston_scaler_SOURCES = clients/scaler.c
517 weston_scaler_LDADD = libtoytoolkit.la
518 weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
521 demo_clients += weston-nested weston-nested-client
523 weston_nested_SOURCES = clients/nested.c
524 weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
525 weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
527 weston_nested_client_SOURCES = clients/nested-client.c
528 weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
529 weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
532 weston_eventdemo_SOURCES = clients/eventdemo.c
533 weston_eventdemo_LDADD = libtoytoolkit.la
534 weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
536 weston_clickdot_SOURCES = clients/clickdot.c
537 weston_clickdot_LDADD = libtoytoolkit.la
538 weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
540 weston_transformed_SOURCES = clients/transformed.c
541 weston_transformed_LDADD = libtoytoolkit.la
542 weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
544 weston_fullscreen_SOURCES = clients/fullscreen.c
545 nodist_weston_fullscreen_SOURCES = \
546 protocol/fullscreen-shell-protocol.c \
547 protocol/fullscreen-shell-client-protocol.h
548 weston_fullscreen_LDADD = libtoytoolkit.la
549 weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
551 weston_stacking_SOURCES = clients/stacking.c
552 weston_stacking_LDADD = libtoytoolkit.la
553 weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
555 weston_calibrator_SOURCES = clients/calibrator.c \
558 weston_calibrator_LDADD = libtoytoolkit.la
559 weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
561 if BUILD_SUBSURFACES_CLIENT
562 demo_clients += weston-subsurfaces
563 weston_subsurfaces_SOURCES = clients/subsurfaces.c
564 weston_subsurfaces_CFLAGS = \
566 $(SIMPLE_EGL_CLIENT_CFLAGS) \
568 weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
572 demo_clients += weston-editor
573 weston_editor_SOURCES = clients/editor.c
574 nodist_weston_editor_SOURCES = \
575 protocol/text-protocol.c \
576 protocol/text-client-protocol.h
577 weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
578 weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
581 weston_keyboard_SOURCES = clients/keyboard.c
582 nodist_weston_keyboard_SOURCES = \
583 protocol/desktop-shell-client-protocol.h \
584 protocol/desktop-shell-protocol.c \
585 protocol/input-method-protocol.c \
586 protocol/input-method-client-protocol.h
587 weston_keyboard_LDADD = libtoytoolkit.la
588 weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
590 weston_simple_im_SOURCES = clients/weston-simple-im.c
591 nodist_weston_simple_im_SOURCES = \
592 protocol/input-method-protocol.c \
593 protocol/input-method-client-protocol.h
594 weston_simple_im_LDADD = $(CLIENT_LIBS)
595 weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
597 weston_info_SOURCES = clients/weston-info.c
598 nodist_weston_info_SOURCES = \
599 protocol/presentation_timing-protocol.c \
600 protocol/presentation_timing-client-protocol.h
601 weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
602 weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
604 weston_desktop_shell_SOURCES = clients/desktop-shell.c
605 nodist_weston_desktop_shell_SOURCES = \
606 protocol/desktop-shell-client-protocol.h \
607 protocol/desktop-shell-protocol.c
608 weston_desktop_shell_LDADD = libtoytoolkit.la
609 weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
612 weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
613 nodist_weston_ivi_shell_user_interface_SOURCES = \
614 protocol/ivi-hmi-controller-client-protocol.h \
615 protocol/ivi-hmi-controller-protocol.c \
616 protocol/ivi-application-client-protocol.h \
617 protocol/ivi-application-protocol.c
618 weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
619 weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
622 if BUILD_FULL_GL_CLIENTS
623 demo_clients += weston-gears
624 weston_gears_SOURCES = clients/gears.c
625 weston_gears_LDADD = libtoytoolkit.la
626 weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
629 libexec_PROGRAMS += weston-screensaver
630 weston_screensaver_SOURCES = \
631 clients/wscreensaver.c \
632 clients/wscreensaver.h \
633 clients/wscreensaver-glue.c \
634 clients/wscreensaver-glue.h \
637 nodist_weston_screensaver_SOURCES = \
638 protocol/desktop-shell-client-protocol.h \
639 protocol/desktop-shell-protocol.c
641 weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
642 weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
651 protocol/screenshooter-protocol.c \
652 protocol/screenshooter-client-protocol.h \
653 protocol/text-cursor-position-client-protocol.h \
654 protocol/text-cursor-position-protocol.c \
655 protocol/text-protocol.c \
656 protocol/text-client-protocol.h \
657 protocol/input-method-protocol.c \
658 protocol/input-method-client-protocol.h \
659 protocol/desktop-shell-client-protocol.h \
660 protocol/desktop-shell-protocol.c \
661 protocol/scaler-client-protocol.h \
662 protocol/scaler-protocol.c \
663 protocol/workspaces-client-protocol.h \
664 protocol/workspaces-protocol.c \
665 protocol/fullscreen-shell-protocol.c \
666 protocol/fullscreen-shell-client-protocol.h \
667 protocol/xdg-shell-protocol.c \
668 protocol/xdg-shell-client-protocol.h \
669 protocol/ivi-hmi-controller-protocol.c \
670 protocol/ivi-hmi-controller-client-protocol.h \
671 protocol/ivi-application-protocol.c \
672 protocol/ivi-application-client-protocol.h
674 westondatadir = $(datadir)/weston
675 dist_westondata_DATA = \
681 data/icon_window.png \
682 data/sign_close.png \
683 data/sign_maximize.png \
684 data/sign_minimize.png \
685 data/background.png \
687 data/fullscreen.png \
690 data/sidebyside.png \
692 data/icon_ivi_clickdot.png \
693 data/icon_ivi_flower.png \
694 data/icon_ivi_simple-egl.png \
695 data/icon_ivi_simple-shm.png \
696 data/icon_ivi_smoke.png
700 bin_PROGRAMS += wcap-decode
702 wcap_decode_SOURCES = \
707 wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
708 wcap_decode_LDADD = $(WCAP_LIBS)
712 if ENABLE_DESKTOP_SHELL
714 module_LTLIBRARIES += desktop-shell.la
716 desktop_shell_la_CPPFLAGS = \
717 -I$(top_builddir)/protocol \
718 -I$(top_srcdir)/shared \
719 -I$(top_srcdir)/src \
720 -I$(top_builddir)/src \
721 -I$(top_builddir)/desktop-shell \
722 -DDATADIR='"$(datadir)"' \
723 -DMODULEDIR='"$(moduledir)"' \
724 -DLIBEXECDIR='"$(libexecdir)"' \
727 desktop_shell_la_LDFLAGS = -module -avoid-version
728 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
729 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
730 desktop_shell_la_SOURCES = \
731 desktop-shell/shell.h \
732 desktop-shell/shell.c \
733 desktop-shell/exposay.c \
734 desktop-shell/input-panel.c
735 nodist_desktop_shell_la_SOURCES = \
736 protocol/desktop-shell-protocol.c \
737 protocol/desktop-shell-server-protocol.h \
738 protocol/xdg-shell-protocol.c \
739 protocol/xdg-shell-server-protocol.h
741 BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
744 if ENABLE_FULLSCREEN_SHELL
746 module_LTLIBRARIES += fullscreen-shell.la
748 fullscreen_shell_la_CPPFLAGS = \
749 -I$(top_builddir)/protocol \
750 -I$(top_srcdir)/shared \
751 -I$(top_srcdir)/src \
752 -I$(top_builddir)/src \
755 fullscreen_shell_la_LDFLAGS = -module -avoid-version
756 fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
757 fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
758 fullscreen_shell_la_SOURCES = \
759 fullscreen-shell/fullscreen-shell.c
760 nodist_fullscreen_shell_la_SOURCES = \
761 protocol/fullscreen-shell-protocol.c \
762 protocol/fullscreen-shell-server-protocol.h
764 BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
769 module_LTLIBRARIES += \
774 ivi_layout = ivi-layout.la
775 ivi_layout_la_LDFLAGS = -module -avoid-version
776 ivi_layout_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
777 ivi_layout_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
778 ivi_layout_la_SOURCES = \
779 ivi-shell/ivi-layout-export.h \
780 ivi-shell/ivi-layout-private.h \
781 ivi-shell/ivi-layout.c \
782 ivi-shell/ivi-layout-transition.c
784 ivi_shell = ivi-shell.la
785 ivi_shell_la_LDFLAGS = -module -avoid-version
786 ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
787 ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
788 ivi_shell_la_SOURCES = \
789 ivi-shell/ivi-shell.h \
790 ivi-shell/ivi-shell.c \
791 ivi-shell/ivi-layout-private.h \
792 ivi-shell/input-panel-ivi.c
793 nodist_ivi_shell_la_SOURCES = \
794 protocol/ivi-application-protocol.c \
795 protocol/ivi-application-server-protocol.h
797 BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
799 hmi_controller = hmi-controller.la
800 hmi_controller_la_LDFLAGS = -module -avoid-version
801 hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
802 hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
803 hmi_controller_la_SOURCES = \
804 ivi-shell/ivi-layout-export.h \
805 ivi-shell/hmi-controller.c
806 nodist_hmi_controller_la_SOURCES = \
807 protocol/ivi-hmi-controller-protocol.c \
808 protocol/ivi-hmi-controller-server-protocol.h
810 BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
815 if ENABLE_SCREEN_SHARING
817 module_LTLIBRARIES += screen-share.la
819 screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
820 screen_share_la_LDFLAGS = -module -avoid-version
821 screen_share_la_LIBADD = \
823 $(SCREEN_SHARE_LIBS) \
825 screen_share_la_CFLAGS = \
826 $(COMPOSITOR_CFLAGS) \
827 $(SCREEN_SHARE_CFLAGS) \
829 screen_share_la_SOURCES = \
831 nodist_screen_share_la_SOURCES = \
832 protocol/fullscreen-shell-protocol.c \
833 protocol/fullscreen-shell-client-protocol.h
839 module_LTLIBRARIES += xwayland.la
841 xwayland_la_CPPFLAGS = \
842 -I$(top_builddir)/protocol \
843 -I$(top_srcdir)/shared \
844 -I$(top_srcdir)/src \
845 -I$(top_builddir)/src \
846 -I$(top_builddir)/xwayland \
847 -DDATADIR='"$(datadir)"' \
848 -DMODULEDIR='"$(moduledir)"' \
849 -DLIBEXECDIR='"$(libexecdir)"' \
850 -DXSERVER_PATH='"@XSERVER_PATH@"'
852 xwayland_la_LDFLAGS = -module -avoid-version
853 xwayland_la_LIBADD = \
855 $(top_builddir)/libshared-cairo.la
856 xwayland_la_CFLAGS = \
858 $(COMPOSITOR_CFLAGS) \
861 xwayland_la_SOURCES = \
862 xwayland/xwayland.h \
863 xwayland/window-manager.c \
864 xwayland/selection.c \
866 xwayland/launcher.c \
876 noinst_LTLIBRARIES += libshared.la libshared-cairo.la
878 libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
880 libshared_la_SOURCES = \
881 shared/config-parser.c \
882 shared/option-parser.c \
883 shared/config-parser.h \
884 shared/os-compatibility.c \
885 shared/os-compatibility.h
887 libshared_cairo_la_CFLAGS = \
888 -DDATADIR='"$(datadir)"' \
890 $(COMPOSITOR_CFLAGS) \
896 libshared_cairo_la_LIBADD = \
903 libshared_cairo_la_SOURCES = \
904 $(libshared_la_SOURCES) \
905 shared/image-loader.c \
906 shared/image-loader.h \
907 shared/cairo-util.c \
916 TESTS = $(shared_tests) $(module_tests) $(weston_tests)
924 surface-global-test.la
932 presentation.weston \
937 AM_TESTS_ENVIRONMENT = \
938 abs_builddir='$(abs_builddir)'; export abs_builddir;
940 TEST_EXTENSIONS = .la .weston
941 LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
942 WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
947 # To remove when automake 1.11 support is dropped
950 noinst_LTLIBRARIES += \
962 test_module_ldflags = \
963 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
965 surface_global_test_la_SOURCES = tests/surface-global-test.c
966 surface_global_test_la_LDFLAGS = $(test_module_ldflags)
967 surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
969 surface_test_la_SOURCES = tests/surface-test.c
970 surface_test_la_LDFLAGS = $(test_module_ldflags)
971 surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
973 weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
974 weston_test_la_LDFLAGS = $(test_module_ldflags)
975 weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
976 weston_test_la_SOURCES = tests/weston-test.c
977 nodist_weston_test_la_SOURCES = \
978 protocol/wayland-test-protocol.c \
979 protocol/wayland-test-server-protocol.h
982 weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
983 weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
986 libtest_runner_la_SOURCES = \
987 tests/weston-test-runner.c \
988 tests/weston-test-runner.h
989 libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
991 config_parser_test_SOURCES = tests/config-parser-test.c
992 config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
994 vertex_clip_test_SOURCES = \
995 tests/vertex-clip-test.c \
996 src/vertex-clipping.c \
997 src/vertex-clipping.h
998 vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
1000 libtest_client_la_SOURCES = \
1001 tests/weston-test-client-helper.c \
1002 tests/weston-test-client-helper.h
1003 nodist_libtest_client_la_SOURCES = \
1004 protocol/wayland-test-protocol.c \
1005 protocol/wayland-test-client-protocol.h
1006 libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1007 libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
1009 bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
1010 bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1011 bad_buffer_weston_LDADD = libtest-client.la
1013 keyboard_weston_SOURCES = tests/keyboard-test.c
1014 keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1015 keyboard_weston_LDADD = libtest-client.la
1017 event_weston_SOURCES = tests/event-test.c
1018 event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1019 event_weston_LDADD = libtest-client.la
1021 button_weston_SOURCES = tests/button-test.c
1022 button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1023 button_weston_LDADD = libtest-client.la
1025 text_weston_SOURCES = tests/text-test.c
1026 nodist_text_weston_SOURCES = \
1027 protocol/text-protocol.c \
1028 protocol/text-client-protocol.h
1029 text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1030 text_weston_LDADD = libtest-client.la
1032 subsurface_weston_SOURCES = tests/subsurface-test.c
1033 subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1034 subsurface_weston_LDADD = libtest-client.la
1036 presentation_weston_SOURCES = tests/presentation-test.c
1037 nodist_presentation_weston_SOURCES = \
1038 protocol/presentation_timing-protocol.c \
1039 protocol/presentation_timing-client-protocol.h
1040 presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1041 presentation_weston_LDADD = libtest-client.la
1043 roles_weston_SOURCES = tests/roles-test.c
1044 roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1045 roles_weston_LDADD = libtest-client.la
1048 weston_tests += buffer-count.weston
1049 buffer_count_weston_SOURCES = tests/buffer-count-test.c
1050 buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1051 buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1054 if ENABLE_XWAYLAND_TEST
1055 weston_tests += xwayland-test.weston
1056 xwayland_test_weston_SOURCES = tests/xwayland-test.c
1057 xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1058 xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
1061 matrix_test_SOURCES = \
1062 tests/matrix-test.c \
1065 matrix_test_CPPFLAGS = -DUNIT_TEST
1066 matrix_test_LDADD = -lm -lrt
1068 if BUILD_SETBACKLIGHT
1069 noinst_PROGRAMS += setbacklight
1070 setbacklight_SOURCES = \
1071 tests/setbacklight.c \
1072 src/libbacklight.c \
1074 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1075 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1078 EXTRA_DIST += tests/weston-tests-env
1081 protocol/wayland-test-protocol.c \
1082 protocol/wayland-test-server-protocol.h \
1083 protocol/wayland-test-client-protocol.h \
1084 protocol/text-protocol.c \
1085 protocol/text-client-protocol.h
1088 protocol/desktop-shell.xml \
1089 protocol/screenshooter.xml \
1091 protocol/input-method.xml \
1092 protocol/workspaces.xml \
1093 protocol/text-cursor-position.xml \
1094 protocol/wayland-test.xml \
1095 protocol/xdg-shell.xml \
1096 protocol/fullscreen-shell.xml \
1097 protocol/presentation_timing.xml \
1098 protocol/scaler.xml \
1099 protocol/ivi-application.xml \
1100 protocol/ivi-hmi-controller.xml
1102 man_MANS = weston.1 weston.ini.5
1104 if ENABLE_DRM_COMPOSITOR
1105 man_MANS += weston-drm.7
1109 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1110 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1111 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1112 -e 's|__version__|$(PACKAGE_VERSION)|g'
1114 SUFFIXES = .1 .5 .7 .man
1116 %.1 %.5 %.7 : man/%.man
1117 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1121 man/weston-drm.man \
1124 CLEANFILES += $(man_MANS)
1127 protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1128 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1130 protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1131 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1133 protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1134 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@