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/scaler-protocol.c \
89 protocol/scaler-server-protocol.h
91 BUILT_SOURCES += $(nodist_weston_SOURCES)
93 # Track this dependency explicitly instead of using BUILT_SOURCES. We
94 # add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
95 # in case we're building from tarballs.
97 src/compositor.c : $(top_builddir)/src/git-version.h
99 noinst_LTLIBRARIES += \
102 libsession_helper_la_SOURCES = \
103 src/weston-launch.h \
104 src/launcher-util.c \
106 libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
107 libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
110 if HAVE_SYSTEMD_LOGIN
111 libsession_helper_la_SOURCES += \
116 libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
117 libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
122 src/git-version.h : $(top_srcdir)/.git/logs/HEAD
123 $(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)')\"" > $@
126 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
132 if BUILD_WESTON_LAUNCH
133 bin_PROGRAMS += weston-launch
134 weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
135 weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
136 weston_launch_CFLAGS= \
139 $(SYSTEMD_LOGIN_CFLAGS) \
141 weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
143 if ENABLE_SETUID_INSTALL
145 chown root $(DESTDIR)$(bindir)/weston-launch
146 chmod u+s $(DESTDIR)$(bindir)/weston-launch
149 endif # BUILD_WESTON_LAUNCH
151 pkgconfigdir = $(libdir)/pkgconfig
152 pkgconfig_DATA = src/weston.pc
154 westonincludedir = $(includedir)/weston
155 westoninclude_HEADERS = \
159 shared/config-parser.h \
163 module_LTLIBRARIES += gl-renderer.la
164 gl_renderer_la_LDFLAGS = -module -avoid-version
165 gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
166 gl_renderer_la_CFLAGS = \
167 $(COMPOSITOR_CFLAGS) \
170 gl_renderer_la_SOURCES = \
173 src/vertex-clipping.c \
174 src/vertex-clipping.h
177 if ENABLE_X11_COMPOSITOR
178 module_LTLIBRARIES += x11-backend.la
179 x11_backend_la_LDFLAGS = -module -avoid-version
180 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
182 x11_backend_la_CFLAGS = \
183 $(COMPOSITOR_CFLAGS) \
187 $(X11_COMPOSITOR_CFLAGS) \
189 x11_backend_la_SOURCES = src/compositor-x11.c
192 INPUT_BACKEND_SOURCES = src/udev-input.h
194 if ENABLE_LIBINPUT_BACKEND
195 INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
196 INPUT_BACKEND_SOURCES += \
197 src/libinput-seat.c \
198 src/libinput-seat.h \
199 src/libinput-device.c \
200 src/libinput-device.h
202 INPUT_BACKEND_SOURCES += \
212 if ENABLE_DRM_COMPOSITOR
213 module_LTLIBRARIES += drm-backend.la
214 drm_backend_la_LDFLAGS = -module -avoid-version
215 drm_backend_la_LIBADD = \
217 $(DRM_COMPOSITOR_LIBS) \
218 $(INPUT_BACKEND_LIBS) \
221 drm_backend_la_CFLAGS = \
222 $(COMPOSITOR_CFLAGS) \
224 $(DRM_COMPOSITOR_CFLAGS) \
226 drm_backend_la_SOURCES = \
227 src/compositor-drm.c \
228 $(INPUT_BACKEND_SOURCES) \
232 if ENABLE_VAAPI_RECORDER
233 drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
234 drm_backend_la_LIBADD += $(LIBVA_LIBS)
235 drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
239 if ENABLE_WAYLAND_COMPOSITOR
240 module_LTLIBRARIES += wayland-backend.la
241 wayland_backend_la_LDFLAGS = -module -avoid-version
242 wayland_backend_la_LIBADD = \
244 $(WAYLAND_COMPOSITOR_LIBS) \
246 wayland_backend_la_CFLAGS = \
247 $(COMPOSITOR_CFLAGS) \
251 $(WAYLAND_COMPOSITOR_CFLAGS) \
253 wayland_backend_la_SOURCES = src/compositor-wayland.c
254 nodist_wayland_backend_la_SOURCES = \
255 protocol/fullscreen-shell-protocol.c \
256 protocol/fullscreen-shell-client-protocol.h
259 if ENABLE_RPI_COMPOSITOR
260 if INSTALL_RPI_COMPOSITOR
261 module_LTLIBRARIES += rpi-backend.la
263 noinst_LTLIBRARIES += rpi-backend.la
266 rpi_backend_la_LDFLAGS = -module -avoid-version
267 rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
268 $(RPI_COMPOSITOR_LIBS) \
269 $(RPI_BCM_HOST_LIBS) \
270 $(INPUT_BACKEND_LIBS) \
271 libsession-helper.la \
273 rpi_backend_la_CFLAGS = \
275 $(COMPOSITOR_CFLAGS) \
276 $(RPI_COMPOSITOR_CFLAGS) \
277 $(RPI_BCM_HOST_CFLAGS)
278 rpi_backend_la_SOURCES = \
279 src/compositor-rpi.c \
282 src/rpi-bcm-stubs.h \
283 $(INPUT_BACKEND_SOURCES)
286 rpi_backend_la_LIBADD += $(EGL_LIBS)
287 rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
292 if ENABLE_HEADLESS_COMPOSITOR
293 module_LTLIBRARIES += headless-backend.la
294 headless_backend_la_LDFLAGS = -module -avoid-version
295 headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
296 headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
297 headless_backend_la_SOURCES = src/compositor-headless.c
300 if ENABLE_FBDEV_COMPOSITOR
301 module_LTLIBRARIES += fbdev-backend.la
302 fbdev_backend_la_LDFLAGS = -module -avoid-version
303 fbdev_backend_la_LIBADD = \
305 $(FBDEV_COMPOSITOR_LIBS) \
306 $(INPUT_BACKEND_LIBS) \
307 libsession-helper.la \
309 fbdev_backend_la_CFLAGS = \
310 $(COMPOSITOR_CFLAGS) \
312 $(FBDEV_COMPOSITOR_CFLAGS) \
315 fbdev_backend_la_SOURCES = \
316 src/compositor-fbdev.c \
317 $(INPUT_BACKEND_SOURCES)
320 if ENABLE_RDP_COMPOSITOR
321 module_LTLIBRARIES += rdp-backend.la
322 rdp_backend_la_LDFLAGS = -module -avoid-version
323 rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
324 $(RDP_COMPOSITOR_LIBS) \
326 rdp_backend_la_CFLAGS = \
327 $(COMPOSITOR_CFLAGS) \
328 $(RDP_COMPOSITOR_CFLAGS) \
330 rdp_backend_la_SOURCES = src/compositor-rdp.c
334 module_LTLIBRARIES += cms-static.la
335 cms_static_la_LDFLAGS = -module -avoid-version
336 cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
337 cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
338 cms_static_la_SOURCES = \
343 module_LTLIBRARIES += cms-colord.la
344 cms_colord_la_LDFLAGS = -module -avoid-version
345 cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
346 cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
347 cms_colord_la_SOURCES = \
354 noinst_PROGRAMS += spring-tool
355 spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
356 spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
357 spring_tool_SOURCES = \
366 bin_PROGRAMS += weston-terminal weston-info
368 libexec_PROGRAMS += \
369 weston-desktop-shell \
370 weston-screenshooter \
375 libexec_PROGRAMS += \
376 weston-ivi-shell-user-interface
394 if INSTALL_DEMO_CLIENTS
395 bin_PROGRAMS += $(demo_clients)
397 noinst_PROGRAMS += $(demo_clients)
401 if BUILD_SIMPLE_CLIENTS
404 weston-simple-damage \
405 weston-simple-touch \
406 weston-multi-resource
408 weston_simple_shm_SOURCES = clients/simple-shm.c
409 nodist_weston_simple_shm_SOURCES = \
410 protocol/xdg-shell-protocol.c \
411 protocol/xdg-shell-client-protocol.h \
412 protocol/fullscreen-shell-protocol.c \
413 protocol/fullscreen-shell-client-protocol.h
414 weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
415 weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
417 weston_simple_damage_SOURCES = clients/simple-damage.c
418 nodist_weston_simple_damage_SOURCES = \
419 protocol/scaler-protocol.c \
420 protocol/scaler-client-protocol.h \
421 protocol/xdg-shell-protocol.c \
422 protocol/xdg-shell-client-protocol.h \
423 protocol/fullscreen-shell-protocol.c \
424 protocol/fullscreen-shell-client-protocol.h
425 weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
426 weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
428 weston_simple_touch_SOURCES = clients/simple-touch.c
429 weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
430 weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
432 weston_multi_resource_SOURCES = clients/multi-resource.c
433 weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
434 weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
437 if BUILD_SIMPLE_EGL_CLIENTS
438 demo_clients += weston-simple-egl
439 weston_simple_egl_SOURCES = clients/simple-egl.c
440 nodist_weston_simple_egl_SOURCES = \
441 protocol/xdg-shell-protocol.c \
442 protocol/xdg-shell-client-protocol.h
443 weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
444 weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
447 noinst_LTLIBRARIES += libtoytoolkit.la
449 libtoytoolkit_la_SOURCES = \
453 nodist_libtoytoolkit_la_SOURCES = \
454 protocol/text-cursor-position-protocol.c \
455 protocol/text-cursor-position-client-protocol.h \
456 protocol/scaler-protocol.c \
457 protocol/scaler-client-protocol.h \
458 protocol/workspaces-protocol.c \
459 protocol/workspaces-client-protocol.h \
460 protocol/xdg-shell-protocol.c \
461 protocol/xdg-shell-client-protocol.h \
462 protocol/ivi-application-protocol.c \
463 protocol/ivi-application-client-protocol.h
465 BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
468 libtoytoolkit_la_LIBADD = \
471 libshared-cairo.la -lrt -lm
472 libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
474 weston_flower_SOURCES = clients/flower.c
475 weston_flower_LDADD = libtoytoolkit.la
476 weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
478 weston_screenshooter_SOURCES = \
480 nodist_weston_screenshooter_SOURCES = \
481 protocol/screenshooter-protocol.c \
482 protocol/screenshooter-client-protocol.h
483 weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
484 weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
486 weston_terminal_SOURCES = clients/terminal.c
487 weston_terminal_LDADD = libtoytoolkit.la -lutil
488 weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
490 weston_image_SOURCES = clients/image.c
491 weston_image_LDADD = libtoytoolkit.la
492 weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
494 weston_cliptest_SOURCES = \
496 src/vertex-clipping.c \
497 src/vertex-clipping.h
498 weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
499 weston_cliptest_LDADD = libtoytoolkit.la
501 weston_dnd_SOURCES = clients/dnd.c
502 weston_dnd_LDADD = libtoytoolkit.la
503 weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
505 weston_smoke_SOURCES = clients/smoke.c
506 weston_smoke_LDADD = libtoytoolkit.la
507 weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
509 weston_resizor_SOURCES = clients/resizor.c
510 weston_resizor_LDADD = libtoytoolkit.la
511 weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
513 weston_scaler_SOURCES = clients/scaler.c
514 weston_scaler_LDADD = libtoytoolkit.la
515 weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
518 demo_clients += weston-nested weston-nested-client
520 weston_nested_SOURCES = clients/nested.c
521 weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
522 weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
524 weston_nested_client_SOURCES = clients/nested-client.c
525 weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
526 weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
529 weston_eventdemo_SOURCES = clients/eventdemo.c
530 weston_eventdemo_LDADD = libtoytoolkit.la
531 weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
533 weston_clickdot_SOURCES = clients/clickdot.c
534 weston_clickdot_LDADD = libtoytoolkit.la
535 weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
537 weston_transformed_SOURCES = clients/transformed.c
538 weston_transformed_LDADD = libtoytoolkit.la
539 weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
541 weston_fullscreen_SOURCES = clients/fullscreen.c
542 nodist_weston_fullscreen_SOURCES = \
543 protocol/fullscreen-shell-protocol.c \
544 protocol/fullscreen-shell-client-protocol.h
545 weston_fullscreen_LDADD = libtoytoolkit.la
546 weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
548 weston_stacking_SOURCES = clients/stacking.c
549 weston_stacking_LDADD = libtoytoolkit.la
550 weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
552 weston_calibrator_SOURCES = clients/calibrator.c \
555 weston_calibrator_LDADD = libtoytoolkit.la
556 weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
558 if BUILD_SUBSURFACES_CLIENT
559 demo_clients += weston-subsurfaces
560 weston_subsurfaces_SOURCES = clients/subsurfaces.c
561 weston_subsurfaces_CFLAGS = \
563 $(SIMPLE_EGL_CLIENT_CFLAGS) \
565 weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
569 demo_clients += weston-editor
570 weston_editor_SOURCES = clients/editor.c
571 nodist_weston_editor_SOURCES = \
572 protocol/text-protocol.c \
573 protocol/text-client-protocol.h
574 weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
575 weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
578 weston_keyboard_SOURCES = clients/keyboard.c
579 nodist_weston_keyboard_SOURCES = \
580 protocol/desktop-shell-client-protocol.h \
581 protocol/desktop-shell-protocol.c \
582 protocol/input-method-protocol.c \
583 protocol/input-method-client-protocol.h
584 weston_keyboard_LDADD = libtoytoolkit.la
585 weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
587 weston_simple_im_SOURCES = clients/weston-simple-im.c
588 nodist_weston_simple_im_SOURCES = \
589 protocol/input-method-protocol.c \
590 protocol/input-method-client-protocol.h
591 weston_simple_im_LDADD = $(CLIENT_LIBS)
592 weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
594 weston_info_SOURCES = clients/weston-info.c
595 weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
596 weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
598 weston_desktop_shell_SOURCES = clients/desktop-shell.c
599 nodist_weston_desktop_shell_SOURCES = \
600 protocol/desktop-shell-client-protocol.h \
601 protocol/desktop-shell-protocol.c
602 weston_desktop_shell_LDADD = libtoytoolkit.la
603 weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
606 weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
607 nodist_weston_ivi_shell_user_interface_SOURCES = \
608 protocol/ivi-hmi-controller-client-protocol.h \
609 protocol/ivi-hmi-controller-protocol.c \
610 protocol/ivi-application-client-protocol.h \
611 protocol/ivi-application-protocol.c
612 weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
613 weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
616 if BUILD_FULL_GL_CLIENTS
617 demo_clients += weston-gears
618 weston_gears_SOURCES = clients/gears.c
619 weston_gears_LDADD = libtoytoolkit.la
620 weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
623 libexec_PROGRAMS += weston-screensaver
624 weston_screensaver_SOURCES = \
625 clients/wscreensaver.c \
626 clients/wscreensaver.h \
627 clients/wscreensaver-glue.c \
628 clients/wscreensaver-glue.h \
631 nodist_weston_screensaver_SOURCES = \
632 protocol/desktop-shell-client-protocol.h \
633 protocol/desktop-shell-protocol.c
635 weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
636 weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
645 protocol/screenshooter-protocol.c \
646 protocol/screenshooter-client-protocol.h \
647 protocol/text-cursor-position-client-protocol.h \
648 protocol/text-cursor-position-protocol.c \
649 protocol/text-protocol.c \
650 protocol/text-client-protocol.h \
651 protocol/input-method-protocol.c \
652 protocol/input-method-client-protocol.h \
653 protocol/desktop-shell-client-protocol.h \
654 protocol/desktop-shell-protocol.c \
655 protocol/scaler-client-protocol.h \
656 protocol/scaler-protocol.c \
657 protocol/workspaces-client-protocol.h \
658 protocol/workspaces-protocol.c \
659 protocol/fullscreen-shell-protocol.c \
660 protocol/fullscreen-shell-client-protocol.h \
661 protocol/xdg-shell-protocol.c \
662 protocol/xdg-shell-client-protocol.h \
663 protocol/ivi-hmi-controller-protocol.c \
664 protocol/ivi-hmi-controller-client-protocol.h \
665 protocol/ivi-application-protocol.c \
666 protocol/ivi-application-client-protocol.h
668 westondatadir = $(datadir)/weston
669 dist_westondata_DATA = \
675 data/icon_window.png \
676 data/sign_close.png \
677 data/sign_maximize.png \
678 data/sign_minimize.png \
679 data/background.png \
681 data/fullscreen.png \
684 data/sidebyside.png \
686 data/icon_ivi_clickdot.png \
687 data/icon_ivi_flower.png \
688 data/icon_ivi_simple-egl.png \
689 data/icon_ivi_simple-shm.png \
690 data/icon_ivi_smoke.png
694 bin_PROGRAMS += wcap-decode
696 wcap_decode_SOURCES = \
701 wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
702 wcap_decode_LDADD = $(WCAP_LIBS)
706 if ENABLE_DESKTOP_SHELL
708 module_LTLIBRARIES += desktop-shell.la
710 desktop_shell_la_CPPFLAGS = \
711 -I$(top_builddir)/protocol \
712 -I$(top_srcdir)/shared \
713 -I$(top_srcdir)/src \
714 -I$(top_builddir)/src \
715 -I$(top_builddir)/desktop-shell \
716 -DDATADIR='"$(datadir)"' \
717 -DMODULEDIR='"$(moduledir)"' \
718 -DLIBEXECDIR='"$(libexecdir)"' \
721 desktop_shell_la_LDFLAGS = -module -avoid-version
722 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
723 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
724 desktop_shell_la_SOURCES = \
725 desktop-shell/shell.h \
726 desktop-shell/shell.c \
727 desktop-shell/exposay.c \
728 desktop-shell/input-panel.c
729 nodist_desktop_shell_la_SOURCES = \
730 protocol/desktop-shell-protocol.c \
731 protocol/desktop-shell-server-protocol.h \
732 protocol/xdg-shell-protocol.c \
733 protocol/xdg-shell-server-protocol.h
735 BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
738 if ENABLE_FULLSCREEN_SHELL
740 module_LTLIBRARIES += fullscreen-shell.la
742 fullscreen_shell_la_CPPFLAGS = \
743 -I$(top_builddir)/protocol \
744 -I$(top_srcdir)/shared \
745 -I$(top_srcdir)/src \
746 -I$(top_builddir)/src \
749 fullscreen_shell_la_LDFLAGS = -module -avoid-version
750 fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
751 fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
752 fullscreen_shell_la_SOURCES = \
753 fullscreen-shell/fullscreen-shell.c
754 nodist_fullscreen_shell_la_SOURCES = \
755 protocol/fullscreen-shell-protocol.c \
756 protocol/fullscreen-shell-server-protocol.h
758 BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
763 module_LTLIBRARIES += \
768 ivi_layout = ivi-layout.la
769 ivi_layout_la_LDFLAGS = -module -avoid-version
770 ivi_layout_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
771 ivi_layout_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
772 ivi_layout_la_SOURCES = \
773 ivi-shell/ivi-layout-export.h \
774 ivi-shell/ivi-layout-private.h \
775 ivi-shell/ivi-layout.c \
776 ivi-shell/ivi-layout-transition.c
778 ivi_shell = ivi-shell.la
779 ivi_shell_la_LDFLAGS = -module -avoid-version
780 ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
781 ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
782 ivi_shell_la_SOURCES = \
783 ivi-shell/ivi-shell.h \
784 ivi-shell/ivi-shell.c \
785 ivi-shell/ivi-layout-private.h
786 nodist_ivi_shell_la_SOURCES = \
787 protocol/ivi-application-protocol.c \
788 protocol/ivi-application-server-protocol.h
790 BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
792 hmi_controller = hmi-controller.la
793 hmi_controller_la_LDFLAGS = -module -avoid-version
794 hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
795 hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
796 hmi_controller_la_SOURCES = \
797 ivi-shell/ivi-layout-export.h \
798 ivi-shell/hmi-controller.c
799 nodist_hmi_controller_la_SOURCES = \
800 protocol/ivi-hmi-controller-protocol.c \
801 protocol/ivi-hmi-controller-server-protocol.h
803 BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
808 if ENABLE_SCREEN_SHARING
810 module_LTLIBRARIES += screen-share.la
812 screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
813 screen_share_la_LDFLAGS = -module -avoid-version
814 screen_share_la_LIBADD = \
816 $(SCREEN_SHARE_LIBS) \
818 screen_share_la_CFLAGS = \
819 $(COMPOSITOR_CFLAGS) \
820 $(SCREEN_SHARE_CFLAGS) \
822 screen_share_la_SOURCES = \
824 nodist_screen_share_la_SOURCES = \
825 protocol/fullscreen-shell-protocol.c \
826 protocol/fullscreen-shell-client-protocol.h
832 module_LTLIBRARIES += xwayland.la
834 xwayland_la_CPPFLAGS = \
835 -I$(top_builddir)/protocol \
836 -I$(top_srcdir)/shared \
837 -I$(top_srcdir)/src \
838 -I$(top_builddir)/src \
839 -I$(top_builddir)/xwayland \
840 -DDATADIR='"$(datadir)"' \
841 -DMODULEDIR='"$(moduledir)"' \
842 -DLIBEXECDIR='"$(libexecdir)"' \
843 -DXSERVER_PATH='"@XSERVER_PATH@"'
845 xwayland_la_LDFLAGS = -module -avoid-version
846 xwayland_la_LIBADD = \
848 $(top_builddir)/libshared-cairo.la
849 xwayland_la_CFLAGS = \
851 $(COMPOSITOR_CFLAGS) \
854 xwayland_la_SOURCES = \
855 xwayland/xwayland.h \
856 xwayland/window-manager.c \
857 xwayland/selection.c \
859 xwayland/launcher.c \
869 noinst_LTLIBRARIES += libshared.la libshared-cairo.la
871 libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
873 libshared_la_SOURCES = \
874 shared/config-parser.c \
875 shared/option-parser.c \
876 shared/config-parser.h \
879 shared/os-compatibility.c \
880 shared/os-compatibility.h
882 libshared_cairo_la_CFLAGS = \
883 -DDATADIR='"$(datadir)"' \
885 $(COMPOSITOR_CFLAGS) \
891 libshared_cairo_la_LIBADD = \
898 libshared_cairo_la_SOURCES = \
899 $(libshared_la_SOURCES) \
900 shared/image-loader.c \
901 shared/image-loader.h \
902 shared/cairo-util.c \
911 TESTS = $(shared_tests) $(module_tests) $(weston_tests)
920 surface-global-test.la
931 AM_TESTS_ENVIRONMENT = \
932 abs_builddir='$(abs_builddir)'; export abs_builddir;
934 TEST_EXTENSIONS = .la .weston
935 LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
936 WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
941 # To remove when automake 1.11 support is dropped
944 noinst_LTLIBRARIES += \
956 test_module_ldflags = \
957 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
959 surface_global_test_la_SOURCES = tests/surface-global-test.c
960 surface_global_test_la_LDFLAGS = $(test_module_ldflags)
961 surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
963 surface_test_la_SOURCES = tests/surface-test.c
964 surface_test_la_LDFLAGS = $(test_module_ldflags)
965 surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
967 weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
968 weston_test_la_LDFLAGS = $(test_module_ldflags)
969 weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
970 weston_test_la_SOURCES = tests/weston-test.c
971 nodist_weston_test_la_SOURCES = \
972 protocol/wayland-test-protocol.c \
973 protocol/wayland-test-server-protocol.h
976 weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
977 weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
980 libtest_runner_la_SOURCES = \
981 tests/weston-test-runner.c \
982 tests/weston-test-runner.h
983 libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
985 config_parser_test_SOURCES = tests/config-parser-test.c
986 config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
988 strutil_test_SOURCES = tests/strutil-test.c
989 strutil_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
991 vertex_clip_test_SOURCES = \
992 tests/vertex-clip-test.c \
993 src/vertex-clipping.c \
994 src/vertex-clipping.h
995 vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
997 libtest_client_la_SOURCES = \
998 tests/weston-test-client-helper.c \
999 tests/weston-test-client-helper.h
1000 nodist_libtest_client_la_SOURCES = \
1001 protocol/wayland-test-protocol.c \
1002 protocol/wayland-test-client-protocol.h
1003 libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1004 libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
1006 bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
1007 bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1008 bad_buffer_weston_LDADD = libtest-client.la
1010 keyboard_weston_SOURCES = tests/keyboard-test.c
1011 keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1012 keyboard_weston_LDADD = libtest-client.la
1014 event_weston_SOURCES = tests/event-test.c
1015 event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1016 event_weston_LDADD = libtest-client.la
1018 button_weston_SOURCES = tests/button-test.c
1019 button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1020 button_weston_LDADD = libtest-client.la
1022 text_weston_SOURCES = tests/text-test.c
1023 nodist_text_weston_SOURCES = \
1024 protocol/text-protocol.c \
1025 protocol/text-client-protocol.h
1026 text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1027 text_weston_LDADD = libtest-client.la
1029 subsurface_weston_SOURCES = tests/subsurface-test.c
1030 subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1031 subsurface_weston_LDADD = libtest-client.la
1034 weston_tests += buffer-count.weston
1035 buffer_count_weston_SOURCES = tests/buffer-count-test.c
1036 buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1037 buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1040 if ENABLE_XWAYLAND_TEST
1041 weston_tests += xwayland-test.weston
1042 xwayland_test_weston_SOURCES = tests/xwayland-test.c
1043 xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1044 xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
1047 matrix_test_SOURCES = \
1048 tests/matrix-test.c \
1051 matrix_test_CPPFLAGS = -DUNIT_TEST
1052 matrix_test_LDADD = -lm -lrt
1054 if BUILD_SETBACKLIGHT
1055 noinst_PROGRAMS += setbacklight
1056 setbacklight_SOURCES = \
1057 tests/setbacklight.c \
1060 src/libbacklight.c \
1062 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1063 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1066 EXTRA_DIST += tests/weston-tests-env
1069 protocol/wayland-test-protocol.c \
1070 protocol/wayland-test-server-protocol.h \
1071 protocol/wayland-test-client-protocol.h \
1072 protocol/text-protocol.c \
1073 protocol/text-client-protocol.h
1076 protocol/desktop-shell.xml \
1077 protocol/screenshooter.xml \
1079 protocol/input-method.xml \
1080 protocol/workspaces.xml \
1081 protocol/text-cursor-position.xml \
1082 protocol/wayland-test.xml \
1083 protocol/xdg-shell.xml \
1084 protocol/fullscreen-shell.xml \
1085 protocol/scaler.xml \
1086 protocol/ivi-application.xml \
1087 protocol/ivi-hmi-controller.xml
1089 man_MANS = weston.1 weston.ini.5
1091 if ENABLE_DRM_COMPOSITOR
1092 man_MANS += weston-drm.7
1096 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1097 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1098 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1099 -e 's|__version__|$(PACKAGE_VERSION)|g'
1101 SUFFIXES = .1 .5 .7 .man
1103 %.1 %.5 %.7 : man/%.man
1104 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1108 man/weston-drm.man \
1111 CLEANFILES += $(man_MANS)
1114 protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1115 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1117 protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1118 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1120 protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1121 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@