blob: 419438e4d69603c329b4a8649163bde372e36461 [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 = \
489 protocol/scaler-protocol.c \
490 protocol/scaler-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 \
570 protocol/scaler-protocol.c \
571 protocol/scaler-client-protocol.h \
Pekka Paalanen73511002016-04-15 16:53:41 +0300572 protocol/viewporter-protocol.c \
573 protocol/viewporter-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800574 protocol/xdg-shell-unstable-v5-protocol.c \
575 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900576 protocol/ivi-application-protocol.c \
577 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500578
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800579BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
580
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800581
582libtoytoolkit_la_LIBADD = \
583 $(CLIENT_LIBS) \
584 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300585 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800586libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800587
588weston_flower_SOURCES = clients/flower.c
589weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800590weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800591
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100592weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800593 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800594nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800595 protocol/weston-screenshooter-protocol.c \
596 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800597weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800598weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800599
Jon A. Cruzb09da242015-06-16 13:15:13 -0700600weston_terminal_SOURCES = \
601 clients/terminal.c \
602 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800603weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800604weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800605
606weston_image_SOURCES = clients/image.c
607weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800608weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800609
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300610weston_cliptest_SOURCES = \
611 clients/cliptest.c \
612 src/vertex-clipping.c \
613 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800614weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800615weston_cliptest_LDADD = libtoytoolkit.la
616
Jon A. Cruzb09da242015-06-16 13:15:13 -0700617weston_dnd_SOURCES = \
618 clients/dnd.c \
619 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800620weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800621weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800622
623weston_smoke_SOURCES = clients/smoke.c
624weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800625weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800626
627weston_resizor_SOURCES = clients/resizor.c
628weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800629weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800630
631weston_scaler_SOURCES = clients/scaler.c
632weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800633weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800634
635if HAVE_CAIRO_GLESV2
636demo_clients += weston-nested weston-nested-client
637
Jon A. Cruzb09da242015-06-16 13:15:13 -0700638weston_nested_SOURCES = \
639 clients/nested.c \
640 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800641weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800642weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800643
644weston_nested_client_SOURCES = clients/nested-client.c
645weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800646weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800647endif
648
Jon A. Cruzb09da242015-06-16 13:15:13 -0700649weston_eventdemo_SOURCES = \
650 clients/eventdemo.c \
651 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800652weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800653weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800654
Jon A. Cruzb09da242015-06-16 13:15:13 -0700655weston_clickdot_SOURCES = \
656 clients/clickdot.c \
657 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800658weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800659weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800660
661weston_transformed_SOURCES = clients/transformed.c
662weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800663weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800664
665weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500666nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800667 protocol/fullscreen-shell-unstable-v1-protocol.c \
668 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800669weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800670weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800671
Jon A. Cruzb09da242015-06-16 13:15:13 -0700672weston_stacking_SOURCES = \
673 clients/stacking.c \
674 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800675weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800676weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800677
Jon A. Cruzb09da242015-06-16 13:15:13 -0700678weston_calibrator_SOURCES = \
679 clients/calibrator.c \
680 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800681 shared/matrix.c \
682 shared/matrix.h
683weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800684weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800685
686if BUILD_SUBSURFACES_CLIENT
687demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700688weston_subsurfaces_SOURCES = \
689 clients/subsurfaces.c \
690 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800691weston_subsurfaces_CFLAGS = \
692 $(AM_CFLAGS) \
693 $(SIMPLE_EGL_CLIENT_CFLAGS) \
694 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800695weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
696endif
697
698if HAVE_PANGO
699demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700700weston_editor_SOURCES = \
701 clients/editor.c \
702 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800703nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800704 protocol/text-input-unstable-v1-protocol.c \
705 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800706weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800707weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800708endif
709
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800710weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800711nodist_weston_keyboard_SOURCES = \
712 protocol/weston-desktop-shell-client-protocol.h \
713 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800714 protocol/input-method-unstable-v1-protocol.c \
715 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800716weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800717weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800718
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800719weston_simple_im_SOURCES = clients/weston-simple-im.c
720nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800721 protocol/input-method-unstable-v1-protocol.c \
722 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800723weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800724weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800725
Jon A. Cruzb09da242015-06-16 13:15:13 -0700726weston_info_SOURCES = \
727 clients/weston-info.c \
728 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400729nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200730 protocol/presentation-time-protocol.c \
731 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800732weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200733weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800734
Jon A. Cruzb09da242015-06-16 13:15:13 -0700735weston_desktop_shell_SOURCES = \
736 clients/desktop-shell.c \
737 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800738nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800739 protocol/weston-desktop-shell-client-protocol.h \
740 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800741weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800742weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800743
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900744if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700745weston_ivi_shell_user_interface_SOURCES = \
746 clients/ivi-shell-user-interface.c \
747 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900748nodist_weston_ivi_shell_user_interface_SOURCES = \
749 protocol/ivi-hmi-controller-client-protocol.h \
750 protocol/ivi-hmi-controller-protocol.c \
751 protocol/ivi-application-client-protocol.h \
752 protocol/ivi-application-protocol.c
753weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
754weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
755endif
756
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800757if BUILD_FULL_GL_CLIENTS
758demo_clients += weston-gears
759weston_gears_SOURCES = clients/gears.c
760weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800761weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800762endif
763
764endif
765
766BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800767 protocol/weston-screenshooter-protocol.c \
768 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100769 protocol/text-cursor-position-client-protocol.h \
770 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800771 protocol/text-input-unstable-v1-protocol.c \
772 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800773 protocol/input-method-unstable-v1-protocol.c \
774 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800775 protocol/weston-desktop-shell-client-protocol.h \
776 protocol/weston-desktop-shell-protocol.c \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100777 protocol/scaler-client-protocol.h \
778 protocol/scaler-protocol.c \
Pekka Paalanen73511002016-04-15 16:53:41 +0300779 protocol/viewporter-client-protocol.h \
780 protocol/viewporter-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200781 protocol/presentation-time-protocol.c \
782 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800783 protocol/fullscreen-shell-unstable-v1-protocol.c \
784 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800785 protocol/xdg-shell-unstable-v5-protocol.c \
786 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900787 protocol/ivi-hmi-controller-protocol.c \
788 protocol/ivi-hmi-controller-client-protocol.h \
789 protocol/ivi-application-protocol.c \
790 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800791
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800792westondatadir = $(datadir)/weston
793dist_westondata_DATA = \
794 data/wayland.svg \
795 data/wayland.png \
796 data/pattern.png \
797 data/terminal.png \
798 data/border.png \
Bryce Harrington6bc52542016-03-24 17:57:39 -0700799 data/icon_editor.png \
800 data/icon_flower.png \
801 data/icon_terminal.png \
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800802 data/icon_window.png \
803 data/sign_close.png \
804 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100805 data/sign_minimize.png
806
807if ENABLE_IVI_SHELL
808dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900809 data/background.png \
810 data/tiling.png \
811 data/fullscreen.png \
812 data/panel.png \
813 data/random.png \
814 data/sidebyside.png \
815 data/home.png \
816 data/icon_ivi_clickdot.png \
817 data/icon_ivi_flower.png \
818 data/icon_ivi_simple-egl.png \
819 data/icon_ivi_simple-shm.png \
820 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100821endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800822
823
824if BUILD_WCAP_TOOLS
825bin_PROGRAMS += wcap-decode
826
827wcap_decode_SOURCES = \
828 wcap/main.c \
829 wcap/wcap-decode.c \
830 wcap/wcap-decode.h
831
Derek Foreman4ff38742015-06-18 11:43:11 -0500832wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800833wcap_decode_LDADD = $(WCAP_LIBS)
834endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800835
836
837if ENABLE_DESKTOP_SHELL
838
839module_LTLIBRARIES += desktop-shell.la
840
841desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100842 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800843 -I$(top_srcdir)/shared \
844 -I$(top_srcdir)/src \
845 -I$(top_builddir)/src \
846 -I$(top_builddir)/desktop-shell \
847 -DDATADIR='"$(datadir)"' \
848 -DMODULEDIR='"$(moduledir)"' \
849 -DLIBEXECDIR='"$(libexecdir)"' \
850 -DIN_WESTON
851
852desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800853desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500854desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800855desktop_shell_la_SOURCES = \
856 desktop-shell/shell.h \
857 desktop-shell/shell.c \
858 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700859 desktop-shell/input-panel.c \
860 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800861nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800862 protocol/weston-desktop-shell-protocol.c \
863 protocol/weston-desktop-shell-server-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800864 protocol/xdg-shell-unstable-v5-protocol.c \
865 protocol/xdg-shell-unstable-v5-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800866
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800867BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800868endif
869
Jason Ekstrand946a9482014-04-02 19:53:47 -0500870if ENABLE_FULLSCREEN_SHELL
871
872module_LTLIBRARIES += fullscreen-shell.la
873
874fullscreen_shell_la_CPPFLAGS = \
875 -I$(top_builddir)/protocol \
876 -I$(top_srcdir)/shared \
877 -I$(top_srcdir)/src \
878 -I$(top_builddir)/src \
879 -DIN_WESTON
880
881fullscreen_shell_la_LDFLAGS = -module -avoid-version
882fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500883fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500884fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700885 fullscreen-shell/fullscreen-shell.c \
886 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500887nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800888 protocol/fullscreen-shell-unstable-v1-protocol.c \
889 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500890
891BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
892endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800893
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900894if ENABLE_IVI_SHELL
895
896module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900897 $(ivi_shell) \
898 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900899
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900900ivi_shell = ivi-shell.la
901ivi_shell_la_LDFLAGS = -module -avoid-version
902ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500903ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900904ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900905 ivi-shell/ivi-layout-export.h \
906 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +0200907 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900908 ivi-shell/ivi-layout.c \
909 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900910 ivi-shell/ivi-shell.h \
911 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700912 ivi-shell/input-panel-ivi.c \
913 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900914nodist_ivi_shell_la_SOURCES = \
915 protocol/ivi-application-protocol.c \
916 protocol/ivi-application-server-protocol.h
917
918BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
919
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900920hmi_controller = hmi-controller.la
921hmi_controller_la_LDFLAGS = -module -avoid-version
922hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500923hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900924hmi_controller_la_SOURCES = \
925 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700926 ivi-shell/hmi-controller.c \
927 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900928nodist_hmi_controller_la_SOURCES = \
929 protocol/ivi-hmi-controller-protocol.c \
930 protocol/ivi-hmi-controller-server-protocol.h
931
932BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
933
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900934endif
935
936
Jason Ekstrand47928d82014-04-02 19:54:01 -0500937if ENABLE_SCREEN_SHARING
938
939module_LTLIBRARIES += screen-share.la
940
941screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
942screen_share_la_LDFLAGS = -module -avoid-version
943screen_share_la_LIBADD = \
944 $(COMPOSITOR_LIBS) \
945 $(SCREEN_SHARE_LIBS) \
946 libshared-cairo.la
947screen_share_la_CFLAGS = \
948 $(COMPOSITOR_CFLAGS) \
949 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500950 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -0500951screen_share_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700952 src/screen-share.c \
953 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500954nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800955 protocol/fullscreen-shell-unstable-v1-protocol.c \
956 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500957
958endif
959
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800960if ENABLE_XWAYLAND
961
962module_LTLIBRARIES += xwayland.la
963
964xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100965 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800966 -I$(top_srcdir)/shared \
967 -I$(top_srcdir)/src \
968 -I$(top_builddir)/src \
969 -I$(top_builddir)/xwayland \
970 -DDATADIR='"$(datadir)"' \
971 -DMODULEDIR='"$(moduledir)"' \
972 -DLIBEXECDIR='"$(libexecdir)"' \
973 -DXSERVER_PATH='"@XSERVER_PATH@"'
974
975xwayland_la_LDFLAGS = -module -avoid-version
976xwayland_la_LIBADD = \
977 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800978 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800979xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500980 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800981 $(COMPOSITOR_CFLAGS) \
982 $(PIXMAN_CFLAGS) \
983 $(CAIRO_CFLAGS)
984xwayland_la_SOURCES = \
985 xwayland/xwayland.h \
986 xwayland/window-manager.c \
987 xwayland/selection.c \
988 xwayland/dnd.c \
989 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800990 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700991 xwayland/hash.h \
992 shared/helpers.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800993endif
994
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800995
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800996#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800997# Shared utilities
998#
999
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001000noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
1001 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001002
Derek Foreman4ff38742015-06-18 11:43:11 -05001003libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001004
1005libshared_la_SOURCES = \
1006 shared/config-parser.c \
1007 shared/option-parser.c \
1008 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +02001009 shared/file-util.c \
1010 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001011 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001012 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -07001013 shared/os-compatibility.h \
1014 shared/xalloc.c \
1015 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001016
1017libshared_cairo_la_CFLAGS = \
1018 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001019 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001020 $(COMPOSITOR_CFLAGS) \
1021 $(PIXMAN_CFLAGS) \
1022 $(CAIRO_CFLAGS) \
1023 $(PNG_CFLAGS) \
1024 $(WEBP_CFLAGS)
1025
1026libshared_cairo_la_LIBADD = \
1027 $(PIXMAN_LIBS) \
1028 $(CAIRO_LIBS) \
1029 $(PNG_LIBS) \
1030 $(WEBP_LIBS) \
1031 $(JPEG_LIBS)
1032
1033libshared_cairo_la_SOURCES = \
1034 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001035 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001036 shared/image-loader.c \
1037 shared/image-loader.h \
1038 shared/cairo-util.c \
1039 shared/frame.c \
1040 shared/cairo-util.h
1041
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001042libzunitc_la_SOURCES = \
1043 tools/zunitc/inc/zunitc/zunitc.h \
1044 tools/zunitc/inc/zunitc/zunitc_impl.h \
1045 tools/zunitc/src/zuc_base_logger.c \
1046 tools/zunitc/src/zuc_base_logger.h \
1047 tools/zunitc/src/zuc_collector.c \
1048 tools/zunitc/src/zuc_collector.h \
1049 tools/zunitc/src/zuc_context.h \
1050 tools/zunitc/src/zuc_event.h \
1051 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001052 tools/zunitc/src/zuc_junit_reporter.c \
1053 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001054 tools/zunitc/src/zuc_types.h \
1055 tools/zunitc/src/zunitc_impl.c \
1056 shared/helpers.h
1057
1058libzunitc_la_CFLAGS = \
1059 $(AM_CFLAGS) \
1060 -I$(top_srcdir)/tools/zunitc/inc
1061
1062libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001063 libshared.la \
1064 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001065
Jon A. Cruz646aef52015-07-15 19:22:41 -07001066if ENABLE_JUNIT_XML
1067libzunitc_la_CFLAGS += \
1068 $(LIBXML2_CFLAGS)
1069libzunitc_la_LIBADD += \
1070 $(LIBXML2_LIBS)
1071endif
1072
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001073libzunitcmain_la_SOURCES = \
1074 tools/zunitc/src/main.c
1075
1076libzunitcmain_la_CFLAGS = \
1077 $(AM_CFLAGS) \
1078 -I$(top_srcdir)/tools/zunitc/inc
1079
1080libzunitcmain_la_LIBADD = \
1081 libzunitc.la \
1082 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001083
1084#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001085# tests subdirectory
1086#
1087
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001088TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1089
1090internal_tests = \
1091 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001092
1093shared_tests = \
1094 config-parser.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001095 vertex-clip.test \
1096 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001097
1098module_tests = \
1099 surface-test.la \
1100 surface-global-test.la
1101
1102weston_tests = \
1103 bad_buffer.weston \
1104 keyboard.weston \
1105 event.weston \
1106 button.weston \
1107 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001108 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001109 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001110 subsurface.weston \
1111 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001112
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001113ivi_tests =
1114
1115$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001116
1117AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001118 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1119 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001120
1121TEST_EXTENSIONS = .la .weston
1122LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1123WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1124
1125clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001126 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001127 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001128
1129# To remove when automake 1.11 support is dropped
1130export abs_builddir
1131
1132noinst_LTLIBRARIES += \
1133 weston-test.la \
1134 $(module_tests) \
1135 libtest-runner.la \
1136 libtest-client.la
1137
1138noinst_PROGRAMS += \
1139 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001140 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001141 $(shared_tests) \
1142 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001143 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001144 matrix-test
1145
1146test_module_ldflags = \
1147 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1148
1149surface_global_test_la_SOURCES = tests/surface-global-test.c
1150surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001151surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001152
1153surface_test_la_SOURCES = tests/surface-test.c
1154surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001155surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001156
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001157weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001158weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001159weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001160weston_test_la_SOURCES = \
1161 tests/weston-test.c \
1162 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001163nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001164 protocol/weston-test-protocol.c \
1165 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001166
1167if ENABLE_EGL
1168weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1169weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1170endif
1171
1172libtest_runner_la_SOURCES = \
1173 tests/weston-test-runner.c \
1174 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001175libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001176
1177config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001178config_parser_test_LDADD = \
1179 libshared.la \
1180 $(COMPOSITOR_LIBS) \
1181 libzunitc.la \
1182 libzunitcmain.la
1183config_parser_test_CFLAGS = \
1184 $(AM_CFLAGS) \
1185 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001186
1187vertex_clip_test_SOURCES = \
1188 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001189 shared/helpers.h \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001190 src/vertex-clipping.c \
1191 src/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001192vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001193
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001194libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001195 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001196 tests/weston-test-client-helper.h
1197nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001198 protocol/weston-test-protocol.c \
1199 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001200libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1201libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) $(CAIRO_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001202
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001203
1204#
1205# Internal tests - tests functionality of the testsuite itself
1206#
1207
1208internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001209internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1210internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001211
1212
1213#
1214# Weston Tests
1215#
1216
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001217bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001218bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001219bad_buffer_weston_LDADD = libtest-client.la
1220
1221keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001222keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001223keyboard_weston_LDADD = libtest-client.la
1224
1225event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001226event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001227event_weston_LDADD = libtest-client.la
1228
1229button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001230button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001231button_weston_LDADD = libtest-client.la
1232
Marek Chalupa5fd81402015-03-30 09:21:29 -04001233devices_weston_SOURCES = tests/devices-test.c
1234devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1235devices_weston_LDADD = libtest-client.la
1236
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001237text_weston_SOURCES = tests/text-test.c
1238nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001239 protocol/text-input-unstable-v1-protocol.c \
1240 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001241text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001242text_weston_LDADD = libtest-client.la
1243
1244subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001245subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001246subsurface_weston_LDADD = libtest-client.la
1247
Jon A. Cruzb09da242015-06-16 13:15:13 -07001248presentation_weston_SOURCES = \
1249 tests/presentation-test.c \
1250 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001251nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001252 protocol/presentation-time-protocol.c \
1253 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001254presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1255presentation_weston_LDADD = libtest-client.la
1256
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001257roles_weston_SOURCES = tests/roles-test.c
1258roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1259roles_weston_LDADD = libtest-client.la
1260
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001261if ENABLE_EGL
1262weston_tests += buffer-count.weston
1263buffer_count_weston_SOURCES = tests/buffer-count-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001264buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001265buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1266endif
1267
1268if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001269weston_tests += xwayland-test.weston
1270xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001271xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001272xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001273endif
1274
1275matrix_test_SOURCES = \
1276 tests/matrix-test.c \
1277 shared/matrix.c \
1278 shared/matrix.h
1279matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001280matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001281
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001282if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001283module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001284 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001285 ivi-layout-test.la
1286
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001287ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1288ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001289ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001290ivi_layout_internal_test_la_SOURCES = \
1291 tests/ivi_layout-internal-test.c
1292
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001293ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1294ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001295ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001296ivi_layout_test_la_SOURCES = \
1297 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001298 tests/ivi-test.h \
1299 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001300nodist_ivi_layout_test_la_SOURCES = \
1301 protocol/weston-test-protocol.c \
1302 protocol/weston-test-server-protocol.h
1303
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001304ivi_tests += \
1305 ivi-shell-app.weston
1306
1307ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1308nodist_ivi_shell_app_weston_SOURCES = \
1309 protocol/ivi-application-protocol.c \
1310 protocol/ivi-application-client-protocol.h
1311ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1312ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001313
1314noinst_PROGRAMS += ivi-layout.ivi
1315
1316ivi_layout_ivi_SOURCES = \
1317 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001318 tests/ivi-test.h \
1319 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001320nodist_ivi_layout_ivi_SOURCES = \
1321 protocol/ivi-application-protocol.c \
1322 protocol/ivi-application-client-protocol.h
1323ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1324ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001325endif
1326
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001327if BUILD_SETBACKLIGHT
1328noinst_PROGRAMS += setbacklight
1329setbacklight_SOURCES = \
1330 tests/setbacklight.c \
1331 src/libbacklight.c \
1332 src/libbacklight.h
1333setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1334setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1335endif
1336
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001337all-local: zuctest$(EXEEXT)
1338
1339noinst_PROGRAMS += zuctest$(EXEEXT)
1340
1341zuctest_LDADD = \
1342 libzunitc.la \
1343 libzunitcmain.la
1344
1345zuctest_CFLAGS = \
1346 $(AM_CFLAGS) \
1347 -I$(top_srcdir)/tools/zunitc/inc
1348
1349zuctest_SOURCES = \
1350 tools/zunitc/test/fixtures_test.c \
1351 tools/zunitc/test/zunitc_test.c
1352
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001353EXTRA_DIST += \
1354 tests/weston-tests-env \
1355 tests/internal-screenshot.ini \
1356 tests/reference/internal-screenshot-bad-00.png \
1357 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001358
1359BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001360 protocol/weston-test-protocol.c \
1361 protocol/weston-test-server-protocol.h \
1362 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001363 protocol/text-input-unstable-v1-protocol.c \
1364 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001365
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001366EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001367 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001368 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001369 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001370 protocol/weston-test.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001371 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001372 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001373 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001374
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001375#
1376# manual test modules in tests subdirectory
1377#
1378
1379noinst_LTLIBRARIES += \
1380 surface-screenshot.la
1381
1382surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1383surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001384surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001385surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1386
1387
1388#
1389# Documentation
1390#
1391
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001392man_MANS = weston.1 weston.ini.5
1393
1394if ENABLE_DRM_COMPOSITOR
1395man_MANS += weston-drm.7
1396endif
1397
1398MAN_SUBSTS = \
1399 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1400 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1401 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1402 -e 's|__version__|$(PACKAGE_VERSION)|g'
1403
1404SUFFIXES = .1 .5 .7 .man
1405
1406%.1 %.5 %.7 : man/%.man
1407 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1408
1409EXTRA_DIST += \
1410 man/weston.man \
1411 man/weston-drm.man \
1412 man/weston.ini.man
1413
1414CLEANFILES += $(man_MANS)
1415
Jon A. Cruz179c1862015-07-15 19:22:43 -07001416if ENABLE_DEVDOCS
1417DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1418
1419docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1420 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1421
1422docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1423 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1424endif
1425
1426DOCDIRS = \
1427 docs/developer \
1428 docs/tools
1429
1430$(DOCDIRS):
1431 $(MKDIR_P) $@
1432
1433.PHONY: doc $(DOXYGEN_INDICES)
1434
1435doc: $(DOXYGEN_INDICES)
1436
Jonas Ådahl496adb32015-11-17 16:00:27 +08001437.SECONDEXPANSION:
1438
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001439define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001440$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001441endef
1442
1443define protoname
1444$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1445endef
1446
1447protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001448 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1449
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001450protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001451 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1452
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001453protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001454 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1455
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001456protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1457 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001458
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001459protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1460 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001461
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001462protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1463 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@