blob: 92b4e5ee90c75b05c9376104e41406b7c8fdab0b [file] [log] [blame]
Thierry Reding0e6d9a72014-05-27 09:07:54 +02001ACLOCAL_AMFLAGS = -I m4
2
Kristian Høgsberge895f142014-01-27 21:46:30 -08003bin_PROGRAMS =
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -08004noinst_PROGRAMS =
Kristian Høgsberge73eccd2014-01-31 16:15:11 -08005libexec_PROGRAMS =
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -08006moduledir = $(libdir)/weston
7module_LTLIBRARIES =
Giulio Camuffo179fcda2016-06-02 21:48:14 +03008libweston_moduledir = $(libdir)/libweston-${LIBWESTON_ABI_VERSION}
9libweston_module_LTLIBRARIES =
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080010noinst_LTLIBRARIES =
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -080011BUILT_SOURCES =
Kristian Høgsberge895f142014-01-27 21:46:30 -080012
Derek Foreman2ef9e812015-02-09 09:57:29 -060013AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
Kristian Høgsberg24639cc2013-02-25 13:03:15 -050014
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090015EXTRA_DIST = weston.ini.in ivi-shell/weston.ini.in
Neil Robertse3de16e2013-11-22 16:46:00 +000016
17weston.ini : $(srcdir)/weston.ini.in
18 $(AM_V_GEN)$(SED) \
19 -e 's|@bindir[@]|$(bindir)|g' \
20 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
21 -e 's|@libexecdir[@]|$(libexecdir)|g' \
22 $< > $@
23
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090024ivi-shell/weston.ini : $(srcdir)/ivi-shell/weston.ini.in
Ross Burton2eff22b2015-07-17 12:33:45 +010025 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090026 -e 's|@bindir[@]|$(bindir)|g' \
27 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
Pekka Paalanen8cb25872015-03-24 14:09:57 +020028 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090029 -e 's|@libexecdir[@]|$(libexecdir)|g' \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020030 -e 's|@plugin_prefix[@]||g' \
31 $< > $@
32
33tests/weston-ivi.ini : $(srcdir)/ivi-shell/weston.ini.in
Ross Burton2eff22b2015-07-17 12:33:45 +010034 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020035 -e 's|@bindir[@]|$(bindir)|g' \
36 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
Pekka Paalanen8cb25872015-03-24 14:09:57 +020037 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
Derek Foremanbbdd9bc2015-06-16 13:30:35 -050038 -e 's|@libexecdir[@]|$(abs_builddir)|g' \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020039 -e 's|@plugin_prefix[@]|$(abs_top_builddir)/.libs/|g' \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090040 $< > $@
41
42all-local : weston.ini ivi-shell/weston.ini
Kristian Høgsberg98463742013-12-16 23:12:46 -080043
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080044AM_CFLAGS = $(GCC_CFLAGS)
45
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080046AM_CPPFLAGS = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080047 -I$(top_srcdir)/src \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080048 -I$(top_builddir)/src \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080049 -I$(top_builddir)/clients \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080050 -I$(top_builddir)/tests \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080051 -I$(top_srcdir)/shared \
Quentin Glidic088ba5e2014-02-01 21:39:12 +010052 -I$(top_builddir)/protocol \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080053 -DDATADIR='"$(datadir)"' \
54 -DMODULEDIR='"$(moduledir)"' \
Giulio Camuffo179fcda2016-06-02 21:48:14 +030055 -DLIBWESTON_MODULEDIR='"$(libweston_moduledir)"' \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080056 -DLIBEXECDIR='"$(libexecdir)"' \
57 -DBINDIR='"$(bindir)"'
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080058
Pekka Paalanenf3a34532015-03-24 13:51:05 +020059CLEANFILES = weston.ini \
60 ivi-shell/weston.ini \
61 tests/weston-ivi.ini \
Derek Foreman1ce2ef52015-05-26 10:21:03 -050062 internal-screenshot-00.png \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020063 $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080064
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080065bin_PROGRAMS += weston
66
67weston_LDFLAGS = -export-dynamic
68weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
Derek Foreman4ff38742015-06-18 11:43:11 -050069weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080070weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Giulio Camuffo8aedf7b2016-06-02 21:48:12 +030071 $(DLOPEN_LIBS) -lm $(CLOCK_GETTIME_LIBS) \
72 $(LIBINPUT_BACKEND_LIBS) libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080073
74weston_SOURCES = \
75 src/git-version.h \
76 src/log.c \
77 src/compositor.c \
78 src/compositor.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -070079 src/compositor-drm.h \
Benoit Gschwind934e89a2016-04-27 23:56:42 +020080 src/compositor-fbdev.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -070081 src/compositor-headless.h \
Benoit Gschwindbd573102016-04-22 17:05:26 +020082 src/compositor-rdp.h \
Benoit Gschwind639322a2016-04-28 20:33:15 +020083 src/compositor-wayland.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -070084 src/compositor-x11.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080085 src/input.c \
86 src/data-device.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080087 src/screenshooter.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080088 src/clipboard.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080089 src/zoom.c \
90 src/text-backend.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080091 src/bindings.c \
92 src/animation.c \
93 src/noop-renderer.c \
94 src/pixman-renderer.c \
95 src/pixman-renderer.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +020096 src/timeline.c \
97 src/timeline.h \
98 src/timeline-object.h \
Giulio Camuffobab996e2014-10-12 00:24:25 +030099 src/main.c \
Pekka Paalanen230f3b12014-09-29 14:18:40 -0400100 src/linux-dmabuf.c \
101 src/linux-dmabuf.h \
Giulio Camuffo26f62d42016-06-02 21:48:09 +0300102 src/weston-screenshooter.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700103 shared/helpers.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800104 shared/matrix.c \
105 shared/matrix.h \
Pekka Paalanenaa21f622015-07-03 15:44:50 +0300106 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800107 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100108 shared/platform.h \
Egor Starkov94fd9a52015-09-29 14:50:41 +0300109 src/weston-egl-ext.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300110
111if SYSTEMD_NOTIFY_SUPPORT
112module_LTLIBRARIES += systemd-notify.la
113systemd_notify_la_LDFLAGS = -module -avoid-version
114systemd_notify_la_LIBADD = $(SYSTEMD_DAEMON_LIBS)
115systemd_notify_la_CFLAGS = \
Pekka Paalanenaff703e2016-04-05 14:08:11 +0300116 $(COMPOSITOR_CFLAGS) \
117 $(SYSTEMD_DAEMON_CFLAGS) \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300118 $(PIXMAN_CFLAGS) \
119 $(AM_CFLAGS)
120systemd_notify_la_SOURCES = \
121 src/systemd-notify.c \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300122 shared/helpers.h \
123 shared/zalloc.h \
Bryce Harringtona0dd5b42015-09-25 15:16:25 -0700124 src/compositor.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300125endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800126
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800127nodist_weston_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800128 protocol/weston-screenshooter-protocol.c \
129 protocol/weston-screenshooter-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800130 protocol/text-cursor-position-protocol.c \
131 protocol/text-cursor-position-server-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800132 protocol/text-input-unstable-v1-protocol.c \
133 protocol/text-input-unstable-v1-server-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800134 protocol/input-method-unstable-v1-protocol.c \
135 protocol/input-method-unstable-v1-server-protocol.h \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200136 protocol/presentation-time-protocol.c \
137 protocol/presentation-time-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800138 protocol/scaler-protocol.c \
Pekka Paalanen23ab7152014-09-29 14:08:29 -0400139 protocol/scaler-server-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800140 protocol/linux-dmabuf-unstable-v1-protocol.c \
141 protocol/linux-dmabuf-unstable-v1-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800142
143BUILT_SOURCES += $(nodist_weston_SOURCES)
144
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800145# Track this dependency explicitly instead of using BUILT_SOURCES. We
146# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
147# in case we're building from tarballs.
148
149src/compositor.c : $(top_builddir)/src/git-version.h
150
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800151noinst_LTLIBRARIES += \
152 libsession-helper.la
153
154libsession_helper_la_SOURCES = \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800155 src/launcher-util.c \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700156 src/launcher-util.h \
Derek Foremancb156202015-09-24 09:26:48 -0500157 src/launcher-impl.h \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700158 src/weston-launch.h \
159 src/launcher-weston-launch.c \
160 src/launcher-direct.c
Derek Foreman4ff38742015-06-18 11:43:11 -0500161libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800162libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
163
164if ENABLE_DBUS
165if HAVE_SYSTEMD_LOGIN
166libsession_helper_la_SOURCES += \
167 src/dbus.h \
168 src/dbus.c \
Jasper St. Pierre30bcf352015-09-23 10:46:46 -0700169 src/launcher-logind.c
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800170libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
171libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
172endif
173endif
174
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800175if HAVE_GIT_REPO
176src/git-version.h : $(top_srcdir)/.git/logs/HEAD
177 $(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 -0800178else
179src/git-version.h :
180 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
181
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800182endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800183
184.FORCE :
185
186if BUILD_WESTON_LAUNCH
187bin_PROGRAMS += weston-launch
188weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
189weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
190weston_launch_CFLAGS= \
Derek Foreman4ff38742015-06-18 11:43:11 -0500191 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800192 $(PAM_CFLAGS) \
193 $(SYSTEMD_LOGIN_CFLAGS) \
194 $(LIBDRM_CFLAGS)
195weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
196
197if ENABLE_SETUID_INSTALL
198install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700199 can_suid_files=no; \
200 chown root $(DESTDIR)$(bindir)/weston-launch \
201 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
202 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500203 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700204 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
205 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
206 false; \
207 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800208endif
209
210endif # BUILD_WESTON_LAUNCH
211
212pkgconfigdir = $(libdir)/pkgconfig
213pkgconfig_DATA = src/weston.pc
214
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100215wayland_sessiondir = $(datadir)/wayland-sessions
Ross Burton315476f2015-07-16 20:56:32 +0100216dist_wayland_session_DATA = src/weston.desktop
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100217
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300218libwestonincludedir = $(includedir)/libweston-${LIBWESTON_ABI_VERSION}
219libwestoninclude_HEADERS = \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800220 src/version.h \
221 src/compositor.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700222 src/compositor-drm.h \
Benoit Gschwind934e89a2016-04-27 23:56:42 +0200223 src/compositor-fbdev.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700224 src/compositor-headless.h \
Benoit Gschwindbd573102016-04-22 17:05:26 +0200225 src/compositor-rdp.h \
Benoit Gschwind639322a2016-04-28 20:33:15 +0200226 src/compositor-wayland.h \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700227 src/compositor-x11.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200228 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800229 shared/matrix.h \
230 shared/config-parser.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100231 shared/zalloc.h \
232 shared/platform.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800233
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300234westonincludedir = $(includedir)/weston
235westoninclude_HEADERS = src/weston.h
236
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000237if ENABLE_IVI_SHELL
238westoninclude_HEADERS += \
239 ivi-shell/ivi-layout-export.h
240endif
241
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800242if ENABLE_EGL
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300243libweston_module_LTLIBRARIES += gl-renderer.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800244gl_renderer_la_LDFLAGS = -module -avoid-version
245gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
246gl_renderer_la_CFLAGS = \
247 $(COMPOSITOR_CFLAGS) \
248 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300249 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500250 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800251gl_renderer_la_SOURCES = \
252 src/gl-renderer.h \
253 src/gl-renderer.c \
254 src/vertex-clipping.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700255 src/vertex-clipping.h \
256 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800257endif
258
259if ENABLE_X11_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300260libweston_module_LTLIBRARIES += x11-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800261x11_backend_la_LDFLAGS = -module -avoid-version
262x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800263 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800264x11_backend_la_CFLAGS = \
265 $(COMPOSITOR_CFLAGS) \
266 $(EGL_CFLAGS) \
267 $(PIXMAN_CFLAGS) \
268 $(CAIRO_CFLAGS) \
269 $(X11_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500270 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700271x11_backend_la_SOURCES = \
272 src/compositor-x11.c \
Benoit Gschwinde16acab2016-04-15 20:28:31 -0700273 src/compositor-x11.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700274 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800275endif
276
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100277INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000278INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100279 src/libinput-seat.c \
280 src/libinput-seat.h \
281 src/libinput-device.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700282 src/libinput-device.h \
283 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100284
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800285if ENABLE_DRM_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300286libweston_module_LTLIBRARIES += drm-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800287drm_backend_la_LDFLAGS = -module -avoid-version
288drm_backend_la_LIBADD = \
289 $(COMPOSITOR_LIBS) \
290 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100291 $(INPUT_BACKEND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300292 libshared.la \
293 $(CLOCK_GETTIME_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800294 libsession-helper.la
295drm_backend_la_CFLAGS = \
296 $(COMPOSITOR_CFLAGS) \
297 $(EGL_CFLAGS) \
298 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500299 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800300drm_backend_la_SOURCES = \
301 src/compositor-drm.c \
Giulio Camuffo1c0e40d2016-04-29 15:40:34 -0700302 src/compositor-drm.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100303 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700304 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200305 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800306 src/libbacklight.c \
307 src/libbacklight.h
308
309if ENABLE_VAAPI_RECORDER
310drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
311drm_backend_la_LIBADD += $(LIBVA_LIBS)
312drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
313endif
314endif
315
316if ENABLE_WAYLAND_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300317libweston_module_LTLIBRARIES += wayland-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800318wayland_backend_la_LDFLAGS = -module -avoid-version
319wayland_backend_la_LIBADD = \
320 $(COMPOSITOR_LIBS) \
321 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800322 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800323wayland_backend_la_CFLAGS = \
324 $(COMPOSITOR_CFLAGS) \
325 $(EGL_CFLAGS) \
326 $(PIXMAN_CFLAGS) \
327 $(CAIRO_CFLAGS) \
328 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500329 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700330wayland_backend_la_SOURCES = \
331 src/compositor-wayland.c \
Benoit Gschwind639322a2016-04-28 20:33:15 +0200332 src/compositor-wayland.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700333 shared/helpers.h
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500334nodist_wayland_backend_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800335 protocol/fullscreen-shell-unstable-v1-protocol.c \
336 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800337endif
338
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800339if ENABLE_HEADLESS_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300340libweston_module_LTLIBRARIES += headless-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800341headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800342headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500343headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700344headless_backend_la_SOURCES = \
345 src/compositor-headless.c \
Benoit Gschwind3c530942016-04-15 20:28:32 -0700346 src/compositor-headless.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700347 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800348endif
349
350if ENABLE_FBDEV_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300351libweston_module_LTLIBRARIES += fbdev-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800352fbdev_backend_la_LDFLAGS = -module -avoid-version
353fbdev_backend_la_LIBADD = \
354 $(COMPOSITOR_LIBS) \
355 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100356 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800357 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800358 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800359fbdev_backend_la_CFLAGS = \
360 $(COMPOSITOR_CFLAGS) \
361 $(EGL_CFLAGS) \
362 $(FBDEV_COMPOSITOR_CFLAGS) \
363 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500364 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800365fbdev_backend_la_SOURCES = \
366 src/compositor-fbdev.c \
Benoit Gschwind934e89a2016-04-27 23:56:42 +0200367 src/compositor-fbdev.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700368 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100369 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800370endif
371
372if ENABLE_RDP_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300373libweston_module_LTLIBRARIES += rdp-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800374rdp_backend_la_LDFLAGS = -module -avoid-version
375rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
376 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800377 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800378rdp_backend_la_CFLAGS = \
379 $(COMPOSITOR_CFLAGS) \
380 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500381 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700382rdp_backend_la_SOURCES = \
383 src/compositor-rdp.c \
Benoit Gschwindbd573102016-04-22 17:05:26 +0200384 src/compositor-rdp.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700385 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800386endif
387
388if HAVE_LCMS
389module_LTLIBRARIES += cms-static.la
390cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800391cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500392cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800393cms_static_la_SOURCES = \
394 src/cms-static.c \
395 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700396 src/cms-helper.h \
397 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800398if ENABLE_COLORD
399module_LTLIBRARIES += cms-colord.la
400cms_colord_la_LDFLAGS = -module -avoid-version
401cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500402cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800403cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100404 src/cms-colord.c \
405 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700406 src/cms-helper.h \
407 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800408endif
409endif
410
411noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500412spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800413spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
414spring_tool_SOURCES = \
415 src/spring-tool.c \
416 src/animation.c \
417 shared/matrix.c \
418 shared/matrix.h \
419 src/compositor.h
420
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800421if BUILD_CLIENTS
422
423bin_PROGRAMS += weston-terminal weston-info
424
425libexec_PROGRAMS += \
426 weston-desktop-shell \
427 weston-screenshooter \
428 weston-keyboard \
429 weston-simple-im
430
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900431if ENABLE_IVI_SHELL
432libexec_PROGRAMS += \
433 weston-ivi-shell-user-interface
434endif
435
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800436demo_clients = \
437 weston-flower \
438 weston-image \
439 weston-cliptest \
440 weston-dnd \
441 weston-smoke \
442 weston-resizor \
443 weston-eventdemo \
444 weston-clickdot \
445 weston-transformed \
446 weston-fullscreen \
447 weston-stacking \
448 weston-calibrator \
449 weston-scaler
450
451if INSTALL_DEMO_CLIENTS
452bin_PROGRAMS += $(demo_clients)
453else
454noinst_PROGRAMS += $(demo_clients)
455endif
456
457
458if BUILD_SIMPLE_CLIENTS
459demo_clients += \
460 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500461 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800462 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400463 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800464 weston-multi-resource
465
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800466weston_simple_shm_SOURCES = clients/simple-shm.c
467nodist_weston_simple_shm_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800468 protocol/xdg-shell-unstable-v5-protocol.c \
469 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800470 protocol/fullscreen-shell-unstable-v1-protocol.c \
471 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900472 protocol/ivi-application-protocol.c \
473 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800474weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800475weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800476
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500477weston_simple_damage_SOURCES = clients/simple-damage.c
478nodist_weston_simple_damage_SOURCES = \
479 protocol/scaler-protocol.c \
480 protocol/scaler-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800481 protocol/xdg-shell-unstable-v5-protocol.c \
482 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800483 protocol/fullscreen-shell-unstable-v1-protocol.c \
484 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500485weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
486weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
487
Jon A. Cruzb09da242015-06-16 13:15:13 -0700488weston_simple_touch_SOURCES = \
489 clients/simple-touch.c \
490 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800491weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800492weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800493
Jon A. Cruzb09da242015-06-16 13:15:13 -0700494weston_presentation_shm_SOURCES = \
495 clients/presentation-shm.c \
496 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400497nodist_weston_presentation_shm_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200498 protocol/presentation-time-protocol.c \
499 protocol/presentation-time-client-protocol.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400500weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300501weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400502
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800503weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800504weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300505weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800506endif
507
508if BUILD_SIMPLE_EGL_CLIENTS
509demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800510weston_simple_egl_SOURCES = clients/simple-egl.c
511nodist_weston_simple_egl_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800512 protocol/xdg-shell-unstable-v5-protocol.c \
513 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900514 protocol/ivi-application-protocol.c \
515 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800516weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800517weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
518endif
519
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000520if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
521demo_clients += weston-simple-dmabuf-intel
522weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
523nodist_weston_simple_dmabuf_intel_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800524 protocol/xdg-shell-unstable-v5-protocol.c \
525 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800526 protocol/fullscreen-shell-unstable-v1-protocol.c \
527 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800528 protocol/linux-dmabuf-unstable-v1-protocol.c \
529 protocol/linux-dmabuf-unstable-v1-client-protocol.h
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000530weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
531weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800532BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200533endif
534
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000535if BUILD_SIMPLE_DMABUF_V4L_CLIENT
536demo_clients += weston-simple-dmabuf-v4l
537weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
538nodist_weston_simple_dmabuf_v4l_SOURCES = \
539 protocol/xdg-shell-unstable-v5-protocol.c \
540 protocol/xdg-shell-unstable-v5-client-protocol.h \
541 protocol/fullscreen-shell-unstable-v1-protocol.c \
542 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
543 protocol/linux-dmabuf-unstable-v1-protocol.c \
544 protocol/linux-dmabuf-unstable-v1-client-protocol.h
545weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
546weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
547BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
548endif
549
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800550noinst_LTLIBRARIES += libtoytoolkit.la
551
552libtoytoolkit_la_SOURCES = \
553 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700554 clients/window.h \
555 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800556
557nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100558 protocol/text-cursor-position-protocol.c \
559 protocol/text-cursor-position-client-protocol.h \
560 protocol/scaler-protocol.c \
561 protocol/scaler-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800562 protocol/xdg-shell-unstable-v5-protocol.c \
563 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900564 protocol/ivi-application-protocol.c \
565 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500566
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800567BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
568
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800569
570libtoytoolkit_la_LIBADD = \
571 $(CLIENT_LIBS) \
572 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300573 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800574libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800575
576weston_flower_SOURCES = clients/flower.c
577weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800578weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800579
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100580weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800581 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800582nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800583 protocol/weston-screenshooter-protocol.c \
584 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800585weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800586weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800587
Jon A. Cruzb09da242015-06-16 13:15:13 -0700588weston_terminal_SOURCES = \
589 clients/terminal.c \
590 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800591weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800592weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800593
594weston_image_SOURCES = clients/image.c
595weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800596weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800597
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300598weston_cliptest_SOURCES = \
599 clients/cliptest.c \
600 src/vertex-clipping.c \
601 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800602weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800603weston_cliptest_LDADD = libtoytoolkit.la
604
Jon A. Cruzb09da242015-06-16 13:15:13 -0700605weston_dnd_SOURCES = \
606 clients/dnd.c \
607 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800608weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800609weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800610
611weston_smoke_SOURCES = clients/smoke.c
612weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800613weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800614
615weston_resizor_SOURCES = clients/resizor.c
616weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800617weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800618
619weston_scaler_SOURCES = clients/scaler.c
620weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800621weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800622
623if HAVE_CAIRO_GLESV2
624demo_clients += weston-nested weston-nested-client
625
Jon A. Cruzb09da242015-06-16 13:15:13 -0700626weston_nested_SOURCES = \
627 clients/nested.c \
628 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800629weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800630weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800631
632weston_nested_client_SOURCES = clients/nested-client.c
633weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800634weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800635endif
636
Jon A. Cruzb09da242015-06-16 13:15:13 -0700637weston_eventdemo_SOURCES = \
638 clients/eventdemo.c \
639 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800640weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800641weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800642
Jon A. Cruzb09da242015-06-16 13:15:13 -0700643weston_clickdot_SOURCES = \
644 clients/clickdot.c \
645 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800646weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800647weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800648
649weston_transformed_SOURCES = clients/transformed.c
650weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800651weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800652
653weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500654nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800655 protocol/fullscreen-shell-unstable-v1-protocol.c \
656 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800657weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800658weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800659
Jon A. Cruzb09da242015-06-16 13:15:13 -0700660weston_stacking_SOURCES = \
661 clients/stacking.c \
662 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800663weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800664weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800665
Jon A. Cruzb09da242015-06-16 13:15:13 -0700666weston_calibrator_SOURCES = \
667 clients/calibrator.c \
668 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800669 shared/matrix.c \
670 shared/matrix.h
671weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800672weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800673
674if BUILD_SUBSURFACES_CLIENT
675demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700676weston_subsurfaces_SOURCES = \
677 clients/subsurfaces.c \
678 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800679weston_subsurfaces_CFLAGS = \
680 $(AM_CFLAGS) \
681 $(SIMPLE_EGL_CLIENT_CFLAGS) \
682 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800683weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
684endif
685
686if HAVE_PANGO
687demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700688weston_editor_SOURCES = \
689 clients/editor.c \
690 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800691nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800692 protocol/text-input-unstable-v1-protocol.c \
693 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800694weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800695weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800696endif
697
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800698weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800699nodist_weston_keyboard_SOURCES = \
700 protocol/weston-desktop-shell-client-protocol.h \
701 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800702 protocol/input-method-unstable-v1-protocol.c \
703 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800704weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800705weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800706
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800707weston_simple_im_SOURCES = clients/weston-simple-im.c
708nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800709 protocol/input-method-unstable-v1-protocol.c \
710 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800711weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800712weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800713
Jon A. Cruzb09da242015-06-16 13:15:13 -0700714weston_info_SOURCES = \
715 clients/weston-info.c \
716 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400717nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200718 protocol/presentation-time-protocol.c \
719 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800720weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200721weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800722
Jon A. Cruzb09da242015-06-16 13:15:13 -0700723weston_desktop_shell_SOURCES = \
724 clients/desktop-shell.c \
725 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800726nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800727 protocol/weston-desktop-shell-client-protocol.h \
728 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800729weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800730weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800731
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900732if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700733weston_ivi_shell_user_interface_SOURCES = \
734 clients/ivi-shell-user-interface.c \
735 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900736nodist_weston_ivi_shell_user_interface_SOURCES = \
737 protocol/ivi-hmi-controller-client-protocol.h \
738 protocol/ivi-hmi-controller-protocol.c \
739 protocol/ivi-application-client-protocol.h \
740 protocol/ivi-application-protocol.c
741weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
742weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
743endif
744
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800745if BUILD_FULL_GL_CLIENTS
746demo_clients += weston-gears
747weston_gears_SOURCES = clients/gears.c
748weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800749weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800750endif
751
752endif
753
754BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800755 protocol/weston-screenshooter-protocol.c \
756 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100757 protocol/text-cursor-position-client-protocol.h \
758 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800759 protocol/text-input-unstable-v1-protocol.c \
760 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800761 protocol/input-method-unstable-v1-protocol.c \
762 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800763 protocol/weston-desktop-shell-client-protocol.h \
764 protocol/weston-desktop-shell-protocol.c \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100765 protocol/scaler-client-protocol.h \
766 protocol/scaler-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200767 protocol/presentation-time-protocol.c \
768 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800769 protocol/fullscreen-shell-unstable-v1-protocol.c \
770 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800771 protocol/xdg-shell-unstable-v5-protocol.c \
772 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900773 protocol/ivi-hmi-controller-protocol.c \
774 protocol/ivi-hmi-controller-client-protocol.h \
775 protocol/ivi-application-protocol.c \
776 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800777
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800778westondatadir = $(datadir)/weston
779dist_westondata_DATA = \
780 data/wayland.svg \
781 data/wayland.png \
782 data/pattern.png \
783 data/terminal.png \
784 data/border.png \
Bryce Harrington6bc52542016-03-24 17:57:39 -0700785 data/icon_editor.png \
786 data/icon_flower.png \
787 data/icon_terminal.png \
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800788 data/icon_window.png \
789 data/sign_close.png \
790 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100791 data/sign_minimize.png
792
793if ENABLE_IVI_SHELL
794dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900795 data/background.png \
796 data/tiling.png \
797 data/fullscreen.png \
798 data/panel.png \
799 data/random.png \
800 data/sidebyside.png \
801 data/home.png \
802 data/icon_ivi_clickdot.png \
803 data/icon_ivi_flower.png \
804 data/icon_ivi_simple-egl.png \
805 data/icon_ivi_simple-shm.png \
806 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100807endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800808
809
810if BUILD_WCAP_TOOLS
811bin_PROGRAMS += wcap-decode
812
813wcap_decode_SOURCES = \
814 wcap/main.c \
815 wcap/wcap-decode.c \
816 wcap/wcap-decode.h
817
Derek Foreman4ff38742015-06-18 11:43:11 -0500818wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800819wcap_decode_LDADD = $(WCAP_LIBS)
820endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800821
822
823if ENABLE_DESKTOP_SHELL
824
825module_LTLIBRARIES += desktop-shell.la
826
827desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100828 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800829 -I$(top_srcdir)/shared \
830 -I$(top_srcdir)/src \
831 -I$(top_builddir)/src \
832 -I$(top_builddir)/desktop-shell \
833 -DDATADIR='"$(datadir)"' \
834 -DMODULEDIR='"$(moduledir)"' \
835 -DLIBEXECDIR='"$(libexecdir)"' \
836 -DIN_WESTON
837
838desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800839desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500840desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800841desktop_shell_la_SOURCES = \
842 desktop-shell/shell.h \
843 desktop-shell/shell.c \
844 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700845 desktop-shell/input-panel.c \
846 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800847nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800848 protocol/weston-desktop-shell-protocol.c \
849 protocol/weston-desktop-shell-server-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800850 protocol/xdg-shell-unstable-v5-protocol.c \
851 protocol/xdg-shell-unstable-v5-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800852
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800853BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800854endif
855
Jason Ekstrand946a9482014-04-02 19:53:47 -0500856if ENABLE_FULLSCREEN_SHELL
857
858module_LTLIBRARIES += fullscreen-shell.la
859
860fullscreen_shell_la_CPPFLAGS = \
861 -I$(top_builddir)/protocol \
862 -I$(top_srcdir)/shared \
863 -I$(top_srcdir)/src \
864 -I$(top_builddir)/src \
865 -DIN_WESTON
866
867fullscreen_shell_la_LDFLAGS = -module -avoid-version
868fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500869fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500870fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700871 fullscreen-shell/fullscreen-shell.c \
872 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500873nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800874 protocol/fullscreen-shell-unstable-v1-protocol.c \
875 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500876
877BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
878endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800879
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900880if ENABLE_IVI_SHELL
881
882module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900883 $(ivi_shell) \
884 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900885
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900886ivi_shell = ivi-shell.la
887ivi_shell_la_LDFLAGS = -module -avoid-version
888ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500889ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900890ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900891 ivi-shell/ivi-layout-export.h \
892 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +0200893 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900894 ivi-shell/ivi-layout.c \
895 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900896 ivi-shell/ivi-shell.h \
897 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700898 ivi-shell/input-panel-ivi.c \
899 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900900nodist_ivi_shell_la_SOURCES = \
901 protocol/ivi-application-protocol.c \
902 protocol/ivi-application-server-protocol.h
903
904BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
905
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900906hmi_controller = hmi-controller.la
907hmi_controller_la_LDFLAGS = -module -avoid-version
908hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500909hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900910hmi_controller_la_SOURCES = \
911 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700912 ivi-shell/hmi-controller.c \
913 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900914nodist_hmi_controller_la_SOURCES = \
915 protocol/ivi-hmi-controller-protocol.c \
916 protocol/ivi-hmi-controller-server-protocol.h
917
918BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
919
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900920endif
921
922
Jason Ekstrand47928d82014-04-02 19:54:01 -0500923if ENABLE_SCREEN_SHARING
924
925module_LTLIBRARIES += screen-share.la
926
927screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
928screen_share_la_LDFLAGS = -module -avoid-version
929screen_share_la_LIBADD = \
930 $(COMPOSITOR_LIBS) \
931 $(SCREEN_SHARE_LIBS) \
932 libshared-cairo.la
933screen_share_la_CFLAGS = \
934 $(COMPOSITOR_CFLAGS) \
935 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500936 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -0500937screen_share_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700938 src/screen-share.c \
939 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500940nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800941 protocol/fullscreen-shell-unstable-v1-protocol.c \
942 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500943
944endif
945
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800946if ENABLE_XWAYLAND
947
948module_LTLIBRARIES += xwayland.la
949
950xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100951 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800952 -I$(top_srcdir)/shared \
953 -I$(top_srcdir)/src \
954 -I$(top_builddir)/src \
955 -I$(top_builddir)/xwayland \
956 -DDATADIR='"$(datadir)"' \
957 -DMODULEDIR='"$(moduledir)"' \
958 -DLIBEXECDIR='"$(libexecdir)"' \
959 -DXSERVER_PATH='"@XSERVER_PATH@"'
960
961xwayland_la_LDFLAGS = -module -avoid-version
962xwayland_la_LIBADD = \
963 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800964 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800965xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500966 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800967 $(COMPOSITOR_CFLAGS) \
968 $(PIXMAN_CFLAGS) \
969 $(CAIRO_CFLAGS)
970xwayland_la_SOURCES = \
971 xwayland/xwayland.h \
972 xwayland/window-manager.c \
973 xwayland/selection.c \
974 xwayland/dnd.c \
975 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800976 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700977 xwayland/hash.h \
978 shared/helpers.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800979endif
980
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800981
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800982#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800983# Shared utilities
984#
985
Jon A. Cruz5a75a412015-07-02 23:36:44 -0700986noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
987 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800988
Derek Foreman4ff38742015-06-18 11:43:11 -0500989libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800990
991libshared_la_SOURCES = \
992 shared/config-parser.c \
993 shared/option-parser.c \
994 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +0200995 shared/file-util.c \
996 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700997 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800998 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -0700999 shared/os-compatibility.h \
1000 shared/xalloc.c \
1001 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001002
1003libshared_cairo_la_CFLAGS = \
1004 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001005 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001006 $(COMPOSITOR_CFLAGS) \
1007 $(PIXMAN_CFLAGS) \
1008 $(CAIRO_CFLAGS) \
1009 $(PNG_CFLAGS) \
1010 $(WEBP_CFLAGS)
1011
1012libshared_cairo_la_LIBADD = \
1013 $(PIXMAN_LIBS) \
1014 $(CAIRO_LIBS) \
1015 $(PNG_LIBS) \
1016 $(WEBP_LIBS) \
1017 $(JPEG_LIBS)
1018
1019libshared_cairo_la_SOURCES = \
1020 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001021 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001022 shared/image-loader.c \
1023 shared/image-loader.h \
1024 shared/cairo-util.c \
1025 shared/frame.c \
1026 shared/cairo-util.h
1027
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001028libzunitc_la_SOURCES = \
1029 tools/zunitc/inc/zunitc/zunitc.h \
1030 tools/zunitc/inc/zunitc/zunitc_impl.h \
1031 tools/zunitc/src/zuc_base_logger.c \
1032 tools/zunitc/src/zuc_base_logger.h \
1033 tools/zunitc/src/zuc_collector.c \
1034 tools/zunitc/src/zuc_collector.h \
1035 tools/zunitc/src/zuc_context.h \
1036 tools/zunitc/src/zuc_event.h \
1037 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001038 tools/zunitc/src/zuc_junit_reporter.c \
1039 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001040 tools/zunitc/src/zuc_types.h \
1041 tools/zunitc/src/zunitc_impl.c \
1042 shared/helpers.h
1043
1044libzunitc_la_CFLAGS = \
1045 $(AM_CFLAGS) \
1046 -I$(top_srcdir)/tools/zunitc/inc
1047
1048libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001049 libshared.la \
1050 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001051
Jon A. Cruz646aef52015-07-15 19:22:41 -07001052if ENABLE_JUNIT_XML
1053libzunitc_la_CFLAGS += \
1054 $(LIBXML2_CFLAGS)
1055libzunitc_la_LIBADD += \
1056 $(LIBXML2_LIBS)
1057endif
1058
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001059libzunitcmain_la_SOURCES = \
1060 tools/zunitc/src/main.c
1061
1062libzunitcmain_la_CFLAGS = \
1063 $(AM_CFLAGS) \
1064 -I$(top_srcdir)/tools/zunitc/inc
1065
1066libzunitcmain_la_LIBADD = \
1067 libzunitc.la \
1068 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001069
1070#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001071# tests subdirectory
1072#
1073
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001074TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1075
1076internal_tests = \
1077 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001078
1079shared_tests = \
1080 config-parser.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001081 vertex-clip.test \
1082 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001083
1084module_tests = \
1085 surface-test.la \
1086 surface-global-test.la
1087
1088weston_tests = \
1089 bad_buffer.weston \
1090 keyboard.weston \
1091 event.weston \
1092 button.weston \
1093 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001094 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001095 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001096 subsurface.weston \
1097 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001098
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001099ivi_tests =
1100
1101$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001102
1103AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001104 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1105 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001106
1107TEST_EXTENSIONS = .la .weston
1108LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1109WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1110
1111clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001112 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001113 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001114
1115# To remove when automake 1.11 support is dropped
1116export abs_builddir
1117
1118noinst_LTLIBRARIES += \
1119 weston-test.la \
1120 $(module_tests) \
1121 libtest-runner.la \
1122 libtest-client.la
1123
1124noinst_PROGRAMS += \
1125 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001126 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001127 $(shared_tests) \
1128 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001129 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001130 matrix-test
1131
1132test_module_ldflags = \
1133 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1134
1135surface_global_test_la_SOURCES = tests/surface-global-test.c
1136surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001137surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001138
1139surface_test_la_SOURCES = tests/surface-test.c
1140surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001141surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001142
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001143weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001144weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001145weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001146weston_test_la_SOURCES = \
1147 tests/weston-test.c \
1148 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001149nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001150 protocol/weston-test-protocol.c \
1151 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001152
1153if ENABLE_EGL
1154weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1155weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1156endif
1157
1158libtest_runner_la_SOURCES = \
1159 tests/weston-test-runner.c \
1160 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001161libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001162
1163config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001164config_parser_test_LDADD = \
1165 libshared.la \
1166 $(COMPOSITOR_LIBS) \
1167 libzunitc.la \
1168 libzunitcmain.la
1169config_parser_test_CFLAGS = \
1170 $(AM_CFLAGS) \
1171 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001172
1173vertex_clip_test_SOURCES = \
1174 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001175 shared/helpers.h \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001176 src/vertex-clipping.c \
1177 src/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001178vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001179
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001180libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001181 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001182 tests/weston-test-client-helper.h
1183nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001184 protocol/weston-test-protocol.c \
1185 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001186libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1187libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) $(CAIRO_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001188
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001189
1190#
1191# Internal tests - tests functionality of the testsuite itself
1192#
1193
1194internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001195internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1196internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001197
1198
1199#
1200# Weston Tests
1201#
1202
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001203bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001204bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001205bad_buffer_weston_LDADD = libtest-client.la
1206
1207keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001208keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001209keyboard_weston_LDADD = libtest-client.la
1210
1211event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001212event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001213event_weston_LDADD = libtest-client.la
1214
1215button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001216button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001217button_weston_LDADD = libtest-client.la
1218
Marek Chalupa5fd81402015-03-30 09:21:29 -04001219devices_weston_SOURCES = tests/devices-test.c
1220devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1221devices_weston_LDADD = libtest-client.la
1222
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001223text_weston_SOURCES = tests/text-test.c
1224nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001225 protocol/text-input-unstable-v1-protocol.c \
1226 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001227text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001228text_weston_LDADD = libtest-client.la
1229
1230subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001231subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001232subsurface_weston_LDADD = libtest-client.la
1233
Jon A. Cruzb09da242015-06-16 13:15:13 -07001234presentation_weston_SOURCES = \
1235 tests/presentation-test.c \
1236 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001237nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001238 protocol/presentation-time-protocol.c \
1239 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001240presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1241presentation_weston_LDADD = libtest-client.la
1242
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001243roles_weston_SOURCES = tests/roles-test.c
1244roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1245roles_weston_LDADD = libtest-client.la
1246
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001247if ENABLE_EGL
1248weston_tests += buffer-count.weston
1249buffer_count_weston_SOURCES = tests/buffer-count-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001250buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001251buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1252endif
1253
1254if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001255weston_tests += xwayland-test.weston
1256xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001257xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001258xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001259endif
1260
1261matrix_test_SOURCES = \
1262 tests/matrix-test.c \
1263 shared/matrix.c \
1264 shared/matrix.h
1265matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001266matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001267
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001268if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001269module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001270 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001271 ivi-layout-test.la
1272
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001273ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1274ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001275ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001276ivi_layout_internal_test_la_SOURCES = \
1277 tests/ivi_layout-internal-test.c
1278
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001279ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1280ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001281ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001282ivi_layout_test_la_SOURCES = \
1283 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001284 tests/ivi-test.h \
1285 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001286nodist_ivi_layout_test_la_SOURCES = \
1287 protocol/weston-test-protocol.c \
1288 protocol/weston-test-server-protocol.h
1289
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001290ivi_tests += \
1291 ivi-shell-app.weston
1292
1293ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1294nodist_ivi_shell_app_weston_SOURCES = \
1295 protocol/ivi-application-protocol.c \
1296 protocol/ivi-application-client-protocol.h
1297ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1298ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001299
1300noinst_PROGRAMS += ivi-layout.ivi
1301
1302ivi_layout_ivi_SOURCES = \
1303 tests/ivi_layout-test.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_ivi_SOURCES = \
1307 protocol/ivi-application-protocol.c \
1308 protocol/ivi-application-client-protocol.h
1309ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1310ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001311endif
1312
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001313if BUILD_SETBACKLIGHT
1314noinst_PROGRAMS += setbacklight
1315setbacklight_SOURCES = \
1316 tests/setbacklight.c \
1317 src/libbacklight.c \
1318 src/libbacklight.h
1319setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1320setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1321endif
1322
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001323all-local: zuctest$(EXEEXT)
1324
1325noinst_PROGRAMS += zuctest$(EXEEXT)
1326
1327zuctest_LDADD = \
1328 libzunitc.la \
1329 libzunitcmain.la
1330
1331zuctest_CFLAGS = \
1332 $(AM_CFLAGS) \
1333 -I$(top_srcdir)/tools/zunitc/inc
1334
1335zuctest_SOURCES = \
1336 tools/zunitc/test/fixtures_test.c \
1337 tools/zunitc/test/zunitc_test.c
1338
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001339EXTRA_DIST += \
1340 tests/weston-tests-env \
1341 tests/internal-screenshot.ini \
1342 tests/reference/internal-screenshot-bad-00.png \
1343 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001344
1345BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001346 protocol/weston-test-protocol.c \
1347 protocol/weston-test-server-protocol.h \
1348 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001349 protocol/text-input-unstable-v1-protocol.c \
1350 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001351
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001352EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001353 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001354 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001355 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001356 protocol/weston-test.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001357 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001358 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001359 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001360
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001361#
1362# manual test modules in tests subdirectory
1363#
1364
1365noinst_LTLIBRARIES += \
1366 surface-screenshot.la
1367
1368surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1369surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001370surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001371surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1372
1373
1374#
1375# Documentation
1376#
1377
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001378man_MANS = weston.1 weston.ini.5
1379
1380if ENABLE_DRM_COMPOSITOR
1381man_MANS += weston-drm.7
1382endif
1383
1384MAN_SUBSTS = \
1385 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1386 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1387 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1388 -e 's|__version__|$(PACKAGE_VERSION)|g'
1389
1390SUFFIXES = .1 .5 .7 .man
1391
1392%.1 %.5 %.7 : man/%.man
1393 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1394
1395EXTRA_DIST += \
1396 man/weston.man \
1397 man/weston-drm.man \
1398 man/weston.ini.man
1399
1400CLEANFILES += $(man_MANS)
1401
Jon A. Cruz179c1862015-07-15 19:22:43 -07001402if ENABLE_DEVDOCS
1403DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1404
1405docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1406 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1407
1408docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1409 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1410endif
1411
1412DOCDIRS = \
1413 docs/developer \
1414 docs/tools
1415
1416$(DOCDIRS):
1417 $(MKDIR_P) $@
1418
1419.PHONY: doc $(DOXYGEN_INDICES)
1420
1421doc: $(DOXYGEN_INDICES)
1422
Jonas Ådahl496adb32015-11-17 16:00:27 +08001423.SECONDEXPANSION:
1424
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001425define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001426$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001427endef
1428
1429define protoname
1430$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1431endef
1432
1433protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001434 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1435
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001436protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001437 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1438
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001439protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001440 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1441
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001442protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1443 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001444
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001445protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1446 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001447
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001448protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1449 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@