1 ACLOCAL_AMFLAGS = -I m4
6 moduledir = $(libdir)/weston
11 AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
13 EXTRA_DIST = weston.ini.in ivi-shell/weston.ini.in
15 weston.ini : $(srcdir)/weston.ini.in
17 -e 's|@bindir[@]|$(bindir)|g' \
18 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
19 -e 's|@libexecdir[@]|$(libexecdir)|g' \
22 ivi-shell/weston.ini : $(srcdir)/ivi-shell/weston.ini.in
24 -e 's|@bindir[@]|$(bindir)|g' \
25 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
26 -e 's|@libexecdir[@]|$(libexecdir)|g' \
27 -e 's|@plugin_prefix[@]||g' \
30 tests/weston-ivi.ini : $(srcdir)/ivi-shell/weston.ini.in
32 -e 's|@bindir[@]|$(bindir)|g' \
33 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
34 -e 's|@libexecdir[@]|$(libexecdir)|g' \
35 -e 's|@plugin_prefix[@]|$(abs_top_builddir)/.libs/|g' \
38 all-local : weston.ini ivi-shell/weston.ini
40 AM_CFLAGS = $(GCC_CFLAGS)
44 -I$(top_builddir)/src \
45 -I$(top_builddir)/clients \
46 -I$(top_builddir)/tests \
47 -I$(top_srcdir)/shared \
48 -I$(top_builddir)/protocol \
49 -DDATADIR='"$(datadir)"' \
50 -DMODULEDIR='"$(moduledir)"' \
51 -DLIBEXECDIR='"$(libexecdir)"' \
52 -DBINDIR='"$(bindir)"'
54 CLEANFILES = weston.ini \
55 ivi-shell/weston.ini \
56 tests/weston-ivi.ini \
59 bin_PROGRAMS += weston
61 weston_LDFLAGS = -export-dynamic
62 weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
63 weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
64 weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
65 $(DLOPEN_LIBS) -lm libshared.la
81 src/pixman-renderer.c \
82 src/pixman-renderer.h \
85 src/timeline-object.h \
92 nodist_weston_SOURCES = \
93 protocol/screenshooter-protocol.c \
94 protocol/screenshooter-server-protocol.h \
95 protocol/text-cursor-position-protocol.c \
96 protocol/text-cursor-position-server-protocol.h \
97 protocol/text-protocol.c \
98 protocol/text-server-protocol.h \
99 protocol/input-method-protocol.c \
100 protocol/input-method-server-protocol.h \
101 protocol/workspaces-protocol.c \
102 protocol/workspaces-server-protocol.h \
103 protocol/presentation_timing-protocol.c \
104 protocol/presentation_timing-server-protocol.h \
105 protocol/scaler-protocol.c \
106 protocol/scaler-server-protocol.h
108 BUILT_SOURCES += $(nodist_weston_SOURCES)
110 # Track this dependency explicitly instead of using BUILT_SOURCES. We
111 # add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
112 # in case we're building from tarballs.
114 src/compositor.c : $(top_builddir)/src/git-version.h
116 noinst_LTLIBRARIES += \
119 libsession_helper_la_SOURCES = \
120 src/weston-launch.h \
121 src/launcher-util.c \
123 libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
124 libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
127 if HAVE_SYSTEMD_LOGIN
128 libsession_helper_la_SOURCES += \
133 libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
134 libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
139 src/git-version.h : $(top_srcdir)/.git/logs/HEAD
140 $(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)')\"" > $@
143 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
149 if BUILD_WESTON_LAUNCH
150 bin_PROGRAMS += weston-launch
151 weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
152 weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
153 weston_launch_CFLAGS= \
156 $(SYSTEMD_LOGIN_CFLAGS) \
158 weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
160 if ENABLE_SETUID_INSTALL
162 chown root $(DESTDIR)$(bindir)/weston-launch
163 chmod u+s $(DESTDIR)$(bindir)/weston-launch
166 endif # BUILD_WESTON_LAUNCH
168 pkgconfigdir = $(libdir)/pkgconfig
169 pkgconfig_DATA = src/weston.pc
171 wayland_sessiondir = $(datadir)/wayland-sessions
172 wayland_session_DATA = src/weston.desktop
173 dist_wayland_session_DATA = $(wayland_session_DATA)
175 westonincludedir = $(includedir)/weston
176 westoninclude_HEADERS = \
179 src/timeline-object.h \
181 shared/config-parser.h \
186 module_LTLIBRARIES += gl-renderer.la
187 gl_renderer_la_LDFLAGS = -module -avoid-version
188 gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
189 gl_renderer_la_CFLAGS = \
190 $(COMPOSITOR_CFLAGS) \
193 gl_renderer_la_SOURCES = \
196 src/vertex-clipping.c \
197 src/vertex-clipping.h
200 if ENABLE_X11_COMPOSITOR
201 module_LTLIBRARIES += x11-backend.la
202 x11_backend_la_LDFLAGS = -module -avoid-version
203 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
205 x11_backend_la_CFLAGS = \
206 $(COMPOSITOR_CFLAGS) \
210 $(X11_COMPOSITOR_CFLAGS) \
212 x11_backend_la_SOURCES = src/compositor-x11.c
215 INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
216 INPUT_BACKEND_SOURCES = \
217 src/libinput-seat.c \
218 src/libinput-seat.h \
219 src/libinput-device.c \
220 src/libinput-device.h
222 if ENABLE_DRM_COMPOSITOR
223 module_LTLIBRARIES += drm-backend.la
224 drm_backend_la_LDFLAGS = -module -avoid-version
225 drm_backend_la_LIBADD = \
227 $(DRM_COMPOSITOR_LIBS) \
228 $(INPUT_BACKEND_LIBS) \
231 drm_backend_la_CFLAGS = \
232 $(COMPOSITOR_CFLAGS) \
234 $(DRM_COMPOSITOR_CFLAGS) \
236 drm_backend_la_SOURCES = \
237 src/compositor-drm.c \
238 $(INPUT_BACKEND_SOURCES) \
242 if ENABLE_VAAPI_RECORDER
243 drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
244 drm_backend_la_LIBADD += $(LIBVA_LIBS)
245 drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
249 if ENABLE_WAYLAND_COMPOSITOR
250 module_LTLIBRARIES += wayland-backend.la
251 wayland_backend_la_LDFLAGS = -module -avoid-version
252 wayland_backend_la_LIBADD = \
254 $(WAYLAND_COMPOSITOR_LIBS) \
256 wayland_backend_la_CFLAGS = \
257 $(COMPOSITOR_CFLAGS) \
261 $(WAYLAND_COMPOSITOR_CFLAGS) \
263 wayland_backend_la_SOURCES = src/compositor-wayland.c
264 nodist_wayland_backend_la_SOURCES = \
265 protocol/fullscreen-shell-protocol.c \
266 protocol/fullscreen-shell-client-protocol.h
269 if ENABLE_RPI_COMPOSITOR
270 if INSTALL_RPI_COMPOSITOR
271 module_LTLIBRARIES += rpi-backend.la
273 noinst_LTLIBRARIES += rpi-backend.la
276 rpi_backend_la_LDFLAGS = -module -avoid-version
277 rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
278 $(RPI_COMPOSITOR_LIBS) \
279 $(RPI_BCM_HOST_LIBS) \
280 $(INPUT_BACKEND_LIBS) \
281 libsession-helper.la \
283 rpi_backend_la_CFLAGS = \
285 $(COMPOSITOR_CFLAGS) \
286 $(RPI_COMPOSITOR_CFLAGS) \
287 $(RPI_BCM_HOST_CFLAGS)
288 rpi_backend_la_SOURCES = \
289 src/compositor-rpi.c \
292 src/rpi-bcm-stubs.h \
293 $(INPUT_BACKEND_SOURCES)
296 rpi_backend_la_LIBADD += $(EGL_LIBS)
297 rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
302 if ENABLE_HEADLESS_COMPOSITOR
303 module_LTLIBRARIES += headless-backend.la
304 headless_backend_la_LDFLAGS = -module -avoid-version
305 headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
306 headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
307 headless_backend_la_SOURCES = src/compositor-headless.c
310 if ENABLE_FBDEV_COMPOSITOR
311 module_LTLIBRARIES += fbdev-backend.la
312 fbdev_backend_la_LDFLAGS = -module -avoid-version
313 fbdev_backend_la_LIBADD = \
315 $(FBDEV_COMPOSITOR_LIBS) \
316 $(INPUT_BACKEND_LIBS) \
317 libsession-helper.la \
319 fbdev_backend_la_CFLAGS = \
320 $(COMPOSITOR_CFLAGS) \
322 $(FBDEV_COMPOSITOR_CFLAGS) \
325 fbdev_backend_la_SOURCES = \
326 src/compositor-fbdev.c \
327 $(INPUT_BACKEND_SOURCES)
330 if ENABLE_RDP_COMPOSITOR
331 module_LTLIBRARIES += rdp-backend.la
332 rdp_backend_la_LDFLAGS = -module -avoid-version
333 rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
334 $(RDP_COMPOSITOR_LIBS) \
336 rdp_backend_la_CFLAGS = \
337 $(COMPOSITOR_CFLAGS) \
338 $(RDP_COMPOSITOR_CFLAGS) \
340 rdp_backend_la_SOURCES = src/compositor-rdp.c
344 module_LTLIBRARIES += cms-static.la
345 cms_static_la_LDFLAGS = -module -avoid-version
346 cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
347 cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
348 cms_static_la_SOURCES = \
353 module_LTLIBRARIES += cms-colord.la
354 cms_colord_la_LDFLAGS = -module -avoid-version
355 cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
356 cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
357 cms_colord_la_SOURCES = \
364 noinst_PROGRAMS += spring-tool
365 spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
366 spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
367 spring_tool_SOURCES = \
376 bin_PROGRAMS += weston-terminal weston-info
378 libexec_PROGRAMS += \
379 weston-desktop-shell \
380 weston-screenshooter \
385 libexec_PROGRAMS += \
386 weston-ivi-shell-user-interface
404 if INSTALL_DEMO_CLIENTS
405 bin_PROGRAMS += $(demo_clients)
407 noinst_PROGRAMS += $(demo_clients)
411 if BUILD_SIMPLE_CLIENTS
414 weston-simple-damage \
415 weston-simple-touch \
416 weston-presentation-shm \
417 weston-multi-resource
419 weston_simple_shm_SOURCES = clients/simple-shm.c
420 nodist_weston_simple_shm_SOURCES = \
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 protocol/ivi-application-protocol.c \
426 protocol/ivi-application-client-protocol.h
427 weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
428 weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
430 weston_simple_damage_SOURCES = clients/simple-damage.c
431 nodist_weston_simple_damage_SOURCES = \
432 protocol/scaler-protocol.c \
433 protocol/scaler-client-protocol.h \
434 protocol/xdg-shell-protocol.c \
435 protocol/xdg-shell-client-protocol.h \
436 protocol/fullscreen-shell-protocol.c \
437 protocol/fullscreen-shell-client-protocol.h
438 weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
439 weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
441 weston_simple_touch_SOURCES = clients/simple-touch.c
442 weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
443 weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
445 weston_presentation_shm_SOURCES = clients/presentation-shm.c
446 nodist_weston_presentation_shm_SOURCES = \
447 protocol/presentation_timing-protocol.c \
448 protocol/presentation_timing-client-protocol.h
449 weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
450 weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
452 weston_multi_resource_SOURCES = clients/multi-resource.c
453 weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
454 weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm
457 if BUILD_SIMPLE_EGL_CLIENTS
458 demo_clients += weston-simple-egl
459 weston_simple_egl_SOURCES = clients/simple-egl.c
460 nodist_weston_simple_egl_SOURCES = \
461 protocol/xdg-shell-protocol.c \
462 protocol/xdg-shell-client-protocol.h \
463 protocol/ivi-application-protocol.c \
464 protocol/ivi-application-client-protocol.h
465 weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
466 weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
469 noinst_LTLIBRARIES += libtoytoolkit.la
471 libtoytoolkit_la_SOURCES = \
475 nodist_libtoytoolkit_la_SOURCES = \
476 protocol/text-cursor-position-protocol.c \
477 protocol/text-cursor-position-client-protocol.h \
478 protocol/scaler-protocol.c \
479 protocol/scaler-client-protocol.h \
480 protocol/workspaces-protocol.c \
481 protocol/workspaces-client-protocol.h \
482 protocol/presentation_timing-protocol.c \
483 protocol/presentation_timing-client-protocol.h \
484 protocol/xdg-shell-protocol.c \
485 protocol/xdg-shell-client-protocol.h \
486 protocol/ivi-application-protocol.c \
487 protocol/ivi-application-client-protocol.h
489 BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
492 libtoytoolkit_la_LIBADD = \
495 libshared-cairo.la -lrt -lm
496 libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
498 weston_flower_SOURCES = clients/flower.c
499 weston_flower_LDADD = libtoytoolkit.la
500 weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
502 weston_screenshooter_SOURCES = \
504 nodist_weston_screenshooter_SOURCES = \
505 protocol/screenshooter-protocol.c \
506 protocol/screenshooter-client-protocol.h
507 weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
508 weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
510 weston_terminal_SOURCES = clients/terminal.c
511 weston_terminal_LDADD = libtoytoolkit.la -lutil
512 weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
514 weston_image_SOURCES = clients/image.c
515 weston_image_LDADD = libtoytoolkit.la
516 weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
518 weston_cliptest_SOURCES = \
520 src/vertex-clipping.c \
521 src/vertex-clipping.h
522 weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
523 weston_cliptest_LDADD = libtoytoolkit.la
525 weston_dnd_SOURCES = clients/dnd.c
526 weston_dnd_LDADD = libtoytoolkit.la
527 weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
529 weston_smoke_SOURCES = clients/smoke.c
530 weston_smoke_LDADD = libtoytoolkit.la
531 weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
533 weston_resizor_SOURCES = clients/resizor.c
534 weston_resizor_LDADD = libtoytoolkit.la
535 weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
537 weston_scaler_SOURCES = clients/scaler.c
538 weston_scaler_LDADD = libtoytoolkit.la
539 weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
542 demo_clients += weston-nested weston-nested-client
544 weston_nested_SOURCES = clients/nested.c
545 weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
546 weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
548 weston_nested_client_SOURCES = clients/nested-client.c
549 weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
550 weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
553 weston_eventdemo_SOURCES = clients/eventdemo.c
554 weston_eventdemo_LDADD = libtoytoolkit.la
555 weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
557 weston_clickdot_SOURCES = clients/clickdot.c
558 weston_clickdot_LDADD = libtoytoolkit.la
559 weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
561 weston_transformed_SOURCES = clients/transformed.c
562 weston_transformed_LDADD = libtoytoolkit.la
563 weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
565 weston_fullscreen_SOURCES = clients/fullscreen.c
566 nodist_weston_fullscreen_SOURCES = \
567 protocol/fullscreen-shell-protocol.c \
568 protocol/fullscreen-shell-client-protocol.h
569 weston_fullscreen_LDADD = libtoytoolkit.la
570 weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
572 weston_stacking_SOURCES = clients/stacking.c
573 weston_stacking_LDADD = libtoytoolkit.la
574 weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
576 weston_calibrator_SOURCES = clients/calibrator.c \
579 weston_calibrator_LDADD = libtoytoolkit.la
580 weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
582 if BUILD_SUBSURFACES_CLIENT
583 demo_clients += weston-subsurfaces
584 weston_subsurfaces_SOURCES = clients/subsurfaces.c
585 weston_subsurfaces_CFLAGS = \
587 $(SIMPLE_EGL_CLIENT_CFLAGS) \
589 weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
593 demo_clients += weston-editor
594 weston_editor_SOURCES = clients/editor.c
595 nodist_weston_editor_SOURCES = \
596 protocol/text-protocol.c \
597 protocol/text-client-protocol.h
598 weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
599 weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
602 weston_keyboard_SOURCES = clients/keyboard.c
603 nodist_weston_keyboard_SOURCES = \
604 protocol/desktop-shell-client-protocol.h \
605 protocol/desktop-shell-protocol.c \
606 protocol/input-method-protocol.c \
607 protocol/input-method-client-protocol.h
608 weston_keyboard_LDADD = libtoytoolkit.la
609 weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
611 weston_simple_im_SOURCES = clients/weston-simple-im.c
612 nodist_weston_simple_im_SOURCES = \
613 protocol/input-method-protocol.c \
614 protocol/input-method-client-protocol.h
615 weston_simple_im_LDADD = $(CLIENT_LIBS)
616 weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
618 weston_info_SOURCES = clients/weston-info.c
619 nodist_weston_info_SOURCES = \
620 protocol/presentation_timing-protocol.c \
621 protocol/presentation_timing-client-protocol.h
622 weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
623 weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
625 weston_desktop_shell_SOURCES = clients/desktop-shell.c
626 nodist_weston_desktop_shell_SOURCES = \
627 protocol/desktop-shell-client-protocol.h \
628 protocol/desktop-shell-protocol.c
629 weston_desktop_shell_LDADD = libtoytoolkit.la
630 weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
633 weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
634 nodist_weston_ivi_shell_user_interface_SOURCES = \
635 protocol/ivi-hmi-controller-client-protocol.h \
636 protocol/ivi-hmi-controller-protocol.c \
637 protocol/ivi-application-client-protocol.h \
638 protocol/ivi-application-protocol.c
639 weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
640 weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
643 if BUILD_FULL_GL_CLIENTS
644 demo_clients += weston-gears
645 weston_gears_SOURCES = clients/gears.c
646 weston_gears_LDADD = libtoytoolkit.la
647 weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
650 libexec_PROGRAMS += weston-screensaver
651 weston_screensaver_SOURCES = \
652 clients/wscreensaver.c \
653 clients/wscreensaver.h \
654 clients/wscreensaver-glue.c \
655 clients/wscreensaver-glue.h \
658 nodist_weston_screensaver_SOURCES = \
659 protocol/desktop-shell-client-protocol.h \
660 protocol/desktop-shell-protocol.c
662 weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
663 weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
672 protocol/screenshooter-protocol.c \
673 protocol/screenshooter-client-protocol.h \
674 protocol/text-cursor-position-client-protocol.h \
675 protocol/text-cursor-position-protocol.c \
676 protocol/text-protocol.c \
677 protocol/text-client-protocol.h \
678 protocol/input-method-protocol.c \
679 protocol/input-method-client-protocol.h \
680 protocol/desktop-shell-client-protocol.h \
681 protocol/desktop-shell-protocol.c \
682 protocol/scaler-client-protocol.h \
683 protocol/scaler-protocol.c \
684 protocol/workspaces-client-protocol.h \
685 protocol/workspaces-protocol.c \
686 protocol/fullscreen-shell-protocol.c \
687 protocol/fullscreen-shell-client-protocol.h \
688 protocol/xdg-shell-protocol.c \
689 protocol/xdg-shell-client-protocol.h \
690 protocol/ivi-hmi-controller-protocol.c \
691 protocol/ivi-hmi-controller-client-protocol.h \
692 protocol/ivi-application-protocol.c \
693 protocol/ivi-application-client-protocol.h
695 westondatadir = $(datadir)/weston
696 dist_westondata_DATA = \
702 data/icon_window.png \
703 data/sign_close.png \
704 data/sign_maximize.png \
705 data/sign_minimize.png
708 dist_westondata_DATA += \
709 data/background.png \
711 data/fullscreen.png \
714 data/sidebyside.png \
716 data/icon_ivi_clickdot.png \
717 data/icon_ivi_flower.png \
718 data/icon_ivi_simple-egl.png \
719 data/icon_ivi_simple-shm.png \
720 data/icon_ivi_smoke.png
725 bin_PROGRAMS += wcap-decode
727 wcap_decode_SOURCES = \
732 wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
733 wcap_decode_LDADD = $(WCAP_LIBS)
737 if ENABLE_DESKTOP_SHELL
739 module_LTLIBRARIES += desktop-shell.la
741 desktop_shell_la_CPPFLAGS = \
742 -I$(top_builddir)/protocol \
743 -I$(top_srcdir)/shared \
744 -I$(top_srcdir)/src \
745 -I$(top_builddir)/src \
746 -I$(top_builddir)/desktop-shell \
747 -DDATADIR='"$(datadir)"' \
748 -DMODULEDIR='"$(moduledir)"' \
749 -DLIBEXECDIR='"$(libexecdir)"' \
752 desktop_shell_la_LDFLAGS = -module -avoid-version
753 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
754 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
755 desktop_shell_la_SOURCES = \
756 desktop-shell/shell.h \
757 desktop-shell/shell.c \
758 desktop-shell/exposay.c \
759 desktop-shell/input-panel.c
760 nodist_desktop_shell_la_SOURCES = \
761 protocol/desktop-shell-protocol.c \
762 protocol/desktop-shell-server-protocol.h \
763 protocol/xdg-shell-protocol.c \
764 protocol/xdg-shell-server-protocol.h
766 BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
769 if ENABLE_FULLSCREEN_SHELL
771 module_LTLIBRARIES += fullscreen-shell.la
773 fullscreen_shell_la_CPPFLAGS = \
774 -I$(top_builddir)/protocol \
775 -I$(top_srcdir)/shared \
776 -I$(top_srcdir)/src \
777 -I$(top_builddir)/src \
780 fullscreen_shell_la_LDFLAGS = -module -avoid-version
781 fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
782 fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
783 fullscreen_shell_la_SOURCES = \
784 fullscreen-shell/fullscreen-shell.c
785 nodist_fullscreen_shell_la_SOURCES = \
786 protocol/fullscreen-shell-protocol.c \
787 protocol/fullscreen-shell-server-protocol.h
789 BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
794 module_LTLIBRARIES += \
798 ivi_shell = ivi-shell.la
799 ivi_shell_la_LDFLAGS = -module -avoid-version
800 ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
801 ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
802 ivi_shell_la_SOURCES = \
803 ivi-shell/ivi-layout-export.h \
804 ivi-shell/ivi-layout-private.h \
805 ivi-shell/ivi-layout.c \
806 ivi-shell/ivi-layout-transition.c \
807 ivi-shell/ivi-shell.h \
808 ivi-shell/ivi-shell.c \
809 ivi-shell/input-panel-ivi.c
810 nodist_ivi_shell_la_SOURCES = \
811 protocol/ivi-application-protocol.c \
812 protocol/ivi-application-server-protocol.h
814 BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
816 hmi_controller = hmi-controller.la
817 hmi_controller_la_LDFLAGS = -module -avoid-version
818 hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
819 hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
820 hmi_controller_la_SOURCES = \
821 ivi-shell/ivi-layout-export.h \
822 ivi-shell/hmi-controller.c
823 nodist_hmi_controller_la_SOURCES = \
824 protocol/ivi-hmi-controller-protocol.c \
825 protocol/ivi-hmi-controller-server-protocol.h
827 BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
832 if ENABLE_SCREEN_SHARING
834 module_LTLIBRARIES += screen-share.la
836 screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
837 screen_share_la_LDFLAGS = -module -avoid-version
838 screen_share_la_LIBADD = \
840 $(SCREEN_SHARE_LIBS) \
842 screen_share_la_CFLAGS = \
843 $(COMPOSITOR_CFLAGS) \
844 $(SCREEN_SHARE_CFLAGS) \
846 screen_share_la_SOURCES = \
848 nodist_screen_share_la_SOURCES = \
849 protocol/fullscreen-shell-protocol.c \
850 protocol/fullscreen-shell-client-protocol.h
856 module_LTLIBRARIES += xwayland.la
858 xwayland_la_CPPFLAGS = \
859 -I$(top_builddir)/protocol \
860 -I$(top_srcdir)/shared \
861 -I$(top_srcdir)/src \
862 -I$(top_builddir)/src \
863 -I$(top_builddir)/xwayland \
864 -DDATADIR='"$(datadir)"' \
865 -DMODULEDIR='"$(moduledir)"' \
866 -DLIBEXECDIR='"$(libexecdir)"' \
867 -DXSERVER_PATH='"@XSERVER_PATH@"'
869 xwayland_la_LDFLAGS = -module -avoid-version
870 xwayland_la_LIBADD = \
872 $(top_builddir)/libshared-cairo.la
873 xwayland_la_CFLAGS = \
875 $(COMPOSITOR_CFLAGS) \
878 xwayland_la_SOURCES = \
879 xwayland/xwayland.h \
880 xwayland/window-manager.c \
881 xwayland/selection.c \
883 xwayland/launcher.c \
893 noinst_LTLIBRARIES += libshared.la libshared-cairo.la
895 libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
897 libshared_la_SOURCES = \
898 shared/config-parser.c \
899 shared/option-parser.c \
900 shared/config-parser.h \
903 shared/os-compatibility.c \
904 shared/os-compatibility.h
906 libshared_cairo_la_CFLAGS = \
907 -DDATADIR='"$(datadir)"' \
909 $(COMPOSITOR_CFLAGS) \
915 libshared_cairo_la_LIBADD = \
922 libshared_cairo_la_SOURCES = \
923 $(libshared_la_SOURCES) \
924 shared/image-loader.c \
925 shared/image-loader.h \
926 shared/cairo-util.c \
935 TESTS = $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
943 surface-global-test.la
951 presentation.weston \
958 $(ivi_tests) : $(builddir)/tests/weston-ivi.ini
960 AM_TESTS_ENVIRONMENT = \
961 abs_builddir='$(abs_builddir)'; export abs_builddir;
963 TEST_EXTENSIONS = .la .weston
964 LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
965 WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
970 # To remove when automake 1.11 support is dropped
973 noinst_LTLIBRARIES += \
986 test_module_ldflags = \
987 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
989 surface_global_test_la_SOURCES = tests/surface-global-test.c
990 surface_global_test_la_LDFLAGS = $(test_module_ldflags)
991 surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
993 surface_test_la_SOURCES = tests/surface-test.c
994 surface_test_la_LDFLAGS = $(test_module_ldflags)
995 surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
997 weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
998 weston_test_la_LDFLAGS = $(test_module_ldflags)
999 weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1000 weston_test_la_SOURCES = tests/weston-test.c
1001 nodist_weston_test_la_SOURCES = \
1002 protocol/weston-test-protocol.c \
1003 protocol/weston-test-server-protocol.h
1006 weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1007 weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1010 libtest_runner_la_SOURCES = \
1011 tests/weston-test-runner.c \
1012 tests/weston-test-runner.h
1013 libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1015 config_parser_test_SOURCES = tests/config-parser-test.c
1016 config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
1018 vertex_clip_test_SOURCES = \
1019 tests/vertex-clip-test.c \
1020 src/vertex-clipping.c \
1021 src/vertex-clipping.h
1022 vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
1024 libtest_client_la_SOURCES = \
1025 tests/weston-test-client-helper.c \
1026 tests/weston-test-client-helper.h
1027 nodist_libtest_client_la_SOURCES = \
1028 protocol/weston-test-protocol.c \
1029 protocol/weston-test-client-protocol.h
1030 libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1031 libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
1033 bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
1034 bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1035 bad_buffer_weston_LDADD = libtest-client.la
1037 keyboard_weston_SOURCES = tests/keyboard-test.c
1038 keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1039 keyboard_weston_LDADD = libtest-client.la
1041 event_weston_SOURCES = tests/event-test.c
1042 event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1043 event_weston_LDADD = libtest-client.la
1045 button_weston_SOURCES = tests/button-test.c
1046 button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1047 button_weston_LDADD = libtest-client.la
1049 devices_weston_SOURCES = tests/devices-test.c
1050 devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1051 devices_weston_LDADD = libtest-client.la
1053 text_weston_SOURCES = tests/text-test.c
1054 nodist_text_weston_SOURCES = \
1055 protocol/text-protocol.c \
1056 protocol/text-client-protocol.h
1057 text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1058 text_weston_LDADD = libtest-client.la
1060 subsurface_weston_SOURCES = tests/subsurface-test.c
1061 subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1062 subsurface_weston_LDADD = libtest-client.la
1064 presentation_weston_SOURCES = tests/presentation-test.c
1065 nodist_presentation_weston_SOURCES = \
1066 protocol/presentation_timing-protocol.c \
1067 protocol/presentation_timing-client-protocol.h
1068 presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1069 presentation_weston_LDADD = libtest-client.la
1071 roles_weston_SOURCES = tests/roles-test.c
1072 roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1073 roles_weston_LDADD = libtest-client.la
1076 weston_tests += buffer-count.weston
1077 buffer_count_weston_SOURCES = tests/buffer-count-test.c
1078 buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1079 buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1082 if ENABLE_XWAYLAND_TEST
1083 weston_tests += xwayland-test.weston
1084 xwayland_test_weston_SOURCES = tests/xwayland-test.c
1085 xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1086 xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
1089 matrix_test_SOURCES = \
1090 tests/matrix-test.c \
1093 matrix_test_CPPFLAGS = -DUNIT_TEST
1094 matrix_test_LDADD = -lm -lrt
1096 if BUILD_SETBACKLIGHT
1097 noinst_PROGRAMS += setbacklight
1098 setbacklight_SOURCES = \
1099 tests/setbacklight.c \
1100 src/libbacklight.c \
1102 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1103 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1106 EXTRA_DIST += tests/weston-tests-env
1109 protocol/weston-test-protocol.c \
1110 protocol/weston-test-server-protocol.h \
1111 protocol/weston-test-client-protocol.h \
1112 protocol/text-protocol.c \
1113 protocol/text-client-protocol.h
1116 protocol/desktop-shell.xml \
1117 protocol/screenshooter.xml \
1119 protocol/input-method.xml \
1120 protocol/workspaces.xml \
1121 protocol/text-cursor-position.xml \
1122 protocol/weston-test.xml \
1123 protocol/xdg-shell.xml \
1124 protocol/fullscreen-shell.xml \
1125 protocol/presentation_timing.xml \
1126 protocol/scaler.xml \
1127 protocol/ivi-application.xml \
1128 protocol/ivi-hmi-controller.xml
1131 # manual test modules in tests subdirectory
1134 noinst_LTLIBRARIES += \
1135 surface-screenshot.la
1137 surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1138 surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
1139 surface_screenshot_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1140 surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1147 man_MANS = weston.1 weston.ini.5
1149 if ENABLE_DRM_COMPOSITOR
1150 man_MANS += weston-drm.7
1154 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1155 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1156 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1157 -e 's|__version__|$(PACKAGE_VERSION)|g'
1159 SUFFIXES = .1 .5 .7 .man
1161 %.1 %.5 %.7 : man/%.man
1162 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1166 man/weston-drm.man \
1169 CLEANFILES += $(man_MANS)
1172 protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1173 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1175 protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1176 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1178 protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1179 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@