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
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 all-local : weston.ini
25 AM_CFLAGS = $(GCC_CFLAGS)
29 -I$(top_builddir)/src \
30 -I$(top_builddir)/clients \
31 -I$(top_builddir)/tests \
32 -I$(top_srcdir)/shared \
33 -I$(top_builddir)/protocol \
34 -DDATADIR='"$(datadir)"' \
35 -DMODULEDIR='"$(moduledir)"' \
36 -DLIBEXECDIR='"$(libexecdir)"' \
37 -DBINDIR='"$(bindir)"'
39 CLEANFILES = weston.ini $(BUILT_SOURCES)
41 bin_PROGRAMS += weston
43 weston_LDFLAGS = -export-dynamic
44 weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
45 weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
46 weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
47 $(DLOPEN_LIBS) -lm libshared.la
63 src/pixman-renderer.c \
64 src/pixman-renderer.h \
70 nodist_weston_SOURCES = \
71 protocol/screenshooter-protocol.c \
72 protocol/screenshooter-server-protocol.h \
73 protocol/text-cursor-position-protocol.c \
74 protocol/text-cursor-position-server-protocol.h \
75 protocol/text-protocol.c \
76 protocol/text-server-protocol.h \
77 protocol/input-method-protocol.c \
78 protocol/input-method-server-protocol.h \
79 protocol/workspaces-protocol.c \
80 protocol/workspaces-server-protocol.h \
81 protocol/scaler-protocol.c \
82 protocol/scaler-server-protocol.h
84 BUILT_SOURCES += $(nodist_weston_SOURCES)
86 # Track this dependency explicitly instead of using BUILT_SOURCES. We
87 # add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
88 # in case we're building from tarballs.
90 src/compositor.c : $(top_builddir)/src/git-version.h
92 noinst_LTLIBRARIES += \
95 libsession_helper_la_SOURCES = \
99 libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
100 libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
103 if HAVE_SYSTEMD_LOGIN
104 libsession_helper_la_SOURCES += \
109 libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
110 libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
115 src/git-version.h : $(top_srcdir)/.git/logs/HEAD
116 $(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)')\"" > $@
119 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
125 if BUILD_WESTON_LAUNCH
126 bin_PROGRAMS += weston-launch
127 weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
128 weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
129 weston_launch_CFLAGS= \
132 $(SYSTEMD_LOGIN_CFLAGS) \
134 weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
136 if ENABLE_SETUID_INSTALL
138 chown root $(DESTDIR)$(bindir)/weston-launch
139 chmod u+s $(DESTDIR)$(bindir)/weston-launch
142 endif # BUILD_WESTON_LAUNCH
144 pkgconfigdir = $(libdir)/pkgconfig
145 pkgconfig_DATA = src/weston.pc
147 westonincludedir = $(includedir)/weston
148 westoninclude_HEADERS = \
152 shared/config-parser.h \
156 module_LTLIBRARIES += gl-renderer.la
157 gl_renderer_la_LDFLAGS = -module -avoid-version
158 gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
159 gl_renderer_la_CFLAGS = \
160 $(COMPOSITOR_CFLAGS) \
163 gl_renderer_la_SOURCES = \
166 src/vertex-clipping.c \
167 src/vertex-clipping.h
170 if ENABLE_X11_COMPOSITOR
171 module_LTLIBRARIES += x11-backend.la
172 x11_backend_la_LDFLAGS = -module -avoid-version
173 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
175 x11_backend_la_CFLAGS = \
176 $(COMPOSITOR_CFLAGS) \
180 $(X11_COMPOSITOR_CFLAGS) \
182 x11_backend_la_SOURCES = src/compositor-x11.c
185 INPUT_BACKEND_SOURCES = src/udev-input.h
187 if ENABLE_LIBINPUT_BACKEND
188 INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
189 INPUT_BACKEND_SOURCES += \
190 src/libinput-seat.c \
191 src/libinput-seat.h \
192 src/libinput-device.c \
193 src/libinput-device.h
195 INPUT_BACKEND_SOURCES += \
205 if ENABLE_DRM_COMPOSITOR
206 module_LTLIBRARIES += drm-backend.la
207 drm_backend_la_LDFLAGS = -module -avoid-version
208 drm_backend_la_LIBADD = \
210 $(DRM_COMPOSITOR_LIBS) \
211 $(INPUT_BACKEND_LIBS) \
214 drm_backend_la_CFLAGS = \
215 $(COMPOSITOR_CFLAGS) \
217 $(DRM_COMPOSITOR_CFLAGS) \
219 drm_backend_la_SOURCES = \
220 src/compositor-drm.c \
221 $(INPUT_BACKEND_SOURCES) \
225 if ENABLE_VAAPI_RECORDER
226 drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
227 drm_backend_la_LIBADD += $(LIBVA_LIBS)
228 drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
232 if ENABLE_WAYLAND_COMPOSITOR
233 module_LTLIBRARIES += wayland-backend.la
234 wayland_backend_la_LDFLAGS = -module -avoid-version
235 wayland_backend_la_LIBADD = \
237 $(WAYLAND_COMPOSITOR_LIBS) \
239 wayland_backend_la_CFLAGS = \
240 $(COMPOSITOR_CFLAGS) \
244 $(WAYLAND_COMPOSITOR_CFLAGS) \
246 wayland_backend_la_SOURCES = src/compositor-wayland.c
247 nodist_wayland_backend_la_SOURCES = \
248 protocol/fullscreen-shell-protocol.c \
249 protocol/fullscreen-shell-client-protocol.h
252 if ENABLE_RPI_COMPOSITOR
253 if INSTALL_RPI_COMPOSITOR
254 module_LTLIBRARIES += rpi-backend.la
256 noinst_LTLIBRARIES += rpi-backend.la
259 rpi_backend_la_LDFLAGS = -module -avoid-version
260 rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
261 $(RPI_COMPOSITOR_LIBS) \
262 $(RPI_BCM_HOST_LIBS) \
263 $(INPUT_BACKEND_LIBS) \
264 libsession-helper.la \
266 rpi_backend_la_CFLAGS = \
268 $(COMPOSITOR_CFLAGS) \
269 $(RPI_COMPOSITOR_CFLAGS) \
270 $(RPI_BCM_HOST_CFLAGS)
271 rpi_backend_la_SOURCES = \
272 src/compositor-rpi.c \
275 src/rpi-bcm-stubs.h \
276 $(INPUT_BACKEND_SOURCES)
279 rpi_backend_la_LIBADD += $(EGL_LIBS)
280 rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
285 if ENABLE_HEADLESS_COMPOSITOR
286 module_LTLIBRARIES += headless-backend.la
287 headless_backend_la_LDFLAGS = -module -avoid-version
288 headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
289 headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
290 headless_backend_la_SOURCES = src/compositor-headless.c
293 if ENABLE_FBDEV_COMPOSITOR
294 module_LTLIBRARIES += fbdev-backend.la
295 fbdev_backend_la_LDFLAGS = -module -avoid-version
296 fbdev_backend_la_LIBADD = \
298 $(FBDEV_COMPOSITOR_LIBS) \
299 $(INPUT_BACKEND_LIBS) \
300 libsession-helper.la \
302 fbdev_backend_la_CFLAGS = \
303 $(COMPOSITOR_CFLAGS) \
305 $(FBDEV_COMPOSITOR_CFLAGS) \
308 fbdev_backend_la_SOURCES = \
309 src/compositor-fbdev.c \
310 $(INPUT_BACKEND_SOURCES)
313 if ENABLE_RDP_COMPOSITOR
314 module_LTLIBRARIES += rdp-backend.la
315 rdp_backend_la_LDFLAGS = -module -avoid-version
316 rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
317 $(RDP_COMPOSITOR_LIBS) \
319 rdp_backend_la_CFLAGS = \
320 $(COMPOSITOR_CFLAGS) \
321 $(RDP_COMPOSITOR_CFLAGS) \
323 rdp_backend_la_SOURCES = src/compositor-rdp.c
327 module_LTLIBRARIES += cms-static.la
328 cms_static_la_LDFLAGS = -module -avoid-version
329 cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
330 cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
331 cms_static_la_SOURCES = \
336 module_LTLIBRARIES += cms-colord.la
337 cms_colord_la_LDFLAGS = -module -avoid-version
338 cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
339 cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
340 cms_colord_la_SOURCES = \
347 noinst_PROGRAMS += spring-tool
348 spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
349 spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
350 spring_tool_SOURCES = \
359 bin_PROGRAMS += weston-terminal weston-info
361 libexec_PROGRAMS += \
362 weston-desktop-shell \
363 weston-screenshooter \
382 if INSTALL_DEMO_CLIENTS
383 bin_PROGRAMS += $(demo_clients)
385 noinst_PROGRAMS += $(demo_clients)
389 if BUILD_SIMPLE_CLIENTS
392 weston-simple-damage \
393 weston-simple-touch \
394 weston-multi-resource
396 weston_simple_shm_SOURCES = clients/simple-shm.c
397 nodist_weston_simple_shm_SOURCES = \
398 protocol/xdg-shell-protocol.c \
399 protocol/xdg-shell-client-protocol.h \
400 protocol/fullscreen-shell-protocol.c \
401 protocol/fullscreen-shell-client-protocol.h
402 weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
403 weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
405 weston_simple_damage_SOURCES = clients/simple-damage.c
406 nodist_weston_simple_damage_SOURCES = \
407 protocol/scaler-protocol.c \
408 protocol/scaler-client-protocol.h \
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 weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
414 weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
416 weston_simple_touch_SOURCES = clients/simple-touch.c
417 weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
418 weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
420 weston_multi_resource_SOURCES = clients/multi-resource.c
421 weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
422 weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
425 if BUILD_SIMPLE_EGL_CLIENTS
426 demo_clients += weston-simple-egl
427 weston_simple_egl_SOURCES = clients/simple-egl.c
428 nodist_weston_simple_egl_SOURCES = \
429 protocol/xdg-shell-protocol.c \
430 protocol/xdg-shell-client-protocol.h
431 weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
432 weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
435 noinst_LTLIBRARIES += libtoytoolkit.la
437 libtoytoolkit_la_SOURCES = \
441 nodist_libtoytoolkit_la_SOURCES = \
442 protocol/text-cursor-position-protocol.c \
443 protocol/text-cursor-position-client-protocol.h \
444 protocol/scaler-protocol.c \
445 protocol/scaler-client-protocol.h \
446 protocol/workspaces-protocol.c \
447 protocol/workspaces-client-protocol.h \
448 protocol/xdg-shell-protocol.c \
449 protocol/xdg-shell-client-protocol.h \
450 protocol/ivi-application-protocol.c \
451 protocol/ivi-application-client-protocol.h
453 BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
456 libtoytoolkit_la_LIBADD = \
459 libshared-cairo.la -lrt -lm
460 libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
462 weston_flower_SOURCES = clients/flower.c
463 weston_flower_LDADD = libtoytoolkit.la
464 weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
466 weston_screenshooter_SOURCES = \
468 nodist_weston_screenshooter_SOURCES = \
469 protocol/screenshooter-protocol.c \
470 protocol/screenshooter-client-protocol.h
471 weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
472 weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
474 weston_terminal_SOURCES = clients/terminal.c
475 weston_terminal_LDADD = libtoytoolkit.la -lutil
476 weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
478 weston_image_SOURCES = clients/image.c
479 weston_image_LDADD = libtoytoolkit.la
480 weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
482 weston_cliptest_SOURCES = \
484 src/vertex-clipping.c \
485 src/vertex-clipping.h
486 weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
487 weston_cliptest_LDADD = libtoytoolkit.la
489 weston_dnd_SOURCES = clients/dnd.c
490 weston_dnd_LDADD = libtoytoolkit.la
491 weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
493 weston_smoke_SOURCES = clients/smoke.c
494 weston_smoke_LDADD = libtoytoolkit.la
495 weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
497 weston_resizor_SOURCES = clients/resizor.c
498 weston_resizor_LDADD = libtoytoolkit.la
499 weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
501 weston_scaler_SOURCES = clients/scaler.c
502 weston_scaler_LDADD = libtoytoolkit.la
503 weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
506 demo_clients += weston-nested weston-nested-client
508 weston_nested_SOURCES = clients/nested.c
509 weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
510 weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
512 weston_nested_client_SOURCES = clients/nested-client.c
513 weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
514 weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
517 weston_eventdemo_SOURCES = clients/eventdemo.c
518 weston_eventdemo_LDADD = libtoytoolkit.la
519 weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
521 weston_clickdot_SOURCES = clients/clickdot.c
522 weston_clickdot_LDADD = libtoytoolkit.la
523 weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
525 weston_transformed_SOURCES = clients/transformed.c
526 weston_transformed_LDADD = libtoytoolkit.la
527 weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
529 weston_fullscreen_SOURCES = clients/fullscreen.c
530 nodist_weston_fullscreen_SOURCES = \
531 protocol/fullscreen-shell-protocol.c \
532 protocol/fullscreen-shell-client-protocol.h
533 weston_fullscreen_LDADD = libtoytoolkit.la
534 weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
536 weston_stacking_SOURCES = clients/stacking.c
537 weston_stacking_LDADD = libtoytoolkit.la
538 weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
540 weston_calibrator_SOURCES = clients/calibrator.c \
543 weston_calibrator_LDADD = libtoytoolkit.la
544 weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
546 if BUILD_SUBSURFACES_CLIENT
547 demo_clients += weston-subsurfaces
548 weston_subsurfaces_SOURCES = clients/subsurfaces.c
549 weston_subsurfaces_CFLAGS = \
551 $(SIMPLE_EGL_CLIENT_CFLAGS) \
553 weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
557 demo_clients += weston-editor
558 weston_editor_SOURCES = clients/editor.c
559 nodist_weston_editor_SOURCES = \
560 protocol/text-protocol.c \
561 protocol/text-client-protocol.h
562 weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
563 weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
566 weston_keyboard_SOURCES = clients/keyboard.c
567 nodist_weston_keyboard_SOURCES = \
568 protocol/desktop-shell-client-protocol.h \
569 protocol/desktop-shell-protocol.c \
570 protocol/input-method-protocol.c \
571 protocol/input-method-client-protocol.h
572 weston_keyboard_LDADD = libtoytoolkit.la
573 weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
575 weston_simple_im_SOURCES = clients/weston-simple-im.c
576 nodist_weston_simple_im_SOURCES = \
577 protocol/input-method-protocol.c \
578 protocol/input-method-client-protocol.h
579 weston_simple_im_LDADD = $(CLIENT_LIBS)
580 weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
582 weston_info_SOURCES = clients/weston-info.c
583 weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
584 weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
586 weston_desktop_shell_SOURCES = clients/desktop-shell.c
587 nodist_weston_desktop_shell_SOURCES = \
588 protocol/desktop-shell-client-protocol.h \
589 protocol/desktop-shell-protocol.c
590 weston_desktop_shell_LDADD = libtoytoolkit.la
591 weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
593 if BUILD_FULL_GL_CLIENTS
594 demo_clients += weston-gears
595 weston_gears_SOURCES = clients/gears.c
596 weston_gears_LDADD = libtoytoolkit.la
597 weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
600 libexec_PROGRAMS += weston-screensaver
601 weston_screensaver_SOURCES = \
602 clients/wscreensaver.c \
603 clients/wscreensaver.h \
604 clients/wscreensaver-glue.c \
605 clients/wscreensaver-glue.h \
608 nodist_weston_screensaver_SOURCES = \
609 protocol/desktop-shell-client-protocol.h \
610 protocol/desktop-shell-protocol.c
612 weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
613 weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
622 protocol/screenshooter-protocol.c \
623 protocol/screenshooter-client-protocol.h \
624 protocol/text-cursor-position-client-protocol.h \
625 protocol/text-cursor-position-protocol.c \
626 protocol/text-protocol.c \
627 protocol/text-client-protocol.h \
628 protocol/input-method-protocol.c \
629 protocol/input-method-client-protocol.h \
630 protocol/desktop-shell-client-protocol.h \
631 protocol/desktop-shell-protocol.c \
632 protocol/scaler-client-protocol.h \
633 protocol/scaler-protocol.c \
634 protocol/workspaces-client-protocol.h \
635 protocol/workspaces-protocol.c \
636 protocol/fullscreen-shell-protocol.c \
637 protocol/fullscreen-shell-client-protocol.h \
638 protocol/xdg-shell-protocol.c \
639 protocol/xdg-shell-client-protocol.h
642 westondatadir = $(datadir)/weston
643 dist_westondata_DATA = \
649 data/icon_window.png \
650 data/sign_close.png \
651 data/sign_maximize.png \
652 data/sign_minimize.png
656 bin_PROGRAMS += wcap-decode
658 wcap_decode_SOURCES = \
663 wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
664 wcap_decode_LDADD = $(WCAP_LIBS)
668 if ENABLE_DESKTOP_SHELL
670 module_LTLIBRARIES += desktop-shell.la
672 desktop_shell_la_CPPFLAGS = \
673 -I$(top_builddir)/protocol \
674 -I$(top_srcdir)/shared \
675 -I$(top_srcdir)/src \
676 -I$(top_builddir)/src \
677 -I$(top_builddir)/desktop-shell \
678 -DDATADIR='"$(datadir)"' \
679 -DMODULEDIR='"$(moduledir)"' \
680 -DLIBEXECDIR='"$(libexecdir)"' \
683 desktop_shell_la_LDFLAGS = -module -avoid-version
684 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
685 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
686 desktop_shell_la_SOURCES = \
687 desktop-shell/shell.h \
688 desktop-shell/shell.c \
689 desktop-shell/exposay.c \
690 desktop-shell/input-panel.c
691 nodist_desktop_shell_la_SOURCES = \
692 protocol/desktop-shell-protocol.c \
693 protocol/desktop-shell-server-protocol.h \
694 protocol/xdg-shell-protocol.c \
695 protocol/xdg-shell-server-protocol.h
697 BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
700 if ENABLE_FULLSCREEN_SHELL
702 module_LTLIBRARIES += fullscreen-shell.la
704 fullscreen_shell_la_CPPFLAGS = \
705 -I$(top_builddir)/protocol \
706 -I$(top_srcdir)/shared \
707 -I$(top_srcdir)/src \
708 -I$(top_builddir)/src \
711 fullscreen_shell_la_LDFLAGS = -module -avoid-version
712 fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
713 fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
714 fullscreen_shell_la_SOURCES = \
715 fullscreen-shell/fullscreen-shell.c
716 nodist_fullscreen_shell_la_SOURCES = \
717 protocol/fullscreen-shell-protocol.c \
718 protocol/fullscreen-shell-server-protocol.h
720 BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
723 if ENABLE_SCREEN_SHARING
725 module_LTLIBRARIES += screen-share.la
727 screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
728 screen_share_la_LDFLAGS = -module -avoid-version
729 screen_share_la_LIBADD = \
731 $(SCREEN_SHARE_LIBS) \
733 screen_share_la_CFLAGS = \
734 $(COMPOSITOR_CFLAGS) \
735 $(SCREEN_SHARE_CFLAGS) \
737 screen_share_la_SOURCES = \
739 nodist_screen_share_la_SOURCES = \
740 protocol/fullscreen-shell-protocol.c \
741 protocol/fullscreen-shell-client-protocol.h
747 module_LTLIBRARIES += xwayland.la
749 xwayland_la_CPPFLAGS = \
750 -I$(top_builddir)/protocol \
751 -I$(top_srcdir)/shared \
752 -I$(top_srcdir)/src \
753 -I$(top_builddir)/src \
754 -I$(top_builddir)/xwayland \
755 -DDATADIR='"$(datadir)"' \
756 -DMODULEDIR='"$(moduledir)"' \
757 -DLIBEXECDIR='"$(libexecdir)"' \
758 -DXSERVER_PATH='"@XSERVER_PATH@"'
760 xwayland_la_LDFLAGS = -module -avoid-version
761 xwayland_la_LIBADD = \
763 $(top_builddir)/libshared-cairo.la
764 xwayland_la_CFLAGS = \
766 $(COMPOSITOR_CFLAGS) \
769 xwayland_la_SOURCES = \
770 xwayland/xwayland.h \
771 xwayland/window-manager.c \
772 xwayland/selection.c \
774 xwayland/launcher.c \
784 noinst_LTLIBRARIES += libshared.la libshared-cairo.la
786 libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
788 libshared_la_SOURCES = \
789 shared/config-parser.c \
790 shared/option-parser.c \
791 shared/config-parser.h \
794 shared/os-compatibility.c \
795 shared/os-compatibility.h
797 libshared_cairo_la_CFLAGS = \
798 -DDATADIR='"$(datadir)"' \
800 $(COMPOSITOR_CFLAGS) \
806 libshared_cairo_la_LIBADD = \
813 libshared_cairo_la_SOURCES = \
814 $(libshared_la_SOURCES) \
815 shared/image-loader.c \
816 shared/image-loader.h \
817 shared/cairo-util.c \
826 TESTS = $(shared_tests) $(module_tests) $(weston_tests)
835 surface-global-test.la
846 AM_TESTS_ENVIRONMENT = \
847 abs_builddir='$(abs_builddir)'; export abs_builddir;
849 TEST_EXTENSIONS = .la .weston
850 LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
851 WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
856 # To remove when automake 1.11 support is dropped
859 noinst_LTLIBRARIES += \
871 test_module_ldflags = \
872 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
874 surface_global_test_la_SOURCES = tests/surface-global-test.c
875 surface_global_test_la_LDFLAGS = $(test_module_ldflags)
876 surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
878 surface_test_la_SOURCES = tests/surface-test.c
879 surface_test_la_LDFLAGS = $(test_module_ldflags)
880 surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
882 weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
883 weston_test_la_LDFLAGS = $(test_module_ldflags)
884 weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
885 weston_test_la_SOURCES = tests/weston-test.c
886 nodist_weston_test_la_SOURCES = \
887 protocol/wayland-test-protocol.c \
888 protocol/wayland-test-server-protocol.h
891 weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
892 weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
895 libtest_runner_la_SOURCES = \
896 tests/weston-test-runner.c \
897 tests/weston-test-runner.h
898 libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
900 config_parser_test_SOURCES = tests/config-parser-test.c
901 config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
903 strutil_test_SOURCES = tests/strutil-test.c
904 strutil_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
906 vertex_clip_test_SOURCES = \
907 tests/vertex-clip-test.c \
908 src/vertex-clipping.c \
909 src/vertex-clipping.h
910 vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
912 libtest_client_la_SOURCES = \
913 tests/weston-test-client-helper.c \
914 tests/weston-test-client-helper.h
915 nodist_libtest_client_la_SOURCES = \
916 protocol/wayland-test-protocol.c \
917 protocol/wayland-test-client-protocol.h
918 libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
919 libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
921 bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
922 bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
923 bad_buffer_weston_LDADD = libtest-client.la
925 keyboard_weston_SOURCES = tests/keyboard-test.c
926 keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
927 keyboard_weston_LDADD = libtest-client.la
929 event_weston_SOURCES = tests/event-test.c
930 event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
931 event_weston_LDADD = libtest-client.la
933 button_weston_SOURCES = tests/button-test.c
934 button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
935 button_weston_LDADD = libtest-client.la
937 text_weston_SOURCES = tests/text-test.c
938 nodist_text_weston_SOURCES = \
939 protocol/text-protocol.c \
940 protocol/text-client-protocol.h
941 text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
942 text_weston_LDADD = libtest-client.la
944 subsurface_weston_SOURCES = tests/subsurface-test.c
945 subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
946 subsurface_weston_LDADD = libtest-client.la
949 weston_tests += buffer-count.weston
950 buffer_count_weston_SOURCES = tests/buffer-count-test.c
951 buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
952 buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
955 if ENABLE_XWAYLAND_TEST
956 weston_tests += xwayland-test.weston
957 xwayland_test_weston_SOURCES = tests/xwayland-test.c
958 xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
959 xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
962 matrix_test_SOURCES = \
963 tests/matrix-test.c \
966 matrix_test_CPPFLAGS = -DUNIT_TEST
967 matrix_test_LDADD = -lm -lrt
969 if BUILD_SETBACKLIGHT
970 noinst_PROGRAMS += setbacklight
971 setbacklight_SOURCES = \
972 tests/setbacklight.c \
977 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
978 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
981 EXTRA_DIST += tests/weston-tests-env
984 protocol/wayland-test-protocol.c \
985 protocol/wayland-test-server-protocol.h \
986 protocol/wayland-test-client-protocol.h \
987 protocol/text-protocol.c \
988 protocol/text-client-protocol.h
991 protocol/desktop-shell.xml \
992 protocol/screenshooter.xml \
994 protocol/input-method.xml \
995 protocol/workspaces.xml \
996 protocol/text-cursor-position.xml \
997 protocol/wayland-test.xml \
998 protocol/xdg-shell.xml \
999 protocol/fullscreen-shell.xml \
1000 protocol/scaler.xml \
1001 protocol/ivi-application.xml
1003 man_MANS = weston.1 weston.ini.5
1005 if ENABLE_DRM_COMPOSITOR
1006 man_MANS += weston-drm.7
1010 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1011 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1012 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1013 -e 's|__version__|$(PACKAGE_VERSION)|g'
1015 SUFFIXES = .1 .5 .7 .man
1017 %.1 %.5 %.7 : man/%.man
1018 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1022 man/weston-drm.man \
1025 CLEANFILES += $(man_MANS)
1028 protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1029 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1031 protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1032 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1034 protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1035 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@