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 \
74 src/timeline-object.h \
80 nodist_weston_SOURCES = \
81 protocol/screenshooter-protocol.c \
82 protocol/screenshooter-server-protocol.h \
83 protocol/text-cursor-position-protocol.c \
84 protocol/text-cursor-position-server-protocol.h \
85 protocol/text-protocol.c \
86 protocol/text-server-protocol.h \
87 protocol/input-method-protocol.c \
88 protocol/input-method-server-protocol.h \
89 protocol/workspaces-protocol.c \
90 protocol/workspaces-server-protocol.h \
91 protocol/presentation_timing-protocol.c \
92 protocol/presentation_timing-server-protocol.h \
93 protocol/scaler-protocol.c \
94 protocol/scaler-server-protocol.h
96 BUILT_SOURCES += $(nodist_weston_SOURCES)
98 # Track this dependency explicitly instead of using BUILT_SOURCES. We
99 # add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
100 # in case we're building from tarballs.
102 src/compositor.c : $(top_builddir)/src/git-version.h
104 noinst_LTLIBRARIES += \
107 libsession_helper_la_SOURCES = \
108 src/weston-launch.h \
109 src/launcher-util.c \
111 libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
112 libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
115 if HAVE_SYSTEMD_LOGIN
116 libsession_helper_la_SOURCES += \
121 libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
122 libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
127 src/git-version.h : $(top_srcdir)/.git/logs/HEAD
128 $(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)')\"" > $@
131 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
137 if BUILD_WESTON_LAUNCH
138 bin_PROGRAMS += weston-launch
139 weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
140 weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
141 weston_launch_CFLAGS= \
144 $(SYSTEMD_LOGIN_CFLAGS) \
146 weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
148 if ENABLE_SETUID_INSTALL
150 chown root $(DESTDIR)$(bindir)/weston-launch
151 chmod u+s $(DESTDIR)$(bindir)/weston-launch
154 endif # BUILD_WESTON_LAUNCH
156 pkgconfigdir = $(libdir)/pkgconfig
157 pkgconfig_DATA = src/weston.pc
159 EXTRA_DIST += $(wayland_session_DATA)
161 wayland_sessiondir = $(datadir)/wayland-sessions
162 wayland_session_DATA = src/weston.desktop
164 westonincludedir = $(includedir)/weston
165 westoninclude_HEADERS = \
168 src/timeline-object.h \
170 shared/config-parser.h \
174 module_LTLIBRARIES += gl-renderer.la
175 gl_renderer_la_LDFLAGS = -module -avoid-version
176 gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
177 gl_renderer_la_CFLAGS = \
178 $(COMPOSITOR_CFLAGS) \
181 gl_renderer_la_SOURCES = \
184 src/vertex-clipping.c \
185 src/vertex-clipping.h
188 if ENABLE_X11_COMPOSITOR
189 module_LTLIBRARIES += x11-backend.la
190 x11_backend_la_LDFLAGS = -module -avoid-version
191 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
193 x11_backend_la_CFLAGS = \
194 $(COMPOSITOR_CFLAGS) \
198 $(X11_COMPOSITOR_CFLAGS) \
200 x11_backend_la_SOURCES = src/compositor-x11.c
203 INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
204 INPUT_BACKEND_SOURCES = \
205 src/libinput-seat.c \
206 src/libinput-seat.h \
207 src/libinput-device.c \
208 src/libinput-device.h
210 if ENABLE_DRM_COMPOSITOR
211 module_LTLIBRARIES += drm-backend.la
212 drm_backend_la_LDFLAGS = -module -avoid-version
213 drm_backend_la_LIBADD = \
215 $(DRM_COMPOSITOR_LIBS) \
216 $(INPUT_BACKEND_LIBS) \
219 drm_backend_la_CFLAGS = \
220 $(COMPOSITOR_CFLAGS) \
222 $(DRM_COMPOSITOR_CFLAGS) \
224 drm_backend_la_SOURCES = \
225 src/compositor-drm.c \
226 $(INPUT_BACKEND_SOURCES) \
230 if ENABLE_VAAPI_RECORDER
231 drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
232 drm_backend_la_LIBADD += $(LIBVA_LIBS)
233 drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
237 if ENABLE_WAYLAND_COMPOSITOR
238 module_LTLIBRARIES += wayland-backend.la
239 wayland_backend_la_LDFLAGS = -module -avoid-version
240 wayland_backend_la_LIBADD = \
242 $(WAYLAND_COMPOSITOR_LIBS) \
244 wayland_backend_la_CFLAGS = \
245 $(COMPOSITOR_CFLAGS) \
249 $(WAYLAND_COMPOSITOR_CFLAGS) \
251 wayland_backend_la_SOURCES = src/compositor-wayland.c
252 nodist_wayland_backend_la_SOURCES = \
253 protocol/fullscreen-shell-protocol.c \
254 protocol/fullscreen-shell-client-protocol.h
257 if ENABLE_RPI_COMPOSITOR
258 if INSTALL_RPI_COMPOSITOR
259 module_LTLIBRARIES += rpi-backend.la
261 noinst_LTLIBRARIES += rpi-backend.la
264 rpi_backend_la_LDFLAGS = -module -avoid-version
265 rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
266 $(RPI_COMPOSITOR_LIBS) \
267 $(RPI_BCM_HOST_LIBS) \
268 $(INPUT_BACKEND_LIBS) \
269 libsession-helper.la \
271 rpi_backend_la_CFLAGS = \
273 $(COMPOSITOR_CFLAGS) \
274 $(RPI_COMPOSITOR_CFLAGS) \
275 $(RPI_BCM_HOST_CFLAGS)
276 rpi_backend_la_SOURCES = \
277 src/compositor-rpi.c \
280 src/rpi-bcm-stubs.h \
281 $(INPUT_BACKEND_SOURCES)
284 rpi_backend_la_LIBADD += $(EGL_LIBS)
285 rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
290 if ENABLE_HEADLESS_COMPOSITOR
291 module_LTLIBRARIES += headless-backend.la
292 headless_backend_la_LDFLAGS = -module -avoid-version
293 headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
294 headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
295 headless_backend_la_SOURCES = src/compositor-headless.c
298 if ENABLE_FBDEV_COMPOSITOR
299 module_LTLIBRARIES += fbdev-backend.la
300 fbdev_backend_la_LDFLAGS = -module -avoid-version
301 fbdev_backend_la_LIBADD = \
303 $(FBDEV_COMPOSITOR_LIBS) \
304 $(INPUT_BACKEND_LIBS) \
305 libsession-helper.la \
307 fbdev_backend_la_CFLAGS = \
308 $(COMPOSITOR_CFLAGS) \
310 $(FBDEV_COMPOSITOR_CFLAGS) \
313 fbdev_backend_la_SOURCES = \
314 src/compositor-fbdev.c \
315 $(INPUT_BACKEND_SOURCES)
318 if ENABLE_RDP_COMPOSITOR
319 module_LTLIBRARIES += rdp-backend.la
320 rdp_backend_la_LDFLAGS = -module -avoid-version
321 rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
322 $(RDP_COMPOSITOR_LIBS) \
324 rdp_backend_la_CFLAGS = \
325 $(COMPOSITOR_CFLAGS) \
326 $(RDP_COMPOSITOR_CFLAGS) \
328 rdp_backend_la_SOURCES = src/compositor-rdp.c
332 module_LTLIBRARIES += cms-static.la
333 cms_static_la_LDFLAGS = -module -avoid-version
334 cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
335 cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
336 cms_static_la_SOURCES = \
341 module_LTLIBRARIES += cms-colord.la
342 cms_colord_la_LDFLAGS = -module -avoid-version
343 cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
344 cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
345 cms_colord_la_SOURCES = \
352 noinst_PROGRAMS += spring-tool
353 spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
354 spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
355 spring_tool_SOURCES = \
364 bin_PROGRAMS += weston-terminal weston-info
366 libexec_PROGRAMS += \
367 weston-desktop-shell \
368 weston-screenshooter \
373 libexec_PROGRAMS += \
374 weston-ivi-shell-user-interface
392 if INSTALL_DEMO_CLIENTS
393 bin_PROGRAMS += $(demo_clients)
395 noinst_PROGRAMS += $(demo_clients)
399 if BUILD_SIMPLE_CLIENTS
402 weston-simple-damage \
403 weston-simple-touch \
404 weston-presentation-shm \
405 weston-multi-resource
407 weston_simple_shm_SOURCES = clients/simple-shm.c
408 nodist_weston_simple_shm_SOURCES = \
409 protocol/xdg-shell-protocol.c \
410 protocol/xdg-shell-client-protocol.h \
411 protocol/fullscreen-shell-protocol.c \
412 protocol/fullscreen-shell-client-protocol.h \
413 protocol/ivi-application-protocol.c \
414 protocol/ivi-application-client-protocol.h
415 weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
416 weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
418 weston_simple_damage_SOURCES = clients/simple-damage.c
419 nodist_weston_simple_damage_SOURCES = \
420 protocol/scaler-protocol.c \
421 protocol/scaler-client-protocol.h \
422 protocol/xdg-shell-protocol.c \
423 protocol/xdg-shell-client-protocol.h \
424 protocol/fullscreen-shell-protocol.c \
425 protocol/fullscreen-shell-client-protocol.h
426 weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
427 weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
429 weston_simple_touch_SOURCES = clients/simple-touch.c
430 weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
431 weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
433 weston_presentation_shm_SOURCES = clients/presentation-shm.c
434 nodist_weston_presentation_shm_SOURCES = \
435 protocol/presentation_timing-protocol.c \
436 protocol/presentation_timing-client-protocol.h
437 weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
438 weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
440 weston_multi_resource_SOURCES = clients/multi-resource.c
441 weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
442 weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm
445 if BUILD_SIMPLE_EGL_CLIENTS
446 demo_clients += weston-simple-egl
447 weston_simple_egl_SOURCES = clients/simple-egl.c
448 nodist_weston_simple_egl_SOURCES = \
449 protocol/xdg-shell-protocol.c \
450 protocol/xdg-shell-client-protocol.h \
451 protocol/ivi-application-protocol.c \
452 protocol/ivi-application-client-protocol.h
453 weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
454 weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
457 noinst_LTLIBRARIES += libtoytoolkit.la
459 libtoytoolkit_la_SOURCES = \
463 nodist_libtoytoolkit_la_SOURCES = \
464 protocol/text-cursor-position-protocol.c \
465 protocol/text-cursor-position-client-protocol.h \
466 protocol/scaler-protocol.c \
467 protocol/scaler-client-protocol.h \
468 protocol/workspaces-protocol.c \
469 protocol/workspaces-client-protocol.h \
470 protocol/presentation_timing-protocol.c \
471 protocol/presentation_timing-client-protocol.h \
472 protocol/xdg-shell-protocol.c \
473 protocol/xdg-shell-client-protocol.h \
474 protocol/ivi-application-protocol.c \
475 protocol/ivi-application-client-protocol.h
477 BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
480 libtoytoolkit_la_LIBADD = \
483 libshared-cairo.la -lrt -lm
484 libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
486 weston_flower_SOURCES = clients/flower.c
487 weston_flower_LDADD = libtoytoolkit.la
488 weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
490 weston_screenshooter_SOURCES = \
492 nodist_weston_screenshooter_SOURCES = \
493 protocol/screenshooter-protocol.c \
494 protocol/screenshooter-client-protocol.h
495 weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
496 weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
498 weston_terminal_SOURCES = clients/terminal.c
499 weston_terminal_LDADD = libtoytoolkit.la -lutil
500 weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
502 weston_image_SOURCES = clients/image.c
503 weston_image_LDADD = libtoytoolkit.la
504 weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
506 weston_cliptest_SOURCES = \
508 src/vertex-clipping.c \
509 src/vertex-clipping.h
510 weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
511 weston_cliptest_LDADD = libtoytoolkit.la
513 weston_dnd_SOURCES = clients/dnd.c
514 weston_dnd_LDADD = libtoytoolkit.la
515 weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
517 weston_smoke_SOURCES = clients/smoke.c
518 weston_smoke_LDADD = libtoytoolkit.la
519 weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
521 weston_resizor_SOURCES = clients/resizor.c
522 weston_resizor_LDADD = libtoytoolkit.la
523 weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
525 weston_scaler_SOURCES = clients/scaler.c
526 weston_scaler_LDADD = libtoytoolkit.la
527 weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
530 demo_clients += weston-nested weston-nested-client
532 weston_nested_SOURCES = clients/nested.c
533 weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
534 weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
536 weston_nested_client_SOURCES = clients/nested-client.c
537 weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
538 weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
541 weston_eventdemo_SOURCES = clients/eventdemo.c
542 weston_eventdemo_LDADD = libtoytoolkit.la
543 weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
545 weston_clickdot_SOURCES = clients/clickdot.c
546 weston_clickdot_LDADD = libtoytoolkit.la
547 weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
549 weston_transformed_SOURCES = clients/transformed.c
550 weston_transformed_LDADD = libtoytoolkit.la
551 weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
553 weston_fullscreen_SOURCES = clients/fullscreen.c
554 nodist_weston_fullscreen_SOURCES = \
555 protocol/fullscreen-shell-protocol.c \
556 protocol/fullscreen-shell-client-protocol.h
557 weston_fullscreen_LDADD = libtoytoolkit.la
558 weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
560 weston_stacking_SOURCES = clients/stacking.c
561 weston_stacking_LDADD = libtoytoolkit.la
562 weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
564 weston_calibrator_SOURCES = clients/calibrator.c \
567 weston_calibrator_LDADD = libtoytoolkit.la
568 weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
570 if BUILD_SUBSURFACES_CLIENT
571 demo_clients += weston-subsurfaces
572 weston_subsurfaces_SOURCES = clients/subsurfaces.c
573 weston_subsurfaces_CFLAGS = \
575 $(SIMPLE_EGL_CLIENT_CFLAGS) \
577 weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
581 demo_clients += weston-editor
582 weston_editor_SOURCES = clients/editor.c
583 nodist_weston_editor_SOURCES = \
584 protocol/text-protocol.c \
585 protocol/text-client-protocol.h
586 weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
587 weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
590 weston_keyboard_SOURCES = clients/keyboard.c
591 nodist_weston_keyboard_SOURCES = \
592 protocol/desktop-shell-client-protocol.h \
593 protocol/desktop-shell-protocol.c \
594 protocol/input-method-protocol.c \
595 protocol/input-method-client-protocol.h
596 weston_keyboard_LDADD = libtoytoolkit.la
597 weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
599 weston_simple_im_SOURCES = clients/weston-simple-im.c
600 nodist_weston_simple_im_SOURCES = \
601 protocol/input-method-protocol.c \
602 protocol/input-method-client-protocol.h
603 weston_simple_im_LDADD = $(CLIENT_LIBS)
604 weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
606 weston_info_SOURCES = clients/weston-info.c
607 nodist_weston_info_SOURCES = \
608 protocol/presentation_timing-protocol.c \
609 protocol/presentation_timing-client-protocol.h
610 weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
611 weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
613 weston_desktop_shell_SOURCES = clients/desktop-shell.c
614 nodist_weston_desktop_shell_SOURCES = \
615 protocol/desktop-shell-client-protocol.h \
616 protocol/desktop-shell-protocol.c
617 weston_desktop_shell_LDADD = libtoytoolkit.la
618 weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
621 weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
622 nodist_weston_ivi_shell_user_interface_SOURCES = \
623 protocol/ivi-hmi-controller-client-protocol.h \
624 protocol/ivi-hmi-controller-protocol.c \
625 protocol/ivi-application-client-protocol.h \
626 protocol/ivi-application-protocol.c
627 weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
628 weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
631 if BUILD_FULL_GL_CLIENTS
632 demo_clients += weston-gears
633 weston_gears_SOURCES = clients/gears.c
634 weston_gears_LDADD = libtoytoolkit.la
635 weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
638 libexec_PROGRAMS += weston-screensaver
639 weston_screensaver_SOURCES = \
640 clients/wscreensaver.c \
641 clients/wscreensaver.h \
642 clients/wscreensaver-glue.c \
643 clients/wscreensaver-glue.h \
646 nodist_weston_screensaver_SOURCES = \
647 protocol/desktop-shell-client-protocol.h \
648 protocol/desktop-shell-protocol.c
650 weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
651 weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
660 protocol/screenshooter-protocol.c \
661 protocol/screenshooter-client-protocol.h \
662 protocol/text-cursor-position-client-protocol.h \
663 protocol/text-cursor-position-protocol.c \
664 protocol/text-protocol.c \
665 protocol/text-client-protocol.h \
666 protocol/input-method-protocol.c \
667 protocol/input-method-client-protocol.h \
668 protocol/desktop-shell-client-protocol.h \
669 protocol/desktop-shell-protocol.c \
670 protocol/scaler-client-protocol.h \
671 protocol/scaler-protocol.c \
672 protocol/workspaces-client-protocol.h \
673 protocol/workspaces-protocol.c \
674 protocol/fullscreen-shell-protocol.c \
675 protocol/fullscreen-shell-client-protocol.h \
676 protocol/xdg-shell-protocol.c \
677 protocol/xdg-shell-client-protocol.h \
678 protocol/ivi-hmi-controller-protocol.c \
679 protocol/ivi-hmi-controller-client-protocol.h \
680 protocol/ivi-application-protocol.c \
681 protocol/ivi-application-client-protocol.h
683 westondatadir = $(datadir)/weston
684 dist_westondata_DATA = \
690 data/icon_window.png \
691 data/sign_close.png \
692 data/sign_maximize.png \
693 data/sign_minimize.png \
694 data/background.png \
696 data/fullscreen.png \
699 data/sidebyside.png \
701 data/icon_ivi_clickdot.png \
702 data/icon_ivi_flower.png \
703 data/icon_ivi_simple-egl.png \
704 data/icon_ivi_simple-shm.png \
705 data/icon_ivi_smoke.png
709 bin_PROGRAMS += wcap-decode
711 wcap_decode_SOURCES = \
716 wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
717 wcap_decode_LDADD = $(WCAP_LIBS)
721 if ENABLE_DESKTOP_SHELL
723 module_LTLIBRARIES += desktop-shell.la
725 desktop_shell_la_CPPFLAGS = \
726 -I$(top_builddir)/protocol \
727 -I$(top_srcdir)/shared \
728 -I$(top_srcdir)/src \
729 -I$(top_builddir)/src \
730 -I$(top_builddir)/desktop-shell \
731 -DDATADIR='"$(datadir)"' \
732 -DMODULEDIR='"$(moduledir)"' \
733 -DLIBEXECDIR='"$(libexecdir)"' \
736 desktop_shell_la_LDFLAGS = -module -avoid-version
737 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
738 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
739 desktop_shell_la_SOURCES = \
740 desktop-shell/shell.h \
741 desktop-shell/shell.c \
742 desktop-shell/exposay.c \
743 desktop-shell/input-panel.c
744 nodist_desktop_shell_la_SOURCES = \
745 protocol/desktop-shell-protocol.c \
746 protocol/desktop-shell-server-protocol.h \
747 protocol/xdg-shell-protocol.c \
748 protocol/xdg-shell-server-protocol.h
750 BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
753 if ENABLE_FULLSCREEN_SHELL
755 module_LTLIBRARIES += fullscreen-shell.la
757 fullscreen_shell_la_CPPFLAGS = \
758 -I$(top_builddir)/protocol \
759 -I$(top_srcdir)/shared \
760 -I$(top_srcdir)/src \
761 -I$(top_builddir)/src \
764 fullscreen_shell_la_LDFLAGS = -module -avoid-version
765 fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
766 fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
767 fullscreen_shell_la_SOURCES = \
768 fullscreen-shell/fullscreen-shell.c
769 nodist_fullscreen_shell_la_SOURCES = \
770 protocol/fullscreen-shell-protocol.c \
771 protocol/fullscreen-shell-server-protocol.h
773 BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
778 module_LTLIBRARIES += \
782 ivi_shell = ivi-shell.la
783 ivi_shell_la_LDFLAGS = -module -avoid-version
784 ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
785 ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
786 ivi_shell_la_SOURCES = \
787 ivi-shell/ivi-layout-export.h \
788 ivi-shell/ivi-layout-private.h \
789 ivi-shell/ivi-layout.c \
790 ivi-shell/ivi-layout-transition.c \
791 ivi-shell/ivi-shell.h \
792 ivi-shell/ivi-shell.c \
793 ivi-shell/input-panel-ivi.c
794 nodist_ivi_shell_la_SOURCES = \
795 protocol/ivi-application-protocol.c \
796 protocol/ivi-application-server-protocol.h
798 BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
800 hmi_controller = hmi-controller.la
801 hmi_controller_la_LDFLAGS = -module -avoid-version
802 hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
803 hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
804 hmi_controller_la_SOURCES = \
805 ivi-shell/ivi-layout-export.h \
806 ivi-shell/hmi-controller.c
807 nodist_hmi_controller_la_SOURCES = \
808 protocol/ivi-hmi-controller-protocol.c \
809 protocol/ivi-hmi-controller-server-protocol.h
811 BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
816 if ENABLE_SCREEN_SHARING
818 module_LTLIBRARIES += screen-share.la
820 screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
821 screen_share_la_LDFLAGS = -module -avoid-version
822 screen_share_la_LIBADD = \
824 $(SCREEN_SHARE_LIBS) \
826 screen_share_la_CFLAGS = \
827 $(COMPOSITOR_CFLAGS) \
828 $(SCREEN_SHARE_CFLAGS) \
830 screen_share_la_SOURCES = \
832 nodist_screen_share_la_SOURCES = \
833 protocol/fullscreen-shell-protocol.c \
834 protocol/fullscreen-shell-client-protocol.h
840 module_LTLIBRARIES += xwayland.la
842 xwayland_la_CPPFLAGS = \
843 -I$(top_builddir)/protocol \
844 -I$(top_srcdir)/shared \
845 -I$(top_srcdir)/src \
846 -I$(top_builddir)/src \
847 -I$(top_builddir)/xwayland \
848 -DDATADIR='"$(datadir)"' \
849 -DMODULEDIR='"$(moduledir)"' \
850 -DLIBEXECDIR='"$(libexecdir)"' \
851 -DXSERVER_PATH='"@XSERVER_PATH@"'
853 xwayland_la_LDFLAGS = -module -avoid-version
854 xwayland_la_LIBADD = \
856 $(top_builddir)/libshared-cairo.la
857 xwayland_la_CFLAGS = \
859 $(COMPOSITOR_CFLAGS) \
862 xwayland_la_SOURCES = \
863 xwayland/xwayland.h \
864 xwayland/window-manager.c \
865 xwayland/selection.c \
867 xwayland/launcher.c \
877 noinst_LTLIBRARIES += libshared.la libshared-cairo.la
879 libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
881 libshared_la_SOURCES = \
882 shared/config-parser.c \
883 shared/option-parser.c \
884 shared/config-parser.h \
885 shared/os-compatibility.c \
886 shared/os-compatibility.h
888 libshared_cairo_la_CFLAGS = \
889 -DDATADIR='"$(datadir)"' \
891 $(COMPOSITOR_CFLAGS) \
897 libshared_cairo_la_LIBADD = \
904 libshared_cairo_la_SOURCES = \
905 $(libshared_la_SOURCES) \
906 shared/image-loader.c \
907 shared/image-loader.h \
908 shared/cairo-util.c \
917 TESTS = $(shared_tests) $(module_tests) $(weston_tests)
925 surface-global-test.la
933 presentation.weston \
938 AM_TESTS_ENVIRONMENT = \
939 abs_builddir='$(abs_builddir)'; export abs_builddir;
941 TEST_EXTENSIONS = .la .weston
942 LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
943 WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
948 # To remove when automake 1.11 support is dropped
951 noinst_LTLIBRARIES += \
963 test_module_ldflags = \
964 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
966 surface_global_test_la_SOURCES = tests/surface-global-test.c
967 surface_global_test_la_LDFLAGS = $(test_module_ldflags)
968 surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
970 surface_test_la_SOURCES = tests/surface-test.c
971 surface_test_la_LDFLAGS = $(test_module_ldflags)
972 surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
974 weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
975 weston_test_la_LDFLAGS = $(test_module_ldflags)
976 weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
977 weston_test_la_SOURCES = tests/weston-test.c
978 nodist_weston_test_la_SOURCES = \
979 protocol/wayland-test-protocol.c \
980 protocol/wayland-test-server-protocol.h
983 weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
984 weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
987 libtest_runner_la_SOURCES = \
988 tests/weston-test-runner.c \
989 tests/weston-test-runner.h
990 libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
992 config_parser_test_SOURCES = tests/config-parser-test.c
993 config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
995 vertex_clip_test_SOURCES = \
996 tests/vertex-clip-test.c \
997 src/vertex-clipping.c \
998 src/vertex-clipping.h
999 vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
1001 libtest_client_la_SOURCES = \
1002 tests/weston-test-client-helper.c \
1003 tests/weston-test-client-helper.h
1004 nodist_libtest_client_la_SOURCES = \
1005 protocol/wayland-test-protocol.c \
1006 protocol/wayland-test-client-protocol.h
1007 libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1008 libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
1010 bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
1011 bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1012 bad_buffer_weston_LDADD = libtest-client.la
1014 keyboard_weston_SOURCES = tests/keyboard-test.c
1015 keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1016 keyboard_weston_LDADD = libtest-client.la
1018 event_weston_SOURCES = tests/event-test.c
1019 event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1020 event_weston_LDADD = libtest-client.la
1022 button_weston_SOURCES = tests/button-test.c
1023 button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1024 button_weston_LDADD = libtest-client.la
1026 text_weston_SOURCES = tests/text-test.c
1027 nodist_text_weston_SOURCES = \
1028 protocol/text-protocol.c \
1029 protocol/text-client-protocol.h
1030 text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1031 text_weston_LDADD = libtest-client.la
1033 subsurface_weston_SOURCES = tests/subsurface-test.c
1034 subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1035 subsurface_weston_LDADD = libtest-client.la
1037 presentation_weston_SOURCES = tests/presentation-test.c
1038 nodist_presentation_weston_SOURCES = \
1039 protocol/presentation_timing-protocol.c \
1040 protocol/presentation_timing-client-protocol.h
1041 presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1042 presentation_weston_LDADD = libtest-client.la
1044 roles_weston_SOURCES = tests/roles-test.c
1045 roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1046 roles_weston_LDADD = libtest-client.la
1049 weston_tests += buffer-count.weston
1050 buffer_count_weston_SOURCES = tests/buffer-count-test.c
1051 buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1052 buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1055 if ENABLE_XWAYLAND_TEST
1056 weston_tests += xwayland-test.weston
1057 xwayland_test_weston_SOURCES = tests/xwayland-test.c
1058 xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1059 xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
1062 matrix_test_SOURCES = \
1063 tests/matrix-test.c \
1066 matrix_test_CPPFLAGS = -DUNIT_TEST
1067 matrix_test_LDADD = -lm -lrt
1069 if BUILD_SETBACKLIGHT
1070 noinst_PROGRAMS += setbacklight
1071 setbacklight_SOURCES = \
1072 tests/setbacklight.c \
1073 src/libbacklight.c \
1075 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1076 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1079 EXTRA_DIST += tests/weston-tests-env
1082 protocol/wayland-test-protocol.c \
1083 protocol/wayland-test-server-protocol.h \
1084 protocol/wayland-test-client-protocol.h \
1085 protocol/text-protocol.c \
1086 protocol/text-client-protocol.h
1089 protocol/desktop-shell.xml \
1090 protocol/screenshooter.xml \
1092 protocol/input-method.xml \
1093 protocol/workspaces.xml \
1094 protocol/text-cursor-position.xml \
1095 protocol/wayland-test.xml \
1096 protocol/xdg-shell.xml \
1097 protocol/fullscreen-shell.xml \
1098 protocol/presentation_timing.xml \
1099 protocol/scaler.xml \
1100 protocol/ivi-application.xml \
1101 protocol/ivi-hmi-controller.xml
1103 man_MANS = weston.1 weston.ini.5
1105 if ENABLE_DRM_COMPOSITOR
1106 man_MANS += weston-drm.7
1110 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1111 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1112 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1113 -e 's|__version__|$(PACKAGE_VERSION)|g'
1115 SUFFIXES = .1 .5 .7 .man
1117 %.1 %.5 %.7 : man/%.man
1118 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1122 man/weston-drm.man \
1125 CLEANFILES += $(man_MANS)
1128 protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1129 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1131 protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1132 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1134 protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1135 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@