blob: 25e945d52a2acc2e7cbae1c8e1e6896947c8f2d3 [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
Emil Velikov7fe47f32016-07-22 14:51:51 +010064lib_LTLIBRARIES = libweston-@LIBWESTON_MAJOR@.la
65libweston_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
66libweston_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
67libweston_@LIBWESTON_MAJOR@_la_LIBADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Giulio Camuffo8aedf7b2016-06-02 21:48:12 +030068 $(DLOPEN_LIBS) -lm $(CLOCK_GETTIME_LIBS) \
69 $(LIBINPUT_BACKEND_LIBS) libshared.la
Emil Velikov7fe47f32016-07-22 14:51:51 +010070libweston_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080071
Emil Velikov7fe47f32016-07-22 14:51:51 +010072libweston_@LIBWESTON_MAJOR@_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +030073 libweston/git-version.h \
74 libweston/log.c \
75 libweston/compositor.c \
76 libweston/compositor.h \
77 libweston/compositor-drm.h \
78 libweston/compositor-fbdev.h \
79 libweston/compositor-headless.h \
80 libweston/compositor-rdp.h \
81 libweston/compositor-wayland.h \
82 libweston/compositor-x11.h \
83 libweston/input.c \
84 libweston/data-device.c \
85 libweston/screenshooter.c \
86 libweston/clipboard.c \
87 libweston/zoom.c \
88 libweston/bindings.c \
89 libweston/animation.c \
90 libweston/noop-renderer.c \
91 libweston/pixman-renderer.c \
92 libweston/pixman-renderer.h \
Pekka Paalanen827b5d22016-06-29 11:54:26 +020093 libweston/plugin-registry.c \
94 libweston/plugin-registry.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +030095 libweston/timeline.c \
96 libweston/timeline.h \
97 libweston/timeline-object.h \
98 libweston/linux-dmabuf.c \
99 libweston/linux-dmabuf.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700100 shared/helpers.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800101 shared/matrix.c \
102 shared/matrix.h \
Pekka Paalanenaa21f622015-07-03 15:44:50 +0300103 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800104 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100105 shared/platform.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300106 libweston/weston-egl-ext.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300107
Quentin Glidic248dd102016-08-12 10:41:34 +0200108lib_LTLIBRARIES += libweston-desktop-@LIBWESTON_MAJOR@.la
109libweston_desktop_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
110libweston_desktop_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
111libweston_desktop_@LIBWESTON_MAJOR@_la_LIBADD = libweston-@LIBWESTON_MAJOR@.la $(COMPOSITOR_LIBS)
112libweston_desktop_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
113
114libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES = \
115 libweston-desktop/client.c \
116 libweston-desktop/internal.h \
117 libweston-desktop/libweston-desktop.c \
118 libweston-desktop/libweston-desktop.h \
119 libweston-desktop/seat.c \
120 libweston-desktop/surface.c \
121 libweston-desktop/wl-shell.c \
Quentin Glidic9c5dd7e2016-08-12 10:41:37 +0200122 libweston-desktop/xdg-shell-v6.c \
Quentin Glidic248dd102016-08-12 10:41:34 +0200123 libweston-desktop/xdg-shell-v5.c \
124 libweston-desktop/xwayland.c
125
126nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES = \
Quentin Glidic9c5dd7e2016-08-12 10:41:37 +0200127 protocol/xdg-shell-unstable-v6-protocol.c \
128 protocol/xdg-shell-unstable-v6-server-protocol.h \
Quentin Glidic248dd102016-08-12 10:41:34 +0200129 protocol/xdg-shell-unstable-v5-protocol.c \
130 protocol/xdg-shell-unstable-v5-server-protocol.h
131
Jonas Ådahl5ac91a12016-08-15 17:31:02 +0800132BUILT_SOURCES += $(nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES)
133
Quentin Glidic9c5dd7e2016-08-12 10:41:37 +0200134libweston-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 +0200135libweston-desktop-@LIBWESTON_MAJOR@.la libweston-desktop/libweston_desktop_@LIBWESTON_MAJOR@_la-xdg-shell-v5.lo: protocol/xdg-shell-unstable-v5-server-protocol.h
136
Egor Starkov7ce2e972015-09-25 18:00:27 +0300137if SYSTEMD_NOTIFY_SUPPORT
138module_LTLIBRARIES += systemd-notify.la
139systemd_notify_la_LDFLAGS = -module -avoid-version
140systemd_notify_la_LIBADD = $(SYSTEMD_DAEMON_LIBS)
141systemd_notify_la_CFLAGS = \
Pekka Paalanenaff703e2016-04-05 14:08:11 +0300142 $(COMPOSITOR_CFLAGS) \
143 $(SYSTEMD_DAEMON_CFLAGS) \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300144 $(PIXMAN_CFLAGS) \
145 $(AM_CFLAGS)
146systemd_notify_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300147 compositor/systemd-notify.c \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300148 shared/helpers.h \
149 shared/zalloc.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300150 libweston/compositor.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300151endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800152
Emil Velikov7fe47f32016-07-22 14:51:51 +0100153nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800154 protocol/weston-screenshooter-protocol.c \
155 protocol/weston-screenshooter-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800156 protocol/text-cursor-position-protocol.c \
157 protocol/text-cursor-position-server-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800158 protocol/text-input-unstable-v1-protocol.c \
159 protocol/text-input-unstable-v1-server-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800160 protocol/input-method-unstable-v1-protocol.c \
161 protocol/input-method-unstable-v1-server-protocol.h \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200162 protocol/presentation-time-protocol.c \
163 protocol/presentation-time-server-protocol.h \
Pekka Paalanene95ad5c2016-04-15 14:47:08 +0300164 protocol/viewporter-protocol.c \
165 protocol/viewporter-server-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800166 protocol/linux-dmabuf-unstable-v1-protocol.c \
Jonas Ådahl30d61d82014-10-22 21:21:17 +0200167 protocol/linux-dmabuf-unstable-v1-server-protocol.h \
168 protocol/relative-pointer-unstable-v1-protocol.c \
Jonas Ådahld3414f22016-07-22 17:56:31 +0800169 protocol/relative-pointer-unstable-v1-server-protocol.h \
170 protocol/pointer-constraints-unstable-v1-protocol.c \
171 protocol/pointer-constraints-unstable-v1-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800172
Emil Velikov7fe47f32016-07-22 14:51:51 +0100173BUILT_SOURCES += $(nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES)
Giulio Camuffo9e445982016-06-02 21:48:15 +0300174
175bin_PROGRAMS += weston
176
177weston_LDFLAGS = -export-dynamic
178weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON \
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200179 -DMODULEDIR='"$(moduledir)"' \
180 -DXSERVER_PATH='"@XSERVER_PATH@"'
Giulio Camuffo9e445982016-06-02 21:48:15 +0300181weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
Emil Velikov67351452016-07-22 14:52:42 +0100182weston_LDADD = libshared.la libweston-@LIBWESTON_MAJOR@.la \
183 $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Giulio Camuffo9e445982016-06-02 21:48:15 +0300184 $(DLOPEN_LIBS) $(LIBINPUT_BACKEND_LIBS) \
Emil Velikov67351452016-07-22 14:52:42 +0100185 -lm
Giulio Camuffo9e445982016-06-02 21:48:15 +0300186
187weston_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300188 compositor/main.c \
189 compositor/weston-screenshooter.c \
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200190 compositor/text-backend.c \
191 compositor/xwayland.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800192
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800193# Track this dependency explicitly instead of using BUILT_SOURCES. We
194# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
195# in case we're building from tarballs.
196
Emil Velikova8840242016-07-04 14:57:12 +0100197compositor/main.c : $(top_builddir)/libweston/git-version.h
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300198libweston/compositor.c : $(top_builddir)/libweston/git-version.h
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800199
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800200noinst_LTLIBRARIES += \
201 libsession-helper.la
202
203libsession_helper_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300204 libweston/launcher-util.c \
205 libweston/launcher-util.h \
206 libweston/launcher-impl.h \
207 libweston/weston-launch.h \
208 libweston/launcher-weston-launch.c \
209 libweston/launcher-direct.c
Derek Foreman4ff38742015-06-18 11:43:11 -0500210libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800211libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
212
213if ENABLE_DBUS
214if HAVE_SYSTEMD_LOGIN
215libsession_helper_la_SOURCES += \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300216 libweston/dbus.h \
217 libweston/dbus.c \
218 libweston/launcher-logind.c
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800219libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
220libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
221endif
222endif
223
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800224if HAVE_GIT_REPO
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300225libweston/git-version.h : $(top_srcdir)/.git/logs/HEAD
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800226 $(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 -0800227else
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300228libweston/git-version.h :
Kristian Høgsberg1d2dd072014-02-03 10:55:51 -0800229 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
230
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800231endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800232
233.FORCE :
234
235if BUILD_WESTON_LAUNCH
236bin_PROGRAMS += weston-launch
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300237weston_launch_SOURCES = libweston/weston-launch.c libweston/weston-launch.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800238weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
239weston_launch_CFLAGS= \
Derek Foreman4ff38742015-06-18 11:43:11 -0500240 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800241 $(PAM_CFLAGS) \
242 $(SYSTEMD_LOGIN_CFLAGS) \
243 $(LIBDRM_CFLAGS)
244weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
245
246if ENABLE_SETUID_INSTALL
247install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700248 can_suid_files=no; \
249 chown root $(DESTDIR)$(bindir)/weston-launch \
250 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
251 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500252 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700253 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
254 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
255 false; \
256 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800257endif
258
259endif # BUILD_WESTON_LAUNCH
260
261pkgconfigdir = $(libdir)/pkgconfig
Quentin Glidic248dd102016-08-12 10:41:34 +0200262pkgconfig_DATA = \
263 libweston/libweston-${LIBWESTON_MAJOR}.pc \
264 libweston-desktop/libweston-desktop-${LIBWESTON_MAJOR}.pc \
265 compositor/weston.pc
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800266
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100267wayland_sessiondir = $(datadir)/wayland-sessions
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300268dist_wayland_session_DATA = compositor/weston.desktop
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100269
Emil Velikov7fe47f32016-07-22 14:51:51 +0100270libwestonincludedir = $(includedir)/libweston-${LIBWESTON_MAJOR}
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300271libwestoninclude_HEADERS = \
272 libweston/version.h \
273 libweston/compositor.h \
274 libweston/compositor-drm.h \
275 libweston/compositor-fbdev.h \
276 libweston/compositor-headless.h \
277 libweston/compositor-rdp.h \
278 libweston/compositor-wayland.h \
279 libweston/compositor-x11.h \
Pekka Paalanen827b5d22016-06-29 11:54:26 +0200280 libweston/plugin-registry.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300281 libweston/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800282 shared/matrix.h \
283 shared/config-parser.h \
Emil Velikovcbcf5452016-07-04 15:34:17 +0100284 shared/zalloc.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800285
Quentin Glidic248dd102016-08-12 10:41:34 +0200286libwestoninclude_HEADERS += \
287 libweston-desktop/libweston-desktop.h
288
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300289westonincludedir = $(includedir)/weston
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300290westoninclude_HEADERS = compositor/weston.h
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300291
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000292if ENABLE_IVI_SHELL
293westoninclude_HEADERS += \
294 ivi-shell/ivi-layout-export.h
295endif
296
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800297if ENABLE_EGL
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300298libweston_module_LTLIBRARIES += gl-renderer.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800299gl_renderer_la_LDFLAGS = -module -avoid-version
300gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
301gl_renderer_la_CFLAGS = \
302 $(COMPOSITOR_CFLAGS) \
303 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300304 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500305 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800306gl_renderer_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300307 libweston/gl-renderer.h \
308 libweston/gl-renderer.c \
309 libweston/vertex-clipping.c \
310 libweston/vertex-clipping.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700311 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800312endif
313
314if ENABLE_X11_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300315libweston_module_LTLIBRARIES += x11-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800316x11_backend_la_LDFLAGS = -module -avoid-version
317x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800318 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800319x11_backend_la_CFLAGS = \
320 $(COMPOSITOR_CFLAGS) \
321 $(EGL_CFLAGS) \
322 $(PIXMAN_CFLAGS) \
323 $(CAIRO_CFLAGS) \
324 $(X11_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500325 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700326x11_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300327 libweston/compositor-x11.c \
328 libweston/compositor-x11.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700329 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800330endif
331
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100332INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000333INPUT_BACKEND_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300334 libweston/libinput-seat.c \
335 libweston/libinput-seat.h \
336 libweston/libinput-device.c \
337 libweston/libinput-device.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700338 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100339
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800340if ENABLE_DRM_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300341libweston_module_LTLIBRARIES += drm-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800342drm_backend_la_LDFLAGS = -module -avoid-version
343drm_backend_la_LIBADD = \
344 $(COMPOSITOR_LIBS) \
345 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100346 $(INPUT_BACKEND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300347 libshared.la \
348 $(CLOCK_GETTIME_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800349 libsession-helper.la
350drm_backend_la_CFLAGS = \
351 $(COMPOSITOR_CFLAGS) \
352 $(EGL_CFLAGS) \
353 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500354 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800355drm_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300356 libweston/compositor-drm.c \
357 libweston/compositor-drm.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100358 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700359 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200360 shared/timespec-util.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300361 libweston/libbacklight.c \
362 libweston/libbacklight.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800363
364if ENABLE_VAAPI_RECORDER
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300365drm_backend_la_SOURCES += libweston/vaapi-recorder.c libweston/vaapi-recorder.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800366drm_backend_la_LIBADD += $(LIBVA_LIBS)
367drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
368endif
369endif
370
371if ENABLE_WAYLAND_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300372libweston_module_LTLIBRARIES += wayland-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800373wayland_backend_la_LDFLAGS = -module -avoid-version
374wayland_backend_la_LIBADD = \
375 $(COMPOSITOR_LIBS) \
376 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800377 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800378wayland_backend_la_CFLAGS = \
379 $(COMPOSITOR_CFLAGS) \
380 $(EGL_CFLAGS) \
381 $(PIXMAN_CFLAGS) \
382 $(CAIRO_CFLAGS) \
383 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500384 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700385wayland_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300386 libweston/compositor-wayland.c \
387 libweston/compositor-wayland.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700388 shared/helpers.h
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500389nodist_wayland_backend_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800390 protocol/fullscreen-shell-unstable-v1-protocol.c \
391 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800392endif
393
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800394if ENABLE_HEADLESS_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300395libweston_module_LTLIBRARIES += headless-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800396headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800397headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500398headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700399headless_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300400 libweston/compositor-headless.c \
401 libweston/compositor-headless.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700402 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800403endif
404
405if ENABLE_FBDEV_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300406libweston_module_LTLIBRARIES += fbdev-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800407fbdev_backend_la_LDFLAGS = -module -avoid-version
408fbdev_backend_la_LIBADD = \
409 $(COMPOSITOR_LIBS) \
410 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100411 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800412 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800413 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800414fbdev_backend_la_CFLAGS = \
415 $(COMPOSITOR_CFLAGS) \
416 $(EGL_CFLAGS) \
417 $(FBDEV_COMPOSITOR_CFLAGS) \
418 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500419 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800420fbdev_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300421 libweston/compositor-fbdev.c \
422 libweston/compositor-fbdev.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700423 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100424 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800425endif
426
427if ENABLE_RDP_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300428libweston_module_LTLIBRARIES += rdp-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800429rdp_backend_la_LDFLAGS = -module -avoid-version
430rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
431 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800432 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800433rdp_backend_la_CFLAGS = \
434 $(COMPOSITOR_CFLAGS) \
435 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500436 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700437rdp_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300438 libweston/compositor-rdp.c \
439 libweston/compositor-rdp.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700440 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800441endif
442
443if HAVE_LCMS
444module_LTLIBRARIES += cms-static.la
445cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800446cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500447cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800448cms_static_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300449 compositor/cms-static.c \
450 compositor/cms-helper.c \
451 compositor/cms-helper.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700452 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800453if ENABLE_COLORD
454module_LTLIBRARIES += cms-colord.la
455cms_colord_la_LDFLAGS = -module -avoid-version
456cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500457cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800458cms_colord_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300459 compositor/cms-colord.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 -0800463endif
464endif
465
466noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500467spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800468spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
469spring_tool_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300470 libweston/spring-tool.c \
471 libweston/animation.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800472 shared/matrix.c \
473 shared/matrix.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300474 libweston/compositor.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800475
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800476if BUILD_CLIENTS
477
478bin_PROGRAMS += weston-terminal weston-info
479
480libexec_PROGRAMS += \
481 weston-desktop-shell \
482 weston-screenshooter \
483 weston-keyboard \
484 weston-simple-im
485
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900486if ENABLE_IVI_SHELL
487libexec_PROGRAMS += \
488 weston-ivi-shell-user-interface
489endif
490
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800491demo_clients = \
492 weston-flower \
493 weston-image \
494 weston-cliptest \
495 weston-dnd \
496 weston-smoke \
497 weston-resizor \
498 weston-eventdemo \
499 weston-clickdot \
Jonas Ådahl61831f42016-03-15 18:14:00 +0800500 weston-confine \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800501 weston-transformed \
502 weston-fullscreen \
503 weston-stacking \
504 weston-calibrator \
505 weston-scaler
506
507if INSTALL_DEMO_CLIENTS
508bin_PROGRAMS += $(demo_clients)
509else
510noinst_PROGRAMS += $(demo_clients)
511endif
512
513
514if BUILD_SIMPLE_CLIENTS
515demo_clients += \
516 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500517 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800518 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400519 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800520 weston-multi-resource
521
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800522weston_simple_shm_SOURCES = clients/simple-shm.c
523nodist_weston_simple_shm_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800524 protocol/xdg-shell-unstable-v5-protocol.c \
525 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800526 protocol/fullscreen-shell-unstable-v1-protocol.c \
527 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900528 protocol/ivi-application-protocol.c \
529 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800530weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800531weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800532
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500533weston_simple_damage_SOURCES = clients/simple-damage.c
534nodist_weston_simple_damage_SOURCES = \
Pekka Paalanen7b69d6c2016-04-15 17:00:21 +0300535 protocol/viewporter-protocol.c \
536 protocol/viewporter-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800537 protocol/xdg-shell-unstable-v5-protocol.c \
538 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800539 protocol/fullscreen-shell-unstable-v1-protocol.c \
540 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500541weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
542weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
543
Jon A. Cruzb09da242015-06-16 13:15:13 -0700544weston_simple_touch_SOURCES = \
545 clients/simple-touch.c \
546 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800547weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800548weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800549
Jon A. Cruzb09da242015-06-16 13:15:13 -0700550weston_presentation_shm_SOURCES = \
551 clients/presentation-shm.c \
552 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400553nodist_weston_presentation_shm_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200554 protocol/presentation-time-protocol.c \
555 protocol/presentation-time-client-protocol.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400556weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300557weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400558
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800559weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800560weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300561weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800562endif
563
564if BUILD_SIMPLE_EGL_CLIENTS
565demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800566weston_simple_egl_SOURCES = clients/simple-egl.c
567nodist_weston_simple_egl_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800568 protocol/xdg-shell-unstable-v5-protocol.c \
569 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900570 protocol/ivi-application-protocol.c \
571 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800572weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800573weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
574endif
575
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000576if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
577demo_clients += weston-simple-dmabuf-intel
578weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
579nodist_weston_simple_dmabuf_intel_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800580 protocol/xdg-shell-unstable-v5-protocol.c \
581 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800582 protocol/fullscreen-shell-unstable-v1-protocol.c \
583 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800584 protocol/linux-dmabuf-unstable-v1-protocol.c \
585 protocol/linux-dmabuf-unstable-v1-client-protocol.h
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000586weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
587weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800588BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200589endif
590
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000591if BUILD_SIMPLE_DMABUF_V4L_CLIENT
592demo_clients += weston-simple-dmabuf-v4l
593weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
594nodist_weston_simple_dmabuf_v4l_SOURCES = \
595 protocol/xdg-shell-unstable-v5-protocol.c \
596 protocol/xdg-shell-unstable-v5-client-protocol.h \
597 protocol/fullscreen-shell-unstable-v1-protocol.c \
598 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
599 protocol/linux-dmabuf-unstable-v1-protocol.c \
600 protocol/linux-dmabuf-unstable-v1-client-protocol.h
601weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
602weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
603BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
604endif
605
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800606noinst_LTLIBRARIES += libtoytoolkit.la
607
608libtoytoolkit_la_SOURCES = \
609 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700610 clients/window.h \
611 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800612
613nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100614 protocol/text-cursor-position-protocol.c \
615 protocol/text-cursor-position-client-protocol.h \
Pekka Paalanen73511002016-04-15 16:53:41 +0300616 protocol/viewporter-protocol.c \
617 protocol/viewporter-client-protocol.h \
Jonas Ådahlaf7f98b2016-08-09 18:15:43 +0800618 protocol/xdg-shell-unstable-v6-protocol.c \
619 protocol/xdg-shell-unstable-v6-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900620 protocol/ivi-application-protocol.c \
Jonas Ådahle5a1bb42014-11-25 10:25:27 +0800621 protocol/ivi-application-client-protocol.h \
622 protocol/pointer-constraints-unstable-v1-protocol.c \
623 protocol/pointer-constraints-unstable-v1-client-protocol.h \
624 protocol/relative-pointer-unstable-v1-protocol.c \
625 protocol/relative-pointer-unstable-v1-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500626
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800627BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
628
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800629
630libtoytoolkit_la_LIBADD = \
631 $(CLIENT_LIBS) \
632 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300633 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800634libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800635
636weston_flower_SOURCES = clients/flower.c
637weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800638weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800639
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100640weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800641 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800642nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800643 protocol/weston-screenshooter-protocol.c \
644 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800645weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800646weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800647
Jon A. Cruzb09da242015-06-16 13:15:13 -0700648weston_terminal_SOURCES = \
649 clients/terminal.c \
650 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800651weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800652weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800653
654weston_image_SOURCES = clients/image.c
655weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800656weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800657
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300658weston_cliptest_SOURCES = \
659 clients/cliptest.c \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300660 libweston/vertex-clipping.c \
661 libweston/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800662weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800663weston_cliptest_LDADD = libtoytoolkit.la
664
Jon A. Cruzb09da242015-06-16 13:15:13 -0700665weston_dnd_SOURCES = \
666 clients/dnd.c \
667 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800668weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800669weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800670
671weston_smoke_SOURCES = clients/smoke.c
672weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800673weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800674
675weston_resizor_SOURCES = clients/resizor.c
676weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800677weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800678
679weston_scaler_SOURCES = clients/scaler.c
680weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800681weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800682
683if HAVE_CAIRO_GLESV2
684demo_clients += weston-nested weston-nested-client
685
Jon A. Cruzb09da242015-06-16 13:15:13 -0700686weston_nested_SOURCES = \
687 clients/nested.c \
688 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800689weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800690weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800691
692weston_nested_client_SOURCES = clients/nested-client.c
693weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800694weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800695endif
696
Jon A. Cruzb09da242015-06-16 13:15:13 -0700697weston_eventdemo_SOURCES = \
698 clients/eventdemo.c \
699 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800700weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800701weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800702
Jon A. Cruzb09da242015-06-16 13:15:13 -0700703weston_clickdot_SOURCES = \
704 clients/clickdot.c \
705 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800706weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800707weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800708
Jonas Ådahl61831f42016-03-15 18:14:00 +0800709weston_confine_SOURCES = \
710 clients/confine.c \
711 shared/helpers.h
712weston_confine_LDADD = libtoytoolkit.la
713weston_confine_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
714
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800715weston_transformed_SOURCES = clients/transformed.c
716weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800717weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800718
719weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500720nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800721 protocol/fullscreen-shell-unstable-v1-protocol.c \
722 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800723weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800724weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800725
Jon A. Cruzb09da242015-06-16 13:15:13 -0700726weston_stacking_SOURCES = \
727 clients/stacking.c \
728 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800729weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800730weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800731
Jon A. Cruzb09da242015-06-16 13:15:13 -0700732weston_calibrator_SOURCES = \
733 clients/calibrator.c \
734 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800735 shared/matrix.c \
736 shared/matrix.h
737weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800738weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800739
740if BUILD_SUBSURFACES_CLIENT
741demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700742weston_subsurfaces_SOURCES = \
743 clients/subsurfaces.c \
744 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800745weston_subsurfaces_CFLAGS = \
746 $(AM_CFLAGS) \
747 $(SIMPLE_EGL_CLIENT_CFLAGS) \
748 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800749weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
750endif
751
752if HAVE_PANGO
753demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700754weston_editor_SOURCES = \
755 clients/editor.c \
756 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800757nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800758 protocol/text-input-unstable-v1-protocol.c \
759 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800760weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800761weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800762endif
763
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800764weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800765nodist_weston_keyboard_SOURCES = \
766 protocol/weston-desktop-shell-client-protocol.h \
767 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800768 protocol/input-method-unstable-v1-protocol.c \
769 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800770weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800771weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800772
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800773weston_simple_im_SOURCES = clients/weston-simple-im.c
774nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800775 protocol/input-method-unstable-v1-protocol.c \
776 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800777weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800778weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800779
Jon A. Cruzb09da242015-06-16 13:15:13 -0700780weston_info_SOURCES = \
781 clients/weston-info.c \
782 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400783nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200784 protocol/presentation-time-protocol.c \
785 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800786weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200787weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800788
Jon A. Cruzb09da242015-06-16 13:15:13 -0700789weston_desktop_shell_SOURCES = \
790 clients/desktop-shell.c \
791 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800792nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800793 protocol/weston-desktop-shell-client-protocol.h \
794 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800795weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800796weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800797
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900798if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700799weston_ivi_shell_user_interface_SOURCES = \
800 clients/ivi-shell-user-interface.c \
801 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900802nodist_weston_ivi_shell_user_interface_SOURCES = \
803 protocol/ivi-hmi-controller-client-protocol.h \
804 protocol/ivi-hmi-controller-protocol.c \
805 protocol/ivi-application-client-protocol.h \
806 protocol/ivi-application-protocol.c
807weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
808weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
809endif
810
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800811if BUILD_FULL_GL_CLIENTS
812demo_clients += weston-gears
813weston_gears_SOURCES = clients/gears.c
814weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800815weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800816endif
817
818endif
819
820BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800821 protocol/weston-screenshooter-protocol.c \
822 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100823 protocol/text-cursor-position-client-protocol.h \
824 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800825 protocol/text-input-unstable-v1-protocol.c \
826 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800827 protocol/input-method-unstable-v1-protocol.c \
828 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800829 protocol/weston-desktop-shell-client-protocol.h \
830 protocol/weston-desktop-shell-protocol.c \
Pekka Paalanen73511002016-04-15 16:53:41 +0300831 protocol/viewporter-client-protocol.h \
832 protocol/viewporter-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200833 protocol/presentation-time-protocol.c \
834 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800835 protocol/fullscreen-shell-unstable-v1-protocol.c \
836 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800837 protocol/xdg-shell-unstable-v5-protocol.c \
838 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahlaf7f98b2016-08-09 18:15:43 +0800839 protocol/xdg-shell-unstable-v6-protocol.c \
840 protocol/xdg-shell-unstable-v6-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900841 protocol/ivi-hmi-controller-protocol.c \
842 protocol/ivi-hmi-controller-client-protocol.h \
843 protocol/ivi-application-protocol.c \
844 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800845
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800846westondatadir = $(datadir)/weston
847dist_westondata_DATA = \
848 data/wayland.svg \
849 data/wayland.png \
850 data/pattern.png \
851 data/terminal.png \
852 data/border.png \
Bryce Harrington6bc52542016-03-24 17:57:39 -0700853 data/icon_editor.png \
854 data/icon_flower.png \
855 data/icon_terminal.png \
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800856 data/icon_window.png \
857 data/sign_close.png \
858 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100859 data/sign_minimize.png
860
861if ENABLE_IVI_SHELL
862dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900863 data/background.png \
864 data/tiling.png \
865 data/fullscreen.png \
866 data/panel.png \
867 data/random.png \
868 data/sidebyside.png \
869 data/home.png \
870 data/icon_ivi_clickdot.png \
871 data/icon_ivi_flower.png \
872 data/icon_ivi_simple-egl.png \
873 data/icon_ivi_simple-shm.png \
874 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100875endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800876
877
878if BUILD_WCAP_TOOLS
879bin_PROGRAMS += wcap-decode
880
881wcap_decode_SOURCES = \
882 wcap/main.c \
883 wcap/wcap-decode.c \
884 wcap/wcap-decode.h
885
Derek Foreman4ff38742015-06-18 11:43:11 -0500886wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800887wcap_decode_LDADD = $(WCAP_LIBS)
888endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800889
890
891if ENABLE_DESKTOP_SHELL
892
893module_LTLIBRARIES += desktop-shell.la
894
895desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100896 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800897 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300898 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +0100899 -I$(top_srcdir)/libweston \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800900 -I$(top_builddir)/desktop-shell \
901 -DDATADIR='"$(datadir)"' \
902 -DMODULEDIR='"$(moduledir)"' \
903 -DLIBEXECDIR='"$(libexecdir)"' \
904 -DIN_WESTON
905
906desktop_shell_la_LDFLAGS = -module -avoid-version
Quentin Glidic8f9d90a2016-08-12 10:41:36 +0200907desktop_shell_la_LIBADD = libshared.la libweston-desktop-@LIBWESTON_MAJOR@.la $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500908desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800909desktop_shell_la_SOURCES = \
910 desktop-shell/shell.h \
911 desktop-shell/shell.c \
912 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700913 desktop-shell/input-panel.c \
914 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800915nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800916 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahl5ac91a12016-08-15 17:31:02 +0800917 protocol/weston-desktop-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800918
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800919BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800920endif
921
Jason Ekstrand946a9482014-04-02 19:53:47 -0500922if ENABLE_FULLSCREEN_SHELL
923
924module_LTLIBRARIES += fullscreen-shell.la
925
926fullscreen_shell_la_CPPFLAGS = \
927 -I$(top_builddir)/protocol \
928 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300929 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +0100930 -I$(top_srcdir)/libweston \
Jason Ekstrand946a9482014-04-02 19:53:47 -0500931 -DIN_WESTON
932
933fullscreen_shell_la_LDFLAGS = -module -avoid-version
934fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500935fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500936fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700937 fullscreen-shell/fullscreen-shell.c \
938 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500939nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800940 protocol/fullscreen-shell-unstable-v1-protocol.c \
941 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500942
943BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
944endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800945
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900946if ENABLE_IVI_SHELL
947
948module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900949 $(ivi_shell) \
950 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900951
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900952ivi_shell = ivi-shell.la
953ivi_shell_la_LDFLAGS = -module -avoid-version
Emil Velikov67351452016-07-22 14:52:42 +0100954ivi_shell_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500955ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900956ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900957 ivi-shell/ivi-layout-export.h \
958 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +0200959 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900960 ivi-shell/ivi-layout.c \
961 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900962 ivi-shell/ivi-shell.h \
963 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700964 ivi-shell/input-panel-ivi.c \
965 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900966nodist_ivi_shell_la_SOURCES = \
967 protocol/ivi-application-protocol.c \
968 protocol/ivi-application-server-protocol.h
969
970BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
971
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900972hmi_controller = hmi-controller.la
973hmi_controller_la_LDFLAGS = -module -avoid-version
Emil Velikov67351452016-07-22 14:52:42 +0100974hmi_controller_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500975hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900976hmi_controller_la_SOURCES = \
977 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700978 ivi-shell/hmi-controller.c \
979 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900980nodist_hmi_controller_la_SOURCES = \
981 protocol/ivi-hmi-controller-protocol.c \
982 protocol/ivi-hmi-controller-server-protocol.h
983
984BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
985
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900986endif
987
988
Jason Ekstrand47928d82014-04-02 19:54:01 -0500989if ENABLE_SCREEN_SHARING
990
991module_LTLIBRARIES += screen-share.la
992
993screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
994screen_share_la_LDFLAGS = -module -avoid-version
995screen_share_la_LIBADD = \
Emil Velikov67351452016-07-22 14:52:42 +0100996 libshared-cairo.la \
Jason Ekstrand47928d82014-04-02 19:54:01 -0500997 $(COMPOSITOR_LIBS) \
Emil Velikov67351452016-07-22 14:52:42 +0100998 $(SCREEN_SHARE_LIBS)
Jason Ekstrand47928d82014-04-02 19:54:01 -0500999screen_share_la_CFLAGS = \
1000 $(COMPOSITOR_CFLAGS) \
1001 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -05001002 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -05001003screen_share_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +03001004 compositor/screen-share.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001005 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -05001006nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +08001007 protocol/fullscreen-shell-unstable-v1-protocol.c \
1008 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -05001009
1010endif
1011
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001012if ENABLE_XWAYLAND
1013
Giulio Camuffo9c764df2016-06-29 11:54:27 +02001014libweston_module_LTLIBRARIES += xwayland.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001015
1016xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001017 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001018 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001019 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +01001020 -I$(top_srcdir)/libweston \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001021 -I$(top_builddir)/xwayland \
1022 -DDATADIR='"$(datadir)"' \
1023 -DMODULEDIR='"$(moduledir)"' \
Giulio Camuffo9c764df2016-06-29 11:54:27 +02001024 -DLIBEXECDIR='"$(libexecdir)"'
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001025
1026xwayland_la_LDFLAGS = -module -avoid-version
1027xwayland_la_LIBADD = \
Emil Velikov67351452016-07-22 14:52:42 +01001028 libshared-cairo.la \
1029 $(XWAYLAND_LIBS)
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001030xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -05001031 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001032 $(COMPOSITOR_CFLAGS) \
1033 $(PIXMAN_CFLAGS) \
1034 $(CAIRO_CFLAGS)
1035xwayland_la_SOURCES = \
1036 xwayland/xwayland.h \
Quentin Glidic955cec02016-08-12 10:41:35 +02001037 xwayland/xwayland-internal-interface.h \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001038 xwayland/window-manager.c \
1039 xwayland/selection.c \
1040 xwayland/dnd.c \
1041 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001042 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001043 xwayland/hash.h \
1044 shared/helpers.h
Giulio Camuffo9c764df2016-06-29 11:54:27 +02001045
1046libwestoninclude_HEADERS += xwayland/xwayland-api.h
1047
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001048endif
1049
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001050
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001051#
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001052# Shared utilities
1053#
1054
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001055noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
1056 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001057
Derek Foreman4ff38742015-06-18 11:43:11 -05001058libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001059
1060libshared_la_SOURCES = \
1061 shared/config-parser.c \
1062 shared/option-parser.c \
1063 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +02001064 shared/file-util.c \
1065 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001066 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001067 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -07001068 shared/os-compatibility.h \
1069 shared/xalloc.c \
1070 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001071
1072libshared_cairo_la_CFLAGS = \
1073 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001074 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001075 $(COMPOSITOR_CFLAGS) \
1076 $(PIXMAN_CFLAGS) \
1077 $(CAIRO_CFLAGS) \
1078 $(PNG_CFLAGS) \
1079 $(WEBP_CFLAGS)
1080
1081libshared_cairo_la_LIBADD = \
1082 $(PIXMAN_LIBS) \
1083 $(CAIRO_LIBS) \
1084 $(PNG_LIBS) \
1085 $(WEBP_LIBS) \
1086 $(JPEG_LIBS)
1087
1088libshared_cairo_la_SOURCES = \
1089 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001090 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001091 shared/image-loader.c \
1092 shared/image-loader.h \
1093 shared/cairo-util.c \
1094 shared/frame.c \
1095 shared/cairo-util.h
1096
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001097libzunitc_la_SOURCES = \
1098 tools/zunitc/inc/zunitc/zunitc.h \
1099 tools/zunitc/inc/zunitc/zunitc_impl.h \
1100 tools/zunitc/src/zuc_base_logger.c \
1101 tools/zunitc/src/zuc_base_logger.h \
1102 tools/zunitc/src/zuc_collector.c \
1103 tools/zunitc/src/zuc_collector.h \
1104 tools/zunitc/src/zuc_context.h \
1105 tools/zunitc/src/zuc_event.h \
1106 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001107 tools/zunitc/src/zuc_junit_reporter.c \
1108 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001109 tools/zunitc/src/zuc_types.h \
1110 tools/zunitc/src/zunitc_impl.c \
1111 shared/helpers.h
1112
1113libzunitc_la_CFLAGS = \
1114 $(AM_CFLAGS) \
1115 -I$(top_srcdir)/tools/zunitc/inc
1116
1117libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001118 libshared.la \
1119 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001120
Jon A. Cruz646aef52015-07-15 19:22:41 -07001121if ENABLE_JUNIT_XML
1122libzunitc_la_CFLAGS += \
1123 $(LIBXML2_CFLAGS)
1124libzunitc_la_LIBADD += \
1125 $(LIBXML2_LIBS)
1126endif
1127
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001128libzunitcmain_la_SOURCES = \
1129 tools/zunitc/src/main.c
1130
1131libzunitcmain_la_CFLAGS = \
1132 $(AM_CFLAGS) \
1133 -I$(top_srcdir)/tools/zunitc/inc
1134
1135libzunitcmain_la_LIBADD = \
1136 libzunitc.la \
1137 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001138
1139#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001140# tests subdirectory
1141#
1142
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001143TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1144
1145internal_tests = \
1146 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001147
1148shared_tests = \
1149 config-parser.test \
Bryce Harrington82b9f2b2016-08-03 17:40:51 -07001150 string.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001151 vertex-clip.test \
1152 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001153
1154module_tests = \
Pekka Paalanen827b5d22016-06-29 11:54:26 +02001155 plugin-registry-test.la \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001156 surface-test.la \
1157 surface-global-test.la
1158
1159weston_tests = \
1160 bad_buffer.weston \
1161 keyboard.weston \
1162 event.weston \
1163 button.weston \
1164 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001165 presentation.weston \
Pekka Paalanen82d95a62016-04-19 17:20:42 +03001166 viewporter.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001167 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001168 subsurface.weston \
1169 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001170
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001171ivi_tests =
1172
1173$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001174
1175AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001176 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1177 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001178
1179TEST_EXTENSIONS = .la .weston
1180LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1181WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1182
1183clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001184 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001185 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001186
1187# To remove when automake 1.11 support is dropped
1188export abs_builddir
1189
1190noinst_LTLIBRARIES += \
1191 weston-test.la \
1192 $(module_tests) \
1193 libtest-runner.la \
1194 libtest-client.la
1195
1196noinst_PROGRAMS += \
1197 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001198 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001199 $(shared_tests) \
1200 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001201 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001202 matrix-test
1203
1204test_module_ldflags = \
1205 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1206
Pekka Paalanen827b5d22016-06-29 11:54:26 +02001207plugin_registry_test_la_SOURCES = tests/plugin-registry-test.c
1208plugin_registry_test_la_LDFLAGS = $(test_module_ldflags)
1209plugin_registry_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1210
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001211surface_global_test_la_SOURCES = tests/surface-global-test.c
1212surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001213surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001214
1215surface_test_la_SOURCES = tests/surface-test.c
1216surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001217surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001218
Emil Velikov67351452016-07-22 14:52:42 +01001219weston_test_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001220weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001221weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001222weston_test_la_SOURCES = \
1223 tests/weston-test.c \
1224 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001225nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001226 protocol/weston-test-protocol.c \
1227 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001228
1229if ENABLE_EGL
1230weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1231weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1232endif
1233
1234libtest_runner_la_SOURCES = \
1235 tests/weston-test-runner.c \
1236 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001237libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001238
1239config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001240config_parser_test_LDADD = \
1241 libshared.la \
1242 $(COMPOSITOR_LIBS) \
1243 libzunitc.la \
1244 libzunitcmain.la
1245config_parser_test_CFLAGS = \
1246 $(AM_CFLAGS) \
1247 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001248
Bryce Harrington82b9f2b2016-08-03 17:40:51 -07001249string_test_SOURCES = \
1250 tests/string-test.c \
1251 shared/string-helpers.h
1252string_test_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1253string_test_LDADD = libtest-client.la
1254
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001255vertex_clip_test_SOURCES = \
1256 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001257 shared/helpers.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001258 libweston/vertex-clipping.c \
1259 libweston/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001260vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001261
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001262libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001263 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001264 tests/weston-test-client-helper.h
1265nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001266 protocol/weston-test-protocol.c \
1267 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001268libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
Emil Velikov67351452016-07-22 14:52:42 +01001269libtest_client_la_LIBADD = libshared.la libtest-runner.la $(TEST_CLIENT_LIBS) $(CAIRO_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001270
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001271
1272#
1273# Internal tests - tests functionality of the testsuite itself
1274#
1275
1276internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001277internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1278internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001279
1280
1281#
1282# Weston Tests
1283#
1284
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001285bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001286bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001287bad_buffer_weston_LDADD = libtest-client.la
1288
1289keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001290keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001291keyboard_weston_LDADD = libtest-client.la
1292
1293event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001294event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001295event_weston_LDADD = libtest-client.la
1296
1297button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001298button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001299button_weston_LDADD = libtest-client.la
1300
Marek Chalupa5fd81402015-03-30 09:21:29 -04001301devices_weston_SOURCES = tests/devices-test.c
1302devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1303devices_weston_LDADD = libtest-client.la
1304
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001305text_weston_SOURCES = tests/text-test.c
1306nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001307 protocol/text-input-unstable-v1-protocol.c \
1308 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001309text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001310text_weston_LDADD = libtest-client.la
1311
1312subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001313subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001314subsurface_weston_LDADD = libtest-client.la
1315
Jon A. Cruzb09da242015-06-16 13:15:13 -07001316presentation_weston_SOURCES = \
1317 tests/presentation-test.c \
1318 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001319nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001320 protocol/presentation-time-protocol.c \
1321 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001322presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1323presentation_weston_LDADD = libtest-client.la
1324
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001325roles_weston_SOURCES = tests/roles-test.c
1326roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1327roles_weston_LDADD = libtest-client.la
1328
Pekka Paalanen82d95a62016-04-19 17:20:42 +03001329viewporter_weston_SOURCES = \
1330 tests/viewporter-test.c \
1331 shared/helpers.h
1332nodist_viewporter_weston_SOURCES = \
1333 protocol/viewporter-protocol.c \
1334 protocol/viewporter-client-protocol.h
1335viewporter_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1336viewporter_weston_LDADD = libtest-client.la
1337
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001338if ENABLE_EGL
1339weston_tests += buffer-count.weston
1340buffer_count_weston_SOURCES = tests/buffer-count-test.c
Pekka Paalanen924cd942016-05-20 17:25:38 +03001341buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001342buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1343endif
1344
1345if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001346weston_tests += xwayland-test.weston
1347xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001348xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001349xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001350endif
1351
1352matrix_test_SOURCES = \
1353 tests/matrix-test.c \
1354 shared/matrix.c \
1355 shared/matrix.h
1356matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001357matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001358
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001359if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001360module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001361 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001362 ivi-layout-test.la
1363
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001364ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1365ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001366ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001367ivi_layout_internal_test_la_SOURCES = \
1368 tests/ivi_layout-internal-test.c
1369
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001370ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1371ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001372ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001373ivi_layout_test_la_SOURCES = \
1374 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001375 tests/ivi-test.h \
1376 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001377nodist_ivi_layout_test_la_SOURCES = \
1378 protocol/weston-test-protocol.c \
1379 protocol/weston-test-server-protocol.h
1380
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001381ivi_tests += \
1382 ivi-shell-app.weston
1383
1384ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1385nodist_ivi_shell_app_weston_SOURCES = \
1386 protocol/ivi-application-protocol.c \
1387 protocol/ivi-application-client-protocol.h
1388ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1389ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001390
1391noinst_PROGRAMS += ivi-layout.ivi
1392
1393ivi_layout_ivi_SOURCES = \
1394 tests/ivi_layout-test.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_ivi_SOURCES = \
1398 protocol/ivi-application-protocol.c \
1399 protocol/ivi-application-client-protocol.h
1400ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1401ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001402endif
1403
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001404if BUILD_SETBACKLIGHT
1405noinst_PROGRAMS += setbacklight
1406setbacklight_SOURCES = \
1407 tests/setbacklight.c \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001408 libweston/libbacklight.c \
1409 libweston/libbacklight.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001410setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1411setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1412endif
1413
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001414all-local: zuctest$(EXEEXT)
1415
1416noinst_PROGRAMS += zuctest$(EXEEXT)
1417
1418zuctest_LDADD = \
1419 libzunitc.la \
1420 libzunitcmain.la
1421
1422zuctest_CFLAGS = \
1423 $(AM_CFLAGS) \
1424 -I$(top_srcdir)/tools/zunitc/inc
1425
1426zuctest_SOURCES = \
1427 tools/zunitc/test/fixtures_test.c \
1428 tools/zunitc/test/zunitc_test.c
1429
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001430EXTRA_DIST += \
1431 tests/weston-tests-env \
1432 tests/internal-screenshot.ini \
1433 tests/reference/internal-screenshot-bad-00.png \
1434 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001435
1436BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001437 protocol/weston-test-protocol.c \
1438 protocol/weston-test-server-protocol.h \
1439 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001440 protocol/text-input-unstable-v1-protocol.c \
1441 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001442
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001443EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001444 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001445 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001446 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001447 protocol/weston-test.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001448 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001449 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001450
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001451#
1452# manual test modules in tests subdirectory
1453#
1454
1455noinst_LTLIBRARIES += \
1456 surface-screenshot.la
1457
Emil Velikov67351452016-07-22 14:52:42 +01001458surface_screenshot_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001459surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001460surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001461surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1462
1463
1464#
1465# Documentation
1466#
1467
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001468man_MANS = weston.1 weston.ini.5
1469
1470if ENABLE_DRM_COMPOSITOR
1471man_MANS += weston-drm.7
1472endif
1473
1474MAN_SUBSTS = \
1475 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1476 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1477 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1478 -e 's|__version__|$(PACKAGE_VERSION)|g'
1479
1480SUFFIXES = .1 .5 .7 .man
1481
1482%.1 %.5 %.7 : man/%.man
1483 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1484
1485EXTRA_DIST += \
1486 man/weston.man \
1487 man/weston-drm.man \
1488 man/weston.ini.man
1489
1490CLEANFILES += $(man_MANS)
1491
Jon A. Cruz179c1862015-07-15 19:22:43 -07001492if ENABLE_DEVDOCS
1493DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1494
1495docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1496 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1497
1498docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1499 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1500endif
1501
1502DOCDIRS = \
1503 docs/developer \
1504 docs/tools
1505
1506$(DOCDIRS):
1507 $(MKDIR_P) $@
1508
1509.PHONY: doc $(DOXYGEN_INDICES)
1510
1511doc: $(DOXYGEN_INDICES)
1512
Jonas Ådahl496adb32015-11-17 16:00:27 +08001513.SECONDEXPANSION:
1514
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001515define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001516$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001517endef
1518
1519define protoname
1520$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1521endef
1522
1523protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001524 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1525
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001526protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001527 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1528
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001529protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001530 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1531
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001532protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1533 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001534
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001535protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1536 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001537
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001538protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1539 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@