blob: 8466a5fb747dcb1fe66ce289d32a090451321387 [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 =
Giulio Camuffo179fcda2016-06-02 21:48:14 +03008libweston_moduledir = $(libdir)/libweston-${LIBWESTON_ABI_VERSION}
9libweston_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 = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080047 -I$(top_srcdir)/src \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080048 -I$(top_builddir)/src \
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
Giulio Camuffo9e445982016-06-02 21:48:15 +030064lib_LTLIBRARIES = libweston.la
65libweston_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
66libweston_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
67libweston_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
Giulio Camuffo9e445982016-06-02 21:48:15 +030070libweston_la_LDFLAGS = -release ${LIBWESTON_ABI_VERSION}
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080071
Giulio Camuffo9e445982016-06-02 21:48:15 +030072libweston_la_SOURCES = \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080073 src/git-version.h \
74 src/log.c \
75 src/compositor.c \
76 src/compositor.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -070077 src/compositor-drm.h \
Benoit Gschwind934e89a2016-04-27 23:56:42 +020078 src/compositor-fbdev.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -070079 src/compositor-headless.h \
Benoit Gschwindbd573102016-04-22 17:05:26 +020080 src/compositor-rdp.h \
Benoit Gschwind639322a2016-04-28 20:33:15 +020081 src/compositor-wayland.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -070082 src/compositor-x11.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080083 src/input.c \
84 src/data-device.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080085 src/screenshooter.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080086 src/clipboard.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080087 src/zoom.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080088 src/bindings.c \
89 src/animation.c \
90 src/noop-renderer.c \
91 src/pixman-renderer.c \
92 src/pixman-renderer.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +020093 src/timeline.c \
94 src/timeline.h \
95 src/timeline-object.h \
Pekka Paalanen230f3b12014-09-29 14:18:40 -040096 src/linux-dmabuf.c \
97 src/linux-dmabuf.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -070098 shared/helpers.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080099 shared/matrix.c \
100 shared/matrix.h \
Pekka Paalanenaa21f622015-07-03 15:44:50 +0300101 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800102 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100103 shared/platform.h \
Egor Starkov94fd9a52015-09-29 14:50:41 +0300104 src/weston-egl-ext.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300105
106if SYSTEMD_NOTIFY_SUPPORT
107module_LTLIBRARIES += systemd-notify.la
108systemd_notify_la_LDFLAGS = -module -avoid-version
109systemd_notify_la_LIBADD = $(SYSTEMD_DAEMON_LIBS)
110systemd_notify_la_CFLAGS = \
Pekka Paalanenaff703e2016-04-05 14:08:11 +0300111 $(COMPOSITOR_CFLAGS) \
112 $(SYSTEMD_DAEMON_CFLAGS) \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300113 $(PIXMAN_CFLAGS) \
114 $(AM_CFLAGS)
115systemd_notify_la_SOURCES = \
116 src/systemd-notify.c \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300117 shared/helpers.h \
118 shared/zalloc.h \
Bryce Harringtona0dd5b42015-09-25 15:16:25 -0700119 src/compositor.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300120endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800121
Giulio Camuffo9e445982016-06-02 21:48:15 +0300122nodist_libweston_la_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800123 protocol/weston-screenshooter-protocol.c \
124 protocol/weston-screenshooter-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800125 protocol/text-cursor-position-protocol.c \
126 protocol/text-cursor-position-server-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800127 protocol/text-input-unstable-v1-protocol.c \
128 protocol/text-input-unstable-v1-server-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800129 protocol/input-method-unstable-v1-protocol.c \
130 protocol/input-method-unstable-v1-server-protocol.h \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200131 protocol/presentation-time-protocol.c \
132 protocol/presentation-time-server-protocol.h \
Pekka Paalanene95ad5c2016-04-15 14:47:08 +0300133 protocol/viewporter-protocol.c \
134 protocol/viewporter-server-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800135 protocol/linux-dmabuf-unstable-v1-protocol.c \
136 protocol/linux-dmabuf-unstable-v1-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800137
Giulio Camuffo9e445982016-06-02 21:48:15 +0300138BUILT_SOURCES += $(nodist_libweston_la_SOURCES)
139
140bin_PROGRAMS += weston
141
142weston_LDFLAGS = -export-dynamic
143weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON \
144 -DMODULEDIR='"$(moduledir)"'
145weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
146weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
147 $(DLOPEN_LIBS) $(LIBINPUT_BACKEND_LIBS) \
148 -lm libshared.la libweston.la
149
150weston_SOURCES = \
151 src/main.c \
152 src/weston-screenshooter.c \
153 src/text-backend.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800154
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800155# Track this dependency explicitly instead of using BUILT_SOURCES. We
156# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
157# in case we're building from tarballs.
158
159src/compositor.c : $(top_builddir)/src/git-version.h
160
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800161noinst_LTLIBRARIES += \
162 libsession-helper.la
163
164libsession_helper_la_SOURCES = \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800165 src/launcher-util.c \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700166 src/launcher-util.h \
Derek Foremancb156202015-09-24 09:26:48 -0500167 src/launcher-impl.h \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700168 src/weston-launch.h \
169 src/launcher-weston-launch.c \
170 src/launcher-direct.c
Derek Foreman4ff38742015-06-18 11:43:11 -0500171libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800172libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
173
174if ENABLE_DBUS
175if HAVE_SYSTEMD_LOGIN
176libsession_helper_la_SOURCES += \
177 src/dbus.h \
178 src/dbus.c \
Jasper St. Pierre30bcf352015-09-23 10:46:46 -0700179 src/launcher-logind.c
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800180libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
181libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
182endif
183endif
184
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800185if HAVE_GIT_REPO
186src/git-version.h : $(top_srcdir)/.git/logs/HEAD
187 $(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 -0800188else
189src/git-version.h :
190 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
191
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800192endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800193
194.FORCE :
195
196if BUILD_WESTON_LAUNCH
197bin_PROGRAMS += weston-launch
198weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
199weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
200weston_launch_CFLAGS= \
Derek Foreman4ff38742015-06-18 11:43:11 -0500201 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800202 $(PAM_CFLAGS) \
203 $(SYSTEMD_LOGIN_CFLAGS) \
204 $(LIBDRM_CFLAGS)
205weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
206
207if ENABLE_SETUID_INSTALL
208install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700209 can_suid_files=no; \
210 chown root $(DESTDIR)$(bindir)/weston-launch \
211 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
212 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500213 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700214 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
215 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
216 false; \
217 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800218endif
219
220endif # BUILD_WESTON_LAUNCH
221
222pkgconfigdir = $(libdir)/pkgconfig
Giulio Camuffo9e445982016-06-02 21:48:15 +0300223pkgconfig_DATA = src/weston.pc src/libweston-${LIBWESTON_ABI_VERSION}.pc
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800224
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100225wayland_sessiondir = $(datadir)/wayland-sessions
Ross Burton315476f2015-07-16 20:56:32 +0100226dist_wayland_session_DATA = src/weston.desktop
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100227
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300228libwestonincludedir = $(includedir)/libweston-${LIBWESTON_ABI_VERSION}
229libwestoninclude_HEADERS = \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800230 src/version.h \
231 src/compositor.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700232 src/compositor-drm.h \
Benoit Gschwind934e89a2016-04-27 23:56:42 +0200233 src/compositor-fbdev.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700234 src/compositor-headless.h \
Benoit Gschwindbd573102016-04-22 17:05:26 +0200235 src/compositor-rdp.h \
Benoit Gschwind639322a2016-04-28 20:33:15 +0200236 src/compositor-wayland.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700237 src/compositor-x11.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200238 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800239 shared/matrix.h \
240 shared/config-parser.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100241 shared/zalloc.h \
242 shared/platform.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800243
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300244westonincludedir = $(includedir)/weston
245westoninclude_HEADERS = src/weston.h
246
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000247if ENABLE_IVI_SHELL
248westoninclude_HEADERS += \
249 ivi-shell/ivi-layout-export.h
250endif
251
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800252if ENABLE_EGL
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300253libweston_module_LTLIBRARIES += gl-renderer.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800254gl_renderer_la_LDFLAGS = -module -avoid-version
255gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
256gl_renderer_la_CFLAGS = \
257 $(COMPOSITOR_CFLAGS) \
258 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300259 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500260 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800261gl_renderer_la_SOURCES = \
262 src/gl-renderer.h \
263 src/gl-renderer.c \
264 src/vertex-clipping.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700265 src/vertex-clipping.h \
266 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800267endif
268
269if ENABLE_X11_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300270libweston_module_LTLIBRARIES += x11-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800271x11_backend_la_LDFLAGS = -module -avoid-version
272x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800273 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800274x11_backend_la_CFLAGS = \
275 $(COMPOSITOR_CFLAGS) \
276 $(EGL_CFLAGS) \
277 $(PIXMAN_CFLAGS) \
278 $(CAIRO_CFLAGS) \
279 $(X11_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500280 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700281x11_backend_la_SOURCES = \
282 src/compositor-x11.c \
Benoit Gschwinde16acab2016-04-15 20:28:31 -0700283 src/compositor-x11.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700284 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800285endif
286
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100287INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000288INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100289 src/libinput-seat.c \
290 src/libinput-seat.h \
291 src/libinput-device.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700292 src/libinput-device.h \
293 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100294
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800295if ENABLE_DRM_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300296libweston_module_LTLIBRARIES += drm-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800297drm_backend_la_LDFLAGS = -module -avoid-version
298drm_backend_la_LIBADD = \
299 $(COMPOSITOR_LIBS) \
300 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100301 $(INPUT_BACKEND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300302 libshared.la \
303 $(CLOCK_GETTIME_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800304 libsession-helper.la
305drm_backend_la_CFLAGS = \
306 $(COMPOSITOR_CFLAGS) \
307 $(EGL_CFLAGS) \
308 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500309 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800310drm_backend_la_SOURCES = \
311 src/compositor-drm.c \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700312 src/compositor-drm.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100313 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700314 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200315 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800316 src/libbacklight.c \
317 src/libbacklight.h
318
319if ENABLE_VAAPI_RECORDER
320drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
321drm_backend_la_LIBADD += $(LIBVA_LIBS)
322drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
323endif
324endif
325
326if ENABLE_WAYLAND_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300327libweston_module_LTLIBRARIES += wayland-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800328wayland_backend_la_LDFLAGS = -module -avoid-version
329wayland_backend_la_LIBADD = \
330 $(COMPOSITOR_LIBS) \
331 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800332 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800333wayland_backend_la_CFLAGS = \
334 $(COMPOSITOR_CFLAGS) \
335 $(EGL_CFLAGS) \
336 $(PIXMAN_CFLAGS) \
337 $(CAIRO_CFLAGS) \
338 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500339 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700340wayland_backend_la_SOURCES = \
341 src/compositor-wayland.c \
Benoit Gschwind639322a2016-04-28 20:33:15 +0200342 src/compositor-wayland.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700343 shared/helpers.h
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500344nodist_wayland_backend_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800345 protocol/fullscreen-shell-unstable-v1-protocol.c \
346 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800347endif
348
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800349if ENABLE_HEADLESS_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300350libweston_module_LTLIBRARIES += headless-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800351headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800352headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500353headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700354headless_backend_la_SOURCES = \
355 src/compositor-headless.c \
Benoit Gschwind3c530942016-04-15 20:28:32 -0700356 src/compositor-headless.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700357 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800358endif
359
360if ENABLE_FBDEV_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300361libweston_module_LTLIBRARIES += fbdev-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800362fbdev_backend_la_LDFLAGS = -module -avoid-version
363fbdev_backend_la_LIBADD = \
364 $(COMPOSITOR_LIBS) \
365 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100366 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800367 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800368 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800369fbdev_backend_la_CFLAGS = \
370 $(COMPOSITOR_CFLAGS) \
371 $(EGL_CFLAGS) \
372 $(FBDEV_COMPOSITOR_CFLAGS) \
373 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500374 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800375fbdev_backend_la_SOURCES = \
376 src/compositor-fbdev.c \
Benoit Gschwind934e89a2016-04-27 23:56:42 +0200377 src/compositor-fbdev.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700378 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100379 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800380endif
381
382if ENABLE_RDP_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300383libweston_module_LTLIBRARIES += rdp-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800384rdp_backend_la_LDFLAGS = -module -avoid-version
385rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
386 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800387 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800388rdp_backend_la_CFLAGS = \
389 $(COMPOSITOR_CFLAGS) \
390 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500391 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700392rdp_backend_la_SOURCES = \
393 src/compositor-rdp.c \
Benoit Gschwindbd573102016-04-22 17:05:26 +0200394 src/compositor-rdp.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700395 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800396endif
397
398if HAVE_LCMS
399module_LTLIBRARIES += cms-static.la
400cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800401cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500402cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800403cms_static_la_SOURCES = \
404 src/cms-static.c \
405 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700406 src/cms-helper.h \
407 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800408if ENABLE_COLORD
409module_LTLIBRARIES += cms-colord.la
410cms_colord_la_LDFLAGS = -module -avoid-version
411cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500412cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800413cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100414 src/cms-colord.c \
415 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700416 src/cms-helper.h \
417 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800418endif
419endif
420
421noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500422spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800423spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
424spring_tool_SOURCES = \
425 src/spring-tool.c \
426 src/animation.c \
427 shared/matrix.c \
428 shared/matrix.h \
429 src/compositor.h
430
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800431if BUILD_CLIENTS
432
433bin_PROGRAMS += weston-terminal weston-info
434
435libexec_PROGRAMS += \
436 weston-desktop-shell \
437 weston-screenshooter \
438 weston-keyboard \
439 weston-simple-im
440
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900441if ENABLE_IVI_SHELL
442libexec_PROGRAMS += \
443 weston-ivi-shell-user-interface
444endif
445
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800446demo_clients = \
447 weston-flower \
448 weston-image \
449 weston-cliptest \
450 weston-dnd \
451 weston-smoke \
452 weston-resizor \
453 weston-eventdemo \
454 weston-clickdot \
455 weston-transformed \
456 weston-fullscreen \
457 weston-stacking \
458 weston-calibrator \
459 weston-scaler
460
461if INSTALL_DEMO_CLIENTS
462bin_PROGRAMS += $(demo_clients)
463else
464noinst_PROGRAMS += $(demo_clients)
465endif
466
467
468if BUILD_SIMPLE_CLIENTS
469demo_clients += \
470 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500471 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800472 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400473 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800474 weston-multi-resource
475
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800476weston_simple_shm_SOURCES = clients/simple-shm.c
477nodist_weston_simple_shm_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800478 protocol/xdg-shell-unstable-v5-protocol.c \
479 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800480 protocol/fullscreen-shell-unstable-v1-protocol.c \
481 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900482 protocol/ivi-application-protocol.c \
483 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800484weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800485weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800486
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500487weston_simple_damage_SOURCES = clients/simple-damage.c
488nodist_weston_simple_damage_SOURCES = \
Pekka Paalanen7b69d6c2016-04-15 17:00:21 +0300489 protocol/viewporter-protocol.c \
490 protocol/viewporter-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800491 protocol/xdg-shell-unstable-v5-protocol.c \
492 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800493 protocol/fullscreen-shell-unstable-v1-protocol.c \
494 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500495weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
496weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
497
Jon A. Cruzb09da242015-06-16 13:15:13 -0700498weston_simple_touch_SOURCES = \
499 clients/simple-touch.c \
500 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800501weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800502weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800503
Jon A. Cruzb09da242015-06-16 13:15:13 -0700504weston_presentation_shm_SOURCES = \
505 clients/presentation-shm.c \
506 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400507nodist_weston_presentation_shm_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200508 protocol/presentation-time-protocol.c \
509 protocol/presentation-time-client-protocol.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400510weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300511weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400512
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800513weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800514weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300515weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800516endif
517
518if BUILD_SIMPLE_EGL_CLIENTS
519demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800520weston_simple_egl_SOURCES = clients/simple-egl.c
521nodist_weston_simple_egl_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800522 protocol/xdg-shell-unstable-v5-protocol.c \
523 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900524 protocol/ivi-application-protocol.c \
525 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800526weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800527weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
528endif
529
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000530if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
531demo_clients += weston-simple-dmabuf-intel
532weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
533nodist_weston_simple_dmabuf_intel_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800534 protocol/xdg-shell-unstable-v5-protocol.c \
535 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800536 protocol/fullscreen-shell-unstable-v1-protocol.c \
537 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800538 protocol/linux-dmabuf-unstable-v1-protocol.c \
539 protocol/linux-dmabuf-unstable-v1-client-protocol.h
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000540weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
541weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800542BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200543endif
544
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000545if BUILD_SIMPLE_DMABUF_V4L_CLIENT
546demo_clients += weston-simple-dmabuf-v4l
547weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
548nodist_weston_simple_dmabuf_v4l_SOURCES = \
549 protocol/xdg-shell-unstable-v5-protocol.c \
550 protocol/xdg-shell-unstable-v5-client-protocol.h \
551 protocol/fullscreen-shell-unstable-v1-protocol.c \
552 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
553 protocol/linux-dmabuf-unstable-v1-protocol.c \
554 protocol/linux-dmabuf-unstable-v1-client-protocol.h
555weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
556weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
557BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
558endif
559
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800560noinst_LTLIBRARIES += libtoytoolkit.la
561
562libtoytoolkit_la_SOURCES = \
563 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700564 clients/window.h \
565 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800566
567nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100568 protocol/text-cursor-position-protocol.c \
569 protocol/text-cursor-position-client-protocol.h \
Pekka Paalanen73511002016-04-15 16:53:41 +0300570 protocol/viewporter-protocol.c \
571 protocol/viewporter-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800572 protocol/xdg-shell-unstable-v5-protocol.c \
573 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900574 protocol/ivi-application-protocol.c \
575 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500576
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800577BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
578
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800579
580libtoytoolkit_la_LIBADD = \
581 $(CLIENT_LIBS) \
582 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300583 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800584libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800585
586weston_flower_SOURCES = clients/flower.c
587weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800588weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800589
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100590weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800591 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800592nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800593 protocol/weston-screenshooter-protocol.c \
594 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800595weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800596weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800597
Jon A. Cruzb09da242015-06-16 13:15:13 -0700598weston_terminal_SOURCES = \
599 clients/terminal.c \
600 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800601weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800602weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800603
604weston_image_SOURCES = clients/image.c
605weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800606weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800607
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300608weston_cliptest_SOURCES = \
609 clients/cliptest.c \
610 src/vertex-clipping.c \
611 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800612weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800613weston_cliptest_LDADD = libtoytoolkit.la
614
Jon A. Cruzb09da242015-06-16 13:15:13 -0700615weston_dnd_SOURCES = \
616 clients/dnd.c \
617 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800618weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800619weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800620
621weston_smoke_SOURCES = clients/smoke.c
622weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800623weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800624
625weston_resizor_SOURCES = clients/resizor.c
626weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800627weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800628
629weston_scaler_SOURCES = clients/scaler.c
630weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800631weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800632
633if HAVE_CAIRO_GLESV2
634demo_clients += weston-nested weston-nested-client
635
Jon A. Cruzb09da242015-06-16 13:15:13 -0700636weston_nested_SOURCES = \
637 clients/nested.c \
638 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800639weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800640weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800641
642weston_nested_client_SOURCES = clients/nested-client.c
643weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800644weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800645endif
646
Jon A. Cruzb09da242015-06-16 13:15:13 -0700647weston_eventdemo_SOURCES = \
648 clients/eventdemo.c \
649 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800650weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800651weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800652
Jon A. Cruzb09da242015-06-16 13:15:13 -0700653weston_clickdot_SOURCES = \
654 clients/clickdot.c \
655 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800656weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800657weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800658
659weston_transformed_SOURCES = clients/transformed.c
660weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800661weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800662
663weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500664nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800665 protocol/fullscreen-shell-unstable-v1-protocol.c \
666 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800667weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800668weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800669
Jon A. Cruzb09da242015-06-16 13:15:13 -0700670weston_stacking_SOURCES = \
671 clients/stacking.c \
672 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800673weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800674weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800675
Jon A. Cruzb09da242015-06-16 13:15:13 -0700676weston_calibrator_SOURCES = \
677 clients/calibrator.c \
678 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800679 shared/matrix.c \
680 shared/matrix.h
681weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800682weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800683
684if BUILD_SUBSURFACES_CLIENT
685demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700686weston_subsurfaces_SOURCES = \
687 clients/subsurfaces.c \
688 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800689weston_subsurfaces_CFLAGS = \
690 $(AM_CFLAGS) \
691 $(SIMPLE_EGL_CLIENT_CFLAGS) \
692 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800693weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
694endif
695
696if HAVE_PANGO
697demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700698weston_editor_SOURCES = \
699 clients/editor.c \
700 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800701nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800702 protocol/text-input-unstable-v1-protocol.c \
703 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800704weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800705weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800706endif
707
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800708weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800709nodist_weston_keyboard_SOURCES = \
710 protocol/weston-desktop-shell-client-protocol.h \
711 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800712 protocol/input-method-unstable-v1-protocol.c \
713 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800714weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800715weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800716
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800717weston_simple_im_SOURCES = clients/weston-simple-im.c
718nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800719 protocol/input-method-unstable-v1-protocol.c \
720 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800721weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800722weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800723
Jon A. Cruzb09da242015-06-16 13:15:13 -0700724weston_info_SOURCES = \
725 clients/weston-info.c \
726 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400727nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200728 protocol/presentation-time-protocol.c \
729 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800730weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200731weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800732
Jon A. Cruzb09da242015-06-16 13:15:13 -0700733weston_desktop_shell_SOURCES = \
734 clients/desktop-shell.c \
735 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800736nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800737 protocol/weston-desktop-shell-client-protocol.h \
738 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800739weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800740weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800741
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900742if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700743weston_ivi_shell_user_interface_SOURCES = \
744 clients/ivi-shell-user-interface.c \
745 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900746nodist_weston_ivi_shell_user_interface_SOURCES = \
747 protocol/ivi-hmi-controller-client-protocol.h \
748 protocol/ivi-hmi-controller-protocol.c \
749 protocol/ivi-application-client-protocol.h \
750 protocol/ivi-application-protocol.c
751weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
752weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
753endif
754
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800755if BUILD_FULL_GL_CLIENTS
756demo_clients += weston-gears
757weston_gears_SOURCES = clients/gears.c
758weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800759weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800760endif
761
762endif
763
764BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800765 protocol/weston-screenshooter-protocol.c \
766 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100767 protocol/text-cursor-position-client-protocol.h \
768 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800769 protocol/text-input-unstable-v1-protocol.c \
770 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800771 protocol/input-method-unstable-v1-protocol.c \
772 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800773 protocol/weston-desktop-shell-client-protocol.h \
774 protocol/weston-desktop-shell-protocol.c \
Pekka Paalanen73511002016-04-15 16:53:41 +0300775 protocol/viewporter-client-protocol.h \
776 protocol/viewporter-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200777 protocol/presentation-time-protocol.c \
778 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800779 protocol/fullscreen-shell-unstable-v1-protocol.c \
780 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800781 protocol/xdg-shell-unstable-v5-protocol.c \
782 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900783 protocol/ivi-hmi-controller-protocol.c \
784 protocol/ivi-hmi-controller-client-protocol.h \
785 protocol/ivi-application-protocol.c \
786 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800787
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800788westondatadir = $(datadir)/weston
789dist_westondata_DATA = \
790 data/wayland.svg \
791 data/wayland.png \
792 data/pattern.png \
793 data/terminal.png \
794 data/border.png \
Bryce Harrington6bc52542016-03-24 17:57:39 -0700795 data/icon_editor.png \
796 data/icon_flower.png \
797 data/icon_terminal.png \
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800798 data/icon_window.png \
799 data/sign_close.png \
800 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100801 data/sign_minimize.png
802
803if ENABLE_IVI_SHELL
804dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900805 data/background.png \
806 data/tiling.png \
807 data/fullscreen.png \
808 data/panel.png \
809 data/random.png \
810 data/sidebyside.png \
811 data/home.png \
812 data/icon_ivi_clickdot.png \
813 data/icon_ivi_flower.png \
814 data/icon_ivi_simple-egl.png \
815 data/icon_ivi_simple-shm.png \
816 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100817endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800818
819
820if BUILD_WCAP_TOOLS
821bin_PROGRAMS += wcap-decode
822
823wcap_decode_SOURCES = \
824 wcap/main.c \
825 wcap/wcap-decode.c \
826 wcap/wcap-decode.h
827
Derek Foreman4ff38742015-06-18 11:43:11 -0500828wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800829wcap_decode_LDADD = $(WCAP_LIBS)
830endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800831
832
833if ENABLE_DESKTOP_SHELL
834
835module_LTLIBRARIES += desktop-shell.la
836
837desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100838 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800839 -I$(top_srcdir)/shared \
840 -I$(top_srcdir)/src \
841 -I$(top_builddir)/src \
842 -I$(top_builddir)/desktop-shell \
843 -DDATADIR='"$(datadir)"' \
844 -DMODULEDIR='"$(moduledir)"' \
845 -DLIBEXECDIR='"$(libexecdir)"' \
846 -DIN_WESTON
847
848desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800849desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500850desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800851desktop_shell_la_SOURCES = \
852 desktop-shell/shell.h \
853 desktop-shell/shell.c \
854 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700855 desktop-shell/input-panel.c \
856 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800857nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800858 protocol/weston-desktop-shell-protocol.c \
859 protocol/weston-desktop-shell-server-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800860 protocol/xdg-shell-unstable-v5-protocol.c \
861 protocol/xdg-shell-unstable-v5-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800862
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800863BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800864endif
865
Jason Ekstrand946a9482014-04-02 19:53:47 -0500866if ENABLE_FULLSCREEN_SHELL
867
868module_LTLIBRARIES += fullscreen-shell.la
869
870fullscreen_shell_la_CPPFLAGS = \
871 -I$(top_builddir)/protocol \
872 -I$(top_srcdir)/shared \
873 -I$(top_srcdir)/src \
874 -I$(top_builddir)/src \
875 -DIN_WESTON
876
877fullscreen_shell_la_LDFLAGS = -module -avoid-version
878fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500879fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500880fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700881 fullscreen-shell/fullscreen-shell.c \
882 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500883nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800884 protocol/fullscreen-shell-unstable-v1-protocol.c \
885 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500886
887BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
888endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800889
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900890if ENABLE_IVI_SHELL
891
892module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900893 $(ivi_shell) \
894 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900895
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900896ivi_shell = ivi-shell.la
897ivi_shell_la_LDFLAGS = -module -avoid-version
898ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500899ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900900ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900901 ivi-shell/ivi-layout-export.h \
902 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +0200903 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900904 ivi-shell/ivi-layout.c \
905 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900906 ivi-shell/ivi-shell.h \
907 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700908 ivi-shell/input-panel-ivi.c \
909 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900910nodist_ivi_shell_la_SOURCES = \
911 protocol/ivi-application-protocol.c \
912 protocol/ivi-application-server-protocol.h
913
914BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
915
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900916hmi_controller = hmi-controller.la
917hmi_controller_la_LDFLAGS = -module -avoid-version
918hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500919hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900920hmi_controller_la_SOURCES = \
921 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700922 ivi-shell/hmi-controller.c \
923 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900924nodist_hmi_controller_la_SOURCES = \
925 protocol/ivi-hmi-controller-protocol.c \
926 protocol/ivi-hmi-controller-server-protocol.h
927
928BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
929
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900930endif
931
932
Jason Ekstrand47928d82014-04-02 19:54:01 -0500933if ENABLE_SCREEN_SHARING
934
935module_LTLIBRARIES += screen-share.la
936
937screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
938screen_share_la_LDFLAGS = -module -avoid-version
939screen_share_la_LIBADD = \
940 $(COMPOSITOR_LIBS) \
941 $(SCREEN_SHARE_LIBS) \
942 libshared-cairo.la
943screen_share_la_CFLAGS = \
944 $(COMPOSITOR_CFLAGS) \
945 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500946 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -0500947screen_share_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700948 src/screen-share.c \
949 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500950nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800951 protocol/fullscreen-shell-unstable-v1-protocol.c \
952 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500953
954endif
955
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800956if ENABLE_XWAYLAND
957
958module_LTLIBRARIES += xwayland.la
959
960xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100961 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800962 -I$(top_srcdir)/shared \
963 -I$(top_srcdir)/src \
964 -I$(top_builddir)/src \
965 -I$(top_builddir)/xwayland \
966 -DDATADIR='"$(datadir)"' \
967 -DMODULEDIR='"$(moduledir)"' \
968 -DLIBEXECDIR='"$(libexecdir)"' \
969 -DXSERVER_PATH='"@XSERVER_PATH@"'
970
971xwayland_la_LDFLAGS = -module -avoid-version
972xwayland_la_LIBADD = \
973 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800974 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800975xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500976 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800977 $(COMPOSITOR_CFLAGS) \
978 $(PIXMAN_CFLAGS) \
979 $(CAIRO_CFLAGS)
980xwayland_la_SOURCES = \
981 xwayland/xwayland.h \
982 xwayland/window-manager.c \
983 xwayland/selection.c \
984 xwayland/dnd.c \
985 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800986 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700987 xwayland/hash.h \
988 shared/helpers.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800989endif
990
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800991
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800992#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800993# Shared utilities
994#
995
Jon A. Cruz5a75a412015-07-02 23:36:44 -0700996noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
997 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800998
Derek Foreman4ff38742015-06-18 11:43:11 -0500999libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001000
1001libshared_la_SOURCES = \
1002 shared/config-parser.c \
1003 shared/option-parser.c \
1004 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +02001005 shared/file-util.c \
1006 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001007 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001008 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -07001009 shared/os-compatibility.h \
1010 shared/xalloc.c \
1011 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001012
1013libshared_cairo_la_CFLAGS = \
1014 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001015 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001016 $(COMPOSITOR_CFLAGS) \
1017 $(PIXMAN_CFLAGS) \
1018 $(CAIRO_CFLAGS) \
1019 $(PNG_CFLAGS) \
1020 $(WEBP_CFLAGS)
1021
1022libshared_cairo_la_LIBADD = \
1023 $(PIXMAN_LIBS) \
1024 $(CAIRO_LIBS) \
1025 $(PNG_LIBS) \
1026 $(WEBP_LIBS) \
1027 $(JPEG_LIBS)
1028
1029libshared_cairo_la_SOURCES = \
1030 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001031 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001032 shared/image-loader.c \
1033 shared/image-loader.h \
1034 shared/cairo-util.c \
1035 shared/frame.c \
1036 shared/cairo-util.h
1037
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001038libzunitc_la_SOURCES = \
1039 tools/zunitc/inc/zunitc/zunitc.h \
1040 tools/zunitc/inc/zunitc/zunitc_impl.h \
1041 tools/zunitc/src/zuc_base_logger.c \
1042 tools/zunitc/src/zuc_base_logger.h \
1043 tools/zunitc/src/zuc_collector.c \
1044 tools/zunitc/src/zuc_collector.h \
1045 tools/zunitc/src/zuc_context.h \
1046 tools/zunitc/src/zuc_event.h \
1047 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001048 tools/zunitc/src/zuc_junit_reporter.c \
1049 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001050 tools/zunitc/src/zuc_types.h \
1051 tools/zunitc/src/zunitc_impl.c \
1052 shared/helpers.h
1053
1054libzunitc_la_CFLAGS = \
1055 $(AM_CFLAGS) \
1056 -I$(top_srcdir)/tools/zunitc/inc
1057
1058libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001059 libshared.la \
1060 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001061
Jon A. Cruz646aef52015-07-15 19:22:41 -07001062if ENABLE_JUNIT_XML
1063libzunitc_la_CFLAGS += \
1064 $(LIBXML2_CFLAGS)
1065libzunitc_la_LIBADD += \
1066 $(LIBXML2_LIBS)
1067endif
1068
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001069libzunitcmain_la_SOURCES = \
1070 tools/zunitc/src/main.c
1071
1072libzunitcmain_la_CFLAGS = \
1073 $(AM_CFLAGS) \
1074 -I$(top_srcdir)/tools/zunitc/inc
1075
1076libzunitcmain_la_LIBADD = \
1077 libzunitc.la \
1078 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001079
1080#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001081# tests subdirectory
1082#
1083
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001084TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1085
1086internal_tests = \
1087 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001088
1089shared_tests = \
1090 config-parser.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001091 vertex-clip.test \
1092 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001093
1094module_tests = \
1095 surface-test.la \
1096 surface-global-test.la
1097
1098weston_tests = \
1099 bad_buffer.weston \
1100 keyboard.weston \
1101 event.weston \
1102 button.weston \
1103 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001104 presentation.weston \
Pekka Paalanen82d95a62016-04-19 17:20:42 +03001105 viewporter.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001106 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001107 subsurface.weston \
1108 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001109
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001110ivi_tests =
1111
1112$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001113
1114AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001115 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1116 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001117
1118TEST_EXTENSIONS = .la .weston
1119LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1120WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1121
1122clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001123 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001124 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001125
1126# To remove when automake 1.11 support is dropped
1127export abs_builddir
1128
1129noinst_LTLIBRARIES += \
1130 weston-test.la \
1131 $(module_tests) \
1132 libtest-runner.la \
1133 libtest-client.la
1134
1135noinst_PROGRAMS += \
1136 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001137 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001138 $(shared_tests) \
1139 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001140 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001141 matrix-test
1142
1143test_module_ldflags = \
1144 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1145
1146surface_global_test_la_SOURCES = tests/surface-global-test.c
1147surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001148surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001149
1150surface_test_la_SOURCES = tests/surface-test.c
1151surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001152surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001153
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001154weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001155weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001156weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001157weston_test_la_SOURCES = \
1158 tests/weston-test.c \
1159 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001160nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001161 protocol/weston-test-protocol.c \
1162 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001163
1164if ENABLE_EGL
1165weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1166weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1167endif
1168
1169libtest_runner_la_SOURCES = \
1170 tests/weston-test-runner.c \
1171 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001172libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001173
1174config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001175config_parser_test_LDADD = \
1176 libshared.la \
1177 $(COMPOSITOR_LIBS) \
1178 libzunitc.la \
1179 libzunitcmain.la
1180config_parser_test_CFLAGS = \
1181 $(AM_CFLAGS) \
1182 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001183
1184vertex_clip_test_SOURCES = \
1185 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001186 shared/helpers.h \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001187 src/vertex-clipping.c \
1188 src/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001189vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001190
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001191libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001192 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001193 tests/weston-test-client-helper.h
1194nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001195 protocol/weston-test-protocol.c \
1196 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001197libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1198libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) $(CAIRO_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001199
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001200
1201#
1202# Internal tests - tests functionality of the testsuite itself
1203#
1204
1205internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001206internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1207internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001208
1209
1210#
1211# Weston Tests
1212#
1213
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001214bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001215bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001216bad_buffer_weston_LDADD = libtest-client.la
1217
1218keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001219keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001220keyboard_weston_LDADD = libtest-client.la
1221
1222event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001223event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001224event_weston_LDADD = libtest-client.la
1225
1226button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001227button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001228button_weston_LDADD = libtest-client.la
1229
Marek Chalupa5fd81402015-03-30 09:21:29 -04001230devices_weston_SOURCES = tests/devices-test.c
1231devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1232devices_weston_LDADD = libtest-client.la
1233
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001234text_weston_SOURCES = tests/text-test.c
1235nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001236 protocol/text-input-unstable-v1-protocol.c \
1237 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001238text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001239text_weston_LDADD = libtest-client.la
1240
1241subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001242subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001243subsurface_weston_LDADD = libtest-client.la
1244
Jon A. Cruzb09da242015-06-16 13:15:13 -07001245presentation_weston_SOURCES = \
1246 tests/presentation-test.c \
1247 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001248nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001249 protocol/presentation-time-protocol.c \
1250 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001251presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1252presentation_weston_LDADD = libtest-client.la
1253
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001254roles_weston_SOURCES = tests/roles-test.c
1255roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1256roles_weston_LDADD = libtest-client.la
1257
Pekka Paalanen82d95a62016-04-19 17:20:42 +03001258viewporter_weston_SOURCES = \
1259 tests/viewporter-test.c \
1260 shared/helpers.h
1261nodist_viewporter_weston_SOURCES = \
1262 protocol/viewporter-protocol.c \
1263 protocol/viewporter-client-protocol.h
1264viewporter_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1265viewporter_weston_LDADD = libtest-client.la
1266
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001267if ENABLE_EGL
1268weston_tests += buffer-count.weston
1269buffer_count_weston_SOURCES = tests/buffer-count-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001270buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001271buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1272endif
1273
1274if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001275weston_tests += xwayland-test.weston
1276xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001277xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001278xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001279endif
1280
1281matrix_test_SOURCES = \
1282 tests/matrix-test.c \
1283 shared/matrix.c \
1284 shared/matrix.h
1285matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001286matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001287
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001288if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001289module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001290 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001291 ivi-layout-test.la
1292
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001293ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1294ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001295ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001296ivi_layout_internal_test_la_SOURCES = \
1297 tests/ivi_layout-internal-test.c
1298
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001299ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1300ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001301ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001302ivi_layout_test_la_SOURCES = \
1303 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001304 tests/ivi-test.h \
1305 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001306nodist_ivi_layout_test_la_SOURCES = \
1307 protocol/weston-test-protocol.c \
1308 protocol/weston-test-server-protocol.h
1309
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001310ivi_tests += \
1311 ivi-shell-app.weston
1312
1313ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1314nodist_ivi_shell_app_weston_SOURCES = \
1315 protocol/ivi-application-protocol.c \
1316 protocol/ivi-application-client-protocol.h
1317ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1318ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001319
1320noinst_PROGRAMS += ivi-layout.ivi
1321
1322ivi_layout_ivi_SOURCES = \
1323 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001324 tests/ivi-test.h \
1325 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001326nodist_ivi_layout_ivi_SOURCES = \
1327 protocol/ivi-application-protocol.c \
1328 protocol/ivi-application-client-protocol.h
1329ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1330ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001331endif
1332
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001333if BUILD_SETBACKLIGHT
1334noinst_PROGRAMS += setbacklight
1335setbacklight_SOURCES = \
1336 tests/setbacklight.c \
1337 src/libbacklight.c \
1338 src/libbacklight.h
1339setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1340setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1341endif
1342
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001343all-local: zuctest$(EXEEXT)
1344
1345noinst_PROGRAMS += zuctest$(EXEEXT)
1346
1347zuctest_LDADD = \
1348 libzunitc.la \
1349 libzunitcmain.la
1350
1351zuctest_CFLAGS = \
1352 $(AM_CFLAGS) \
1353 -I$(top_srcdir)/tools/zunitc/inc
1354
1355zuctest_SOURCES = \
1356 tools/zunitc/test/fixtures_test.c \
1357 tools/zunitc/test/zunitc_test.c
1358
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001359EXTRA_DIST += \
1360 tests/weston-tests-env \
1361 tests/internal-screenshot.ini \
1362 tests/reference/internal-screenshot-bad-00.png \
1363 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001364
1365BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001366 protocol/weston-test-protocol.c \
1367 protocol/weston-test-server-protocol.h \
1368 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001369 protocol/text-input-unstable-v1-protocol.c \
1370 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001371
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001372EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001373 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001374 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001375 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001376 protocol/weston-test.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001377 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001378 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001379
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001380#
1381# manual test modules in tests subdirectory
1382#
1383
1384noinst_LTLIBRARIES += \
1385 surface-screenshot.la
1386
1387surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1388surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001389surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001390surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1391
1392
1393#
1394# Documentation
1395#
1396
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001397man_MANS = weston.1 weston.ini.5
1398
1399if ENABLE_DRM_COMPOSITOR
1400man_MANS += weston-drm.7
1401endif
1402
1403MAN_SUBSTS = \
1404 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1405 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1406 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1407 -e 's|__version__|$(PACKAGE_VERSION)|g'
1408
1409SUFFIXES = .1 .5 .7 .man
1410
1411%.1 %.5 %.7 : man/%.man
1412 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1413
1414EXTRA_DIST += \
1415 man/weston.man \
1416 man/weston-drm.man \
1417 man/weston.ini.man
1418
1419CLEANFILES += $(man_MANS)
1420
Jon A. Cruz179c1862015-07-15 19:22:43 -07001421if ENABLE_DEVDOCS
1422DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1423
1424docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1425 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1426
1427docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1428 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1429endif
1430
1431DOCDIRS = \
1432 docs/developer \
1433 docs/tools
1434
1435$(DOCDIRS):
1436 $(MKDIR_P) $@
1437
1438.PHONY: doc $(DOXYGEN_INDICES)
1439
1440doc: $(DOXYGEN_INDICES)
1441
Jonas Ådahl496adb32015-11-17 16:00:27 +08001442.SECONDEXPANSION:
1443
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001444define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001445$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001446endef
1447
1448define protoname
1449$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1450endef
1451
1452protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001453 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1454
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001455protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001456 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1457
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001458protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001459 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1460
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001461protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1462 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001463
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001464protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1465 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001466
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001467protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1468 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@