blob: 53458291cc33d2584b2a41dc1315713f708c33d5 [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 \
Benoit Gschwind934e89a2016-04-27 23:56:42 +020075 src/compositor-headless.h \
76 src/compositor-fbdev.h \
Benoit Gschwindbd573102016-04-22 17:05:26 +020077 src/compositor-rdp.h \
Benoit Gschwinde16acab2016-04-15 20:28:31 -070078 src/compositor-x11.h \
Benoit Gschwind639322a2016-04-28 20:33:15 +020079 src/compositor-wayland.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080080 src/input.c \
81 src/data-device.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080082 src/screenshooter.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080083 src/clipboard.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080084 src/zoom.c \
85 src/text-backend.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080086 src/bindings.c \
87 src/animation.c \
88 src/noop-renderer.c \
89 src/pixman-renderer.c \
90 src/pixman-renderer.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +020091 src/timeline.c \
92 src/timeline.h \
93 src/timeline-object.h \
Giulio Camuffobab996e2014-10-12 00:24:25 +030094 src/main.c \
Pekka Paalanen230f3b12014-09-29 14:18:40 -040095 src/linux-dmabuf.c \
96 src/linux-dmabuf.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -070097 shared/helpers.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080098 shared/matrix.c \
99 shared/matrix.h \
Pekka Paalanenaa21f622015-07-03 15:44:50 +0300100 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800101 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100102 shared/platform.h \
Egor Starkov94fd9a52015-09-29 14:50:41 +0300103 src/weston-egl-ext.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300104
105if SYSTEMD_NOTIFY_SUPPORT
106module_LTLIBRARIES += systemd-notify.la
107systemd_notify_la_LDFLAGS = -module -avoid-version
108systemd_notify_la_LIBADD = $(SYSTEMD_DAEMON_LIBS)
109systemd_notify_la_CFLAGS = \
Pekka Paalanenaff703e2016-04-05 14:08:11 +0300110 $(COMPOSITOR_CFLAGS) \
111 $(SYSTEMD_DAEMON_CFLAGS) \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300112 $(PIXMAN_CFLAGS) \
113 $(AM_CFLAGS)
114systemd_notify_la_SOURCES = \
115 src/systemd-notify.c \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300116 shared/helpers.h \
117 shared/zalloc.h \
Bryce Harringtona0dd5b42015-09-25 15:16:25 -0700118 src/compositor.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300119endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800120
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800121nodist_weston_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800122 protocol/weston-screenshooter-protocol.c \
123 protocol/weston-screenshooter-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800124 protocol/text-cursor-position-protocol.c \
125 protocol/text-cursor-position-server-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800126 protocol/text-input-unstable-v1-protocol.c \
127 protocol/text-input-unstable-v1-server-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800128 protocol/input-method-unstable-v1-protocol.c \
129 protocol/input-method-unstable-v1-server-protocol.h \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200130 protocol/presentation-time-protocol.c \
131 protocol/presentation-time-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800132 protocol/scaler-protocol.c \
Pekka Paalanen23ab7152014-09-29 14:08:29 -0400133 protocol/scaler-server-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800134 protocol/linux-dmabuf-unstable-v1-protocol.c \
135 protocol/linux-dmabuf-unstable-v1-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800136
137BUILT_SOURCES += $(nodist_weston_SOURCES)
138
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800139# Track this dependency explicitly instead of using BUILT_SOURCES. We
140# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
141# in case we're building from tarballs.
142
143src/compositor.c : $(top_builddir)/src/git-version.h
144
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800145noinst_LTLIBRARIES += \
146 libsession-helper.la
147
148libsession_helper_la_SOURCES = \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800149 src/launcher-util.c \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700150 src/launcher-util.h \
Derek Foremancb156202015-09-24 09:26:48 -0500151 src/launcher-impl.h \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700152 src/weston-launch.h \
153 src/launcher-weston-launch.c \
154 src/launcher-direct.c
Derek Foreman4ff38742015-06-18 11:43:11 -0500155libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800156libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
157
158if ENABLE_DBUS
159if HAVE_SYSTEMD_LOGIN
160libsession_helper_la_SOURCES += \
161 src/dbus.h \
162 src/dbus.c \
Jasper St. Pierre30bcf352015-09-23 10:46:46 -0700163 src/launcher-logind.c
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800164libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
165libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
166endif
167endif
168
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800169if HAVE_GIT_REPO
170src/git-version.h : $(top_srcdir)/.git/logs/HEAD
171 $(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 -0800172else
173src/git-version.h :
174 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
175
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800176endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800177
178.FORCE :
179
180if BUILD_WESTON_LAUNCH
181bin_PROGRAMS += weston-launch
182weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
183weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
184weston_launch_CFLAGS= \
Derek Foreman4ff38742015-06-18 11:43:11 -0500185 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800186 $(PAM_CFLAGS) \
187 $(SYSTEMD_LOGIN_CFLAGS) \
188 $(LIBDRM_CFLAGS)
189weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
190
191if ENABLE_SETUID_INSTALL
192install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700193 can_suid_files=no; \
194 chown root $(DESTDIR)$(bindir)/weston-launch \
195 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
196 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500197 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700198 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
199 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
200 false; \
201 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800202endif
203
204endif # BUILD_WESTON_LAUNCH
205
206pkgconfigdir = $(libdir)/pkgconfig
207pkgconfig_DATA = src/weston.pc
208
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100209wayland_sessiondir = $(datadir)/wayland-sessions
Ross Burton315476f2015-07-16 20:56:32 +0100210dist_wayland_session_DATA = src/weston.desktop
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100211
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800212westonincludedir = $(includedir)/weston
213westoninclude_HEADERS = \
214 src/version.h \
215 src/compositor.h \
Benoit Gschwind3c530942016-04-15 20:28:32 -0700216 src/compositor-headless.h \
Benoit Gschwind934e89a2016-04-27 23:56:42 +0200217 src/compositor-fbdev.h \
Benoit Gschwindbd573102016-04-22 17:05:26 +0200218 src/compositor-rdp.h \
Benoit Gschwinde16acab2016-04-15 20:28:31 -0700219 src/compositor-x11.h \
Benoit Gschwind639322a2016-04-28 20:33:15 +0200220 src/compositor-wayland.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200221 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800222 shared/matrix.h \
223 shared/config-parser.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100224 shared/zalloc.h \
225 shared/platform.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800226
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000227if ENABLE_IVI_SHELL
228westoninclude_HEADERS += \
229 ivi-shell/ivi-layout-export.h
230endif
231
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800232if ENABLE_EGL
233module_LTLIBRARIES += gl-renderer.la
234gl_renderer_la_LDFLAGS = -module -avoid-version
235gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
236gl_renderer_la_CFLAGS = \
237 $(COMPOSITOR_CFLAGS) \
238 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300239 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500240 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800241gl_renderer_la_SOURCES = \
242 src/gl-renderer.h \
243 src/gl-renderer.c \
244 src/vertex-clipping.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700245 src/vertex-clipping.h \
246 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800247endif
248
249if ENABLE_X11_COMPOSITOR
250module_LTLIBRARIES += x11-backend.la
251x11_backend_la_LDFLAGS = -module -avoid-version
252x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800253 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800254x11_backend_la_CFLAGS = \
255 $(COMPOSITOR_CFLAGS) \
256 $(EGL_CFLAGS) \
257 $(PIXMAN_CFLAGS) \
258 $(CAIRO_CFLAGS) \
259 $(X11_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500260 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700261x11_backend_la_SOURCES = \
262 src/compositor-x11.c \
Benoit Gschwinde16acab2016-04-15 20:28:31 -0700263 src/compositor-x11.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700264 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800265endif
266
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100267INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000268INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100269 src/libinput-seat.c \
270 src/libinput-seat.h \
271 src/libinput-device.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700272 src/libinput-device.h \
273 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100274
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800275if ENABLE_DRM_COMPOSITOR
276module_LTLIBRARIES += drm-backend.la
277drm_backend_la_LDFLAGS = -module -avoid-version
278drm_backend_la_LIBADD = \
279 $(COMPOSITOR_LIBS) \
280 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100281 $(INPUT_BACKEND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300282 libshared.la \
283 $(CLOCK_GETTIME_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800284 libsession-helper.la
285drm_backend_la_CFLAGS = \
286 $(COMPOSITOR_CFLAGS) \
287 $(EGL_CFLAGS) \
288 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500289 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800290drm_backend_la_SOURCES = \
291 src/compositor-drm.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100292 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700293 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200294 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800295 src/libbacklight.c \
296 src/libbacklight.h
297
298if ENABLE_VAAPI_RECORDER
299drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
300drm_backend_la_LIBADD += $(LIBVA_LIBS)
301drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
302endif
303endif
304
305if ENABLE_WAYLAND_COMPOSITOR
306module_LTLIBRARIES += wayland-backend.la
307wayland_backend_la_LDFLAGS = -module -avoid-version
308wayland_backend_la_LIBADD = \
309 $(COMPOSITOR_LIBS) \
310 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800311 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800312wayland_backend_la_CFLAGS = \
313 $(COMPOSITOR_CFLAGS) \
314 $(EGL_CFLAGS) \
315 $(PIXMAN_CFLAGS) \
316 $(CAIRO_CFLAGS) \
317 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500318 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700319wayland_backend_la_SOURCES = \
320 src/compositor-wayland.c \
Benoit Gschwind639322a2016-04-28 20:33:15 +0200321 src/compositor-wayland.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700322 shared/helpers.h
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500323nodist_wayland_backend_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800324 protocol/fullscreen-shell-unstable-v1-protocol.c \
325 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800326endif
327
328if ENABLE_RPI_COMPOSITOR
329if INSTALL_RPI_COMPOSITOR
330module_LTLIBRARIES += rpi-backend.la
331else
332noinst_LTLIBRARIES += rpi-backend.la
333endif
334
335rpi_backend_la_LDFLAGS = -module -avoid-version
336rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
337 $(RPI_COMPOSITOR_LIBS) \
338 $(RPI_BCM_HOST_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100339 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800340 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800341 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800342rpi_backend_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500343 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800344 $(COMPOSITOR_CFLAGS) \
345 $(RPI_COMPOSITOR_CFLAGS) \
346 $(RPI_BCM_HOST_CFLAGS)
347rpi_backend_la_SOURCES = \
348 src/compositor-rpi.c \
349 src/rpi-renderer.c \
350 src/rpi-renderer.h \
351 src/rpi-bcm-stubs.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700352 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100353 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800354
355if ENABLE_EGL
356rpi_backend_la_LIBADD += $(EGL_LIBS)
357rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
358endif
359
360endif
361
362if ENABLE_HEADLESS_COMPOSITOR
363module_LTLIBRARIES += headless-backend.la
364headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800365headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500366headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700367headless_backend_la_SOURCES = \
368 src/compositor-headless.c \
Benoit Gschwind3c530942016-04-15 20:28:32 -0700369 src/compositor-headless.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700370 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800371endif
372
373if ENABLE_FBDEV_COMPOSITOR
374module_LTLIBRARIES += fbdev-backend.la
375fbdev_backend_la_LDFLAGS = -module -avoid-version
376fbdev_backend_la_LIBADD = \
377 $(COMPOSITOR_LIBS) \
378 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100379 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800380 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800381 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800382fbdev_backend_la_CFLAGS = \
383 $(COMPOSITOR_CFLAGS) \
384 $(EGL_CFLAGS) \
385 $(FBDEV_COMPOSITOR_CFLAGS) \
386 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500387 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800388fbdev_backend_la_SOURCES = \
389 src/compositor-fbdev.c \
Benoit Gschwind934e89a2016-04-27 23:56:42 +0200390 src/compositor-fbdev.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700391 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100392 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800393endif
394
395if ENABLE_RDP_COMPOSITOR
396module_LTLIBRARIES += rdp-backend.la
397rdp_backend_la_LDFLAGS = -module -avoid-version
398rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
399 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800400 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800401rdp_backend_la_CFLAGS = \
402 $(COMPOSITOR_CFLAGS) \
403 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500404 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700405rdp_backend_la_SOURCES = \
406 src/compositor-rdp.c \
Benoit Gschwindbd573102016-04-22 17:05:26 +0200407 src/compositor-rdp.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700408 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800409endif
410
411if HAVE_LCMS
412module_LTLIBRARIES += cms-static.la
413cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800414cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500415cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800416cms_static_la_SOURCES = \
417 src/cms-static.c \
418 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700419 src/cms-helper.h \
420 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800421if ENABLE_COLORD
422module_LTLIBRARIES += cms-colord.la
423cms_colord_la_LDFLAGS = -module -avoid-version
424cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500425cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800426cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100427 src/cms-colord.c \
428 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700429 src/cms-helper.h \
430 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800431endif
432endif
433
434noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500435spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800436spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
437spring_tool_SOURCES = \
438 src/spring-tool.c \
439 src/animation.c \
440 shared/matrix.c \
441 shared/matrix.h \
442 src/compositor.h
443
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800444if BUILD_CLIENTS
445
446bin_PROGRAMS += weston-terminal weston-info
447
448libexec_PROGRAMS += \
449 weston-desktop-shell \
450 weston-screenshooter \
451 weston-keyboard \
452 weston-simple-im
453
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900454if ENABLE_IVI_SHELL
455libexec_PROGRAMS += \
456 weston-ivi-shell-user-interface
457endif
458
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800459demo_clients = \
460 weston-flower \
461 weston-image \
462 weston-cliptest \
463 weston-dnd \
464 weston-smoke \
465 weston-resizor \
466 weston-eventdemo \
467 weston-clickdot \
468 weston-transformed \
469 weston-fullscreen \
470 weston-stacking \
471 weston-calibrator \
472 weston-scaler
473
474if INSTALL_DEMO_CLIENTS
475bin_PROGRAMS += $(demo_clients)
476else
477noinst_PROGRAMS += $(demo_clients)
478endif
479
480
481if BUILD_SIMPLE_CLIENTS
482demo_clients += \
483 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500484 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800485 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400486 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800487 weston-multi-resource
488
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800489weston_simple_shm_SOURCES = clients/simple-shm.c
490nodist_weston_simple_shm_SOURCES = \
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 \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900495 protocol/ivi-application-protocol.c \
496 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800497weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800498weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800499
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500500weston_simple_damage_SOURCES = clients/simple-damage.c
501nodist_weston_simple_damage_SOURCES = \
502 protocol/scaler-protocol.c \
503 protocol/scaler-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800504 protocol/xdg-shell-unstable-v5-protocol.c \
505 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800506 protocol/fullscreen-shell-unstable-v1-protocol.c \
507 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500508weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
509weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
510
Jon A. Cruzb09da242015-06-16 13:15:13 -0700511weston_simple_touch_SOURCES = \
512 clients/simple-touch.c \
513 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800514weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800515weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800516
Jon A. Cruzb09da242015-06-16 13:15:13 -0700517weston_presentation_shm_SOURCES = \
518 clients/presentation-shm.c \
519 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400520nodist_weston_presentation_shm_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200521 protocol/presentation-time-protocol.c \
522 protocol/presentation-time-client-protocol.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400523weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300524weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400525
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800526weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800527weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300528weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800529endif
530
531if BUILD_SIMPLE_EGL_CLIENTS
532demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800533weston_simple_egl_SOURCES = clients/simple-egl.c
534nodist_weston_simple_egl_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800535 protocol/xdg-shell-unstable-v5-protocol.c \
536 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900537 protocol/ivi-application-protocol.c \
538 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800539weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800540weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
541endif
542
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000543if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
544demo_clients += weston-simple-dmabuf-intel
545weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
546nodist_weston_simple_dmabuf_intel_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800547 protocol/xdg-shell-unstable-v5-protocol.c \
548 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800549 protocol/fullscreen-shell-unstable-v1-protocol.c \
550 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800551 protocol/linux-dmabuf-unstable-v1-protocol.c \
552 protocol/linux-dmabuf-unstable-v1-client-protocol.h
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000553weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
554weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800555BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200556endif
557
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000558if BUILD_SIMPLE_DMABUF_V4L_CLIENT
559demo_clients += weston-simple-dmabuf-v4l
560weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
561nodist_weston_simple_dmabuf_v4l_SOURCES = \
562 protocol/xdg-shell-unstable-v5-protocol.c \
563 protocol/xdg-shell-unstable-v5-client-protocol.h \
564 protocol/fullscreen-shell-unstable-v1-protocol.c \
565 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
566 protocol/linux-dmabuf-unstable-v1-protocol.c \
567 protocol/linux-dmabuf-unstable-v1-client-protocol.h
568weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
569weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
570BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
571endif
572
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800573noinst_LTLIBRARIES += libtoytoolkit.la
574
575libtoytoolkit_la_SOURCES = \
576 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700577 clients/window.h \
578 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800579
580nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100581 protocol/text-cursor-position-protocol.c \
582 protocol/text-cursor-position-client-protocol.h \
583 protocol/scaler-protocol.c \
584 protocol/scaler-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800585 protocol/xdg-shell-unstable-v5-protocol.c \
586 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900587 protocol/ivi-application-protocol.c \
588 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500589
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800590BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
591
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800592
593libtoytoolkit_la_LIBADD = \
594 $(CLIENT_LIBS) \
595 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300596 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800597libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800598
599weston_flower_SOURCES = clients/flower.c
600weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800601weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800602
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100603weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800604 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800605nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800606 protocol/weston-screenshooter-protocol.c \
607 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800608weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800609weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800610
Jon A. Cruzb09da242015-06-16 13:15:13 -0700611weston_terminal_SOURCES = \
612 clients/terminal.c \
613 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800614weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800615weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800616
617weston_image_SOURCES = clients/image.c
618weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800619weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800620
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300621weston_cliptest_SOURCES = \
622 clients/cliptest.c \
623 src/vertex-clipping.c \
624 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800625weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800626weston_cliptest_LDADD = libtoytoolkit.la
627
Jon A. Cruzb09da242015-06-16 13:15:13 -0700628weston_dnd_SOURCES = \
629 clients/dnd.c \
630 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800631weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800632weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800633
634weston_smoke_SOURCES = clients/smoke.c
635weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800636weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800637
638weston_resizor_SOURCES = clients/resizor.c
639weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800640weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800641
642weston_scaler_SOURCES = clients/scaler.c
643weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800644weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800645
646if HAVE_CAIRO_GLESV2
647demo_clients += weston-nested weston-nested-client
648
Jon A. Cruzb09da242015-06-16 13:15:13 -0700649weston_nested_SOURCES = \
650 clients/nested.c \
651 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800652weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800653weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800654
655weston_nested_client_SOURCES = clients/nested-client.c
656weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800657weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800658endif
659
Jon A. Cruzb09da242015-06-16 13:15:13 -0700660weston_eventdemo_SOURCES = \
661 clients/eventdemo.c \
662 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800663weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800664weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800665
Jon A. Cruzb09da242015-06-16 13:15:13 -0700666weston_clickdot_SOURCES = \
667 clients/clickdot.c \
668 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800669weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800670weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800671
672weston_transformed_SOURCES = clients/transformed.c
673weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800674weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800675
676weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500677nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800678 protocol/fullscreen-shell-unstable-v1-protocol.c \
679 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800680weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800681weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800682
Jon A. Cruzb09da242015-06-16 13:15:13 -0700683weston_stacking_SOURCES = \
684 clients/stacking.c \
685 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800686weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800687weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800688
Jon A. Cruzb09da242015-06-16 13:15:13 -0700689weston_calibrator_SOURCES = \
690 clients/calibrator.c \
691 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800692 shared/matrix.c \
693 shared/matrix.h
694weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800695weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800696
697if BUILD_SUBSURFACES_CLIENT
698demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700699weston_subsurfaces_SOURCES = \
700 clients/subsurfaces.c \
701 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800702weston_subsurfaces_CFLAGS = \
703 $(AM_CFLAGS) \
704 $(SIMPLE_EGL_CLIENT_CFLAGS) \
705 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800706weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
707endif
708
709if HAVE_PANGO
710demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700711weston_editor_SOURCES = \
712 clients/editor.c \
713 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800714nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800715 protocol/text-input-unstable-v1-protocol.c \
716 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800717weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800718weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800719endif
720
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800721weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800722nodist_weston_keyboard_SOURCES = \
723 protocol/weston-desktop-shell-client-protocol.h \
724 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800725 protocol/input-method-unstable-v1-protocol.c \
726 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800727weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800728weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800729
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800730weston_simple_im_SOURCES = clients/weston-simple-im.c
731nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800732 protocol/input-method-unstable-v1-protocol.c \
733 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800734weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800735weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800736
Jon A. Cruzb09da242015-06-16 13:15:13 -0700737weston_info_SOURCES = \
738 clients/weston-info.c \
739 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400740nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200741 protocol/presentation-time-protocol.c \
742 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800743weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200744weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800745
Jon A. Cruzb09da242015-06-16 13:15:13 -0700746weston_desktop_shell_SOURCES = \
747 clients/desktop-shell.c \
748 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800749nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800750 protocol/weston-desktop-shell-client-protocol.h \
751 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800752weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800753weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800754
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900755if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700756weston_ivi_shell_user_interface_SOURCES = \
757 clients/ivi-shell-user-interface.c \
758 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900759nodist_weston_ivi_shell_user_interface_SOURCES = \
760 protocol/ivi-hmi-controller-client-protocol.h \
761 protocol/ivi-hmi-controller-protocol.c \
762 protocol/ivi-application-client-protocol.h \
763 protocol/ivi-application-protocol.c
764weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
765weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
766endif
767
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800768if BUILD_FULL_GL_CLIENTS
769demo_clients += weston-gears
770weston_gears_SOURCES = clients/gears.c
771weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800772weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800773endif
774
775endif
776
777BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800778 protocol/weston-screenshooter-protocol.c \
779 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100780 protocol/text-cursor-position-client-protocol.h \
781 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800782 protocol/text-input-unstable-v1-protocol.c \
783 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800784 protocol/input-method-unstable-v1-protocol.c \
785 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800786 protocol/weston-desktop-shell-client-protocol.h \
787 protocol/weston-desktop-shell-protocol.c \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100788 protocol/scaler-client-protocol.h \
789 protocol/scaler-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200790 protocol/presentation-time-protocol.c \
791 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800792 protocol/fullscreen-shell-unstable-v1-protocol.c \
793 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800794 protocol/xdg-shell-unstable-v5-protocol.c \
795 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900796 protocol/ivi-hmi-controller-protocol.c \
797 protocol/ivi-hmi-controller-client-protocol.h \
798 protocol/ivi-application-protocol.c \
799 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800800
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800801westondatadir = $(datadir)/weston
802dist_westondata_DATA = \
803 data/wayland.svg \
804 data/wayland.png \
805 data/pattern.png \
806 data/terminal.png \
807 data/border.png \
808 data/icon_window.png \
809 data/sign_close.png \
810 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100811 data/sign_minimize.png
812
813if ENABLE_IVI_SHELL
814dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900815 data/background.png \
816 data/tiling.png \
817 data/fullscreen.png \
818 data/panel.png \
819 data/random.png \
820 data/sidebyside.png \
821 data/home.png \
822 data/icon_ivi_clickdot.png \
823 data/icon_ivi_flower.png \
824 data/icon_ivi_simple-egl.png \
825 data/icon_ivi_simple-shm.png \
826 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100827endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800828
829
830if BUILD_WCAP_TOOLS
831bin_PROGRAMS += wcap-decode
832
833wcap_decode_SOURCES = \
834 wcap/main.c \
835 wcap/wcap-decode.c \
836 wcap/wcap-decode.h
837
Derek Foreman4ff38742015-06-18 11:43:11 -0500838wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800839wcap_decode_LDADD = $(WCAP_LIBS)
840endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800841
842
843if ENABLE_DESKTOP_SHELL
844
845module_LTLIBRARIES += desktop-shell.la
846
847desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100848 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800849 -I$(top_srcdir)/shared \
850 -I$(top_srcdir)/src \
851 -I$(top_builddir)/src \
852 -I$(top_builddir)/desktop-shell \
853 -DDATADIR='"$(datadir)"' \
854 -DMODULEDIR='"$(moduledir)"' \
855 -DLIBEXECDIR='"$(libexecdir)"' \
856 -DIN_WESTON
857
858desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800859desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500860desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800861desktop_shell_la_SOURCES = \
862 desktop-shell/shell.h \
863 desktop-shell/shell.c \
864 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700865 desktop-shell/input-panel.c \
866 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800867nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800868 protocol/weston-desktop-shell-protocol.c \
869 protocol/weston-desktop-shell-server-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800870 protocol/xdg-shell-unstable-v5-protocol.c \
871 protocol/xdg-shell-unstable-v5-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800872
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800873BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800874endif
875
Jason Ekstrand946a9482014-04-02 19:53:47 -0500876if ENABLE_FULLSCREEN_SHELL
877
878module_LTLIBRARIES += fullscreen-shell.la
879
880fullscreen_shell_la_CPPFLAGS = \
881 -I$(top_builddir)/protocol \
882 -I$(top_srcdir)/shared \
883 -I$(top_srcdir)/src \
884 -I$(top_builddir)/src \
885 -DIN_WESTON
886
887fullscreen_shell_la_LDFLAGS = -module -avoid-version
888fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500889fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500890fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700891 fullscreen-shell/fullscreen-shell.c \
892 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500893nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800894 protocol/fullscreen-shell-unstable-v1-protocol.c \
895 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500896
897BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
898endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800899
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900900if ENABLE_IVI_SHELL
901
902module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900903 $(ivi_shell) \
904 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900905
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900906ivi_shell = ivi-shell.la
907ivi_shell_la_LDFLAGS = -module -avoid-version
908ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500909ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900910ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900911 ivi-shell/ivi-layout-export.h \
912 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +0200913 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900914 ivi-shell/ivi-layout.c \
915 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900916 ivi-shell/ivi-shell.h \
917 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700918 ivi-shell/input-panel-ivi.c \
919 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900920nodist_ivi_shell_la_SOURCES = \
921 protocol/ivi-application-protocol.c \
922 protocol/ivi-application-server-protocol.h
923
924BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
925
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900926hmi_controller = hmi-controller.la
927hmi_controller_la_LDFLAGS = -module -avoid-version
928hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500929hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900930hmi_controller_la_SOURCES = \
931 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700932 ivi-shell/hmi-controller.c \
933 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900934nodist_hmi_controller_la_SOURCES = \
935 protocol/ivi-hmi-controller-protocol.c \
936 protocol/ivi-hmi-controller-server-protocol.h
937
938BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
939
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900940endif
941
942
Jason Ekstrand47928d82014-04-02 19:54:01 -0500943if ENABLE_SCREEN_SHARING
944
945module_LTLIBRARIES += screen-share.la
946
947screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
948screen_share_la_LDFLAGS = -module -avoid-version
949screen_share_la_LIBADD = \
950 $(COMPOSITOR_LIBS) \
951 $(SCREEN_SHARE_LIBS) \
952 libshared-cairo.la
953screen_share_la_CFLAGS = \
954 $(COMPOSITOR_CFLAGS) \
955 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500956 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -0500957screen_share_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700958 src/screen-share.c \
959 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500960nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800961 protocol/fullscreen-shell-unstable-v1-protocol.c \
962 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500963
964endif
965
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800966if ENABLE_XWAYLAND
967
968module_LTLIBRARIES += xwayland.la
969
970xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100971 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800972 -I$(top_srcdir)/shared \
973 -I$(top_srcdir)/src \
974 -I$(top_builddir)/src \
975 -I$(top_builddir)/xwayland \
976 -DDATADIR='"$(datadir)"' \
977 -DMODULEDIR='"$(moduledir)"' \
978 -DLIBEXECDIR='"$(libexecdir)"' \
979 -DXSERVER_PATH='"@XSERVER_PATH@"'
980
981xwayland_la_LDFLAGS = -module -avoid-version
982xwayland_la_LIBADD = \
983 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800984 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800985xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500986 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800987 $(COMPOSITOR_CFLAGS) \
988 $(PIXMAN_CFLAGS) \
989 $(CAIRO_CFLAGS)
990xwayland_la_SOURCES = \
991 xwayland/xwayland.h \
992 xwayland/window-manager.c \
993 xwayland/selection.c \
994 xwayland/dnd.c \
995 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800996 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700997 xwayland/hash.h \
998 shared/helpers.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800999endif
1000
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001001
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001002#
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001003# Shared utilities
1004#
1005
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001006noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
1007 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001008
Derek Foreman4ff38742015-06-18 11:43:11 -05001009libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001010
1011libshared_la_SOURCES = \
1012 shared/config-parser.c \
1013 shared/option-parser.c \
1014 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +02001015 shared/file-util.c \
1016 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001017 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001018 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -07001019 shared/os-compatibility.h \
1020 shared/xalloc.c \
1021 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001022
1023libshared_cairo_la_CFLAGS = \
1024 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001025 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001026 $(COMPOSITOR_CFLAGS) \
1027 $(PIXMAN_CFLAGS) \
1028 $(CAIRO_CFLAGS) \
1029 $(PNG_CFLAGS) \
1030 $(WEBP_CFLAGS)
1031
1032libshared_cairo_la_LIBADD = \
1033 $(PIXMAN_LIBS) \
1034 $(CAIRO_LIBS) \
1035 $(PNG_LIBS) \
1036 $(WEBP_LIBS) \
1037 $(JPEG_LIBS)
1038
1039libshared_cairo_la_SOURCES = \
1040 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001041 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001042 shared/image-loader.c \
1043 shared/image-loader.h \
1044 shared/cairo-util.c \
1045 shared/frame.c \
1046 shared/cairo-util.h
1047
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001048libzunitc_la_SOURCES = \
1049 tools/zunitc/inc/zunitc/zunitc.h \
1050 tools/zunitc/inc/zunitc/zunitc_impl.h \
1051 tools/zunitc/src/zuc_base_logger.c \
1052 tools/zunitc/src/zuc_base_logger.h \
1053 tools/zunitc/src/zuc_collector.c \
1054 tools/zunitc/src/zuc_collector.h \
1055 tools/zunitc/src/zuc_context.h \
1056 tools/zunitc/src/zuc_event.h \
1057 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001058 tools/zunitc/src/zuc_junit_reporter.c \
1059 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001060 tools/zunitc/src/zuc_types.h \
1061 tools/zunitc/src/zunitc_impl.c \
1062 shared/helpers.h
1063
1064libzunitc_la_CFLAGS = \
1065 $(AM_CFLAGS) \
1066 -I$(top_srcdir)/tools/zunitc/inc
1067
1068libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001069 libshared.la \
1070 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001071
Jon A. Cruz646aef52015-07-15 19:22:41 -07001072if ENABLE_JUNIT_XML
1073libzunitc_la_CFLAGS += \
1074 $(LIBXML2_CFLAGS)
1075libzunitc_la_LIBADD += \
1076 $(LIBXML2_LIBS)
1077endif
1078
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001079libzunitcmain_la_SOURCES = \
1080 tools/zunitc/src/main.c
1081
1082libzunitcmain_la_CFLAGS = \
1083 $(AM_CFLAGS) \
1084 -I$(top_srcdir)/tools/zunitc/inc
1085
1086libzunitcmain_la_LIBADD = \
1087 libzunitc.la \
1088 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001089
1090#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001091# tests subdirectory
1092#
1093
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001094TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1095
1096internal_tests = \
1097 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001098
1099shared_tests = \
1100 config-parser.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001101 vertex-clip.test \
1102 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001103
1104module_tests = \
1105 surface-test.la \
1106 surface-global-test.la
1107
1108weston_tests = \
1109 bad_buffer.weston \
1110 keyboard.weston \
1111 event.weston \
1112 button.weston \
1113 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001114 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001115 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001116 subsurface.weston \
1117 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001118
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001119ivi_tests =
1120
1121$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001122
1123AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001124 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1125 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001126
1127TEST_EXTENSIONS = .la .weston
1128LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1129WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1130
1131clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001132 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001133 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001134
1135# To remove when automake 1.11 support is dropped
1136export abs_builddir
1137
1138noinst_LTLIBRARIES += \
1139 weston-test.la \
1140 $(module_tests) \
1141 libtest-runner.la \
1142 libtest-client.la
1143
1144noinst_PROGRAMS += \
1145 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001146 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001147 $(shared_tests) \
1148 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001149 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001150 matrix-test
1151
1152test_module_ldflags = \
1153 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1154
1155surface_global_test_la_SOURCES = tests/surface-global-test.c
1156surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001157surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001158
1159surface_test_la_SOURCES = tests/surface-test.c
1160surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001161surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001162
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001163weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001164weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001165weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001166weston_test_la_SOURCES = \
1167 tests/weston-test.c \
1168 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001169nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001170 protocol/weston-test-protocol.c \
1171 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001172
1173if ENABLE_EGL
1174weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1175weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1176endif
1177
1178libtest_runner_la_SOURCES = \
1179 tests/weston-test-runner.c \
1180 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001181libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001182
1183config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001184config_parser_test_LDADD = \
1185 libshared.la \
1186 $(COMPOSITOR_LIBS) \
1187 libzunitc.la \
1188 libzunitcmain.la
1189config_parser_test_CFLAGS = \
1190 $(AM_CFLAGS) \
1191 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001192
1193vertex_clip_test_SOURCES = \
1194 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001195 shared/helpers.h \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001196 src/vertex-clipping.c \
1197 src/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001198vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001199
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001200libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001201 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001202 tests/weston-test-client-helper.h
1203nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001204 protocol/weston-test-protocol.c \
1205 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001206libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1207libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) $(CAIRO_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001208
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001209
1210#
1211# Internal tests - tests functionality of the testsuite itself
1212#
1213
1214internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001215internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1216internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001217
1218
1219#
1220# Weston Tests
1221#
1222
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001223bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001224bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001225bad_buffer_weston_LDADD = libtest-client.la
1226
1227keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001228keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001229keyboard_weston_LDADD = libtest-client.la
1230
1231event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001232event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001233event_weston_LDADD = libtest-client.la
1234
1235button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001236button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001237button_weston_LDADD = libtest-client.la
1238
Marek Chalupa5fd81402015-03-30 09:21:29 -04001239devices_weston_SOURCES = tests/devices-test.c
1240devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1241devices_weston_LDADD = libtest-client.la
1242
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001243text_weston_SOURCES = tests/text-test.c
1244nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001245 protocol/text-input-unstable-v1-protocol.c \
1246 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001247text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001248text_weston_LDADD = libtest-client.la
1249
1250subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001251subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001252subsurface_weston_LDADD = libtest-client.la
1253
Jon A. Cruzb09da242015-06-16 13:15:13 -07001254presentation_weston_SOURCES = \
1255 tests/presentation-test.c \
1256 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001257nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001258 protocol/presentation-time-protocol.c \
1259 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001260presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1261presentation_weston_LDADD = libtest-client.la
1262
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001263roles_weston_SOURCES = tests/roles-test.c
1264roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1265roles_weston_LDADD = libtest-client.la
1266
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001267if ENABLE_EGL
1268weston_tests += buffer-count.weston
1269buffer_count_weston_SOURCES = tests/buffer-count-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001270buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001271buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1272endif
1273
1274if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001275weston_tests += xwayland-test.weston
1276xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001277xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001278xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001279endif
1280
1281matrix_test_SOURCES = \
1282 tests/matrix-test.c \
1283 shared/matrix.c \
1284 shared/matrix.h
1285matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001286matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001287
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001288if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001289module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001290 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001291 ivi-layout-test.la
1292
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001293ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1294ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001295ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001296ivi_layout_internal_test_la_SOURCES = \
1297 tests/ivi_layout-internal-test.c
1298
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001299ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1300ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001301ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001302ivi_layout_test_la_SOURCES = \
1303 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001304 tests/ivi-test.h \
1305 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001306nodist_ivi_layout_test_la_SOURCES = \
1307 protocol/weston-test-protocol.c \
1308 protocol/weston-test-server-protocol.h
1309
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001310ivi_tests += \
1311 ivi-shell-app.weston
1312
1313ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1314nodist_ivi_shell_app_weston_SOURCES = \
1315 protocol/ivi-application-protocol.c \
1316 protocol/ivi-application-client-protocol.h
1317ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1318ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001319
1320noinst_PROGRAMS += ivi-layout.ivi
1321
1322ivi_layout_ivi_SOURCES = \
1323 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001324 tests/ivi-test.h \
1325 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001326nodist_ivi_layout_ivi_SOURCES = \
1327 protocol/ivi-application-protocol.c \
1328 protocol/ivi-application-client-protocol.h
1329ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1330ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001331endif
1332
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001333if BUILD_SETBACKLIGHT
1334noinst_PROGRAMS += setbacklight
1335setbacklight_SOURCES = \
1336 tests/setbacklight.c \
1337 src/libbacklight.c \
1338 src/libbacklight.h
1339setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1340setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1341endif
1342
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001343all-local: zuctest$(EXEEXT)
1344
1345noinst_PROGRAMS += zuctest$(EXEEXT)
1346
1347zuctest_LDADD = \
1348 libzunitc.la \
1349 libzunitcmain.la
1350
1351zuctest_CFLAGS = \
1352 $(AM_CFLAGS) \
1353 -I$(top_srcdir)/tools/zunitc/inc
1354
1355zuctest_SOURCES = \
1356 tools/zunitc/test/fixtures_test.c \
1357 tools/zunitc/test/zunitc_test.c
1358
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001359EXTRA_DIST += \
1360 tests/weston-tests-env \
1361 tests/internal-screenshot.ini \
1362 tests/reference/internal-screenshot-bad-00.png \
1363 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001364
1365BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001366 protocol/weston-test-protocol.c \
1367 protocol/weston-test-server-protocol.h \
1368 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001369 protocol/text-input-unstable-v1-protocol.c \
1370 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001371
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001372EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001373 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001374 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001375 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001376 protocol/weston-test.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001377 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001378 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001379 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001380
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001381#
1382# manual test modules in tests subdirectory
1383#
1384
1385noinst_LTLIBRARIES += \
1386 surface-screenshot.la
1387
1388surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1389surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001390surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001391surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1392
1393
1394#
1395# Documentation
1396#
1397
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001398man_MANS = weston.1 weston.ini.5
1399
1400if ENABLE_DRM_COMPOSITOR
1401man_MANS += weston-drm.7
1402endif
1403
1404MAN_SUBSTS = \
1405 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1406 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1407 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1408 -e 's|__version__|$(PACKAGE_VERSION)|g'
1409
1410SUFFIXES = .1 .5 .7 .man
1411
1412%.1 %.5 %.7 : man/%.man
1413 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1414
1415EXTRA_DIST += \
1416 man/weston.man \
1417 man/weston-drm.man \
1418 man/weston.ini.man
1419
1420CLEANFILES += $(man_MANS)
1421
Jon A. Cruz179c1862015-07-15 19:22:43 -07001422if ENABLE_DEVDOCS
1423DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1424
1425docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1426 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1427
1428docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1429 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1430endif
1431
1432DOCDIRS = \
1433 docs/developer \
1434 docs/tools
1435
1436$(DOCDIRS):
1437 $(MKDIR_P) $@
1438
1439.PHONY: doc $(DOXYGEN_INDICES)
1440
1441doc: $(DOXYGEN_INDICES)
1442
Jonas Ådahl496adb32015-11-17 16:00:27 +08001443.SECONDEXPANSION:
1444
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001445define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001446$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001447endef
1448
1449define protoname
1450$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1451endef
1452
1453protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001454 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1455
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001456protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001457 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1458
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001459protocol/%-client-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) client-header < $< > $@
1461
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001462protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1463 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001464
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001465protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1466 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001467
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001468protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1469 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@