blob: e2959f19a3ff3b3692421430cea622ef96e329e3 [file] [log] [blame]
Thierry Reding0e6d9a72014-05-27 09:07:54 +02001ACLOCAL_AMFLAGS = -I m4
2
Kristian Høgsberge895f142014-01-27 21:46:30 -08003bin_PROGRAMS =
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -08004noinst_PROGRAMS =
Kristian Høgsberge73eccd2014-01-31 16:15:11 -08005libexec_PROGRAMS =
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -08006moduledir = $(libdir)/weston
7module_LTLIBRARIES =
Emil Velikov7fe47f32016-07-22 14:51:51 +01008libweston_moduledir = $(libdir)/libweston-$(LIBWESTON_MAJOR)
Giulio Camuffo179fcda2016-06-02 21:48:14 +03009libweston_module_LTLIBRARIES =
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080010noinst_LTLIBRARIES =
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -080011BUILT_SOURCES =
Kristian Høgsberge895f142014-01-27 21:46:30 -080012
Derek Foreman2ef9e812015-02-09 09:57:29 -060013AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
Kristian Høgsberg24639cc2013-02-25 13:03:15 -050014
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090015EXTRA_DIST = weston.ini.in ivi-shell/weston.ini.in
Neil Robertse3de16e2013-11-22 16:46:00 +000016
17weston.ini : $(srcdir)/weston.ini.in
18 $(AM_V_GEN)$(SED) \
19 -e 's|@bindir[@]|$(bindir)|g' \
20 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
21 -e 's|@libexecdir[@]|$(libexecdir)|g' \
22 $< > $@
23
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090024ivi-shell/weston.ini : $(srcdir)/ivi-shell/weston.ini.in
Ross Burton2eff22b2015-07-17 12:33:45 +010025 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090026 -e 's|@bindir[@]|$(bindir)|g' \
27 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
Pekka Paalanen8cb25872015-03-24 14:09:57 +020028 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090029 -e 's|@libexecdir[@]|$(libexecdir)|g' \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020030 -e 's|@plugin_prefix[@]||g' \
31 $< > $@
32
33tests/weston-ivi.ini : $(srcdir)/ivi-shell/weston.ini.in
Ross Burton2eff22b2015-07-17 12:33:45 +010034 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020035 -e 's|@bindir[@]|$(bindir)|g' \
36 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
Pekka Paalanen8cb25872015-03-24 14:09:57 +020037 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
Derek Foremanbbdd9bc2015-06-16 13:30:35 -050038 -e 's|@libexecdir[@]|$(abs_builddir)|g' \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020039 -e 's|@plugin_prefix[@]|$(abs_top_builddir)/.libs/|g' \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090040 $< > $@
41
42all-local : weston.ini ivi-shell/weston.ini
Kristian Høgsberg98463742013-12-16 23:12:46 -080043
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080044AM_CFLAGS = $(GCC_CFLAGS)
45
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080046AM_CPPFLAGS = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +030047 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +010048 -I$(top_srcdir)/libweston \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080049 -I$(top_builddir)/clients \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080050 -I$(top_builddir)/tests \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080051 -I$(top_srcdir)/shared \
Quentin Glidic088ba5e2014-02-01 21:39:12 +010052 -I$(top_builddir)/protocol \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080053 -DDATADIR='"$(datadir)"' \
Giulio Camuffo179fcda2016-06-02 21:48:14 +030054 -DLIBWESTON_MODULEDIR='"$(libweston_moduledir)"' \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080055 -DLIBEXECDIR='"$(libexecdir)"' \
56 -DBINDIR='"$(bindir)"'
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080057
Pekka Paalanenf3a34532015-03-24 13:51:05 +020058CLEANFILES = weston.ini \
59 ivi-shell/weston.ini \
60 tests/weston-ivi.ini \
Derek Foreman1ce2ef52015-05-26 10:21:03 -050061 internal-screenshot-00.png \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020062 $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080063
Quentin Glidic154c5d22016-08-15 17:29:09 +020064# Libtool race fix
65# libweston-desktop depends on libweston, and desktop-shell depends on both.
66# This leads to a libtool race at installation, because libtool re-links
67# everything.
68# If you add more fixes, you may need a workaround to keep automake generated
69# targets. See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
70install-libweston_moduleLTLIBRARIES install-moduleLTLIBRARIES: install-libLTLIBRARIES
71
Emil Velikov7fe47f32016-07-22 14:51:51 +010072lib_LTLIBRARIES = libweston-@LIBWESTON_MAJOR@.la
73libweston_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
74libweston_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
75libweston_@LIBWESTON_MAJOR@_la_LIBADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Giulio Camuffo8aedf7b2016-06-02 21:48:12 +030076 $(DLOPEN_LIBS) -lm $(CLOCK_GETTIME_LIBS) \
77 $(LIBINPUT_BACKEND_LIBS) libshared.la
Emil Velikov7fe47f32016-07-22 14:51:51 +010078libweston_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080079
Emil Velikov7fe47f32016-07-22 14:51:51 +010080libweston_@LIBWESTON_MAJOR@_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +030081 libweston/git-version.h \
82 libweston/log.c \
83 libweston/compositor.c \
84 libweston/compositor.h \
85 libweston/compositor-drm.h \
86 libweston/compositor-fbdev.h \
87 libweston/compositor-headless.h \
88 libweston/compositor-rdp.h \
89 libweston/compositor-wayland.h \
90 libweston/compositor-x11.h \
91 libweston/input.c \
92 libweston/data-device.c \
93 libweston/screenshooter.c \
94 libweston/clipboard.c \
95 libweston/zoom.c \
96 libweston/bindings.c \
97 libweston/animation.c \
98 libweston/noop-renderer.c \
99 libweston/pixman-renderer.c \
100 libweston/pixman-renderer.h \
Pekka Paalanen827b5d22016-06-29 11:54:26 +0200101 libweston/plugin-registry.c \
102 libweston/plugin-registry.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300103 libweston/timeline.c \
104 libweston/timeline.h \
105 libweston/timeline-object.h \
106 libweston/linux-dmabuf.c \
107 libweston/linux-dmabuf.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700108 shared/helpers.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800109 shared/matrix.c \
110 shared/matrix.h \
Pekka Paalanenaa21f622015-07-03 15:44:50 +0300111 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800112 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100113 shared/platform.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300114 libweston/weston-egl-ext.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300115
Quentin Glidic248dd102016-08-12 10:41:34 +0200116lib_LTLIBRARIES += libweston-desktop-@LIBWESTON_MAJOR@.la
117libweston_desktop_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
118libweston_desktop_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
119libweston_desktop_@LIBWESTON_MAJOR@_la_LIBADD = libweston-@LIBWESTON_MAJOR@.la $(COMPOSITOR_LIBS)
120libweston_desktop_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
121
122libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES = \
123 libweston-desktop/client.c \
124 libweston-desktop/internal.h \
125 libweston-desktop/libweston-desktop.c \
126 libweston-desktop/libweston-desktop.h \
127 libweston-desktop/seat.c \
128 libweston-desktop/surface.c \
129 libweston-desktop/wl-shell.c \
Quentin Glidic9c5dd7e2016-08-12 10:41:37 +0200130 libweston-desktop/xdg-shell-v6.c \
Quentin Glidic248dd102016-08-12 10:41:34 +0200131 libweston-desktop/xdg-shell-v5.c \
132 libweston-desktop/xwayland.c
133
134nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES = \
Quentin Glidic9c5dd7e2016-08-12 10:41:37 +0200135 protocol/xdg-shell-unstable-v6-protocol.c \
136 protocol/xdg-shell-unstable-v6-server-protocol.h \
Quentin Glidic248dd102016-08-12 10:41:34 +0200137 protocol/xdg-shell-unstable-v5-protocol.c \
138 protocol/xdg-shell-unstable-v5-server-protocol.h
139
Jonas Ådahl5ac91a12016-08-15 17:31:02 +0800140BUILT_SOURCES += $(nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES)
141
Quentin Glidic9c5dd7e2016-08-12 10:41:37 +0200142libweston-desktop-@LIBWESTON_MAJOR@.la libweston-desktop/libweston_desktop_@LIBWESTON_MAJOR@_la-xdg-shell-v6.lo: protocol/xdg-shell-unstable-v6-server-protocol.h
Quentin Glidic248dd102016-08-12 10:41:34 +0200143libweston-desktop-@LIBWESTON_MAJOR@.la libweston-desktop/libweston_desktop_@LIBWESTON_MAJOR@_la-xdg-shell-v5.lo: protocol/xdg-shell-unstable-v5-server-protocol.h
144
Egor Starkov7ce2e972015-09-25 18:00:27 +0300145if SYSTEMD_NOTIFY_SUPPORT
146module_LTLIBRARIES += systemd-notify.la
147systemd_notify_la_LDFLAGS = -module -avoid-version
148systemd_notify_la_LIBADD = $(SYSTEMD_DAEMON_LIBS)
149systemd_notify_la_CFLAGS = \
Pekka Paalanenaff703e2016-04-05 14:08:11 +0300150 $(COMPOSITOR_CFLAGS) \
151 $(SYSTEMD_DAEMON_CFLAGS) \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300152 $(PIXMAN_CFLAGS) \
153 $(AM_CFLAGS)
154systemd_notify_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300155 compositor/systemd-notify.c \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300156 shared/helpers.h \
157 shared/zalloc.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300158 libweston/compositor.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300159endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800160
Emil Velikov7fe47f32016-07-22 14:51:51 +0100161nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800162 protocol/weston-screenshooter-protocol.c \
163 protocol/weston-screenshooter-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800164 protocol/text-cursor-position-protocol.c \
165 protocol/text-cursor-position-server-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800166 protocol/text-input-unstable-v1-protocol.c \
167 protocol/text-input-unstable-v1-server-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800168 protocol/input-method-unstable-v1-protocol.c \
169 protocol/input-method-unstable-v1-server-protocol.h \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200170 protocol/presentation-time-protocol.c \
171 protocol/presentation-time-server-protocol.h \
Pekka Paalanene95ad5c2016-04-15 14:47:08 +0300172 protocol/viewporter-protocol.c \
173 protocol/viewporter-server-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800174 protocol/linux-dmabuf-unstable-v1-protocol.c \
Jonas Ådahl30d61d82014-10-22 21:21:17 +0200175 protocol/linux-dmabuf-unstable-v1-server-protocol.h \
176 protocol/relative-pointer-unstable-v1-protocol.c \
Jonas Ådahld3414f22016-07-22 17:56:31 +0800177 protocol/relative-pointer-unstable-v1-server-protocol.h \
178 protocol/pointer-constraints-unstable-v1-protocol.c \
Bryce Harrington689fece2016-08-10 17:25:23 -0700179 protocol/pointer-constraints-unstable-v1-server-protocol.h \
180 protocol/idle-inhibit-unstable-v1-protocol.c \
181 protocol/idle-inhibit-unstable-v1-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800182
Emil Velikov7fe47f32016-07-22 14:51:51 +0100183BUILT_SOURCES += $(nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES)
Giulio Camuffo9e445982016-06-02 21:48:15 +0300184
185bin_PROGRAMS += weston
186
187weston_LDFLAGS = -export-dynamic
188weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON \
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200189 -DMODULEDIR='"$(moduledir)"' \
190 -DXSERVER_PATH='"@XSERVER_PATH@"'
Giulio Camuffo9e445982016-06-02 21:48:15 +0300191weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
Emil Velikov67351452016-07-22 14:52:42 +0100192weston_LDADD = libshared.la libweston-@LIBWESTON_MAJOR@.la \
193 $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Giulio Camuffo9e445982016-06-02 21:48:15 +0300194 $(DLOPEN_LIBS) $(LIBINPUT_BACKEND_LIBS) \
Emil Velikov67351452016-07-22 14:52:42 +0100195 -lm
Giulio Camuffo9e445982016-06-02 21:48:15 +0300196
197weston_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300198 compositor/main.c \
199 compositor/weston-screenshooter.c \
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200200 compositor/text-backend.c \
201 compositor/xwayland.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800202
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800203# Track this dependency explicitly instead of using BUILT_SOURCES. We
204# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
205# in case we're building from tarballs.
206
Emil Velikova8840242016-07-04 14:57:12 +0100207compositor/main.c : $(top_builddir)/libweston/git-version.h
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300208libweston/compositor.c : $(top_builddir)/libweston/git-version.h
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800209
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800210noinst_LTLIBRARIES += \
211 libsession-helper.la
212
213libsession_helper_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300214 libweston/launcher-util.c \
215 libweston/launcher-util.h \
216 libweston/launcher-impl.h \
217 libweston/weston-launch.h \
218 libweston/launcher-weston-launch.c \
219 libweston/launcher-direct.c
Derek Foreman4ff38742015-06-18 11:43:11 -0500220libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800221libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
222
223if ENABLE_DBUS
224if HAVE_SYSTEMD_LOGIN
225libsession_helper_la_SOURCES += \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300226 libweston/dbus.h \
227 libweston/dbus.c \
228 libweston/launcher-logind.c
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800229libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
230libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
231endif
232endif
233
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800234if HAVE_GIT_REPO
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300235libweston/git-version.h : $(top_srcdir)/.git/logs/HEAD
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800236 $(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)')\"" > $@
Kristian Høgsberg1d2dd072014-02-03 10:55:51 -0800237else
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300238libweston/git-version.h :
Kristian Høgsberg1d2dd072014-02-03 10:55:51 -0800239 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
240
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800241endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800242
243.FORCE :
244
245if BUILD_WESTON_LAUNCH
246bin_PROGRAMS += weston-launch
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300247weston_launch_SOURCES = libweston/weston-launch.c libweston/weston-launch.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800248weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
249weston_launch_CFLAGS= \
Derek Foreman4ff38742015-06-18 11:43:11 -0500250 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800251 $(PAM_CFLAGS) \
252 $(SYSTEMD_LOGIN_CFLAGS) \
253 $(LIBDRM_CFLAGS)
254weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
255
256if ENABLE_SETUID_INSTALL
257install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700258 can_suid_files=no; \
259 chown root $(DESTDIR)$(bindir)/weston-launch \
260 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
261 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500262 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700263 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
264 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
265 false; \
266 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800267endif
268
269endif # BUILD_WESTON_LAUNCH
270
271pkgconfigdir = $(libdir)/pkgconfig
Quentin Glidic248dd102016-08-12 10:41:34 +0200272pkgconfig_DATA = \
273 libweston/libweston-${LIBWESTON_MAJOR}.pc \
274 libweston-desktop/libweston-desktop-${LIBWESTON_MAJOR}.pc \
275 compositor/weston.pc
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800276
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100277wayland_sessiondir = $(datadir)/wayland-sessions
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300278dist_wayland_session_DATA = compositor/weston.desktop
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100279
Emil Velikov7fe47f32016-07-22 14:51:51 +0100280libwestonincludedir = $(includedir)/libweston-${LIBWESTON_MAJOR}
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300281libwestoninclude_HEADERS = \
282 libweston/version.h \
283 libweston/compositor.h \
284 libweston/compositor-drm.h \
285 libweston/compositor-fbdev.h \
286 libweston/compositor-headless.h \
287 libweston/compositor-rdp.h \
288 libweston/compositor-wayland.h \
289 libweston/compositor-x11.h \
Pekka Paalanen827b5d22016-06-29 11:54:26 +0200290 libweston/plugin-registry.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300291 libweston/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800292 shared/matrix.h \
293 shared/config-parser.h \
Emil Velikovcbcf5452016-07-04 15:34:17 +0100294 shared/zalloc.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800295
Quentin Glidic248dd102016-08-12 10:41:34 +0200296libwestoninclude_HEADERS += \
297 libweston-desktop/libweston-desktop.h
298
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300299westonincludedir = $(includedir)/weston
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300300westoninclude_HEADERS = compositor/weston.h
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300301
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000302if ENABLE_IVI_SHELL
303westoninclude_HEADERS += \
304 ivi-shell/ivi-layout-export.h
305endif
306
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800307if ENABLE_EGL
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300308libweston_module_LTLIBRARIES += gl-renderer.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800309gl_renderer_la_LDFLAGS = -module -avoid-version
310gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
311gl_renderer_la_CFLAGS = \
312 $(COMPOSITOR_CFLAGS) \
313 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300314 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500315 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800316gl_renderer_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300317 libweston/gl-renderer.h \
318 libweston/gl-renderer.c \
319 libweston/vertex-clipping.c \
320 libweston/vertex-clipping.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700321 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800322endif
323
324if ENABLE_X11_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300325libweston_module_LTLIBRARIES += x11-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800326x11_backend_la_LDFLAGS = -module -avoid-version
327x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800328 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800329x11_backend_la_CFLAGS = \
330 $(COMPOSITOR_CFLAGS) \
331 $(EGL_CFLAGS) \
332 $(PIXMAN_CFLAGS) \
333 $(CAIRO_CFLAGS) \
334 $(X11_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500335 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700336x11_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300337 libweston/compositor-x11.c \
338 libweston/compositor-x11.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700339 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800340endif
341
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100342INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000343INPUT_BACKEND_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300344 libweston/libinput-seat.c \
345 libweston/libinput-seat.h \
346 libweston/libinput-device.c \
347 libweston/libinput-device.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700348 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100349
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800350if ENABLE_DRM_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300351libweston_module_LTLIBRARIES += drm-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800352drm_backend_la_LDFLAGS = -module -avoid-version
353drm_backend_la_LIBADD = \
354 $(COMPOSITOR_LIBS) \
355 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100356 $(INPUT_BACKEND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300357 libshared.la \
358 $(CLOCK_GETTIME_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800359 libsession-helper.la
360drm_backend_la_CFLAGS = \
361 $(COMPOSITOR_CFLAGS) \
362 $(EGL_CFLAGS) \
363 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500364 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800365drm_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300366 libweston/compositor-drm.c \
367 libweston/compositor-drm.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100368 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700369 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200370 shared/timespec-util.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300371 libweston/libbacklight.c \
372 libweston/libbacklight.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800373
374if ENABLE_VAAPI_RECORDER
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300375drm_backend_la_SOURCES += libweston/vaapi-recorder.c libweston/vaapi-recorder.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800376drm_backend_la_LIBADD += $(LIBVA_LIBS)
377drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
378endif
379endif
380
381if ENABLE_WAYLAND_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300382libweston_module_LTLIBRARIES += wayland-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800383wayland_backend_la_LDFLAGS = -module -avoid-version
384wayland_backend_la_LIBADD = \
385 $(COMPOSITOR_LIBS) \
386 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800387 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800388wayland_backend_la_CFLAGS = \
389 $(COMPOSITOR_CFLAGS) \
390 $(EGL_CFLAGS) \
391 $(PIXMAN_CFLAGS) \
392 $(CAIRO_CFLAGS) \
393 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500394 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700395wayland_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300396 libweston/compositor-wayland.c \
397 libweston/compositor-wayland.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700398 shared/helpers.h
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500399nodist_wayland_backend_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800400 protocol/fullscreen-shell-unstable-v1-protocol.c \
401 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800402endif
403
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800404if ENABLE_HEADLESS_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300405libweston_module_LTLIBRARIES += headless-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800406headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800407headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500408headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700409headless_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300410 libweston/compositor-headless.c \
411 libweston/compositor-headless.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700412 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800413endif
414
415if ENABLE_FBDEV_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300416libweston_module_LTLIBRARIES += fbdev-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800417fbdev_backend_la_LDFLAGS = -module -avoid-version
418fbdev_backend_la_LIBADD = \
419 $(COMPOSITOR_LIBS) \
420 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100421 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800422 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800423 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800424fbdev_backend_la_CFLAGS = \
425 $(COMPOSITOR_CFLAGS) \
426 $(EGL_CFLAGS) \
427 $(FBDEV_COMPOSITOR_CFLAGS) \
428 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500429 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800430fbdev_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300431 libweston/compositor-fbdev.c \
432 libweston/compositor-fbdev.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700433 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100434 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800435endif
436
437if ENABLE_RDP_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300438libweston_module_LTLIBRARIES += rdp-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800439rdp_backend_la_LDFLAGS = -module -avoid-version
440rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
441 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800442 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800443rdp_backend_la_CFLAGS = \
444 $(COMPOSITOR_CFLAGS) \
445 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500446 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700447rdp_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300448 libweston/compositor-rdp.c \
449 libweston/compositor-rdp.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700450 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800451endif
452
453if HAVE_LCMS
454module_LTLIBRARIES += cms-static.la
455cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800456cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500457cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800458cms_static_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300459 compositor/cms-static.c \
460 compositor/cms-helper.c \
461 compositor/cms-helper.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700462 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800463if ENABLE_COLORD
464module_LTLIBRARIES += cms-colord.la
465cms_colord_la_LDFLAGS = -module -avoid-version
466cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500467cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800468cms_colord_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300469 compositor/cms-colord.c \
470 compositor/cms-helper.c \
471 compositor/cms-helper.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700472 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800473endif
474endif
475
476noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500477spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800478spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
479spring_tool_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300480 libweston/spring-tool.c \
481 libweston/animation.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800482 shared/matrix.c \
483 shared/matrix.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300484 libweston/compositor.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800485
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800486if BUILD_CLIENTS
487
488bin_PROGRAMS += weston-terminal weston-info
489
490libexec_PROGRAMS += \
491 weston-desktop-shell \
492 weston-screenshooter \
493 weston-keyboard \
494 weston-simple-im
495
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900496if ENABLE_IVI_SHELL
497libexec_PROGRAMS += \
498 weston-ivi-shell-user-interface
499endif
500
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800501demo_clients = \
502 weston-flower \
503 weston-image \
504 weston-cliptest \
505 weston-dnd \
506 weston-smoke \
507 weston-resizor \
508 weston-eventdemo \
509 weston-clickdot \
Jonas Ådahl61831f42016-03-15 18:14:00 +0800510 weston-confine \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800511 weston-transformed \
512 weston-fullscreen \
513 weston-stacking \
514 weston-calibrator \
515 weston-scaler
516
517if INSTALL_DEMO_CLIENTS
518bin_PROGRAMS += $(demo_clients)
519else
520noinst_PROGRAMS += $(demo_clients)
521endif
522
523
524if BUILD_SIMPLE_CLIENTS
525demo_clients += \
526 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500527 weston-simple-damage \
Bryce Harringtondfea66e2016-08-19 15:25:06 -0700528 weston-simple-idle \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800529 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400530 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800531 weston-multi-resource
532
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800533weston_simple_shm_SOURCES = clients/simple-shm.c
534nodist_weston_simple_shm_SOURCES = \
Jonas Ådahle023cbc2016-08-11 23:29:38 +0800535 protocol/xdg-shell-unstable-v6-protocol.c \
536 protocol/xdg-shell-unstable-v6-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800537 protocol/fullscreen-shell-unstable-v1-protocol.c \
538 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900539 protocol/ivi-application-protocol.c \
540 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800541weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800542weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800543
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500544weston_simple_damage_SOURCES = clients/simple-damage.c
545nodist_weston_simple_damage_SOURCES = \
Pekka Paalanen7b69d6c2016-04-15 17:00:21 +0300546 protocol/viewporter-protocol.c \
547 protocol/viewporter-client-protocol.h \
Jonas Ådahla74eff92016-08-11 23:39:31 +0800548 protocol/xdg-shell-unstable-v6-protocol.c \
549 protocol/xdg-shell-unstable-v6-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800550 protocol/fullscreen-shell-unstable-v1-protocol.c \
551 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500552weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
553weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
554
Bryce Harringtondfea66e2016-08-19 15:25:06 -0700555weston_simple_idle_SOURCES = clients/simple-idle.c
556nodist_weston_simple_idle_SOURCES = \
557 protocol/xdg-shell-unstable-v6-protocol.c \
558 protocol/xdg-shell-unstable-v6-client-protocol.h \
559 protocol/idle-inhibit-unstable-v1-protocol.c \
560 protocol/idle-inhibit-unstable-v1-client-protocol.h
561weston_simple_idle_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
562weston_simple_idle_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
563
Jon A. Cruzb09da242015-06-16 13:15:13 -0700564weston_simple_touch_SOURCES = \
565 clients/simple-touch.c \
566 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800567weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800568weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800569
Jon A. Cruzb09da242015-06-16 13:15:13 -0700570weston_presentation_shm_SOURCES = \
571 clients/presentation-shm.c \
572 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400573nodist_weston_presentation_shm_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200574 protocol/presentation-time-protocol.c \
575 protocol/presentation-time-client-protocol.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400576weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300577weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400578
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800579weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800580weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300581weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800582endif
583
584if BUILD_SIMPLE_EGL_CLIENTS
585demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800586weston_simple_egl_SOURCES = clients/simple-egl.c
587nodist_weston_simple_egl_SOURCES = \
Jonas Ådahl83630022016-08-11 23:13:20 +0800588 protocol/xdg-shell-unstable-v6-protocol.c \
589 protocol/xdg-shell-unstable-v6-client-protocol.h \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900590 protocol/ivi-application-protocol.c \
591 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800592weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800593weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
594endif
595
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000596if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
597demo_clients += weston-simple-dmabuf-intel
598weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
599nodist_weston_simple_dmabuf_intel_SOURCES = \
Jonas Ådahl42682622016-08-11 23:44:41 +0800600 protocol/xdg-shell-unstable-v6-protocol.c \
601 protocol/xdg-shell-unstable-v6-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800602 protocol/fullscreen-shell-unstable-v1-protocol.c \
603 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800604 protocol/linux-dmabuf-unstable-v1-protocol.c \
605 protocol/linux-dmabuf-unstable-v1-client-protocol.h
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000606weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
607weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800608BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200609endif
610
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000611if BUILD_SIMPLE_DMABUF_V4L_CLIENT
612demo_clients += weston-simple-dmabuf-v4l
613weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
614nodist_weston_simple_dmabuf_v4l_SOURCES = \
Jonas Ådahl6ccd2862016-08-12 10:01:29 +0800615 protocol/xdg-shell-unstable-v6-protocol.c \
616 protocol/xdg-shell-unstable-v6-client-protocol.h \
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000617 protocol/fullscreen-shell-unstable-v1-protocol.c \
618 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
619 protocol/linux-dmabuf-unstable-v1-protocol.c \
620 protocol/linux-dmabuf-unstable-v1-client-protocol.h
621weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
622weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
623BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
624endif
625
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800626noinst_LTLIBRARIES += libtoytoolkit.la
627
628libtoytoolkit_la_SOURCES = \
629 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700630 clients/window.h \
631 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800632
633nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100634 protocol/text-cursor-position-protocol.c \
635 protocol/text-cursor-position-client-protocol.h \
Pekka Paalanen73511002016-04-15 16:53:41 +0300636 protocol/viewporter-protocol.c \
637 protocol/viewporter-client-protocol.h \
Jonas Ådahlaf7f98b2016-08-09 18:15:43 +0800638 protocol/xdg-shell-unstable-v6-protocol.c \
639 protocol/xdg-shell-unstable-v6-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900640 protocol/ivi-application-protocol.c \
Jonas Ådahle5a1bb42014-11-25 10:25:27 +0800641 protocol/ivi-application-client-protocol.h \
642 protocol/pointer-constraints-unstable-v1-protocol.c \
643 protocol/pointer-constraints-unstable-v1-client-protocol.h \
644 protocol/relative-pointer-unstable-v1-protocol.c \
645 protocol/relative-pointer-unstable-v1-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500646
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800647BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
648
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800649
650libtoytoolkit_la_LIBADD = \
651 $(CLIENT_LIBS) \
652 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300653 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800654libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800655
656weston_flower_SOURCES = clients/flower.c
657weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800658weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800659
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100660weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800661 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800662nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800663 protocol/weston-screenshooter-protocol.c \
664 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800665weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800666weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800667
Jon A. Cruzb09da242015-06-16 13:15:13 -0700668weston_terminal_SOURCES = \
669 clients/terminal.c \
670 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800671weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800672weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800673
674weston_image_SOURCES = clients/image.c
675weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800676weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800677
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300678weston_cliptest_SOURCES = \
679 clients/cliptest.c \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300680 libweston/vertex-clipping.c \
681 libweston/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800682weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800683weston_cliptest_LDADD = libtoytoolkit.la
684
Jon A. Cruzb09da242015-06-16 13:15:13 -0700685weston_dnd_SOURCES = \
686 clients/dnd.c \
687 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800688weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800689weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800690
691weston_smoke_SOURCES = clients/smoke.c
692weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800693weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800694
695weston_resizor_SOURCES = clients/resizor.c
696weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800697weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800698
699weston_scaler_SOURCES = clients/scaler.c
700weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800701weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800702
703if HAVE_CAIRO_GLESV2
704demo_clients += weston-nested weston-nested-client
705
Jon A. Cruzb09da242015-06-16 13:15:13 -0700706weston_nested_SOURCES = \
707 clients/nested.c \
708 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800709weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800710weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800711
712weston_nested_client_SOURCES = clients/nested-client.c
713weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800714weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800715endif
716
Jon A. Cruzb09da242015-06-16 13:15:13 -0700717weston_eventdemo_SOURCES = \
718 clients/eventdemo.c \
719 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800720weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800721weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800722
Jon A. Cruzb09da242015-06-16 13:15:13 -0700723weston_clickdot_SOURCES = \
724 clients/clickdot.c \
725 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800726weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800727weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800728
Jonas Ådahl61831f42016-03-15 18:14:00 +0800729weston_confine_SOURCES = \
730 clients/confine.c \
731 shared/helpers.h
732weston_confine_LDADD = libtoytoolkit.la
733weston_confine_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
734
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800735weston_transformed_SOURCES = clients/transformed.c
736weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800737weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800738
739weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500740nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800741 protocol/fullscreen-shell-unstable-v1-protocol.c \
742 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800743weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800744weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800745
Jon A. Cruzb09da242015-06-16 13:15:13 -0700746weston_stacking_SOURCES = \
747 clients/stacking.c \
748 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800749weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800750weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800751
Jon A. Cruzb09da242015-06-16 13:15:13 -0700752weston_calibrator_SOURCES = \
753 clients/calibrator.c \
754 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800755 shared/matrix.c \
756 shared/matrix.h
757weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800758weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800759
760if BUILD_SUBSURFACES_CLIENT
761demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700762weston_subsurfaces_SOURCES = \
763 clients/subsurfaces.c \
764 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800765weston_subsurfaces_CFLAGS = \
766 $(AM_CFLAGS) \
767 $(SIMPLE_EGL_CLIENT_CFLAGS) \
768 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800769weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
770endif
771
772if HAVE_PANGO
773demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700774weston_editor_SOURCES = \
775 clients/editor.c \
776 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800777nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800778 protocol/text-input-unstable-v1-protocol.c \
779 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800780weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800781weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800782endif
783
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800784weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800785nodist_weston_keyboard_SOURCES = \
786 protocol/weston-desktop-shell-client-protocol.h \
787 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800788 protocol/input-method-unstable-v1-protocol.c \
789 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800790weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800791weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800792
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800793weston_simple_im_SOURCES = clients/weston-simple-im.c
794nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800795 protocol/input-method-unstable-v1-protocol.c \
796 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800797weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800798weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800799
Jon A. Cruzb09da242015-06-16 13:15:13 -0700800weston_info_SOURCES = \
801 clients/weston-info.c \
802 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400803nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200804 protocol/presentation-time-protocol.c \
805 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800806weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200807weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800808
Jon A. Cruzb09da242015-06-16 13:15:13 -0700809weston_desktop_shell_SOURCES = \
810 clients/desktop-shell.c \
811 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800812nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800813 protocol/weston-desktop-shell-client-protocol.h \
814 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800815weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800816weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800817
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900818if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700819weston_ivi_shell_user_interface_SOURCES = \
820 clients/ivi-shell-user-interface.c \
821 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900822nodist_weston_ivi_shell_user_interface_SOURCES = \
823 protocol/ivi-hmi-controller-client-protocol.h \
824 protocol/ivi-hmi-controller-protocol.c \
825 protocol/ivi-application-client-protocol.h \
826 protocol/ivi-application-protocol.c
827weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
828weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
829endif
830
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800831if BUILD_FULL_GL_CLIENTS
832demo_clients += weston-gears
833weston_gears_SOURCES = clients/gears.c
834weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800835weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800836endif
837
838endif
839
840BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800841 protocol/weston-screenshooter-protocol.c \
842 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100843 protocol/text-cursor-position-client-protocol.h \
844 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800845 protocol/text-input-unstable-v1-protocol.c \
846 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800847 protocol/input-method-unstable-v1-protocol.c \
848 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800849 protocol/weston-desktop-shell-client-protocol.h \
850 protocol/weston-desktop-shell-protocol.c \
Pekka Paalanen73511002016-04-15 16:53:41 +0300851 protocol/viewporter-client-protocol.h \
852 protocol/viewporter-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200853 protocol/presentation-time-protocol.c \
854 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800855 protocol/fullscreen-shell-unstable-v1-protocol.c \
856 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahlaf7f98b2016-08-09 18:15:43 +0800857 protocol/xdg-shell-unstable-v6-protocol.c \
858 protocol/xdg-shell-unstable-v6-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900859 protocol/ivi-hmi-controller-protocol.c \
860 protocol/ivi-hmi-controller-client-protocol.h \
861 protocol/ivi-application-protocol.c \
Bryce Harringtondfea66e2016-08-19 15:25:06 -0700862 protocol/ivi-application-client-protocol.h \
863 protocol/idle-inhibit-unstable-v1-protocol.c \
864 protocol/idle-inhibit-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800865
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800866westondatadir = $(datadir)/weston
867dist_westondata_DATA = \
868 data/wayland.svg \
869 data/wayland.png \
870 data/pattern.png \
871 data/terminal.png \
872 data/border.png \
Bryce Harrington6bc52542016-03-24 17:57:39 -0700873 data/icon_editor.png \
874 data/icon_flower.png \
875 data/icon_terminal.png \
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800876 data/icon_window.png \
877 data/sign_close.png \
878 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100879 data/sign_minimize.png
880
881if ENABLE_IVI_SHELL
882dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900883 data/background.png \
884 data/tiling.png \
885 data/fullscreen.png \
886 data/panel.png \
887 data/random.png \
888 data/sidebyside.png \
889 data/home.png \
890 data/icon_ivi_clickdot.png \
891 data/icon_ivi_flower.png \
892 data/icon_ivi_simple-egl.png \
893 data/icon_ivi_simple-shm.png \
894 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100895endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800896
897
898if BUILD_WCAP_TOOLS
899bin_PROGRAMS += wcap-decode
900
901wcap_decode_SOURCES = \
902 wcap/main.c \
903 wcap/wcap-decode.c \
904 wcap/wcap-decode.h
905
Derek Foreman4ff38742015-06-18 11:43:11 -0500906wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800907wcap_decode_LDADD = $(WCAP_LIBS)
908endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800909
910
911if ENABLE_DESKTOP_SHELL
912
913module_LTLIBRARIES += desktop-shell.la
914
915desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100916 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800917 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300918 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +0100919 -I$(top_srcdir)/libweston \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800920 -I$(top_builddir)/desktop-shell \
921 -DDATADIR='"$(datadir)"' \
922 -DMODULEDIR='"$(moduledir)"' \
923 -DLIBEXECDIR='"$(libexecdir)"' \
924 -DIN_WESTON
925
926desktop_shell_la_LDFLAGS = -module -avoid-version
Quentin Glidic8f9d90a2016-08-12 10:41:36 +0200927desktop_shell_la_LIBADD = libshared.la libweston-desktop-@LIBWESTON_MAJOR@.la $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500928desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800929desktop_shell_la_SOURCES = \
930 desktop-shell/shell.h \
931 desktop-shell/shell.c \
932 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700933 desktop-shell/input-panel.c \
934 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800935nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800936 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahl5ac91a12016-08-15 17:31:02 +0800937 protocol/weston-desktop-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800938
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800939BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800940endif
941
Jason Ekstrand946a9482014-04-02 19:53:47 -0500942if ENABLE_FULLSCREEN_SHELL
943
944module_LTLIBRARIES += fullscreen-shell.la
945
946fullscreen_shell_la_CPPFLAGS = \
947 -I$(top_builddir)/protocol \
948 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300949 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +0100950 -I$(top_srcdir)/libweston \
Jason Ekstrand946a9482014-04-02 19:53:47 -0500951 -DIN_WESTON
952
953fullscreen_shell_la_LDFLAGS = -module -avoid-version
954fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500955fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500956fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700957 fullscreen-shell/fullscreen-shell.c \
958 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500959nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800960 protocol/fullscreen-shell-unstable-v1-protocol.c \
961 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500962
963BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
964endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800965
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900966if ENABLE_IVI_SHELL
967
968module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900969 $(ivi_shell) \
970 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900971
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900972ivi_shell = ivi-shell.la
973ivi_shell_la_LDFLAGS = -module -avoid-version
Emil Velikov67351452016-07-22 14:52:42 +0100974ivi_shell_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500975ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900976ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900977 ivi-shell/ivi-layout-export.h \
978 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +0200979 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900980 ivi-shell/ivi-layout.c \
981 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900982 ivi-shell/ivi-shell.h \
983 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700984 ivi-shell/input-panel-ivi.c \
985 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900986nodist_ivi_shell_la_SOURCES = \
987 protocol/ivi-application-protocol.c \
988 protocol/ivi-application-server-protocol.h
989
990BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
991
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900992hmi_controller = hmi-controller.la
993hmi_controller_la_LDFLAGS = -module -avoid-version
Emil Velikov67351452016-07-22 14:52:42 +0100994hmi_controller_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500995hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900996hmi_controller_la_SOURCES = \
997 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700998 ivi-shell/hmi-controller.c \
999 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +09001000nodist_hmi_controller_la_SOURCES = \
1001 protocol/ivi-hmi-controller-protocol.c \
1002 protocol/ivi-hmi-controller-server-protocol.h
1003
1004BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
1005
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +09001006endif
1007
1008
Jason Ekstrand47928d82014-04-02 19:54:01 -05001009if ENABLE_SCREEN_SHARING
1010
1011module_LTLIBRARIES += screen-share.la
1012
1013screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
1014screen_share_la_LDFLAGS = -module -avoid-version
1015screen_share_la_LIBADD = \
Emil Velikov67351452016-07-22 14:52:42 +01001016 libshared-cairo.la \
Jason Ekstrand47928d82014-04-02 19:54:01 -05001017 $(COMPOSITOR_LIBS) \
Emil Velikov67351452016-07-22 14:52:42 +01001018 $(SCREEN_SHARE_LIBS)
Jason Ekstrand47928d82014-04-02 19:54:01 -05001019screen_share_la_CFLAGS = \
1020 $(COMPOSITOR_CFLAGS) \
1021 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -05001022 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -05001023screen_share_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +03001024 compositor/screen-share.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001025 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -05001026nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +08001027 protocol/fullscreen-shell-unstable-v1-protocol.c \
1028 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -05001029
1030endif
1031
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001032if ENABLE_XWAYLAND
1033
Giulio Camuffo9c764df2016-06-29 11:54:27 +02001034libweston_module_LTLIBRARIES += xwayland.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001035
1036xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001037 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001038 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001039 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +01001040 -I$(top_srcdir)/libweston \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001041 -I$(top_builddir)/xwayland \
1042 -DDATADIR='"$(datadir)"' \
1043 -DMODULEDIR='"$(moduledir)"' \
Giulio Camuffo9c764df2016-06-29 11:54:27 +02001044 -DLIBEXECDIR='"$(libexecdir)"'
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001045
1046xwayland_la_LDFLAGS = -module -avoid-version
1047xwayland_la_LIBADD = \
Emil Velikov67351452016-07-22 14:52:42 +01001048 libshared-cairo.la \
1049 $(XWAYLAND_LIBS)
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001050xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -05001051 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001052 $(COMPOSITOR_CFLAGS) \
1053 $(PIXMAN_CFLAGS) \
1054 $(CAIRO_CFLAGS)
1055xwayland_la_SOURCES = \
1056 xwayland/xwayland.h \
Quentin Glidic955cec02016-08-12 10:41:35 +02001057 xwayland/xwayland-internal-interface.h \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001058 xwayland/window-manager.c \
1059 xwayland/selection.c \
1060 xwayland/dnd.c \
1061 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001062 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001063 xwayland/hash.h \
1064 shared/helpers.h
Giulio Camuffo9c764df2016-06-29 11:54:27 +02001065
1066libwestoninclude_HEADERS += xwayland/xwayland-api.h
1067
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001068endif
1069
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001070
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001071#
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001072# Shared utilities
1073#
1074
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001075noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
1076 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001077
Derek Foreman4ff38742015-06-18 11:43:11 -05001078libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001079
1080libshared_la_SOURCES = \
1081 shared/config-parser.c \
1082 shared/option-parser.c \
1083 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +02001084 shared/file-util.c \
1085 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001086 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001087 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -07001088 shared/os-compatibility.h \
1089 shared/xalloc.c \
1090 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001091
1092libshared_cairo_la_CFLAGS = \
1093 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001094 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001095 $(COMPOSITOR_CFLAGS) \
1096 $(PIXMAN_CFLAGS) \
1097 $(CAIRO_CFLAGS) \
1098 $(PNG_CFLAGS) \
1099 $(WEBP_CFLAGS)
1100
1101libshared_cairo_la_LIBADD = \
1102 $(PIXMAN_LIBS) \
1103 $(CAIRO_LIBS) \
1104 $(PNG_LIBS) \
1105 $(WEBP_LIBS) \
1106 $(JPEG_LIBS)
1107
1108libshared_cairo_la_SOURCES = \
1109 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001110 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001111 shared/image-loader.c \
1112 shared/image-loader.h \
1113 shared/cairo-util.c \
1114 shared/frame.c \
1115 shared/cairo-util.h
1116
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001117libzunitc_la_SOURCES = \
1118 tools/zunitc/inc/zunitc/zunitc.h \
1119 tools/zunitc/inc/zunitc/zunitc_impl.h \
1120 tools/zunitc/src/zuc_base_logger.c \
1121 tools/zunitc/src/zuc_base_logger.h \
1122 tools/zunitc/src/zuc_collector.c \
1123 tools/zunitc/src/zuc_collector.h \
1124 tools/zunitc/src/zuc_context.h \
1125 tools/zunitc/src/zuc_event.h \
1126 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001127 tools/zunitc/src/zuc_junit_reporter.c \
1128 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001129 tools/zunitc/src/zuc_types.h \
1130 tools/zunitc/src/zunitc_impl.c \
1131 shared/helpers.h
1132
1133libzunitc_la_CFLAGS = \
1134 $(AM_CFLAGS) \
1135 -I$(top_srcdir)/tools/zunitc/inc
1136
1137libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001138 libshared.la \
1139 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001140
Jon A. Cruz646aef52015-07-15 19:22:41 -07001141if ENABLE_JUNIT_XML
1142libzunitc_la_CFLAGS += \
1143 $(LIBXML2_CFLAGS)
1144libzunitc_la_LIBADD += \
1145 $(LIBXML2_LIBS)
1146endif
1147
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001148libzunitcmain_la_SOURCES = \
1149 tools/zunitc/src/main.c
1150
1151libzunitcmain_la_CFLAGS = \
1152 $(AM_CFLAGS) \
1153 -I$(top_srcdir)/tools/zunitc/inc
1154
1155libzunitcmain_la_LIBADD = \
1156 libzunitc.la \
1157 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001158
1159#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001160# tests subdirectory
1161#
1162
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001163TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1164
1165internal_tests = \
1166 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001167
1168shared_tests = \
1169 config-parser.test \
Bryce Harrington82b9f2b2016-08-03 17:40:51 -07001170 string.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001171 vertex-clip.test \
1172 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001173
1174module_tests = \
Pekka Paalanen827b5d22016-06-29 11:54:26 +02001175 plugin-registry-test.la \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001176 surface-test.la \
1177 surface-global-test.la
1178
1179weston_tests = \
1180 bad_buffer.weston \
1181 keyboard.weston \
1182 event.weston \
1183 button.weston \
1184 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001185 presentation.weston \
Pekka Paalanen82d95a62016-04-19 17:20:42 +03001186 viewporter.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001187 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001188 subsurface.weston \
1189 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001190
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001191ivi_tests =
1192
1193$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001194
1195AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001196 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1197 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001198
1199TEST_EXTENSIONS = .la .weston
1200LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1201WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1202
1203clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001204 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001205 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001206
1207# To remove when automake 1.11 support is dropped
1208export abs_builddir
1209
1210noinst_LTLIBRARIES += \
1211 weston-test.la \
1212 $(module_tests) \
1213 libtest-runner.la \
1214 libtest-client.la
1215
1216noinst_PROGRAMS += \
1217 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001218 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001219 $(shared_tests) \
1220 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001221 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001222 matrix-test
1223
1224test_module_ldflags = \
1225 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1226
Pekka Paalanen827b5d22016-06-29 11:54:26 +02001227plugin_registry_test_la_SOURCES = tests/plugin-registry-test.c
1228plugin_registry_test_la_LDFLAGS = $(test_module_ldflags)
1229plugin_registry_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1230
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001231surface_global_test_la_SOURCES = tests/surface-global-test.c
1232surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001233surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001234
1235surface_test_la_SOURCES = tests/surface-test.c
1236surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001237surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001238
Emil Velikov67351452016-07-22 14:52:42 +01001239weston_test_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001240weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001241weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001242weston_test_la_SOURCES = \
1243 tests/weston-test.c \
1244 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001245nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001246 protocol/weston-test-protocol.c \
1247 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001248
1249if ENABLE_EGL
1250weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1251weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1252endif
1253
1254libtest_runner_la_SOURCES = \
1255 tests/weston-test-runner.c \
1256 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001257libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001258
1259config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001260config_parser_test_LDADD = \
1261 libshared.la \
1262 $(COMPOSITOR_LIBS) \
1263 libzunitc.la \
1264 libzunitcmain.la
1265config_parser_test_CFLAGS = \
1266 $(AM_CFLAGS) \
1267 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001268
Bryce Harrington82b9f2b2016-08-03 17:40:51 -07001269string_test_SOURCES = \
1270 tests/string-test.c \
1271 shared/string-helpers.h
1272string_test_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1273string_test_LDADD = libtest-client.la
1274
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001275vertex_clip_test_SOURCES = \
1276 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001277 shared/helpers.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001278 libweston/vertex-clipping.c \
1279 libweston/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001280vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001281
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001282libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001283 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001284 tests/weston-test-client-helper.h
1285nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001286 protocol/weston-test-protocol.c \
1287 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001288libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
Emil Velikov67351452016-07-22 14:52:42 +01001289libtest_client_la_LIBADD = libshared.la libtest-runner.la $(TEST_CLIENT_LIBS) $(CAIRO_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001290
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001291
1292#
1293# Internal tests - tests functionality of the testsuite itself
1294#
1295
1296internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001297internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1298internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001299
1300
1301#
1302# Weston Tests
1303#
1304
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001305bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001306bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001307bad_buffer_weston_LDADD = libtest-client.la
1308
1309keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001310keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001311keyboard_weston_LDADD = libtest-client.la
1312
1313event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001314event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001315event_weston_LDADD = libtest-client.la
1316
1317button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001318button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001319button_weston_LDADD = libtest-client.la
1320
Marek Chalupa5fd81402015-03-30 09:21:29 -04001321devices_weston_SOURCES = tests/devices-test.c
1322devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1323devices_weston_LDADD = libtest-client.la
1324
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001325text_weston_SOURCES = tests/text-test.c
1326nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001327 protocol/text-input-unstable-v1-protocol.c \
1328 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001329text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001330text_weston_LDADD = libtest-client.la
1331
1332subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001333subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001334subsurface_weston_LDADD = libtest-client.la
1335
Jon A. Cruzb09da242015-06-16 13:15:13 -07001336presentation_weston_SOURCES = \
1337 tests/presentation-test.c \
1338 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001339nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001340 protocol/presentation-time-protocol.c \
1341 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001342presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1343presentation_weston_LDADD = libtest-client.la
1344
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001345roles_weston_SOURCES = tests/roles-test.c
1346roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1347roles_weston_LDADD = libtest-client.la
1348
Pekka Paalanen82d95a62016-04-19 17:20:42 +03001349viewporter_weston_SOURCES = \
1350 tests/viewporter-test.c \
1351 shared/helpers.h
1352nodist_viewporter_weston_SOURCES = \
1353 protocol/viewporter-protocol.c \
1354 protocol/viewporter-client-protocol.h
1355viewporter_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1356viewporter_weston_LDADD = libtest-client.la
1357
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001358if ENABLE_EGL
1359weston_tests += buffer-count.weston
1360buffer_count_weston_SOURCES = tests/buffer-count-test.c
Pekka Paalanen924cd942016-05-20 17:25:38 +03001361buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001362buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1363endif
1364
1365if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001366weston_tests += xwayland-test.weston
1367xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001368xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001369xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001370endif
1371
1372matrix_test_SOURCES = \
1373 tests/matrix-test.c \
1374 shared/matrix.c \
1375 shared/matrix.h
1376matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001377matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001378
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001379if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001380module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001381 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001382 ivi-layout-test.la
1383
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001384ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1385ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001386ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001387ivi_layout_internal_test_la_SOURCES = \
1388 tests/ivi_layout-internal-test.c
1389
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001390ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1391ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001392ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001393ivi_layout_test_la_SOURCES = \
1394 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001395 tests/ivi-test.h \
1396 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001397nodist_ivi_layout_test_la_SOURCES = \
1398 protocol/weston-test-protocol.c \
1399 protocol/weston-test-server-protocol.h
1400
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001401ivi_tests += \
1402 ivi-shell-app.weston
1403
1404ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1405nodist_ivi_shell_app_weston_SOURCES = \
1406 protocol/ivi-application-protocol.c \
1407 protocol/ivi-application-client-protocol.h
1408ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1409ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001410
1411noinst_PROGRAMS += ivi-layout.ivi
1412
1413ivi_layout_ivi_SOURCES = \
1414 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001415 tests/ivi-test.h \
1416 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001417nodist_ivi_layout_ivi_SOURCES = \
1418 protocol/ivi-application-protocol.c \
1419 protocol/ivi-application-client-protocol.h
1420ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1421ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001422endif
1423
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001424if BUILD_SETBACKLIGHT
1425noinst_PROGRAMS += setbacklight
1426setbacklight_SOURCES = \
1427 tests/setbacklight.c \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001428 libweston/libbacklight.c \
1429 libweston/libbacklight.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001430setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1431setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1432endif
1433
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001434all-local: zuctest$(EXEEXT)
1435
1436noinst_PROGRAMS += zuctest$(EXEEXT)
1437
1438zuctest_LDADD = \
1439 libzunitc.la \
1440 libzunitcmain.la
1441
1442zuctest_CFLAGS = \
1443 $(AM_CFLAGS) \
1444 -I$(top_srcdir)/tools/zunitc/inc
1445
1446zuctest_SOURCES = \
1447 tools/zunitc/test/fixtures_test.c \
1448 tools/zunitc/test/zunitc_test.c
1449
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001450EXTRA_DIST += \
1451 tests/weston-tests-env \
1452 tests/internal-screenshot.ini \
1453 tests/reference/internal-screenshot-bad-00.png \
1454 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001455
1456BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001457 protocol/weston-test-protocol.c \
1458 protocol/weston-test-server-protocol.h \
1459 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001460 protocol/text-input-unstable-v1-protocol.c \
1461 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001462
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001463EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001464 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001465 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001466 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001467 protocol/weston-test.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001468 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001469 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001470
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001471#
1472# manual test modules in tests subdirectory
1473#
1474
1475noinst_LTLIBRARIES += \
1476 surface-screenshot.la
1477
Emil Velikov67351452016-07-22 14:52:42 +01001478surface_screenshot_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001479surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001480surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001481surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1482
1483
1484#
1485# Documentation
1486#
1487
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001488man_MANS = weston.1 weston.ini.5
1489
1490if ENABLE_DRM_COMPOSITOR
1491man_MANS += weston-drm.7
1492endif
1493
1494MAN_SUBSTS = \
1495 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1496 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1497 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1498 -e 's|__version__|$(PACKAGE_VERSION)|g'
1499
1500SUFFIXES = .1 .5 .7 .man
1501
1502%.1 %.5 %.7 : man/%.man
1503 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1504
1505EXTRA_DIST += \
1506 man/weston.man \
1507 man/weston-drm.man \
1508 man/weston.ini.man
1509
1510CLEANFILES += $(man_MANS)
1511
Jon A. Cruz179c1862015-07-15 19:22:43 -07001512if ENABLE_DEVDOCS
1513DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1514
1515docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1516 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1517
1518docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1519 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1520endif
1521
1522DOCDIRS = \
1523 docs/developer \
1524 docs/tools
1525
1526$(DOCDIRS):
1527 $(MKDIR_P) $@
1528
1529.PHONY: doc $(DOXYGEN_INDICES)
1530
1531doc: $(DOXYGEN_INDICES)
1532
Jonas Ådahl496adb32015-11-17 16:00:27 +08001533.SECONDEXPANSION:
1534
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001535define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001536$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001537endef
1538
1539define protoname
1540$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1541endef
1542
1543protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001544 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1545
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001546protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001547 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1548
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001549protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001550 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1551
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001552protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1553 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001554
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001555protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1556 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001557
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001558protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1559 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@