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|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
27 -e 's|@libexecdir[@]|$(libexecdir)|g' \
28 -e 's|@plugin_prefix[@]||g' \
31 tests/weston-ivi.ini : $(srcdir)/ivi-shell/weston.ini.in
33 -e 's|@bindir[@]|$(bindir)|g' \
34 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
35 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
36 -e 's|@libexecdir[@]|$(libexecdir)|g' \
37 -e 's|@plugin_prefix[@]|$(abs_top_builddir)/.libs/|g' \
40 all-local : weston.ini ivi-shell/weston.ini
42 AM_CFLAGS = $(GCC_CFLAGS)
46 -I$(top_builddir)/src \
47 -I$(top_builddir)/clients \
48 -I$(top_builddir)/tests \
49 -I$(top_srcdir)/shared \
50 -I$(top_builddir)/protocol \
51 -DDATADIR='"$(datadir)"' \
52 -DMODULEDIR='"$(moduledir)"' \
53 -DLIBEXECDIR='"$(libexecdir)"' \
54 -DBINDIR='"$(bindir)"'
56 CLEANFILES = weston.ini \
57 ivi-shell/weston.ini \
58 tests/weston-ivi.ini \
61 bin_PROGRAMS += weston
63 weston_LDFLAGS = -export-dynamic
64 weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
65 weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
66 weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
67 $(DLOPEN_LIBS) -lm libshared.la
83 src/pixman-renderer.c \
84 src/pixman-renderer.h \
87 src/timeline-object.h \
94 nodist_weston_SOURCES = \
95 protocol/screenshooter-protocol.c \
96 protocol/screenshooter-server-protocol.h \
97 protocol/text-cursor-position-protocol.c \
98 protocol/text-cursor-position-server-protocol.h \
99 protocol/text-protocol.c \
100 protocol/text-server-protocol.h \
101 protocol/input-method-protocol.c \
102 protocol/input-method-server-protocol.h \
103 protocol/workspaces-protocol.c \
104 protocol/workspaces-server-protocol.h \
105 protocol/presentation_timing-protocol.c \
106 protocol/presentation_timing-server-protocol.h \
107 protocol/scaler-protocol.c \
108 protocol/scaler-server-protocol.h
110 BUILT_SOURCES += $(nodist_weston_SOURCES)
112 # Track this dependency explicitly instead of using BUILT_SOURCES. We
113 # add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
114 # in case we're building from tarballs.
116 src/compositor.c : $(top_builddir)/src/git-version.h
118 noinst_LTLIBRARIES += \
121 libsession_helper_la_SOURCES = \
122 src/weston-launch.h \
123 src/launcher-util.c \
125 libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
126 libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
129 if HAVE_SYSTEMD_LOGIN
130 libsession_helper_la_SOURCES += \
135 libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
136 libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
141 src/git-version.h : $(top_srcdir)/.git/logs/HEAD
142 $(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)')\"" > $@
145 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
151 if BUILD_WESTON_LAUNCH
152 bin_PROGRAMS += weston-launch
153 weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
154 weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
155 weston_launch_CFLAGS= \
158 $(SYSTEMD_LOGIN_CFLAGS) \
160 weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
162 if ENABLE_SETUID_INSTALL
164 chown root $(DESTDIR)$(bindir)/weston-launch
165 chmod u+s $(DESTDIR)$(bindir)/weston-launch
168 endif # BUILD_WESTON_LAUNCH
170 pkgconfigdir = $(libdir)/pkgconfig
171 pkgconfig_DATA = src/weston.pc
173 wayland_sessiondir = $(datadir)/wayland-sessions
174 wayland_session_DATA = src/weston.desktop
175 dist_wayland_session_DATA = $(wayland_session_DATA)
177 westonincludedir = $(includedir)/weston
178 westoninclude_HEADERS = \
181 src/timeline-object.h \
183 shared/config-parser.h \
188 module_LTLIBRARIES += gl-renderer.la
189 gl_renderer_la_LDFLAGS = -module -avoid-version
190 gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
191 gl_renderer_la_CFLAGS = \
192 $(COMPOSITOR_CFLAGS) \
195 gl_renderer_la_SOURCES = \
198 src/vertex-clipping.c \
199 src/vertex-clipping.h
202 if ENABLE_X11_COMPOSITOR
203 module_LTLIBRARIES += x11-backend.la
204 x11_backend_la_LDFLAGS = -module -avoid-version
205 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
207 x11_backend_la_CFLAGS = \
208 $(COMPOSITOR_CFLAGS) \
212 $(X11_COMPOSITOR_CFLAGS) \
214 x11_backend_la_SOURCES = src/compositor-x11.c
217 INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
218 INPUT_BACKEND_SOURCES = \
219 src/libinput-seat.c \
220 src/libinput-seat.h \
221 src/libinput-device.c \
222 src/libinput-device.h
224 if ENABLE_DRM_COMPOSITOR
225 module_LTLIBRARIES += drm-backend.la
226 drm_backend_la_LDFLAGS = -module -avoid-version
227 drm_backend_la_LIBADD = \
229 $(DRM_COMPOSITOR_LIBS) \
230 $(INPUT_BACKEND_LIBS) \
233 drm_backend_la_CFLAGS = \
234 $(COMPOSITOR_CFLAGS) \
236 $(DRM_COMPOSITOR_CFLAGS) \
238 drm_backend_la_SOURCES = \
239 src/compositor-drm.c \
240 $(INPUT_BACKEND_SOURCES) \
244 if ENABLE_VAAPI_RECORDER
245 drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
246 drm_backend_la_LIBADD += $(LIBVA_LIBS)
247 drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
251 if ENABLE_WAYLAND_COMPOSITOR
252 module_LTLIBRARIES += wayland-backend.la
253 wayland_backend_la_LDFLAGS = -module -avoid-version
254 wayland_backend_la_LIBADD = \
256 $(WAYLAND_COMPOSITOR_LIBS) \
258 wayland_backend_la_CFLAGS = \
259 $(COMPOSITOR_CFLAGS) \
263 $(WAYLAND_COMPOSITOR_CFLAGS) \
265 wayland_backend_la_SOURCES = src/compositor-wayland.c
266 nodist_wayland_backend_la_SOURCES = \
267 protocol/fullscreen-shell-protocol.c \
268 protocol/fullscreen-shell-client-protocol.h
271 if ENABLE_RPI_COMPOSITOR
272 if INSTALL_RPI_COMPOSITOR
273 module_LTLIBRARIES += rpi-backend.la
275 noinst_LTLIBRARIES += rpi-backend.la
278 rpi_backend_la_LDFLAGS = -module -avoid-version
279 rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
280 $(RPI_COMPOSITOR_LIBS) \
281 $(RPI_BCM_HOST_LIBS) \
282 $(INPUT_BACKEND_LIBS) \
283 libsession-helper.la \
285 rpi_backend_la_CFLAGS = \
287 $(COMPOSITOR_CFLAGS) \
288 $(RPI_COMPOSITOR_CFLAGS) \
289 $(RPI_BCM_HOST_CFLAGS)
290 rpi_backend_la_SOURCES = \
291 src/compositor-rpi.c \
294 src/rpi-bcm-stubs.h \
295 $(INPUT_BACKEND_SOURCES)
298 rpi_backend_la_LIBADD += $(EGL_LIBS)
299 rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
304 if ENABLE_HEADLESS_COMPOSITOR
305 module_LTLIBRARIES += headless-backend.la
306 headless_backend_la_LDFLAGS = -module -avoid-version
307 headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
308 headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
309 headless_backend_la_SOURCES = src/compositor-headless.c
312 if ENABLE_FBDEV_COMPOSITOR
313 module_LTLIBRARIES += fbdev-backend.la
314 fbdev_backend_la_LDFLAGS = -module -avoid-version
315 fbdev_backend_la_LIBADD = \
317 $(FBDEV_COMPOSITOR_LIBS) \
318 $(INPUT_BACKEND_LIBS) \
319 libsession-helper.la \
321 fbdev_backend_la_CFLAGS = \
322 $(COMPOSITOR_CFLAGS) \
324 $(FBDEV_COMPOSITOR_CFLAGS) \
327 fbdev_backend_la_SOURCES = \
328 src/compositor-fbdev.c \
329 $(INPUT_BACKEND_SOURCES)
332 if ENABLE_RDP_COMPOSITOR
333 module_LTLIBRARIES += rdp-backend.la
334 rdp_backend_la_LDFLAGS = -module -avoid-version
335 rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
336 $(RDP_COMPOSITOR_LIBS) \
338 rdp_backend_la_CFLAGS = \
339 $(COMPOSITOR_CFLAGS) \
340 $(RDP_COMPOSITOR_CFLAGS) \
342 rdp_backend_la_SOURCES = src/compositor-rdp.c
346 module_LTLIBRARIES += cms-static.la
347 cms_static_la_LDFLAGS = -module -avoid-version
348 cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
349 cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
350 cms_static_la_SOURCES = \
355 module_LTLIBRARIES += cms-colord.la
356 cms_colord_la_LDFLAGS = -module -avoid-version
357 cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
358 cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
359 cms_colord_la_SOURCES = \
366 noinst_PROGRAMS += spring-tool
367 spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
368 spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
369 spring_tool_SOURCES = \
378 bin_PROGRAMS += weston-terminal weston-info
380 libexec_PROGRAMS += \
381 weston-desktop-shell \
382 weston-screenshooter \
387 libexec_PROGRAMS += \
388 weston-ivi-shell-user-interface
406 if INSTALL_DEMO_CLIENTS
407 bin_PROGRAMS += $(demo_clients)
409 noinst_PROGRAMS += $(demo_clients)
413 if BUILD_SIMPLE_CLIENTS
416 weston-simple-damage \
417 weston-simple-touch \
418 weston-presentation-shm \
419 weston-multi-resource
421 weston_simple_shm_SOURCES = clients/simple-shm.c
422 nodist_weston_simple_shm_SOURCES = \
423 protocol/xdg-shell-protocol.c \
424 protocol/xdg-shell-client-protocol.h \
425 protocol/fullscreen-shell-protocol.c \
426 protocol/fullscreen-shell-client-protocol.h \
427 protocol/ivi-application-protocol.c \
428 protocol/ivi-application-client-protocol.h
429 weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
430 weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
432 weston_simple_damage_SOURCES = clients/simple-damage.c
433 nodist_weston_simple_damage_SOURCES = \
434 protocol/scaler-protocol.c \
435 protocol/scaler-client-protocol.h \
436 protocol/xdg-shell-protocol.c \
437 protocol/xdg-shell-client-protocol.h \
438 protocol/fullscreen-shell-protocol.c \
439 protocol/fullscreen-shell-client-protocol.h
440 weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
441 weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
443 weston_simple_touch_SOURCES = clients/simple-touch.c
444 weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
445 weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
447 weston_presentation_shm_SOURCES = clients/presentation-shm.c
448 nodist_weston_presentation_shm_SOURCES = \
449 protocol/presentation_timing-protocol.c \
450 protocol/presentation_timing-client-protocol.h
451 weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
452 weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
454 weston_multi_resource_SOURCES = clients/multi-resource.c
455 weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
456 weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm
459 if BUILD_SIMPLE_EGL_CLIENTS
460 demo_clients += weston-simple-egl
461 weston_simple_egl_SOURCES = clients/simple-egl.c
462 nodist_weston_simple_egl_SOURCES = \
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
467 weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
468 weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
471 noinst_LTLIBRARIES += libtoytoolkit.la
473 libtoytoolkit_la_SOURCES = \
477 nodist_libtoytoolkit_la_SOURCES = \
478 protocol/text-cursor-position-protocol.c \
479 protocol/text-cursor-position-client-protocol.h \
480 protocol/scaler-protocol.c \
481 protocol/scaler-client-protocol.h \
482 protocol/workspaces-protocol.c \
483 protocol/workspaces-client-protocol.h \
484 protocol/presentation_timing-protocol.c \
485 protocol/presentation_timing-client-protocol.h \
486 protocol/xdg-shell-protocol.c \
487 protocol/xdg-shell-client-protocol.h \
488 protocol/ivi-application-protocol.c \
489 protocol/ivi-application-client-protocol.h
491 BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
494 libtoytoolkit_la_LIBADD = \
497 libshared-cairo.la -lrt -lm
498 libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
500 weston_flower_SOURCES = clients/flower.c
501 weston_flower_LDADD = libtoytoolkit.la
502 weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
504 weston_screenshooter_SOURCES = \
506 nodist_weston_screenshooter_SOURCES = \
507 protocol/screenshooter-protocol.c \
508 protocol/screenshooter-client-protocol.h
509 weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
510 weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
512 weston_terminal_SOURCES = clients/terminal.c
513 weston_terminal_LDADD = libtoytoolkit.la -lutil
514 weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
516 weston_image_SOURCES = clients/image.c
517 weston_image_LDADD = libtoytoolkit.la
518 weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
520 weston_cliptest_SOURCES = \
522 src/vertex-clipping.c \
523 src/vertex-clipping.h
524 weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
525 weston_cliptest_LDADD = libtoytoolkit.la
527 weston_dnd_SOURCES = clients/dnd.c
528 weston_dnd_LDADD = libtoytoolkit.la
529 weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
531 weston_smoke_SOURCES = clients/smoke.c
532 weston_smoke_LDADD = libtoytoolkit.la
533 weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
535 weston_resizor_SOURCES = clients/resizor.c
536 weston_resizor_LDADD = libtoytoolkit.la
537 weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
539 weston_scaler_SOURCES = clients/scaler.c
540 weston_scaler_LDADD = libtoytoolkit.la
541 weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
544 demo_clients += weston-nested weston-nested-client
546 weston_nested_SOURCES = clients/nested.c
547 weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
548 weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
550 weston_nested_client_SOURCES = clients/nested-client.c
551 weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
552 weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
555 weston_eventdemo_SOURCES = clients/eventdemo.c
556 weston_eventdemo_LDADD = libtoytoolkit.la
557 weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
559 weston_clickdot_SOURCES = clients/clickdot.c
560 weston_clickdot_LDADD = libtoytoolkit.la
561 weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
563 weston_transformed_SOURCES = clients/transformed.c
564 weston_transformed_LDADD = libtoytoolkit.la
565 weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
567 weston_fullscreen_SOURCES = clients/fullscreen.c
568 nodist_weston_fullscreen_SOURCES = \
569 protocol/fullscreen-shell-protocol.c \
570 protocol/fullscreen-shell-client-protocol.h
571 weston_fullscreen_LDADD = libtoytoolkit.la
572 weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
574 weston_stacking_SOURCES = clients/stacking.c
575 weston_stacking_LDADD = libtoytoolkit.la
576 weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
578 weston_calibrator_SOURCES = clients/calibrator.c \
581 weston_calibrator_LDADD = libtoytoolkit.la
582 weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
584 if BUILD_SUBSURFACES_CLIENT
585 demo_clients += weston-subsurfaces
586 weston_subsurfaces_SOURCES = clients/subsurfaces.c
587 weston_subsurfaces_CFLAGS = \
589 $(SIMPLE_EGL_CLIENT_CFLAGS) \
591 weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
595 demo_clients += weston-editor
596 weston_editor_SOURCES = clients/editor.c
597 nodist_weston_editor_SOURCES = \
598 protocol/text-protocol.c \
599 protocol/text-client-protocol.h
600 weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
601 weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
604 weston_keyboard_SOURCES = clients/keyboard.c
605 nodist_weston_keyboard_SOURCES = \
606 protocol/desktop-shell-client-protocol.h \
607 protocol/desktop-shell-protocol.c \
608 protocol/input-method-protocol.c \
609 protocol/input-method-client-protocol.h
610 weston_keyboard_LDADD = libtoytoolkit.la
611 weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
613 weston_simple_im_SOURCES = clients/weston-simple-im.c
614 nodist_weston_simple_im_SOURCES = \
615 protocol/input-method-protocol.c \
616 protocol/input-method-client-protocol.h
617 weston_simple_im_LDADD = $(CLIENT_LIBS)
618 weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
620 weston_info_SOURCES = clients/weston-info.c
621 nodist_weston_info_SOURCES = \
622 protocol/presentation_timing-protocol.c \
623 protocol/presentation_timing-client-protocol.h
624 weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
625 weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
627 weston_desktop_shell_SOURCES = clients/desktop-shell.c
628 nodist_weston_desktop_shell_SOURCES = \
629 protocol/desktop-shell-client-protocol.h \
630 protocol/desktop-shell-protocol.c
631 weston_desktop_shell_LDADD = libtoytoolkit.la
632 weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
635 weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
636 nodist_weston_ivi_shell_user_interface_SOURCES = \
637 protocol/ivi-hmi-controller-client-protocol.h \
638 protocol/ivi-hmi-controller-protocol.c \
639 protocol/ivi-application-client-protocol.h \
640 protocol/ivi-application-protocol.c
641 weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
642 weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
645 if BUILD_FULL_GL_CLIENTS
646 demo_clients += weston-gears
647 weston_gears_SOURCES = clients/gears.c
648 weston_gears_LDADD = libtoytoolkit.la
649 weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
652 libexec_PROGRAMS += weston-screensaver
653 weston_screensaver_SOURCES = \
654 clients/wscreensaver.c \
655 clients/wscreensaver.h \
656 clients/wscreensaver-glue.c \
657 clients/wscreensaver-glue.h \
660 nodist_weston_screensaver_SOURCES = \
661 protocol/desktop-shell-client-protocol.h \
662 protocol/desktop-shell-protocol.c
664 weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
665 weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
674 protocol/screenshooter-protocol.c \
675 protocol/screenshooter-client-protocol.h \
676 protocol/text-cursor-position-client-protocol.h \
677 protocol/text-cursor-position-protocol.c \
678 protocol/text-protocol.c \
679 protocol/text-client-protocol.h \
680 protocol/input-method-protocol.c \
681 protocol/input-method-client-protocol.h \
682 protocol/desktop-shell-client-protocol.h \
683 protocol/desktop-shell-protocol.c \
684 protocol/scaler-client-protocol.h \
685 protocol/scaler-protocol.c \
686 protocol/workspaces-client-protocol.h \
687 protocol/workspaces-protocol.c \
688 protocol/fullscreen-shell-protocol.c \
689 protocol/fullscreen-shell-client-protocol.h \
690 protocol/xdg-shell-protocol.c \
691 protocol/xdg-shell-client-protocol.h \
692 protocol/ivi-hmi-controller-protocol.c \
693 protocol/ivi-hmi-controller-client-protocol.h \
694 protocol/ivi-application-protocol.c \
695 protocol/ivi-application-client-protocol.h
697 westondatadir = $(datadir)/weston
698 dist_westondata_DATA = \
704 data/icon_window.png \
705 data/sign_close.png \
706 data/sign_maximize.png \
707 data/sign_minimize.png
710 dist_westondata_DATA += \
711 data/background.png \
713 data/fullscreen.png \
716 data/sidebyside.png \
718 data/icon_ivi_clickdot.png \
719 data/icon_ivi_flower.png \
720 data/icon_ivi_simple-egl.png \
721 data/icon_ivi_simple-shm.png \
722 data/icon_ivi_smoke.png
727 bin_PROGRAMS += wcap-decode
729 wcap_decode_SOURCES = \
734 wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
735 wcap_decode_LDADD = $(WCAP_LIBS)
739 if ENABLE_DESKTOP_SHELL
741 module_LTLIBRARIES += desktop-shell.la
743 desktop_shell_la_CPPFLAGS = \
744 -I$(top_builddir)/protocol \
745 -I$(top_srcdir)/shared \
746 -I$(top_srcdir)/src \
747 -I$(top_builddir)/src \
748 -I$(top_builddir)/desktop-shell \
749 -DDATADIR='"$(datadir)"' \
750 -DMODULEDIR='"$(moduledir)"' \
751 -DLIBEXECDIR='"$(libexecdir)"' \
754 desktop_shell_la_LDFLAGS = -module -avoid-version
755 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
756 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
757 desktop_shell_la_SOURCES = \
758 desktop-shell/shell.h \
759 desktop-shell/shell.c \
760 desktop-shell/exposay.c \
761 desktop-shell/input-panel.c
762 nodist_desktop_shell_la_SOURCES = \
763 protocol/desktop-shell-protocol.c \
764 protocol/desktop-shell-server-protocol.h \
765 protocol/xdg-shell-protocol.c \
766 protocol/xdg-shell-server-protocol.h
768 BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
771 if ENABLE_FULLSCREEN_SHELL
773 module_LTLIBRARIES += fullscreen-shell.la
775 fullscreen_shell_la_CPPFLAGS = \
776 -I$(top_builddir)/protocol \
777 -I$(top_srcdir)/shared \
778 -I$(top_srcdir)/src \
779 -I$(top_builddir)/src \
782 fullscreen_shell_la_LDFLAGS = -module -avoid-version
783 fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
784 fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
785 fullscreen_shell_la_SOURCES = \
786 fullscreen-shell/fullscreen-shell.c
787 nodist_fullscreen_shell_la_SOURCES = \
788 protocol/fullscreen-shell-protocol.c \
789 protocol/fullscreen-shell-server-protocol.h
791 BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
796 module_LTLIBRARIES += \
800 ivi_shell = ivi-shell.la
801 ivi_shell_la_LDFLAGS = -module -avoid-version
802 ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
803 ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
804 ivi_shell_la_SOURCES = \
805 ivi-shell/ivi-layout-export.h \
806 ivi-shell/ivi-layout-private.h \
807 ivi-shell/ivi-layout.c \
808 ivi-shell/ivi-layout-transition.c \
809 ivi-shell/ivi-shell.h \
810 ivi-shell/ivi-shell.c \
811 ivi-shell/input-panel-ivi.c
812 nodist_ivi_shell_la_SOURCES = \
813 protocol/ivi-application-protocol.c \
814 protocol/ivi-application-server-protocol.h
816 BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
818 hmi_controller = hmi-controller.la
819 hmi_controller_la_LDFLAGS = -module -avoid-version
820 hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
821 hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
822 hmi_controller_la_SOURCES = \
823 ivi-shell/ivi-layout-export.h \
824 ivi-shell/hmi-controller.c
825 nodist_hmi_controller_la_SOURCES = \
826 protocol/ivi-hmi-controller-protocol.c \
827 protocol/ivi-hmi-controller-server-protocol.h
829 BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
834 if ENABLE_SCREEN_SHARING
836 module_LTLIBRARIES += screen-share.la
838 screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
839 screen_share_la_LDFLAGS = -module -avoid-version
840 screen_share_la_LIBADD = \
842 $(SCREEN_SHARE_LIBS) \
844 screen_share_la_CFLAGS = \
845 $(COMPOSITOR_CFLAGS) \
846 $(SCREEN_SHARE_CFLAGS) \
848 screen_share_la_SOURCES = \
850 nodist_screen_share_la_SOURCES = \
851 protocol/fullscreen-shell-protocol.c \
852 protocol/fullscreen-shell-client-protocol.h
858 module_LTLIBRARIES += xwayland.la
860 xwayland_la_CPPFLAGS = \
861 -I$(top_builddir)/protocol \
862 -I$(top_srcdir)/shared \
863 -I$(top_srcdir)/src \
864 -I$(top_builddir)/src \
865 -I$(top_builddir)/xwayland \
866 -DDATADIR='"$(datadir)"' \
867 -DMODULEDIR='"$(moduledir)"' \
868 -DLIBEXECDIR='"$(libexecdir)"' \
869 -DXSERVER_PATH='"@XSERVER_PATH@"'
871 xwayland_la_LDFLAGS = -module -avoid-version
872 xwayland_la_LIBADD = \
874 $(top_builddir)/libshared-cairo.la
875 xwayland_la_CFLAGS = \
877 $(COMPOSITOR_CFLAGS) \
880 xwayland_la_SOURCES = \
881 xwayland/xwayland.h \
882 xwayland/window-manager.c \
883 xwayland/selection.c \
885 xwayland/launcher.c \
895 noinst_LTLIBRARIES += libshared.la libshared-cairo.la
897 libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
899 libshared_la_SOURCES = \
900 shared/config-parser.c \
901 shared/option-parser.c \
902 shared/config-parser.h \
905 shared/os-compatibility.c \
906 shared/os-compatibility.h
908 libshared_cairo_la_CFLAGS = \
909 -DDATADIR='"$(datadir)"' \
911 $(COMPOSITOR_CFLAGS) \
917 libshared_cairo_la_LIBADD = \
924 libshared_cairo_la_SOURCES = \
925 $(libshared_la_SOURCES) \
926 shared/image-loader.c \
927 shared/image-loader.h \
928 shared/cairo-util.c \
937 TESTS = $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
945 surface-global-test.la
953 presentation.weston \
960 $(ivi_tests) : $(builddir)/tests/weston-ivi.ini
962 AM_TESTS_ENVIRONMENT = \
963 abs_builddir='$(abs_builddir)'; export abs_builddir;
965 TEST_EXTENSIONS = .la .weston
966 LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
967 WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
972 # To remove when automake 1.11 support is dropped
975 noinst_LTLIBRARIES += \
988 test_module_ldflags = \
989 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
991 surface_global_test_la_SOURCES = tests/surface-global-test.c
992 surface_global_test_la_LDFLAGS = $(test_module_ldflags)
993 surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
995 surface_test_la_SOURCES = tests/surface-test.c
996 surface_test_la_LDFLAGS = $(test_module_ldflags)
997 surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
999 weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1000 weston_test_la_LDFLAGS = $(test_module_ldflags)
1001 weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1002 weston_test_la_SOURCES = tests/weston-test.c
1003 nodist_weston_test_la_SOURCES = \
1004 protocol/weston-test-protocol.c \
1005 protocol/weston-test-server-protocol.h
1008 weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1009 weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1012 libtest_runner_la_SOURCES = \
1013 tests/weston-test-runner.c \
1014 tests/weston-test-runner.h
1015 libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1017 config_parser_test_SOURCES = tests/config-parser-test.c
1018 config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
1020 vertex_clip_test_SOURCES = \
1021 tests/vertex-clip-test.c \
1022 src/vertex-clipping.c \
1023 src/vertex-clipping.h
1024 vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
1026 libtest_client_la_SOURCES = \
1027 tests/weston-test-client-helper.c \
1028 tests/weston-test-client-helper.h
1029 nodist_libtest_client_la_SOURCES = \
1030 protocol/weston-test-protocol.c \
1031 protocol/weston-test-client-protocol.h
1032 libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1033 libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
1035 bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
1036 bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1037 bad_buffer_weston_LDADD = libtest-client.la
1039 keyboard_weston_SOURCES = tests/keyboard-test.c
1040 keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1041 keyboard_weston_LDADD = libtest-client.la
1043 event_weston_SOURCES = tests/event-test.c
1044 event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1045 event_weston_LDADD = libtest-client.la
1047 button_weston_SOURCES = tests/button-test.c
1048 button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1049 button_weston_LDADD = libtest-client.la
1051 devices_weston_SOURCES = tests/devices-test.c
1052 devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1053 devices_weston_LDADD = libtest-client.la
1055 text_weston_SOURCES = tests/text-test.c
1056 nodist_text_weston_SOURCES = \
1057 protocol/text-protocol.c \
1058 protocol/text-client-protocol.h
1059 text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1060 text_weston_LDADD = libtest-client.la
1062 subsurface_weston_SOURCES = tests/subsurface-test.c
1063 subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1064 subsurface_weston_LDADD = libtest-client.la
1066 presentation_weston_SOURCES = tests/presentation-test.c
1067 nodist_presentation_weston_SOURCES = \
1068 protocol/presentation_timing-protocol.c \
1069 protocol/presentation_timing-client-protocol.h
1070 presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1071 presentation_weston_LDADD = libtest-client.la
1073 roles_weston_SOURCES = tests/roles-test.c
1074 roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1075 roles_weston_LDADD = libtest-client.la
1078 weston_tests += buffer-count.weston
1079 buffer_count_weston_SOURCES = tests/buffer-count-test.c
1080 buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1081 buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1084 if ENABLE_XWAYLAND_TEST
1085 weston_tests += xwayland-test.weston
1086 xwayland_test_weston_SOURCES = tests/xwayland-test.c
1087 xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1088 xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
1091 matrix_test_SOURCES = \
1092 tests/matrix-test.c \
1095 matrix_test_CPPFLAGS = -DUNIT_TEST
1096 matrix_test_LDADD = -lm -lrt
1098 if BUILD_SETBACKLIGHT
1099 noinst_PROGRAMS += setbacklight
1100 setbacklight_SOURCES = \
1101 tests/setbacklight.c \
1102 src/libbacklight.c \
1104 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1105 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1108 EXTRA_DIST += tests/weston-tests-env
1111 protocol/weston-test-protocol.c \
1112 protocol/weston-test-server-protocol.h \
1113 protocol/weston-test-client-protocol.h \
1114 protocol/text-protocol.c \
1115 protocol/text-client-protocol.h
1118 protocol/desktop-shell.xml \
1119 protocol/screenshooter.xml \
1121 protocol/input-method.xml \
1122 protocol/workspaces.xml \
1123 protocol/text-cursor-position.xml \
1124 protocol/weston-test.xml \
1125 protocol/xdg-shell.xml \
1126 protocol/fullscreen-shell.xml \
1127 protocol/presentation_timing.xml \
1128 protocol/scaler.xml \
1129 protocol/ivi-application.xml \
1130 protocol/ivi-hmi-controller.xml
1133 # manual test modules in tests subdirectory
1136 noinst_LTLIBRARIES += \
1137 surface-screenshot.la
1139 surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1140 surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
1141 surface_screenshot_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1142 surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1149 man_MANS = weston.1 weston.ini.5
1151 if ENABLE_DRM_COMPOSITOR
1152 man_MANS += weston-drm.7
1156 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1157 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1158 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1159 -e 's|__version__|$(PACKAGE_VERSION)|g'
1161 SUFFIXES = .1 .5 .7 .man
1163 %.1 %.5 %.7 : man/%.man
1164 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1168 man/weston-drm.man \
1171 CLEANFILES += $(man_MANS)
1174 protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1175 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1177 protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1178 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1180 protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1181 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@