blob: 00b74e5d8675c5165a397ce17e1e9dacae7f655a [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 \
Bryce Harrington6bc52542016-03-24 17:57:39 -0700811 data/icon_editor.png \
812 data/icon_flower.png \
813 data/icon_terminal.png \
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800814 data/icon_window.png \
815 data/sign_close.png \
816 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100817 data/sign_minimize.png
818
819if ENABLE_IVI_SHELL
820dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900821 data/background.png \
822 data/tiling.png \
823 data/fullscreen.png \
824 data/panel.png \
825 data/random.png \
826 data/sidebyside.png \
827 data/home.png \
828 data/icon_ivi_clickdot.png \
829 data/icon_ivi_flower.png \
830 data/icon_ivi_simple-egl.png \
831 data/icon_ivi_simple-shm.png \
832 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100833endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800834
835
836if BUILD_WCAP_TOOLS
837bin_PROGRAMS += wcap-decode
838
839wcap_decode_SOURCES = \
840 wcap/main.c \
841 wcap/wcap-decode.c \
842 wcap/wcap-decode.h
843
Derek Foreman4ff38742015-06-18 11:43:11 -0500844wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800845wcap_decode_LDADD = $(WCAP_LIBS)
846endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800847
848
849if ENABLE_DESKTOP_SHELL
850
851module_LTLIBRARIES += desktop-shell.la
852
853desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100854 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800855 -I$(top_srcdir)/shared \
856 -I$(top_srcdir)/src \
857 -I$(top_builddir)/src \
858 -I$(top_builddir)/desktop-shell \
859 -DDATADIR='"$(datadir)"' \
860 -DMODULEDIR='"$(moduledir)"' \
861 -DLIBEXECDIR='"$(libexecdir)"' \
862 -DIN_WESTON
863
864desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800865desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500866desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800867desktop_shell_la_SOURCES = \
868 desktop-shell/shell.h \
869 desktop-shell/shell.c \
870 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700871 desktop-shell/input-panel.c \
872 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800873nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800874 protocol/weston-desktop-shell-protocol.c \
875 protocol/weston-desktop-shell-server-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800876 protocol/xdg-shell-unstable-v5-protocol.c \
877 protocol/xdg-shell-unstable-v5-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800878
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800879BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800880endif
881
Jason Ekstrand946a9482014-04-02 19:53:47 -0500882if ENABLE_FULLSCREEN_SHELL
883
884module_LTLIBRARIES += fullscreen-shell.la
885
886fullscreen_shell_la_CPPFLAGS = \
887 -I$(top_builddir)/protocol \
888 -I$(top_srcdir)/shared \
889 -I$(top_srcdir)/src \
890 -I$(top_builddir)/src \
891 -DIN_WESTON
892
893fullscreen_shell_la_LDFLAGS = -module -avoid-version
894fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500895fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500896fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700897 fullscreen-shell/fullscreen-shell.c \
898 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500899nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800900 protocol/fullscreen-shell-unstable-v1-protocol.c \
901 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500902
903BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
904endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800905
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900906if ENABLE_IVI_SHELL
907
908module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900909 $(ivi_shell) \
910 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900911
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900912ivi_shell = ivi-shell.la
913ivi_shell_la_LDFLAGS = -module -avoid-version
914ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500915ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900916ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900917 ivi-shell/ivi-layout-export.h \
918 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +0200919 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900920 ivi-shell/ivi-layout.c \
921 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900922 ivi-shell/ivi-shell.h \
923 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700924 ivi-shell/input-panel-ivi.c \
925 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900926nodist_ivi_shell_la_SOURCES = \
927 protocol/ivi-application-protocol.c \
928 protocol/ivi-application-server-protocol.h
929
930BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
931
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900932hmi_controller = hmi-controller.la
933hmi_controller_la_LDFLAGS = -module -avoid-version
934hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500935hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900936hmi_controller_la_SOURCES = \
937 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700938 ivi-shell/hmi-controller.c \
939 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900940nodist_hmi_controller_la_SOURCES = \
941 protocol/ivi-hmi-controller-protocol.c \
942 protocol/ivi-hmi-controller-server-protocol.h
943
944BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
945
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900946endif
947
948
Jason Ekstrand47928d82014-04-02 19:54:01 -0500949if ENABLE_SCREEN_SHARING
950
951module_LTLIBRARIES += screen-share.la
952
953screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
954screen_share_la_LDFLAGS = -module -avoid-version
955screen_share_la_LIBADD = \
956 $(COMPOSITOR_LIBS) \
957 $(SCREEN_SHARE_LIBS) \
958 libshared-cairo.la
959screen_share_la_CFLAGS = \
960 $(COMPOSITOR_CFLAGS) \
961 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500962 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -0500963screen_share_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700964 src/screen-share.c \
965 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500966nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800967 protocol/fullscreen-shell-unstable-v1-protocol.c \
968 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500969
970endif
971
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800972if ENABLE_XWAYLAND
973
974module_LTLIBRARIES += xwayland.la
975
976xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100977 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800978 -I$(top_srcdir)/shared \
979 -I$(top_srcdir)/src \
980 -I$(top_builddir)/src \
981 -I$(top_builddir)/xwayland \
982 -DDATADIR='"$(datadir)"' \
983 -DMODULEDIR='"$(moduledir)"' \
984 -DLIBEXECDIR='"$(libexecdir)"' \
985 -DXSERVER_PATH='"@XSERVER_PATH@"'
986
987xwayland_la_LDFLAGS = -module -avoid-version
988xwayland_la_LIBADD = \
989 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800990 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800991xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500992 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800993 $(COMPOSITOR_CFLAGS) \
994 $(PIXMAN_CFLAGS) \
995 $(CAIRO_CFLAGS)
996xwayland_la_SOURCES = \
997 xwayland/xwayland.h \
998 xwayland/window-manager.c \
999 xwayland/selection.c \
1000 xwayland/dnd.c \
1001 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001002 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001003 xwayland/hash.h \
1004 shared/helpers.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001005endif
1006
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001007
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001008#
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001009# Shared utilities
1010#
1011
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001012noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
1013 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001014
Derek Foreman4ff38742015-06-18 11:43:11 -05001015libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001016
1017libshared_la_SOURCES = \
1018 shared/config-parser.c \
1019 shared/option-parser.c \
1020 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +02001021 shared/file-util.c \
1022 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001023 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001024 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -07001025 shared/os-compatibility.h \
1026 shared/xalloc.c \
1027 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001028
1029libshared_cairo_la_CFLAGS = \
1030 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001031 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001032 $(COMPOSITOR_CFLAGS) \
1033 $(PIXMAN_CFLAGS) \
1034 $(CAIRO_CFLAGS) \
1035 $(PNG_CFLAGS) \
1036 $(WEBP_CFLAGS)
1037
1038libshared_cairo_la_LIBADD = \
1039 $(PIXMAN_LIBS) \
1040 $(CAIRO_LIBS) \
1041 $(PNG_LIBS) \
1042 $(WEBP_LIBS) \
1043 $(JPEG_LIBS)
1044
1045libshared_cairo_la_SOURCES = \
1046 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001047 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001048 shared/image-loader.c \
1049 shared/image-loader.h \
1050 shared/cairo-util.c \
1051 shared/frame.c \
1052 shared/cairo-util.h
1053
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001054libzunitc_la_SOURCES = \
1055 tools/zunitc/inc/zunitc/zunitc.h \
1056 tools/zunitc/inc/zunitc/zunitc_impl.h \
1057 tools/zunitc/src/zuc_base_logger.c \
1058 tools/zunitc/src/zuc_base_logger.h \
1059 tools/zunitc/src/zuc_collector.c \
1060 tools/zunitc/src/zuc_collector.h \
1061 tools/zunitc/src/zuc_context.h \
1062 tools/zunitc/src/zuc_event.h \
1063 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001064 tools/zunitc/src/zuc_junit_reporter.c \
1065 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001066 tools/zunitc/src/zuc_types.h \
1067 tools/zunitc/src/zunitc_impl.c \
1068 shared/helpers.h
1069
1070libzunitc_la_CFLAGS = \
1071 $(AM_CFLAGS) \
1072 -I$(top_srcdir)/tools/zunitc/inc
1073
1074libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001075 libshared.la \
1076 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001077
Jon A. Cruz646aef52015-07-15 19:22:41 -07001078if ENABLE_JUNIT_XML
1079libzunitc_la_CFLAGS += \
1080 $(LIBXML2_CFLAGS)
1081libzunitc_la_LIBADD += \
1082 $(LIBXML2_LIBS)
1083endif
1084
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001085libzunitcmain_la_SOURCES = \
1086 tools/zunitc/src/main.c
1087
1088libzunitcmain_la_CFLAGS = \
1089 $(AM_CFLAGS) \
1090 -I$(top_srcdir)/tools/zunitc/inc
1091
1092libzunitcmain_la_LIBADD = \
1093 libzunitc.la \
1094 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001095
1096#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001097# tests subdirectory
1098#
1099
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001100TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1101
1102internal_tests = \
1103 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001104
1105shared_tests = \
1106 config-parser.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001107 vertex-clip.test \
1108 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001109
1110module_tests = \
1111 surface-test.la \
1112 surface-global-test.la
1113
1114weston_tests = \
1115 bad_buffer.weston \
1116 keyboard.weston \
1117 event.weston \
1118 button.weston \
1119 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001120 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001121 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001122 subsurface.weston \
1123 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001124
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001125ivi_tests =
1126
1127$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001128
1129AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001130 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1131 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001132
1133TEST_EXTENSIONS = .la .weston
1134LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1135WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1136
1137clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001138 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001139 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001140
1141# To remove when automake 1.11 support is dropped
1142export abs_builddir
1143
1144noinst_LTLIBRARIES += \
1145 weston-test.la \
1146 $(module_tests) \
1147 libtest-runner.la \
1148 libtest-client.la
1149
1150noinst_PROGRAMS += \
1151 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001152 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001153 $(shared_tests) \
1154 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001155 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001156 matrix-test
1157
1158test_module_ldflags = \
1159 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1160
1161surface_global_test_la_SOURCES = tests/surface-global-test.c
1162surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001163surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001164
1165surface_test_la_SOURCES = tests/surface-test.c
1166surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001167surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001168
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001169weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001170weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001171weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001172weston_test_la_SOURCES = \
1173 tests/weston-test.c \
1174 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001175nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001176 protocol/weston-test-protocol.c \
1177 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001178
1179if ENABLE_EGL
1180weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1181weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1182endif
1183
1184libtest_runner_la_SOURCES = \
1185 tests/weston-test-runner.c \
1186 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001187libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001188
1189config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001190config_parser_test_LDADD = \
1191 libshared.la \
1192 $(COMPOSITOR_LIBS) \
1193 libzunitc.la \
1194 libzunitcmain.la
1195config_parser_test_CFLAGS = \
1196 $(AM_CFLAGS) \
1197 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001198
1199vertex_clip_test_SOURCES = \
1200 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001201 shared/helpers.h \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001202 src/vertex-clipping.c \
1203 src/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001204vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001205
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001206libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001207 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001208 tests/weston-test-client-helper.h
1209nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001210 protocol/weston-test-protocol.c \
1211 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001212libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1213libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) $(CAIRO_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001214
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001215
1216#
1217# Internal tests - tests functionality of the testsuite itself
1218#
1219
1220internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001221internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1222internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001223
1224
1225#
1226# Weston Tests
1227#
1228
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001229bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001230bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001231bad_buffer_weston_LDADD = libtest-client.la
1232
1233keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001234keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001235keyboard_weston_LDADD = libtest-client.la
1236
1237event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001238event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001239event_weston_LDADD = libtest-client.la
1240
1241button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001242button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001243button_weston_LDADD = libtest-client.la
1244
Marek Chalupa5fd81402015-03-30 09:21:29 -04001245devices_weston_SOURCES = tests/devices-test.c
1246devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1247devices_weston_LDADD = libtest-client.la
1248
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001249text_weston_SOURCES = tests/text-test.c
1250nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001251 protocol/text-input-unstable-v1-protocol.c \
1252 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001253text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001254text_weston_LDADD = libtest-client.la
1255
1256subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001257subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001258subsurface_weston_LDADD = libtest-client.la
1259
Jon A. Cruzb09da242015-06-16 13:15:13 -07001260presentation_weston_SOURCES = \
1261 tests/presentation-test.c \
1262 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001263nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001264 protocol/presentation-time-protocol.c \
1265 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001266presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1267presentation_weston_LDADD = libtest-client.la
1268
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001269roles_weston_SOURCES = tests/roles-test.c
1270roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1271roles_weston_LDADD = libtest-client.la
1272
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001273if ENABLE_EGL
1274weston_tests += buffer-count.weston
1275buffer_count_weston_SOURCES = tests/buffer-count-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001276buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001277buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1278endif
1279
1280if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001281weston_tests += xwayland-test.weston
1282xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001283xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001284xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001285endif
1286
1287matrix_test_SOURCES = \
1288 tests/matrix-test.c \
1289 shared/matrix.c \
1290 shared/matrix.h
1291matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001292matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001293
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001294if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001295module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001296 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001297 ivi-layout-test.la
1298
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001299ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1300ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001301ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001302ivi_layout_internal_test_la_SOURCES = \
1303 tests/ivi_layout-internal-test.c
1304
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001305ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1306ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001307ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001308ivi_layout_test_la_SOURCES = \
1309 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001310 tests/ivi-test.h \
1311 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001312nodist_ivi_layout_test_la_SOURCES = \
1313 protocol/weston-test-protocol.c \
1314 protocol/weston-test-server-protocol.h
1315
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001316ivi_tests += \
1317 ivi-shell-app.weston
1318
1319ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1320nodist_ivi_shell_app_weston_SOURCES = \
1321 protocol/ivi-application-protocol.c \
1322 protocol/ivi-application-client-protocol.h
1323ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1324ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001325
1326noinst_PROGRAMS += ivi-layout.ivi
1327
1328ivi_layout_ivi_SOURCES = \
1329 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001330 tests/ivi-test.h \
1331 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001332nodist_ivi_layout_ivi_SOURCES = \
1333 protocol/ivi-application-protocol.c \
1334 protocol/ivi-application-client-protocol.h
1335ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1336ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001337endif
1338
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001339if BUILD_SETBACKLIGHT
1340noinst_PROGRAMS += setbacklight
1341setbacklight_SOURCES = \
1342 tests/setbacklight.c \
1343 src/libbacklight.c \
1344 src/libbacklight.h
1345setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1346setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1347endif
1348
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001349all-local: zuctest$(EXEEXT)
1350
1351noinst_PROGRAMS += zuctest$(EXEEXT)
1352
1353zuctest_LDADD = \
1354 libzunitc.la \
1355 libzunitcmain.la
1356
1357zuctest_CFLAGS = \
1358 $(AM_CFLAGS) \
1359 -I$(top_srcdir)/tools/zunitc/inc
1360
1361zuctest_SOURCES = \
1362 tools/zunitc/test/fixtures_test.c \
1363 tools/zunitc/test/zunitc_test.c
1364
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001365EXTRA_DIST += \
1366 tests/weston-tests-env \
1367 tests/internal-screenshot.ini \
1368 tests/reference/internal-screenshot-bad-00.png \
1369 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001370
1371BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001372 protocol/weston-test-protocol.c \
1373 protocol/weston-test-server-protocol.h \
1374 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001375 protocol/text-input-unstable-v1-protocol.c \
1376 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001377
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001378EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001379 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001380 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001381 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001382 protocol/weston-test.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001383 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001384 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001385 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001386
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001387#
1388# manual test modules in tests subdirectory
1389#
1390
1391noinst_LTLIBRARIES += \
1392 surface-screenshot.la
1393
1394surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1395surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001396surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001397surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1398
1399
1400#
1401# Documentation
1402#
1403
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001404man_MANS = weston.1 weston.ini.5
1405
1406if ENABLE_DRM_COMPOSITOR
1407man_MANS += weston-drm.7
1408endif
1409
1410MAN_SUBSTS = \
1411 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1412 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1413 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1414 -e 's|__version__|$(PACKAGE_VERSION)|g'
1415
1416SUFFIXES = .1 .5 .7 .man
1417
1418%.1 %.5 %.7 : man/%.man
1419 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1420
1421EXTRA_DIST += \
1422 man/weston.man \
1423 man/weston-drm.man \
1424 man/weston.ini.man
1425
1426CLEANFILES += $(man_MANS)
1427
Jon A. Cruz179c1862015-07-15 19:22:43 -07001428if ENABLE_DEVDOCS
1429DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1430
1431docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1432 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1433
1434docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1435 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1436endif
1437
1438DOCDIRS = \
1439 docs/developer \
1440 docs/tools
1441
1442$(DOCDIRS):
1443 $(MKDIR_P) $@
1444
1445.PHONY: doc $(DOXYGEN_INDICES)
1446
1447doc: $(DOXYGEN_INDICES)
1448
Jonas Ådahl496adb32015-11-17 16:00:27 +08001449.SECONDEXPANSION:
1450
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001451define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001452$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001453endef
1454
1455define protoname
1456$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1457endef
1458
1459protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001460 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1461
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001462protocol/%-server-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) server-header < $< > $@
1464
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001465protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001466 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1467
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001468protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1469 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001470
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001471protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1472 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001473
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001474protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1475 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@