blob: 0b7aa35e4be205bc7a52ec89f739990bf2168fdd [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 =
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -08008noinst_LTLIBRARIES =
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -08009BUILT_SOURCES =
Kristian Høgsberge895f142014-01-27 21:46:30 -080010
Derek Foreman2ef9e812015-02-09 09:57:29 -060011AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
Kristian Høgsberg24639cc2013-02-25 13:03:15 -050012
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090013EXTRA_DIST = weston.ini.in ivi-shell/weston.ini.in
Neil Robertse3de16e2013-11-22 16:46:00 +000014
15weston.ini : $(srcdir)/weston.ini.in
16 $(AM_V_GEN)$(SED) \
17 -e 's|@bindir[@]|$(bindir)|g' \
18 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
19 -e 's|@libexecdir[@]|$(libexecdir)|g' \
20 $< > $@
21
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090022ivi-shell/weston.ini : $(srcdir)/ivi-shell/weston.ini.in
Ross Burton2eff22b2015-07-17 12:33:45 +010023 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090024 -e 's|@bindir[@]|$(bindir)|g' \
25 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
Pekka Paalanen8cb25872015-03-24 14:09:57 +020026 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090027 -e 's|@libexecdir[@]|$(libexecdir)|g' \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020028 -e 's|@plugin_prefix[@]||g' \
29 $< > $@
30
31tests/weston-ivi.ini : $(srcdir)/ivi-shell/weston.ini.in
Ross Burton2eff22b2015-07-17 12:33:45 +010032 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020033 -e 's|@bindir[@]|$(bindir)|g' \
34 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
Pekka Paalanen8cb25872015-03-24 14:09:57 +020035 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
Derek Foremanbbdd9bc2015-06-16 13:30:35 -050036 -e 's|@libexecdir[@]|$(abs_builddir)|g' \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020037 -e 's|@plugin_prefix[@]|$(abs_top_builddir)/.libs/|g' \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090038 $< > $@
39
40all-local : weston.ini ivi-shell/weston.ini
Kristian Høgsberg98463742013-12-16 23:12:46 -080041
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080042AM_CFLAGS = $(GCC_CFLAGS)
43
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080044AM_CPPFLAGS = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080045 -I$(top_srcdir)/src \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080046 -I$(top_builddir)/src \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080047 -I$(top_builddir)/clients \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080048 -I$(top_builddir)/tests \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080049 -I$(top_srcdir)/shared \
Quentin Glidic088ba5e2014-02-01 21:39:12 +010050 -I$(top_builddir)/protocol \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080051 -DDATADIR='"$(datadir)"' \
52 -DMODULEDIR='"$(moduledir)"' \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080053 -DLIBEXECDIR='"$(libexecdir)"' \
54 -DBINDIR='"$(bindir)"'
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080055
Pekka Paalanenf3a34532015-03-24 13:51:05 +020056CLEANFILES = weston.ini \
57 ivi-shell/weston.ini \
58 tests/weston-ivi.ini \
Derek Foreman1ce2ef52015-05-26 10:21:03 -050059 internal-screenshot-00.png \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020060 $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080061
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080062bin_PROGRAMS += weston
63
64weston_LDFLAGS = -export-dynamic
65weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
Derek Foreman4ff38742015-06-18 11:43:11 -050066weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080067weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -030068 $(DLOPEN_LIBS) -lm $(CLOCK_GETTIME_LIBS) libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080069
70weston_SOURCES = \
71 src/git-version.h \
72 src/log.c \
73 src/compositor.c \
74 src/compositor.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -070075 src/compositor-drm.h \
Benoit Gschwind934e89a2016-04-27 23:56:42 +020076 src/compositor-fbdev.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -070077 src/compositor-headless.h \
Benoit Gschwindbd573102016-04-22 17:05:26 +020078 src/compositor-rdp.h \
Benoit Gschwind639322a2016-04-28 20:33:15 +020079 src/compositor-wayland.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -070080 src/compositor-x11.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080081 src/input.c \
82 src/data-device.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080083 src/screenshooter.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080084 src/clipboard.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080085 src/zoom.c \
86 src/text-backend.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080087 src/bindings.c \
88 src/animation.c \
89 src/noop-renderer.c \
90 src/pixman-renderer.c \
91 src/pixman-renderer.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +020092 src/timeline.c \
93 src/timeline.h \
94 src/timeline-object.h \
Giulio Camuffobab996e2014-10-12 00:24:25 +030095 src/main.c \
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
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800122nodist_weston_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 \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800133 protocol/scaler-protocol.c \
Pekka Paalanen23ab7152014-09-29 14:08:29 -0400134 protocol/scaler-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
138BUILT_SOURCES += $(nodist_weston_SOURCES)
139
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800140# Track this dependency explicitly instead of using BUILT_SOURCES. We
141# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
142# in case we're building from tarballs.
143
144src/compositor.c : $(top_builddir)/src/git-version.h
145
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800146noinst_LTLIBRARIES += \
147 libsession-helper.la
148
149libsession_helper_la_SOURCES = \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800150 src/launcher-util.c \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700151 src/launcher-util.h \
Derek Foremancb156202015-09-24 09:26:48 -0500152 src/launcher-impl.h \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700153 src/weston-launch.h \
154 src/launcher-weston-launch.c \
155 src/launcher-direct.c
Derek Foreman4ff38742015-06-18 11:43:11 -0500156libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800157libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
158
159if ENABLE_DBUS
160if HAVE_SYSTEMD_LOGIN
161libsession_helper_la_SOURCES += \
162 src/dbus.h \
163 src/dbus.c \
Jasper St. Pierre30bcf352015-09-23 10:46:46 -0700164 src/launcher-logind.c
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800165libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
166libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
167endif
168endif
169
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800170if HAVE_GIT_REPO
171src/git-version.h : $(top_srcdir)/.git/logs/HEAD
172 $(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 -0800173else
174src/git-version.h :
175 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
176
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800177endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800178
179.FORCE :
180
181if BUILD_WESTON_LAUNCH
182bin_PROGRAMS += weston-launch
183weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
184weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
185weston_launch_CFLAGS= \
Derek Foreman4ff38742015-06-18 11:43:11 -0500186 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800187 $(PAM_CFLAGS) \
188 $(SYSTEMD_LOGIN_CFLAGS) \
189 $(LIBDRM_CFLAGS)
190weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
191
192if ENABLE_SETUID_INSTALL
193install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700194 can_suid_files=no; \
195 chown root $(DESTDIR)$(bindir)/weston-launch \
196 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
197 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500198 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700199 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
200 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
201 false; \
202 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800203endif
204
205endif # BUILD_WESTON_LAUNCH
206
207pkgconfigdir = $(libdir)/pkgconfig
208pkgconfig_DATA = src/weston.pc
209
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100210wayland_sessiondir = $(datadir)/wayland-sessions
Ross Burton315476f2015-07-16 20:56:32 +0100211dist_wayland_session_DATA = src/weston.desktop
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100212
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800213westonincludedir = $(includedir)/weston
214westoninclude_HEADERS = \
215 src/version.h \
216 src/compositor.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700217 src/compositor-drm.h \
Benoit Gschwind934e89a2016-04-27 23:56:42 +0200218 src/compositor-fbdev.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700219 src/compositor-headless.h \
Benoit Gschwindbd573102016-04-22 17:05:26 +0200220 src/compositor-rdp.h \
Benoit Gschwind639322a2016-04-28 20:33:15 +0200221 src/compositor-wayland.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700222 src/compositor-x11.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200223 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800224 shared/matrix.h \
225 shared/config-parser.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100226 shared/zalloc.h \
227 shared/platform.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800228
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000229if ENABLE_IVI_SHELL
230westoninclude_HEADERS += \
231 ivi-shell/ivi-layout-export.h
232endif
233
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800234if ENABLE_EGL
235module_LTLIBRARIES += gl-renderer.la
236gl_renderer_la_LDFLAGS = -module -avoid-version
237gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
238gl_renderer_la_CFLAGS = \
239 $(COMPOSITOR_CFLAGS) \
240 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300241 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500242 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800243gl_renderer_la_SOURCES = \
244 src/gl-renderer.h \
245 src/gl-renderer.c \
246 src/vertex-clipping.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700247 src/vertex-clipping.h \
248 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800249endif
250
251if ENABLE_X11_COMPOSITOR
252module_LTLIBRARIES += x11-backend.la
253x11_backend_la_LDFLAGS = -module -avoid-version
254x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800255 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800256x11_backend_la_CFLAGS = \
257 $(COMPOSITOR_CFLAGS) \
258 $(EGL_CFLAGS) \
259 $(PIXMAN_CFLAGS) \
260 $(CAIRO_CFLAGS) \
261 $(X11_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500262 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700263x11_backend_la_SOURCES = \
264 src/compositor-x11.c \
Benoit Gschwinde16acab2016-04-15 20:28:31 -0700265 src/compositor-x11.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700266 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800267endif
268
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100269INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000270INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100271 src/libinput-seat.c \
272 src/libinput-seat.h \
273 src/libinput-device.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700274 src/libinput-device.h \
275 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100276
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800277if ENABLE_DRM_COMPOSITOR
278module_LTLIBRARIES += drm-backend.la
279drm_backend_la_LDFLAGS = -module -avoid-version
280drm_backend_la_LIBADD = \
281 $(COMPOSITOR_LIBS) \
282 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100283 $(INPUT_BACKEND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300284 libshared.la \
285 $(CLOCK_GETTIME_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800286 libsession-helper.la
287drm_backend_la_CFLAGS = \
288 $(COMPOSITOR_CFLAGS) \
289 $(EGL_CFLAGS) \
290 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500291 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800292drm_backend_la_SOURCES = \
293 src/compositor-drm.c \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700294 src/compositor-drm.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100295 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700296 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200297 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800298 src/libbacklight.c \
299 src/libbacklight.h
300
301if ENABLE_VAAPI_RECORDER
302drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
303drm_backend_la_LIBADD += $(LIBVA_LIBS)
304drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
305endif
306endif
307
308if ENABLE_WAYLAND_COMPOSITOR
309module_LTLIBRARIES += wayland-backend.la
310wayland_backend_la_LDFLAGS = -module -avoid-version
311wayland_backend_la_LIBADD = \
312 $(COMPOSITOR_LIBS) \
313 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800314 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800315wayland_backend_la_CFLAGS = \
316 $(COMPOSITOR_CFLAGS) \
317 $(EGL_CFLAGS) \
318 $(PIXMAN_CFLAGS) \
319 $(CAIRO_CFLAGS) \
320 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500321 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700322wayland_backend_la_SOURCES = \
323 src/compositor-wayland.c \
Benoit Gschwind639322a2016-04-28 20:33:15 +0200324 src/compositor-wayland.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700325 shared/helpers.h
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500326nodist_wayland_backend_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800327 protocol/fullscreen-shell-unstable-v1-protocol.c \
328 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800329endif
330
331if ENABLE_RPI_COMPOSITOR
332if INSTALL_RPI_COMPOSITOR
333module_LTLIBRARIES += rpi-backend.la
334else
335noinst_LTLIBRARIES += rpi-backend.la
336endif
337
338rpi_backend_la_LDFLAGS = -module -avoid-version
339rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
340 $(RPI_COMPOSITOR_LIBS) \
341 $(RPI_BCM_HOST_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100342 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800343 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800344 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800345rpi_backend_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500346 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800347 $(COMPOSITOR_CFLAGS) \
348 $(RPI_COMPOSITOR_CFLAGS) \
349 $(RPI_BCM_HOST_CFLAGS)
350rpi_backend_la_SOURCES = \
351 src/compositor-rpi.c \
352 src/rpi-renderer.c \
353 src/rpi-renderer.h \
354 src/rpi-bcm-stubs.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700355 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100356 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800357
358if ENABLE_EGL
359rpi_backend_la_LIBADD += $(EGL_LIBS)
360rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
361endif
362
363endif
364
365if ENABLE_HEADLESS_COMPOSITOR
366module_LTLIBRARIES += headless-backend.la
367headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800368headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500369headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700370headless_backend_la_SOURCES = \
371 src/compositor-headless.c \
Benoit Gschwind3c530942016-04-15 20:28:32 -0700372 src/compositor-headless.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700373 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800374endif
375
376if ENABLE_FBDEV_COMPOSITOR
377module_LTLIBRARIES += fbdev-backend.la
378fbdev_backend_la_LDFLAGS = -module -avoid-version
379fbdev_backend_la_LIBADD = \
380 $(COMPOSITOR_LIBS) \
381 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100382 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800383 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800384 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800385fbdev_backend_la_CFLAGS = \
386 $(COMPOSITOR_CFLAGS) \
387 $(EGL_CFLAGS) \
388 $(FBDEV_COMPOSITOR_CFLAGS) \
389 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500390 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800391fbdev_backend_la_SOURCES = \
392 src/compositor-fbdev.c \
Benoit Gschwind934e89a2016-04-27 23:56:42 +0200393 src/compositor-fbdev.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700394 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100395 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800396endif
397
398if ENABLE_RDP_COMPOSITOR
399module_LTLIBRARIES += rdp-backend.la
400rdp_backend_la_LDFLAGS = -module -avoid-version
401rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
402 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800403 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800404rdp_backend_la_CFLAGS = \
405 $(COMPOSITOR_CFLAGS) \
406 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500407 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700408rdp_backend_la_SOURCES = \
409 src/compositor-rdp.c \
Benoit Gschwindbd573102016-04-22 17:05:26 +0200410 src/compositor-rdp.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700411 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800412endif
413
414if HAVE_LCMS
415module_LTLIBRARIES += cms-static.la
416cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800417cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500418cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800419cms_static_la_SOURCES = \
420 src/cms-static.c \
421 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700422 src/cms-helper.h \
423 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800424if ENABLE_COLORD
425module_LTLIBRARIES += cms-colord.la
426cms_colord_la_LDFLAGS = -module -avoid-version
427cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500428cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800429cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100430 src/cms-colord.c \
431 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700432 src/cms-helper.h \
433 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800434endif
435endif
436
437noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500438spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800439spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
440spring_tool_SOURCES = \
441 src/spring-tool.c \
442 src/animation.c \
443 shared/matrix.c \
444 shared/matrix.h \
445 src/compositor.h
446
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800447if BUILD_CLIENTS
448
449bin_PROGRAMS += weston-terminal weston-info
450
451libexec_PROGRAMS += \
452 weston-desktop-shell \
453 weston-screenshooter \
454 weston-keyboard \
455 weston-simple-im
456
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900457if ENABLE_IVI_SHELL
458libexec_PROGRAMS += \
459 weston-ivi-shell-user-interface
460endif
461
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800462demo_clients = \
463 weston-flower \
464 weston-image \
465 weston-cliptest \
466 weston-dnd \
467 weston-smoke \
468 weston-resizor \
469 weston-eventdemo \
470 weston-clickdot \
471 weston-transformed \
472 weston-fullscreen \
473 weston-stacking \
474 weston-calibrator \
475 weston-scaler
476
477if INSTALL_DEMO_CLIENTS
478bin_PROGRAMS += $(demo_clients)
479else
480noinst_PROGRAMS += $(demo_clients)
481endif
482
483
484if BUILD_SIMPLE_CLIENTS
485demo_clients += \
486 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500487 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800488 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400489 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800490 weston-multi-resource
491
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800492weston_simple_shm_SOURCES = clients/simple-shm.c
493nodist_weston_simple_shm_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800494 protocol/xdg-shell-unstable-v5-protocol.c \
495 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800496 protocol/fullscreen-shell-unstable-v1-protocol.c \
497 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900498 protocol/ivi-application-protocol.c \
499 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800500weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800501weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800502
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500503weston_simple_damage_SOURCES = clients/simple-damage.c
504nodist_weston_simple_damage_SOURCES = \
505 protocol/scaler-protocol.c \
506 protocol/scaler-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800507 protocol/xdg-shell-unstable-v5-protocol.c \
508 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800509 protocol/fullscreen-shell-unstable-v1-protocol.c \
510 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500511weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
512weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
513
Jon A. Cruzb09da242015-06-16 13:15:13 -0700514weston_simple_touch_SOURCES = \
515 clients/simple-touch.c \
516 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800517weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800518weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800519
Jon A. Cruzb09da242015-06-16 13:15:13 -0700520weston_presentation_shm_SOURCES = \
521 clients/presentation-shm.c \
522 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400523nodist_weston_presentation_shm_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200524 protocol/presentation-time-protocol.c \
525 protocol/presentation-time-client-protocol.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400526weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300527weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400528
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800529weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800530weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300531weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800532endif
533
534if BUILD_SIMPLE_EGL_CLIENTS
535demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800536weston_simple_egl_SOURCES = clients/simple-egl.c
537nodist_weston_simple_egl_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800538 protocol/xdg-shell-unstable-v5-protocol.c \
539 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900540 protocol/ivi-application-protocol.c \
541 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800542weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800543weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
544endif
545
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000546if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
547demo_clients += weston-simple-dmabuf-intel
548weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
549nodist_weston_simple_dmabuf_intel_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800550 protocol/xdg-shell-unstable-v5-protocol.c \
551 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800552 protocol/fullscreen-shell-unstable-v1-protocol.c \
553 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800554 protocol/linux-dmabuf-unstable-v1-protocol.c \
555 protocol/linux-dmabuf-unstable-v1-client-protocol.h
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000556weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
557weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800558BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200559endif
560
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000561if BUILD_SIMPLE_DMABUF_V4L_CLIENT
562demo_clients += weston-simple-dmabuf-v4l
563weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
564nodist_weston_simple_dmabuf_v4l_SOURCES = \
565 protocol/xdg-shell-unstable-v5-protocol.c \
566 protocol/xdg-shell-unstable-v5-client-protocol.h \
567 protocol/fullscreen-shell-unstable-v1-protocol.c \
568 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
569 protocol/linux-dmabuf-unstable-v1-protocol.c \
570 protocol/linux-dmabuf-unstable-v1-client-protocol.h
571weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
572weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
573BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
574endif
575
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800576noinst_LTLIBRARIES += libtoytoolkit.la
577
578libtoytoolkit_la_SOURCES = \
579 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700580 clients/window.h \
581 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800582
583nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100584 protocol/text-cursor-position-protocol.c \
585 protocol/text-cursor-position-client-protocol.h \
586 protocol/scaler-protocol.c \
587 protocol/scaler-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800588 protocol/xdg-shell-unstable-v5-protocol.c \
589 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900590 protocol/ivi-application-protocol.c \
591 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500592
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800593BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
594
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800595
596libtoytoolkit_la_LIBADD = \
597 $(CLIENT_LIBS) \
598 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300599 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800600libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800601
602weston_flower_SOURCES = clients/flower.c
603weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800604weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800605
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100606weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800607 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800608nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800609 protocol/weston-screenshooter-protocol.c \
610 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800611weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800612weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800613
Jon A. Cruzb09da242015-06-16 13:15:13 -0700614weston_terminal_SOURCES = \
615 clients/terminal.c \
616 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800617weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800618weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800619
620weston_image_SOURCES = clients/image.c
621weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800622weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800623
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300624weston_cliptest_SOURCES = \
625 clients/cliptest.c \
626 src/vertex-clipping.c \
627 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800628weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800629weston_cliptest_LDADD = libtoytoolkit.la
630
Jon A. Cruzb09da242015-06-16 13:15:13 -0700631weston_dnd_SOURCES = \
632 clients/dnd.c \
633 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800634weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800635weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800636
637weston_smoke_SOURCES = clients/smoke.c
638weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800639weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800640
641weston_resizor_SOURCES = clients/resizor.c
642weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800643weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800644
645weston_scaler_SOURCES = clients/scaler.c
646weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800647weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800648
649if HAVE_CAIRO_GLESV2
650demo_clients += weston-nested weston-nested-client
651
Jon A. Cruzb09da242015-06-16 13:15:13 -0700652weston_nested_SOURCES = \
653 clients/nested.c \
654 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800655weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800656weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800657
658weston_nested_client_SOURCES = clients/nested-client.c
659weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800660weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800661endif
662
Jon A. Cruzb09da242015-06-16 13:15:13 -0700663weston_eventdemo_SOURCES = \
664 clients/eventdemo.c \
665 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800666weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800667weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800668
Jon A. Cruzb09da242015-06-16 13:15:13 -0700669weston_clickdot_SOURCES = \
670 clients/clickdot.c \
671 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800672weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800673weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800674
675weston_transformed_SOURCES = clients/transformed.c
676weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800677weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800678
679weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500680nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800681 protocol/fullscreen-shell-unstable-v1-protocol.c \
682 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800683weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800684weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800685
Jon A. Cruzb09da242015-06-16 13:15:13 -0700686weston_stacking_SOURCES = \
687 clients/stacking.c \
688 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800689weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800690weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800691
Jon A. Cruzb09da242015-06-16 13:15:13 -0700692weston_calibrator_SOURCES = \
693 clients/calibrator.c \
694 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800695 shared/matrix.c \
696 shared/matrix.h
697weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800698weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800699
700if BUILD_SUBSURFACES_CLIENT
701demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700702weston_subsurfaces_SOURCES = \
703 clients/subsurfaces.c \
704 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800705weston_subsurfaces_CFLAGS = \
706 $(AM_CFLAGS) \
707 $(SIMPLE_EGL_CLIENT_CFLAGS) \
708 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800709weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
710endif
711
712if HAVE_PANGO
713demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700714weston_editor_SOURCES = \
715 clients/editor.c \
716 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800717nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800718 protocol/text-input-unstable-v1-protocol.c \
719 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800720weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800721weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800722endif
723
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800724weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800725nodist_weston_keyboard_SOURCES = \
726 protocol/weston-desktop-shell-client-protocol.h \
727 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800728 protocol/input-method-unstable-v1-protocol.c \
729 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800730weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800731weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800732
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800733weston_simple_im_SOURCES = clients/weston-simple-im.c
734nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800735 protocol/input-method-unstable-v1-protocol.c \
736 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800737weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800738weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800739
Jon A. Cruzb09da242015-06-16 13:15:13 -0700740weston_info_SOURCES = \
741 clients/weston-info.c \
742 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400743nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200744 protocol/presentation-time-protocol.c \
745 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800746weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200747weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800748
Jon A. Cruzb09da242015-06-16 13:15:13 -0700749weston_desktop_shell_SOURCES = \
750 clients/desktop-shell.c \
751 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800752nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800753 protocol/weston-desktop-shell-client-protocol.h \
754 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800755weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800756weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800757
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900758if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700759weston_ivi_shell_user_interface_SOURCES = \
760 clients/ivi-shell-user-interface.c \
761 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900762nodist_weston_ivi_shell_user_interface_SOURCES = \
763 protocol/ivi-hmi-controller-client-protocol.h \
764 protocol/ivi-hmi-controller-protocol.c \
765 protocol/ivi-application-client-protocol.h \
766 protocol/ivi-application-protocol.c
767weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
768weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
769endif
770
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800771if BUILD_FULL_GL_CLIENTS
772demo_clients += weston-gears
773weston_gears_SOURCES = clients/gears.c
774weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800775weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800776endif
777
778endif
779
780BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800781 protocol/weston-screenshooter-protocol.c \
782 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100783 protocol/text-cursor-position-client-protocol.h \
784 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800785 protocol/text-input-unstable-v1-protocol.c \
786 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800787 protocol/input-method-unstable-v1-protocol.c \
788 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800789 protocol/weston-desktop-shell-client-protocol.h \
790 protocol/weston-desktop-shell-protocol.c \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100791 protocol/scaler-client-protocol.h \
792 protocol/scaler-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200793 protocol/presentation-time-protocol.c \
794 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800795 protocol/fullscreen-shell-unstable-v1-protocol.c \
796 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800797 protocol/xdg-shell-unstable-v5-protocol.c \
798 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900799 protocol/ivi-hmi-controller-protocol.c \
800 protocol/ivi-hmi-controller-client-protocol.h \
801 protocol/ivi-application-protocol.c \
802 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800803
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800804westondatadir = $(datadir)/weston
805dist_westondata_DATA = \
806 data/wayland.svg \
807 data/wayland.png \
808 data/pattern.png \
809 data/terminal.png \
810 data/border.png \
811 data/icon_window.png \
812 data/sign_close.png \
813 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100814 data/sign_minimize.png
815
816if ENABLE_IVI_SHELL
817dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900818 data/background.png \
819 data/tiling.png \
820 data/fullscreen.png \
821 data/panel.png \
822 data/random.png \
823 data/sidebyside.png \
824 data/home.png \
825 data/icon_ivi_clickdot.png \
826 data/icon_ivi_flower.png \
827 data/icon_ivi_simple-egl.png \
828 data/icon_ivi_simple-shm.png \
829 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100830endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800831
832
833if BUILD_WCAP_TOOLS
834bin_PROGRAMS += wcap-decode
835
836wcap_decode_SOURCES = \
837 wcap/main.c \
838 wcap/wcap-decode.c \
839 wcap/wcap-decode.h
840
Derek Foreman4ff38742015-06-18 11:43:11 -0500841wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800842wcap_decode_LDADD = $(WCAP_LIBS)
843endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800844
845
846if ENABLE_DESKTOP_SHELL
847
848module_LTLIBRARIES += desktop-shell.la
849
850desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100851 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800852 -I$(top_srcdir)/shared \
853 -I$(top_srcdir)/src \
854 -I$(top_builddir)/src \
855 -I$(top_builddir)/desktop-shell \
856 -DDATADIR='"$(datadir)"' \
857 -DMODULEDIR='"$(moduledir)"' \
858 -DLIBEXECDIR='"$(libexecdir)"' \
859 -DIN_WESTON
860
861desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800862desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500863desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800864desktop_shell_la_SOURCES = \
865 desktop-shell/shell.h \
866 desktop-shell/shell.c \
867 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700868 desktop-shell/input-panel.c \
869 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800870nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800871 protocol/weston-desktop-shell-protocol.c \
872 protocol/weston-desktop-shell-server-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800873 protocol/xdg-shell-unstable-v5-protocol.c \
874 protocol/xdg-shell-unstable-v5-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800875
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800876BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800877endif
878
Jason Ekstrand946a9482014-04-02 19:53:47 -0500879if ENABLE_FULLSCREEN_SHELL
880
881module_LTLIBRARIES += fullscreen-shell.la
882
883fullscreen_shell_la_CPPFLAGS = \
884 -I$(top_builddir)/protocol \
885 -I$(top_srcdir)/shared \
886 -I$(top_srcdir)/src \
887 -I$(top_builddir)/src \
888 -DIN_WESTON
889
890fullscreen_shell_la_LDFLAGS = -module -avoid-version
891fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500892fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500893fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700894 fullscreen-shell/fullscreen-shell.c \
895 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500896nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800897 protocol/fullscreen-shell-unstable-v1-protocol.c \
898 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500899
900BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
901endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800902
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900903if ENABLE_IVI_SHELL
904
905module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900906 $(ivi_shell) \
907 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900908
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900909ivi_shell = ivi-shell.la
910ivi_shell_la_LDFLAGS = -module -avoid-version
911ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500912ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900913ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900914 ivi-shell/ivi-layout-export.h \
915 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +0200916 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900917 ivi-shell/ivi-layout.c \
918 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900919 ivi-shell/ivi-shell.h \
920 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700921 ivi-shell/input-panel-ivi.c \
922 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900923nodist_ivi_shell_la_SOURCES = \
924 protocol/ivi-application-protocol.c \
925 protocol/ivi-application-server-protocol.h
926
927BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
928
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900929hmi_controller = hmi-controller.la
930hmi_controller_la_LDFLAGS = -module -avoid-version
931hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500932hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900933hmi_controller_la_SOURCES = \
934 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700935 ivi-shell/hmi-controller.c \
936 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900937nodist_hmi_controller_la_SOURCES = \
938 protocol/ivi-hmi-controller-protocol.c \
939 protocol/ivi-hmi-controller-server-protocol.h
940
941BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
942
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900943endif
944
945
Jason Ekstrand47928d82014-04-02 19:54:01 -0500946if ENABLE_SCREEN_SHARING
947
948module_LTLIBRARIES += screen-share.la
949
950screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
951screen_share_la_LDFLAGS = -module -avoid-version
952screen_share_la_LIBADD = \
953 $(COMPOSITOR_LIBS) \
954 $(SCREEN_SHARE_LIBS) \
955 libshared-cairo.la
956screen_share_la_CFLAGS = \
957 $(COMPOSITOR_CFLAGS) \
958 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500959 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -0500960screen_share_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700961 src/screen-share.c \
962 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500963nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800964 protocol/fullscreen-shell-unstable-v1-protocol.c \
965 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500966
967endif
968
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800969if ENABLE_XWAYLAND
970
971module_LTLIBRARIES += xwayland.la
972
973xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100974 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800975 -I$(top_srcdir)/shared \
976 -I$(top_srcdir)/src \
977 -I$(top_builddir)/src \
978 -I$(top_builddir)/xwayland \
979 -DDATADIR='"$(datadir)"' \
980 -DMODULEDIR='"$(moduledir)"' \
981 -DLIBEXECDIR='"$(libexecdir)"' \
982 -DXSERVER_PATH='"@XSERVER_PATH@"'
983
984xwayland_la_LDFLAGS = -module -avoid-version
985xwayland_la_LIBADD = \
986 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800987 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800988xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500989 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800990 $(COMPOSITOR_CFLAGS) \
991 $(PIXMAN_CFLAGS) \
992 $(CAIRO_CFLAGS)
993xwayland_la_SOURCES = \
994 xwayland/xwayland.h \
995 xwayland/window-manager.c \
996 xwayland/selection.c \
997 xwayland/dnd.c \
998 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800999 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001000 xwayland/hash.h \
1001 shared/helpers.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001002endif
1003
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001004
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001005#
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001006# Shared utilities
1007#
1008
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001009noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
1010 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001011
Derek Foreman4ff38742015-06-18 11:43:11 -05001012libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001013
1014libshared_la_SOURCES = \
1015 shared/config-parser.c \
1016 shared/option-parser.c \
1017 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +02001018 shared/file-util.c \
1019 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001020 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001021 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -07001022 shared/os-compatibility.h \
1023 shared/xalloc.c \
1024 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001025
1026libshared_cairo_la_CFLAGS = \
1027 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001028 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001029 $(COMPOSITOR_CFLAGS) \
1030 $(PIXMAN_CFLAGS) \
1031 $(CAIRO_CFLAGS) \
1032 $(PNG_CFLAGS) \
1033 $(WEBP_CFLAGS)
1034
1035libshared_cairo_la_LIBADD = \
1036 $(PIXMAN_LIBS) \
1037 $(CAIRO_LIBS) \
1038 $(PNG_LIBS) \
1039 $(WEBP_LIBS) \
1040 $(JPEG_LIBS)
1041
1042libshared_cairo_la_SOURCES = \
1043 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001044 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001045 shared/image-loader.c \
1046 shared/image-loader.h \
1047 shared/cairo-util.c \
1048 shared/frame.c \
1049 shared/cairo-util.h
1050
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001051libzunitc_la_SOURCES = \
1052 tools/zunitc/inc/zunitc/zunitc.h \
1053 tools/zunitc/inc/zunitc/zunitc_impl.h \
1054 tools/zunitc/src/zuc_base_logger.c \
1055 tools/zunitc/src/zuc_base_logger.h \
1056 tools/zunitc/src/zuc_collector.c \
1057 tools/zunitc/src/zuc_collector.h \
1058 tools/zunitc/src/zuc_context.h \
1059 tools/zunitc/src/zuc_event.h \
1060 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001061 tools/zunitc/src/zuc_junit_reporter.c \
1062 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001063 tools/zunitc/src/zuc_types.h \
1064 tools/zunitc/src/zunitc_impl.c \
1065 shared/helpers.h
1066
1067libzunitc_la_CFLAGS = \
1068 $(AM_CFLAGS) \
1069 -I$(top_srcdir)/tools/zunitc/inc
1070
1071libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001072 libshared.la \
1073 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001074
Jon A. Cruz646aef52015-07-15 19:22:41 -07001075if ENABLE_JUNIT_XML
1076libzunitc_la_CFLAGS += \
1077 $(LIBXML2_CFLAGS)
1078libzunitc_la_LIBADD += \
1079 $(LIBXML2_LIBS)
1080endif
1081
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001082libzunitcmain_la_SOURCES = \
1083 tools/zunitc/src/main.c
1084
1085libzunitcmain_la_CFLAGS = \
1086 $(AM_CFLAGS) \
1087 -I$(top_srcdir)/tools/zunitc/inc
1088
1089libzunitcmain_la_LIBADD = \
1090 libzunitc.la \
1091 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001092
1093#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001094# tests subdirectory
1095#
1096
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001097TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1098
1099internal_tests = \
1100 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001101
1102shared_tests = \
1103 config-parser.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001104 vertex-clip.test \
1105 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001106
1107module_tests = \
1108 surface-test.la \
1109 surface-global-test.la
1110
1111weston_tests = \
1112 bad_buffer.weston \
1113 keyboard.weston \
1114 event.weston \
1115 button.weston \
1116 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001117 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001118 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001119 subsurface.weston \
1120 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001121
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001122ivi_tests =
1123
1124$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001125
1126AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001127 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1128 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001129
1130TEST_EXTENSIONS = .la .weston
1131LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1132WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1133
1134clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001135 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001136 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001137
1138# To remove when automake 1.11 support is dropped
1139export abs_builddir
1140
1141noinst_LTLIBRARIES += \
1142 weston-test.la \
1143 $(module_tests) \
1144 libtest-runner.la \
1145 libtest-client.la
1146
1147noinst_PROGRAMS += \
1148 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001149 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001150 $(shared_tests) \
1151 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001152 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001153 matrix-test
1154
1155test_module_ldflags = \
1156 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1157
1158surface_global_test_la_SOURCES = tests/surface-global-test.c
1159surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001160surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001161
1162surface_test_la_SOURCES = tests/surface-test.c
1163surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001164surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001165
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001166weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001167weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001168weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001169weston_test_la_SOURCES = \
1170 tests/weston-test.c \
1171 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001172nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001173 protocol/weston-test-protocol.c \
1174 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001175
1176if ENABLE_EGL
1177weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1178weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1179endif
1180
1181libtest_runner_la_SOURCES = \
1182 tests/weston-test-runner.c \
1183 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001184libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001185
1186config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001187config_parser_test_LDADD = \
1188 libshared.la \
1189 $(COMPOSITOR_LIBS) \
1190 libzunitc.la \
1191 libzunitcmain.la
1192config_parser_test_CFLAGS = \
1193 $(AM_CFLAGS) \
1194 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001195
1196vertex_clip_test_SOURCES = \
1197 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001198 shared/helpers.h \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001199 src/vertex-clipping.c \
1200 src/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001201vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001202
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001203libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001204 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001205 tests/weston-test-client-helper.h
1206nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001207 protocol/weston-test-protocol.c \
1208 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001209libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1210libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) $(CAIRO_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001211
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001212
1213#
1214# Internal tests - tests functionality of the testsuite itself
1215#
1216
1217internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001218internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1219internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001220
1221
1222#
1223# Weston Tests
1224#
1225
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001226bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001227bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001228bad_buffer_weston_LDADD = libtest-client.la
1229
1230keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001231keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001232keyboard_weston_LDADD = libtest-client.la
1233
1234event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001235event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001236event_weston_LDADD = libtest-client.la
1237
1238button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001239button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001240button_weston_LDADD = libtest-client.la
1241
Marek Chalupa5fd81402015-03-30 09:21:29 -04001242devices_weston_SOURCES = tests/devices-test.c
1243devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1244devices_weston_LDADD = libtest-client.la
1245
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001246text_weston_SOURCES = tests/text-test.c
1247nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001248 protocol/text-input-unstable-v1-protocol.c \
1249 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001250text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001251text_weston_LDADD = libtest-client.la
1252
1253subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001254subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001255subsurface_weston_LDADD = libtest-client.la
1256
Jon A. Cruzb09da242015-06-16 13:15:13 -07001257presentation_weston_SOURCES = \
1258 tests/presentation-test.c \
1259 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001260nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001261 protocol/presentation-time-protocol.c \
1262 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001263presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1264presentation_weston_LDADD = libtest-client.la
1265
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001266roles_weston_SOURCES = tests/roles-test.c
1267roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1268roles_weston_LDADD = libtest-client.la
1269
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001270if ENABLE_EGL
1271weston_tests += buffer-count.weston
1272buffer_count_weston_SOURCES = tests/buffer-count-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001273buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001274buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1275endif
1276
1277if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001278weston_tests += xwayland-test.weston
1279xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001280xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001281xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001282endif
1283
1284matrix_test_SOURCES = \
1285 tests/matrix-test.c \
1286 shared/matrix.c \
1287 shared/matrix.h
1288matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001289matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001290
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001291if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001292module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001293 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001294 ivi-layout-test.la
1295
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001296ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1297ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001298ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001299ivi_layout_internal_test_la_SOURCES = \
1300 tests/ivi_layout-internal-test.c
1301
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001302ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1303ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001304ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001305ivi_layout_test_la_SOURCES = \
1306 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001307 tests/ivi-test.h \
1308 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001309nodist_ivi_layout_test_la_SOURCES = \
1310 protocol/weston-test-protocol.c \
1311 protocol/weston-test-server-protocol.h
1312
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001313ivi_tests += \
1314 ivi-shell-app.weston
1315
1316ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1317nodist_ivi_shell_app_weston_SOURCES = \
1318 protocol/ivi-application-protocol.c \
1319 protocol/ivi-application-client-protocol.h
1320ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1321ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001322
1323noinst_PROGRAMS += ivi-layout.ivi
1324
1325ivi_layout_ivi_SOURCES = \
1326 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001327 tests/ivi-test.h \
1328 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001329nodist_ivi_layout_ivi_SOURCES = \
1330 protocol/ivi-application-protocol.c \
1331 protocol/ivi-application-client-protocol.h
1332ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1333ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001334endif
1335
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001336if BUILD_SETBACKLIGHT
1337noinst_PROGRAMS += setbacklight
1338setbacklight_SOURCES = \
1339 tests/setbacklight.c \
1340 src/libbacklight.c \
1341 src/libbacklight.h
1342setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1343setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1344endif
1345
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001346all-local: zuctest$(EXEEXT)
1347
1348noinst_PROGRAMS += zuctest$(EXEEXT)
1349
1350zuctest_LDADD = \
1351 libzunitc.la \
1352 libzunitcmain.la
1353
1354zuctest_CFLAGS = \
1355 $(AM_CFLAGS) \
1356 -I$(top_srcdir)/tools/zunitc/inc
1357
1358zuctest_SOURCES = \
1359 tools/zunitc/test/fixtures_test.c \
1360 tools/zunitc/test/zunitc_test.c
1361
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001362EXTRA_DIST += \
1363 tests/weston-tests-env \
1364 tests/internal-screenshot.ini \
1365 tests/reference/internal-screenshot-bad-00.png \
1366 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001367
1368BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001369 protocol/weston-test-protocol.c \
1370 protocol/weston-test-server-protocol.h \
1371 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001372 protocol/text-input-unstable-v1-protocol.c \
1373 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001374
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001375EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001376 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001377 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001378 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001379 protocol/weston-test.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001380 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001381 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001382 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001383
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001384#
1385# manual test modules in tests subdirectory
1386#
1387
1388noinst_LTLIBRARIES += \
1389 surface-screenshot.la
1390
1391surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1392surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001393surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001394surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1395
1396
1397#
1398# Documentation
1399#
1400
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001401man_MANS = weston.1 weston.ini.5
1402
1403if ENABLE_DRM_COMPOSITOR
1404man_MANS += weston-drm.7
1405endif
1406
1407MAN_SUBSTS = \
1408 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1409 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1410 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1411 -e 's|__version__|$(PACKAGE_VERSION)|g'
1412
1413SUFFIXES = .1 .5 .7 .man
1414
1415%.1 %.5 %.7 : man/%.man
1416 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1417
1418EXTRA_DIST += \
1419 man/weston.man \
1420 man/weston-drm.man \
1421 man/weston.ini.man
1422
1423CLEANFILES += $(man_MANS)
1424
Jon A. Cruz179c1862015-07-15 19:22:43 -07001425if ENABLE_DEVDOCS
1426DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1427
1428docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1429 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1430
1431docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1432 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1433endif
1434
1435DOCDIRS = \
1436 docs/developer \
1437 docs/tools
1438
1439$(DOCDIRS):
1440 $(MKDIR_P) $@
1441
1442.PHONY: doc $(DOXYGEN_INDICES)
1443
1444doc: $(DOXYGEN_INDICES)
1445
Jonas Ådahl496adb32015-11-17 16:00:27 +08001446.SECONDEXPANSION:
1447
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001448define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001449$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001450endef
1451
1452define protoname
1453$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1454endef
1455
1456protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001457 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1458
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001459protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001460 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1461
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001462protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001463 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1464
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001465protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1466 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001467
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001468protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1469 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001470
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001471protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1472 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@