blob: 6d26dcebaef92dd3d07a38f991ae6b5b481be293 [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 = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +030047 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +010048 -I$(top_srcdir)/libweston \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080049 -I$(top_builddir)/clients \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080050 -I$(top_builddir)/tests \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080051 -I$(top_srcdir)/shared \
Quentin Glidic088ba5e2014-02-01 21:39:12 +010052 -I$(top_builddir)/protocol \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080053 -DDATADIR='"$(datadir)"' \
Giulio Camuffo179fcda2016-06-02 21:48:14 +030054 -DLIBWESTON_MODULEDIR='"$(libweston_moduledir)"' \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080055 -DLIBEXECDIR='"$(libexecdir)"' \
56 -DBINDIR='"$(bindir)"'
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080057
Pekka Paalanenf3a34532015-03-24 13:51:05 +020058CLEANFILES = weston.ini \
59 ivi-shell/weston.ini \
60 tests/weston-ivi.ini \
Derek Foreman1ce2ef52015-05-26 10:21:03 -050061 internal-screenshot-00.png \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020062 $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080063
Giulio Camuffo9e445982016-06-02 21:48:15 +030064lib_LTLIBRARIES = libweston.la
65libweston_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
66libweston_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
67libweston_la_LIBADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Giulio Camuffo8aedf7b2016-06-02 21:48:12 +030068 $(DLOPEN_LIBS) -lm $(CLOCK_GETTIME_LIBS) \
69 $(LIBINPUT_BACKEND_LIBS) libshared.la
Giulio Camuffo9e445982016-06-02 21:48:15 +030070libweston_la_LDFLAGS = -release ${LIBWESTON_ABI_VERSION}
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080071
Giulio Camuffo9e445982016-06-02 21:48:15 +030072libweston_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +030073 libweston/git-version.h \
74 libweston/log.c \
75 libweston/compositor.c \
76 libweston/compositor.h \
77 libweston/compositor-drm.h \
78 libweston/compositor-fbdev.h \
79 libweston/compositor-headless.h \
80 libweston/compositor-rdp.h \
81 libweston/compositor-wayland.h \
82 libweston/compositor-x11.h \
83 libweston/input.c \
84 libweston/data-device.c \
85 libweston/screenshooter.c \
86 libweston/clipboard.c \
87 libweston/zoom.c \
88 libweston/bindings.c \
89 libweston/animation.c \
90 libweston/noop-renderer.c \
91 libweston/pixman-renderer.c \
92 libweston/pixman-renderer.h \
Pekka Paalanen827b5d22016-06-29 11:54:26 +020093 libweston/plugin-registry.c \
94 libweston/plugin-registry.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +030095 libweston/timeline.c \
96 libweston/timeline.h \
97 libweston/timeline-object.h \
98 libweston/linux-dmabuf.c \
99 libweston/linux-dmabuf.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700100 shared/helpers.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800101 shared/matrix.c \
102 shared/matrix.h \
Pekka Paalanenaa21f622015-07-03 15:44:50 +0300103 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800104 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100105 shared/platform.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300106 libweston/weston-egl-ext.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300107
108if SYSTEMD_NOTIFY_SUPPORT
109module_LTLIBRARIES += systemd-notify.la
110systemd_notify_la_LDFLAGS = -module -avoid-version
111systemd_notify_la_LIBADD = $(SYSTEMD_DAEMON_LIBS)
112systemd_notify_la_CFLAGS = \
Pekka Paalanenaff703e2016-04-05 14:08:11 +0300113 $(COMPOSITOR_CFLAGS) \
114 $(SYSTEMD_DAEMON_CFLAGS) \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300115 $(PIXMAN_CFLAGS) \
116 $(AM_CFLAGS)
117systemd_notify_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300118 compositor/systemd-notify.c \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300119 shared/helpers.h \
120 shared/zalloc.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300121 libweston/compositor.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300122endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800123
Giulio Camuffo9e445982016-06-02 21:48:15 +0300124nodist_libweston_la_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800125 protocol/weston-screenshooter-protocol.c \
126 protocol/weston-screenshooter-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800127 protocol/text-cursor-position-protocol.c \
128 protocol/text-cursor-position-server-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800129 protocol/text-input-unstable-v1-protocol.c \
130 protocol/text-input-unstable-v1-server-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800131 protocol/input-method-unstable-v1-protocol.c \
132 protocol/input-method-unstable-v1-server-protocol.h \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200133 protocol/presentation-time-protocol.c \
134 protocol/presentation-time-server-protocol.h \
Pekka Paalanene95ad5c2016-04-15 14:47:08 +0300135 protocol/viewporter-protocol.c \
136 protocol/viewporter-server-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800137 protocol/linux-dmabuf-unstable-v1-protocol.c \
138 protocol/linux-dmabuf-unstable-v1-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800139
Giulio Camuffo9e445982016-06-02 21:48:15 +0300140BUILT_SOURCES += $(nodist_libweston_la_SOURCES)
141
142bin_PROGRAMS += weston
143
144weston_LDFLAGS = -export-dynamic
145weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON \
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200146 -DMODULEDIR='"$(moduledir)"' \
147 -DXSERVER_PATH='"@XSERVER_PATH@"'
Giulio Camuffo9e445982016-06-02 21:48:15 +0300148weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
149weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
150 $(DLOPEN_LIBS) $(LIBINPUT_BACKEND_LIBS) \
151 -lm libshared.la libweston.la
152
153weston_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300154 compositor/main.c \
155 compositor/weston-screenshooter.c \
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200156 compositor/text-backend.c \
157 compositor/xwayland.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800158
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800159# Track this dependency explicitly instead of using BUILT_SOURCES. We
160# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
161# in case we're building from tarballs.
162
Emil Velikova8840242016-07-04 14:57:12 +0100163compositor/main.c : $(top_builddir)/libweston/git-version.h
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300164libweston/compositor.c : $(top_builddir)/libweston/git-version.h
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800165
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800166noinst_LTLIBRARIES += \
167 libsession-helper.la
168
169libsession_helper_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300170 libweston/launcher-util.c \
171 libweston/launcher-util.h \
172 libweston/launcher-impl.h \
173 libweston/weston-launch.h \
174 libweston/launcher-weston-launch.c \
175 libweston/launcher-direct.c
Derek Foreman4ff38742015-06-18 11:43:11 -0500176libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800177libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
178
179if ENABLE_DBUS
180if HAVE_SYSTEMD_LOGIN
181libsession_helper_la_SOURCES += \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300182 libweston/dbus.h \
183 libweston/dbus.c \
184 libweston/launcher-logind.c
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800185libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
186libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
187endif
188endif
189
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800190if HAVE_GIT_REPO
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300191libweston/git-version.h : $(top_srcdir)/.git/logs/HEAD
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800192 $(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 -0800193else
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300194libweston/git-version.h :
Kristian Høgsberg1d2dd072014-02-03 10:55:51 -0800195 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
196
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800197endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800198
199.FORCE :
200
201if BUILD_WESTON_LAUNCH
202bin_PROGRAMS += weston-launch
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300203weston_launch_SOURCES = libweston/weston-launch.c libweston/weston-launch.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800204weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
205weston_launch_CFLAGS= \
Derek Foreman4ff38742015-06-18 11:43:11 -0500206 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800207 $(PAM_CFLAGS) \
208 $(SYSTEMD_LOGIN_CFLAGS) \
209 $(LIBDRM_CFLAGS)
210weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
211
212if ENABLE_SETUID_INSTALL
213install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700214 can_suid_files=no; \
215 chown root $(DESTDIR)$(bindir)/weston-launch \
216 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
217 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500218 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700219 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
220 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
221 false; \
222 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800223endif
224
225endif # BUILD_WESTON_LAUNCH
226
227pkgconfigdir = $(libdir)/pkgconfig
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300228pkgconfig_DATA = compositor/weston.pc libweston/libweston-${LIBWESTON_ABI_VERSION}.pc
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800229
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100230wayland_sessiondir = $(datadir)/wayland-sessions
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300231dist_wayland_session_DATA = compositor/weston.desktop
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100232
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300233libwestonincludedir = $(includedir)/libweston-${LIBWESTON_ABI_VERSION}
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300234libwestoninclude_HEADERS = \
235 libweston/version.h \
236 libweston/compositor.h \
237 libweston/compositor-drm.h \
238 libweston/compositor-fbdev.h \
239 libweston/compositor-headless.h \
240 libweston/compositor-rdp.h \
241 libweston/compositor-wayland.h \
242 libweston/compositor-x11.h \
Pekka Paalanen827b5d22016-06-29 11:54:26 +0200243 libweston/plugin-registry.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300244 libweston/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800245 shared/matrix.h \
246 shared/config-parser.h \
Emil Velikovcbcf5452016-07-04 15:34:17 +0100247 shared/zalloc.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800248
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300249westonincludedir = $(includedir)/weston
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300250westoninclude_HEADERS = compositor/weston.h
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300251
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000252if ENABLE_IVI_SHELL
253westoninclude_HEADERS += \
254 ivi-shell/ivi-layout-export.h
255endif
256
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800257if ENABLE_EGL
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300258libweston_module_LTLIBRARIES += gl-renderer.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800259gl_renderer_la_LDFLAGS = -module -avoid-version
260gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
261gl_renderer_la_CFLAGS = \
262 $(COMPOSITOR_CFLAGS) \
263 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300264 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500265 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800266gl_renderer_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300267 libweston/gl-renderer.h \
268 libweston/gl-renderer.c \
269 libweston/vertex-clipping.c \
270 libweston/vertex-clipping.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700271 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800272endif
273
274if ENABLE_X11_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300275libweston_module_LTLIBRARIES += x11-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800276x11_backend_la_LDFLAGS = -module -avoid-version
277x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800278 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800279x11_backend_la_CFLAGS = \
280 $(COMPOSITOR_CFLAGS) \
281 $(EGL_CFLAGS) \
282 $(PIXMAN_CFLAGS) \
283 $(CAIRO_CFLAGS) \
284 $(X11_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500285 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700286x11_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300287 libweston/compositor-x11.c \
288 libweston/compositor-x11.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700289 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800290endif
291
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100292INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000293INPUT_BACKEND_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300294 libweston/libinput-seat.c \
295 libweston/libinput-seat.h \
296 libweston/libinput-device.c \
297 libweston/libinput-device.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700298 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100299
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800300if ENABLE_DRM_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300301libweston_module_LTLIBRARIES += drm-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800302drm_backend_la_LDFLAGS = -module -avoid-version
303drm_backend_la_LIBADD = \
304 $(COMPOSITOR_LIBS) \
305 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100306 $(INPUT_BACKEND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300307 libshared.la \
308 $(CLOCK_GETTIME_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800309 libsession-helper.la
310drm_backend_la_CFLAGS = \
311 $(COMPOSITOR_CFLAGS) \
312 $(EGL_CFLAGS) \
313 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500314 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800315drm_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300316 libweston/compositor-drm.c \
317 libweston/compositor-drm.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100318 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700319 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200320 shared/timespec-util.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300321 libweston/libbacklight.c \
322 libweston/libbacklight.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800323
324if ENABLE_VAAPI_RECORDER
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300325drm_backend_la_SOURCES += libweston/vaapi-recorder.c libweston/vaapi-recorder.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800326drm_backend_la_LIBADD += $(LIBVA_LIBS)
327drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
328endif
329endif
330
331if ENABLE_WAYLAND_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300332libweston_module_LTLIBRARIES += wayland-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800333wayland_backend_la_LDFLAGS = -module -avoid-version
334wayland_backend_la_LIBADD = \
335 $(COMPOSITOR_LIBS) \
336 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800337 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800338wayland_backend_la_CFLAGS = \
339 $(COMPOSITOR_CFLAGS) \
340 $(EGL_CFLAGS) \
341 $(PIXMAN_CFLAGS) \
342 $(CAIRO_CFLAGS) \
343 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500344 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700345wayland_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300346 libweston/compositor-wayland.c \
347 libweston/compositor-wayland.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700348 shared/helpers.h
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500349nodist_wayland_backend_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800350 protocol/fullscreen-shell-unstable-v1-protocol.c \
351 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800352endif
353
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800354if ENABLE_HEADLESS_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300355libweston_module_LTLIBRARIES += headless-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800356headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800357headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500358headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700359headless_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300360 libweston/compositor-headless.c \
361 libweston/compositor-headless.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700362 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800363endif
364
365if ENABLE_FBDEV_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300366libweston_module_LTLIBRARIES += fbdev-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800367fbdev_backend_la_LDFLAGS = -module -avoid-version
368fbdev_backend_la_LIBADD = \
369 $(COMPOSITOR_LIBS) \
370 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100371 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800372 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800373 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800374fbdev_backend_la_CFLAGS = \
375 $(COMPOSITOR_CFLAGS) \
376 $(EGL_CFLAGS) \
377 $(FBDEV_COMPOSITOR_CFLAGS) \
378 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500379 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800380fbdev_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300381 libweston/compositor-fbdev.c \
382 libweston/compositor-fbdev.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700383 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100384 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800385endif
386
387if ENABLE_RDP_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300388libweston_module_LTLIBRARIES += rdp-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800389rdp_backend_la_LDFLAGS = -module -avoid-version
390rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
391 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800392 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800393rdp_backend_la_CFLAGS = \
394 $(COMPOSITOR_CFLAGS) \
395 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500396 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700397rdp_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300398 libweston/compositor-rdp.c \
399 libweston/compositor-rdp.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700400 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800401endif
402
403if HAVE_LCMS
404module_LTLIBRARIES += cms-static.la
405cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800406cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500407cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800408cms_static_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300409 compositor/cms-static.c \
410 compositor/cms-helper.c \
411 compositor/cms-helper.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700412 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800413if ENABLE_COLORD
414module_LTLIBRARIES += cms-colord.la
415cms_colord_la_LDFLAGS = -module -avoid-version
416cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500417cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800418cms_colord_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300419 compositor/cms-colord.c \
420 compositor/cms-helper.c \
421 compositor/cms-helper.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700422 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800423endif
424endif
425
426noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500427spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800428spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
429spring_tool_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300430 libweston/spring-tool.c \
431 libweston/animation.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800432 shared/matrix.c \
433 shared/matrix.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300434 libweston/compositor.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800435
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800436if BUILD_CLIENTS
437
438bin_PROGRAMS += weston-terminal weston-info
439
440libexec_PROGRAMS += \
441 weston-desktop-shell \
442 weston-screenshooter \
443 weston-keyboard \
444 weston-simple-im
445
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900446if ENABLE_IVI_SHELL
447libexec_PROGRAMS += \
448 weston-ivi-shell-user-interface
449endif
450
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800451demo_clients = \
452 weston-flower \
453 weston-image \
454 weston-cliptest \
455 weston-dnd \
456 weston-smoke \
457 weston-resizor \
458 weston-eventdemo \
459 weston-clickdot \
460 weston-transformed \
461 weston-fullscreen \
462 weston-stacking \
463 weston-calibrator \
464 weston-scaler
465
466if INSTALL_DEMO_CLIENTS
467bin_PROGRAMS += $(demo_clients)
468else
469noinst_PROGRAMS += $(demo_clients)
470endif
471
472
473if BUILD_SIMPLE_CLIENTS
474demo_clients += \
475 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500476 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800477 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400478 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800479 weston-multi-resource
480
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800481weston_simple_shm_SOURCES = clients/simple-shm.c
482nodist_weston_simple_shm_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800483 protocol/xdg-shell-unstable-v5-protocol.c \
484 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800485 protocol/fullscreen-shell-unstable-v1-protocol.c \
486 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900487 protocol/ivi-application-protocol.c \
488 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800489weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800490weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800491
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500492weston_simple_damage_SOURCES = clients/simple-damage.c
493nodist_weston_simple_damage_SOURCES = \
Pekka Paalanen7b69d6c2016-04-15 17:00:21 +0300494 protocol/viewporter-protocol.c \
495 protocol/viewporter-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800496 protocol/xdg-shell-unstable-v5-protocol.c \
497 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800498 protocol/fullscreen-shell-unstable-v1-protocol.c \
499 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500500weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
501weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
502
Jon A. Cruzb09da242015-06-16 13:15:13 -0700503weston_simple_touch_SOURCES = \
504 clients/simple-touch.c \
505 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800506weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800507weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800508
Jon A. Cruzb09da242015-06-16 13:15:13 -0700509weston_presentation_shm_SOURCES = \
510 clients/presentation-shm.c \
511 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400512nodist_weston_presentation_shm_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200513 protocol/presentation-time-protocol.c \
514 protocol/presentation-time-client-protocol.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400515weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300516weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400517
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800518weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800519weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300520weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800521endif
522
523if BUILD_SIMPLE_EGL_CLIENTS
524demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800525weston_simple_egl_SOURCES = clients/simple-egl.c
526nodist_weston_simple_egl_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800527 protocol/xdg-shell-unstable-v5-protocol.c \
528 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900529 protocol/ivi-application-protocol.c \
530 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800531weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800532weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
533endif
534
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000535if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
536demo_clients += weston-simple-dmabuf-intel
537weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
538nodist_weston_simple_dmabuf_intel_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800539 protocol/xdg-shell-unstable-v5-protocol.c \
540 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800541 protocol/fullscreen-shell-unstable-v1-protocol.c \
542 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800543 protocol/linux-dmabuf-unstable-v1-protocol.c \
544 protocol/linux-dmabuf-unstable-v1-client-protocol.h
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000545weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
546weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800547BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200548endif
549
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000550if BUILD_SIMPLE_DMABUF_V4L_CLIENT
551demo_clients += weston-simple-dmabuf-v4l
552weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
553nodist_weston_simple_dmabuf_v4l_SOURCES = \
554 protocol/xdg-shell-unstable-v5-protocol.c \
555 protocol/xdg-shell-unstable-v5-client-protocol.h \
556 protocol/fullscreen-shell-unstable-v1-protocol.c \
557 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
558 protocol/linux-dmabuf-unstable-v1-protocol.c \
559 protocol/linux-dmabuf-unstable-v1-client-protocol.h
560weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
561weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
562BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
563endif
564
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800565noinst_LTLIBRARIES += libtoytoolkit.la
566
567libtoytoolkit_la_SOURCES = \
568 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700569 clients/window.h \
570 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800571
572nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100573 protocol/text-cursor-position-protocol.c \
574 protocol/text-cursor-position-client-protocol.h \
Pekka Paalanen73511002016-04-15 16:53:41 +0300575 protocol/viewporter-protocol.c \
576 protocol/viewporter-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800577 protocol/xdg-shell-unstable-v5-protocol.c \
578 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900579 protocol/ivi-application-protocol.c \
580 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500581
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800582BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
583
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800584
585libtoytoolkit_la_LIBADD = \
586 $(CLIENT_LIBS) \
587 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300588 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800589libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800590
591weston_flower_SOURCES = clients/flower.c
592weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800593weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800594
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100595weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800596 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800597nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800598 protocol/weston-screenshooter-protocol.c \
599 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800600weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800601weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800602
Jon A. Cruzb09da242015-06-16 13:15:13 -0700603weston_terminal_SOURCES = \
604 clients/terminal.c \
605 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800606weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800607weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800608
609weston_image_SOURCES = clients/image.c
610weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800611weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800612
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300613weston_cliptest_SOURCES = \
614 clients/cliptest.c \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300615 libweston/vertex-clipping.c \
616 libweston/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800617weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800618weston_cliptest_LDADD = libtoytoolkit.la
619
Jon A. Cruzb09da242015-06-16 13:15:13 -0700620weston_dnd_SOURCES = \
621 clients/dnd.c \
622 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800623weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800624weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800625
626weston_smoke_SOURCES = clients/smoke.c
627weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800628weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800629
630weston_resizor_SOURCES = clients/resizor.c
631weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800632weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800633
634weston_scaler_SOURCES = clients/scaler.c
635weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800636weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800637
638if HAVE_CAIRO_GLESV2
639demo_clients += weston-nested weston-nested-client
640
Jon A. Cruzb09da242015-06-16 13:15:13 -0700641weston_nested_SOURCES = \
642 clients/nested.c \
643 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800644weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800645weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800646
647weston_nested_client_SOURCES = clients/nested-client.c
648weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800649weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800650endif
651
Jon A. Cruzb09da242015-06-16 13:15:13 -0700652weston_eventdemo_SOURCES = \
653 clients/eventdemo.c \
654 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800655weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800656weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800657
Jon A. Cruzb09da242015-06-16 13:15:13 -0700658weston_clickdot_SOURCES = \
659 clients/clickdot.c \
660 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800661weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800662weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800663
664weston_transformed_SOURCES = clients/transformed.c
665weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800666weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800667
668weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500669nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800670 protocol/fullscreen-shell-unstable-v1-protocol.c \
671 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800672weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800673weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800674
Jon A. Cruzb09da242015-06-16 13:15:13 -0700675weston_stacking_SOURCES = \
676 clients/stacking.c \
677 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800678weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800679weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800680
Jon A. Cruzb09da242015-06-16 13:15:13 -0700681weston_calibrator_SOURCES = \
682 clients/calibrator.c \
683 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800684 shared/matrix.c \
685 shared/matrix.h
686weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800687weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800688
689if BUILD_SUBSURFACES_CLIENT
690demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700691weston_subsurfaces_SOURCES = \
692 clients/subsurfaces.c \
693 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800694weston_subsurfaces_CFLAGS = \
695 $(AM_CFLAGS) \
696 $(SIMPLE_EGL_CLIENT_CFLAGS) \
697 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800698weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
699endif
700
701if HAVE_PANGO
702demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700703weston_editor_SOURCES = \
704 clients/editor.c \
705 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800706nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800707 protocol/text-input-unstable-v1-protocol.c \
708 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800709weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800710weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800711endif
712
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800713weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800714nodist_weston_keyboard_SOURCES = \
715 protocol/weston-desktop-shell-client-protocol.h \
716 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800717 protocol/input-method-unstable-v1-protocol.c \
718 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800719weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800720weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800721
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800722weston_simple_im_SOURCES = clients/weston-simple-im.c
723nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800724 protocol/input-method-unstable-v1-protocol.c \
725 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800726weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800727weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800728
Jon A. Cruzb09da242015-06-16 13:15:13 -0700729weston_info_SOURCES = \
730 clients/weston-info.c \
731 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400732nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200733 protocol/presentation-time-protocol.c \
734 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800735weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200736weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800737
Jon A. Cruzb09da242015-06-16 13:15:13 -0700738weston_desktop_shell_SOURCES = \
739 clients/desktop-shell.c \
740 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800741nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800742 protocol/weston-desktop-shell-client-protocol.h \
743 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800744weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800745weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800746
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900747if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700748weston_ivi_shell_user_interface_SOURCES = \
749 clients/ivi-shell-user-interface.c \
750 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900751nodist_weston_ivi_shell_user_interface_SOURCES = \
752 protocol/ivi-hmi-controller-client-protocol.h \
753 protocol/ivi-hmi-controller-protocol.c \
754 protocol/ivi-application-client-protocol.h \
755 protocol/ivi-application-protocol.c
756weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
757weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
758endif
759
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800760if BUILD_FULL_GL_CLIENTS
761demo_clients += weston-gears
762weston_gears_SOURCES = clients/gears.c
763weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800764weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800765endif
766
767endif
768
769BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800770 protocol/weston-screenshooter-protocol.c \
771 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100772 protocol/text-cursor-position-client-protocol.h \
773 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800774 protocol/text-input-unstable-v1-protocol.c \
775 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800776 protocol/input-method-unstable-v1-protocol.c \
777 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800778 protocol/weston-desktop-shell-client-protocol.h \
779 protocol/weston-desktop-shell-protocol.c \
Pekka Paalanen73511002016-04-15 16:53:41 +0300780 protocol/viewporter-client-protocol.h \
781 protocol/viewporter-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200782 protocol/presentation-time-protocol.c \
783 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800784 protocol/fullscreen-shell-unstable-v1-protocol.c \
785 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800786 protocol/xdg-shell-unstable-v5-protocol.c \
787 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900788 protocol/ivi-hmi-controller-protocol.c \
789 protocol/ivi-hmi-controller-client-protocol.h \
790 protocol/ivi-application-protocol.c \
791 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800792
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800793westondatadir = $(datadir)/weston
794dist_westondata_DATA = \
795 data/wayland.svg \
796 data/wayland.png \
797 data/pattern.png \
798 data/terminal.png \
799 data/border.png \
Bryce Harrington6bc52542016-03-24 17:57:39 -0700800 data/icon_editor.png \
801 data/icon_flower.png \
802 data/icon_terminal.png \
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800803 data/icon_window.png \
804 data/sign_close.png \
805 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100806 data/sign_minimize.png
807
808if ENABLE_IVI_SHELL
809dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900810 data/background.png \
811 data/tiling.png \
812 data/fullscreen.png \
813 data/panel.png \
814 data/random.png \
815 data/sidebyside.png \
816 data/home.png \
817 data/icon_ivi_clickdot.png \
818 data/icon_ivi_flower.png \
819 data/icon_ivi_simple-egl.png \
820 data/icon_ivi_simple-shm.png \
821 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100822endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800823
824
825if BUILD_WCAP_TOOLS
826bin_PROGRAMS += wcap-decode
827
828wcap_decode_SOURCES = \
829 wcap/main.c \
830 wcap/wcap-decode.c \
831 wcap/wcap-decode.h
832
Derek Foreman4ff38742015-06-18 11:43:11 -0500833wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800834wcap_decode_LDADD = $(WCAP_LIBS)
835endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800836
837
838if ENABLE_DESKTOP_SHELL
839
840module_LTLIBRARIES += desktop-shell.la
841
842desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100843 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800844 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300845 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +0100846 -I$(top_srcdir)/libweston \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800847 -I$(top_builddir)/desktop-shell \
848 -DDATADIR='"$(datadir)"' \
849 -DMODULEDIR='"$(moduledir)"' \
850 -DLIBEXECDIR='"$(libexecdir)"' \
851 -DIN_WESTON
852
853desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800854desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500855desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800856desktop_shell_la_SOURCES = \
857 desktop-shell/shell.h \
858 desktop-shell/shell.c \
859 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700860 desktop-shell/input-panel.c \
861 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800862nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800863 protocol/weston-desktop-shell-protocol.c \
864 protocol/weston-desktop-shell-server-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800865 protocol/xdg-shell-unstable-v5-protocol.c \
866 protocol/xdg-shell-unstable-v5-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800867
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800868BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800869endif
870
Jason Ekstrand946a9482014-04-02 19:53:47 -0500871if ENABLE_FULLSCREEN_SHELL
872
873module_LTLIBRARIES += fullscreen-shell.la
874
875fullscreen_shell_la_CPPFLAGS = \
876 -I$(top_builddir)/protocol \
877 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300878 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +0100879 -I$(top_srcdir)/libweston \
Jason Ekstrand946a9482014-04-02 19:53:47 -0500880 -DIN_WESTON
881
882fullscreen_shell_la_LDFLAGS = -module -avoid-version
883fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500884fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500885fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700886 fullscreen-shell/fullscreen-shell.c \
887 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500888nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800889 protocol/fullscreen-shell-unstable-v1-protocol.c \
890 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500891
892BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
893endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800894
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900895if ENABLE_IVI_SHELL
896
897module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900898 $(ivi_shell) \
899 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900900
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900901ivi_shell = ivi-shell.la
902ivi_shell_la_LDFLAGS = -module -avoid-version
903ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500904ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900905ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900906 ivi-shell/ivi-layout-export.h \
907 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +0200908 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900909 ivi-shell/ivi-layout.c \
910 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900911 ivi-shell/ivi-shell.h \
912 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700913 ivi-shell/input-panel-ivi.c \
914 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900915nodist_ivi_shell_la_SOURCES = \
916 protocol/ivi-application-protocol.c \
917 protocol/ivi-application-server-protocol.h
918
919BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
920
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900921hmi_controller = hmi-controller.la
922hmi_controller_la_LDFLAGS = -module -avoid-version
923hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500924hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900925hmi_controller_la_SOURCES = \
926 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700927 ivi-shell/hmi-controller.c \
928 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900929nodist_hmi_controller_la_SOURCES = \
930 protocol/ivi-hmi-controller-protocol.c \
931 protocol/ivi-hmi-controller-server-protocol.h
932
933BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
934
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900935endif
936
937
Jason Ekstrand47928d82014-04-02 19:54:01 -0500938if ENABLE_SCREEN_SHARING
939
940module_LTLIBRARIES += screen-share.la
941
942screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
943screen_share_la_LDFLAGS = -module -avoid-version
944screen_share_la_LIBADD = \
945 $(COMPOSITOR_LIBS) \
946 $(SCREEN_SHARE_LIBS) \
947 libshared-cairo.la
948screen_share_la_CFLAGS = \
949 $(COMPOSITOR_CFLAGS) \
950 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500951 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -0500952screen_share_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300953 compositor/screen-share.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700954 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500955nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800956 protocol/fullscreen-shell-unstable-v1-protocol.c \
957 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500958
959endif
960
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800961if ENABLE_XWAYLAND
962
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200963libweston_module_LTLIBRARIES += xwayland.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800964
965xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100966 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800967 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300968 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +0100969 -I$(top_srcdir)/libweston \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800970 -I$(top_builddir)/xwayland \
971 -DDATADIR='"$(datadir)"' \
972 -DMODULEDIR='"$(moduledir)"' \
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200973 -DLIBEXECDIR='"$(libexecdir)"'
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800974
975xwayland_la_LDFLAGS = -module -avoid-version
976xwayland_la_LIBADD = \
977 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800978 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800979xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500980 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800981 $(COMPOSITOR_CFLAGS) \
982 $(PIXMAN_CFLAGS) \
983 $(CAIRO_CFLAGS)
984xwayland_la_SOURCES = \
985 xwayland/xwayland.h \
986 xwayland/window-manager.c \
987 xwayland/selection.c \
988 xwayland/dnd.c \
989 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800990 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700991 xwayland/hash.h \
992 shared/helpers.h
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200993
994libwestoninclude_HEADERS += xwayland/xwayland-api.h
995
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800996endif
997
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800998
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800999#
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001000# Shared utilities
1001#
1002
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001003noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
1004 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001005
Derek Foreman4ff38742015-06-18 11:43:11 -05001006libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001007
1008libshared_la_SOURCES = \
1009 shared/config-parser.c \
1010 shared/option-parser.c \
1011 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +02001012 shared/file-util.c \
1013 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001014 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001015 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -07001016 shared/os-compatibility.h \
1017 shared/xalloc.c \
1018 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001019
1020libshared_cairo_la_CFLAGS = \
1021 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001022 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001023 $(COMPOSITOR_CFLAGS) \
1024 $(PIXMAN_CFLAGS) \
1025 $(CAIRO_CFLAGS) \
1026 $(PNG_CFLAGS) \
1027 $(WEBP_CFLAGS)
1028
1029libshared_cairo_la_LIBADD = \
1030 $(PIXMAN_LIBS) \
1031 $(CAIRO_LIBS) \
1032 $(PNG_LIBS) \
1033 $(WEBP_LIBS) \
1034 $(JPEG_LIBS)
1035
1036libshared_cairo_la_SOURCES = \
1037 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001038 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001039 shared/image-loader.c \
1040 shared/image-loader.h \
1041 shared/cairo-util.c \
1042 shared/frame.c \
1043 shared/cairo-util.h
1044
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001045libzunitc_la_SOURCES = \
1046 tools/zunitc/inc/zunitc/zunitc.h \
1047 tools/zunitc/inc/zunitc/zunitc_impl.h \
1048 tools/zunitc/src/zuc_base_logger.c \
1049 tools/zunitc/src/zuc_base_logger.h \
1050 tools/zunitc/src/zuc_collector.c \
1051 tools/zunitc/src/zuc_collector.h \
1052 tools/zunitc/src/zuc_context.h \
1053 tools/zunitc/src/zuc_event.h \
1054 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001055 tools/zunitc/src/zuc_junit_reporter.c \
1056 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001057 tools/zunitc/src/zuc_types.h \
1058 tools/zunitc/src/zunitc_impl.c \
1059 shared/helpers.h
1060
1061libzunitc_la_CFLAGS = \
1062 $(AM_CFLAGS) \
1063 -I$(top_srcdir)/tools/zunitc/inc
1064
1065libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001066 libshared.la \
1067 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001068
Jon A. Cruz646aef52015-07-15 19:22:41 -07001069if ENABLE_JUNIT_XML
1070libzunitc_la_CFLAGS += \
1071 $(LIBXML2_CFLAGS)
1072libzunitc_la_LIBADD += \
1073 $(LIBXML2_LIBS)
1074endif
1075
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001076libzunitcmain_la_SOURCES = \
1077 tools/zunitc/src/main.c
1078
1079libzunitcmain_la_CFLAGS = \
1080 $(AM_CFLAGS) \
1081 -I$(top_srcdir)/tools/zunitc/inc
1082
1083libzunitcmain_la_LIBADD = \
1084 libzunitc.la \
1085 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001086
1087#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001088# tests subdirectory
1089#
1090
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001091TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1092
1093internal_tests = \
1094 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001095
1096shared_tests = \
1097 config-parser.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001098 vertex-clip.test \
1099 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001100
1101module_tests = \
Pekka Paalanen827b5d22016-06-29 11:54:26 +02001102 plugin-registry-test.la \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001103 surface-test.la \
1104 surface-global-test.la
1105
1106weston_tests = \
1107 bad_buffer.weston \
1108 keyboard.weston \
1109 event.weston \
1110 button.weston \
1111 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001112 presentation.weston \
Pekka Paalanen82d95a62016-04-19 17:20:42 +03001113 viewporter.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001114 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001115 subsurface.weston \
1116 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001117
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001118ivi_tests =
1119
1120$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001121
1122AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001123 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1124 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001125
1126TEST_EXTENSIONS = .la .weston
1127LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1128WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1129
1130clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001131 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001132 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001133
1134# To remove when automake 1.11 support is dropped
1135export abs_builddir
1136
1137noinst_LTLIBRARIES += \
1138 weston-test.la \
1139 $(module_tests) \
1140 libtest-runner.la \
1141 libtest-client.la
1142
1143noinst_PROGRAMS += \
1144 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001145 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001146 $(shared_tests) \
1147 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001148 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001149 matrix-test
1150
1151test_module_ldflags = \
1152 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1153
Pekka Paalanen827b5d22016-06-29 11:54:26 +02001154plugin_registry_test_la_SOURCES = tests/plugin-registry-test.c
1155plugin_registry_test_la_LDFLAGS = $(test_module_ldflags)
1156plugin_registry_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1157
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001158surface_global_test_la_SOURCES = tests/surface-global-test.c
1159surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001160surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001161
1162surface_test_la_SOURCES = tests/surface-test.c
1163surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001164surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001165
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001166weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001167weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001168weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001169weston_test_la_SOURCES = \
1170 tests/weston-test.c \
1171 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001172nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001173 protocol/weston-test-protocol.c \
1174 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001175
1176if ENABLE_EGL
1177weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1178weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1179endif
1180
1181libtest_runner_la_SOURCES = \
1182 tests/weston-test-runner.c \
1183 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001184libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001185
1186config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001187config_parser_test_LDADD = \
1188 libshared.la \
1189 $(COMPOSITOR_LIBS) \
1190 libzunitc.la \
1191 libzunitcmain.la
1192config_parser_test_CFLAGS = \
1193 $(AM_CFLAGS) \
1194 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001195
1196vertex_clip_test_SOURCES = \
1197 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001198 shared/helpers.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001199 libweston/vertex-clipping.c \
1200 libweston/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001201vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001202
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001203libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001204 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001205 tests/weston-test-client-helper.h
1206nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001207 protocol/weston-test-protocol.c \
1208 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001209libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1210libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) $(CAIRO_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001211
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001212
1213#
1214# Internal tests - tests functionality of the testsuite itself
1215#
1216
1217internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001218internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1219internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001220
1221
1222#
1223# Weston Tests
1224#
1225
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001226bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001227bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001228bad_buffer_weston_LDADD = libtest-client.la
1229
1230keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001231keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001232keyboard_weston_LDADD = libtest-client.la
1233
1234event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001235event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001236event_weston_LDADD = libtest-client.la
1237
1238button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001239button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001240button_weston_LDADD = libtest-client.la
1241
Marek Chalupa5fd81402015-03-30 09:21:29 -04001242devices_weston_SOURCES = tests/devices-test.c
1243devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1244devices_weston_LDADD = libtest-client.la
1245
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001246text_weston_SOURCES = tests/text-test.c
1247nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001248 protocol/text-input-unstable-v1-protocol.c \
1249 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001250text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001251text_weston_LDADD = libtest-client.la
1252
1253subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001254subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001255subsurface_weston_LDADD = libtest-client.la
1256
Jon A. Cruzb09da242015-06-16 13:15:13 -07001257presentation_weston_SOURCES = \
1258 tests/presentation-test.c \
1259 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001260nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001261 protocol/presentation-time-protocol.c \
1262 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001263presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1264presentation_weston_LDADD = libtest-client.la
1265
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001266roles_weston_SOURCES = tests/roles-test.c
1267roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1268roles_weston_LDADD = libtest-client.la
1269
Pekka Paalanen82d95a62016-04-19 17:20:42 +03001270viewporter_weston_SOURCES = \
1271 tests/viewporter-test.c \
1272 shared/helpers.h
1273nodist_viewporter_weston_SOURCES = \
1274 protocol/viewporter-protocol.c \
1275 protocol/viewporter-client-protocol.h
1276viewporter_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1277viewporter_weston_LDADD = libtest-client.la
1278
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001279if ENABLE_EGL
1280weston_tests += buffer-count.weston
1281buffer_count_weston_SOURCES = tests/buffer-count-test.c
Pekka Paalanen924cd942016-05-20 17:25:38 +03001282buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001283buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1284endif
1285
1286if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001287weston_tests += xwayland-test.weston
1288xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001289xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001290xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001291endif
1292
1293matrix_test_SOURCES = \
1294 tests/matrix-test.c \
1295 shared/matrix.c \
1296 shared/matrix.h
1297matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001298matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001299
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001300if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001301module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001302 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001303 ivi-layout-test.la
1304
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001305ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1306ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001307ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001308ivi_layout_internal_test_la_SOURCES = \
1309 tests/ivi_layout-internal-test.c
1310
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001311ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1312ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001313ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001314ivi_layout_test_la_SOURCES = \
1315 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001316 tests/ivi-test.h \
1317 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001318nodist_ivi_layout_test_la_SOURCES = \
1319 protocol/weston-test-protocol.c \
1320 protocol/weston-test-server-protocol.h
1321
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001322ivi_tests += \
1323 ivi-shell-app.weston
1324
1325ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1326nodist_ivi_shell_app_weston_SOURCES = \
1327 protocol/ivi-application-protocol.c \
1328 protocol/ivi-application-client-protocol.h
1329ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1330ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001331
1332noinst_PROGRAMS += ivi-layout.ivi
1333
1334ivi_layout_ivi_SOURCES = \
1335 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001336 tests/ivi-test.h \
1337 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001338nodist_ivi_layout_ivi_SOURCES = \
1339 protocol/ivi-application-protocol.c \
1340 protocol/ivi-application-client-protocol.h
1341ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1342ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001343endif
1344
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001345if BUILD_SETBACKLIGHT
1346noinst_PROGRAMS += setbacklight
1347setbacklight_SOURCES = \
1348 tests/setbacklight.c \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001349 libweston/libbacklight.c \
1350 libweston/libbacklight.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001351setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1352setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1353endif
1354
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001355all-local: zuctest$(EXEEXT)
1356
1357noinst_PROGRAMS += zuctest$(EXEEXT)
1358
1359zuctest_LDADD = \
1360 libzunitc.la \
1361 libzunitcmain.la
1362
1363zuctest_CFLAGS = \
1364 $(AM_CFLAGS) \
1365 -I$(top_srcdir)/tools/zunitc/inc
1366
1367zuctest_SOURCES = \
1368 tools/zunitc/test/fixtures_test.c \
1369 tools/zunitc/test/zunitc_test.c
1370
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001371EXTRA_DIST += \
1372 tests/weston-tests-env \
1373 tests/internal-screenshot.ini \
1374 tests/reference/internal-screenshot-bad-00.png \
1375 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001376
1377BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001378 protocol/weston-test-protocol.c \
1379 protocol/weston-test-server-protocol.h \
1380 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001381 protocol/text-input-unstable-v1-protocol.c \
1382 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001383
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001384EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001385 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001386 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001387 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001388 protocol/weston-test.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001389 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001390 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001391
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001392#
1393# manual test modules in tests subdirectory
1394#
1395
1396noinst_LTLIBRARIES += \
1397 surface-screenshot.la
1398
1399surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1400surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001401surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001402surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1403
1404
1405#
1406# Documentation
1407#
1408
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001409man_MANS = weston.1 weston.ini.5
1410
1411if ENABLE_DRM_COMPOSITOR
1412man_MANS += weston-drm.7
1413endif
1414
1415MAN_SUBSTS = \
1416 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1417 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1418 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1419 -e 's|__version__|$(PACKAGE_VERSION)|g'
1420
1421SUFFIXES = .1 .5 .7 .man
1422
1423%.1 %.5 %.7 : man/%.man
1424 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1425
1426EXTRA_DIST += \
1427 man/weston.man \
1428 man/weston-drm.man \
1429 man/weston.ini.man
1430
1431CLEANFILES += $(man_MANS)
1432
Jon A. Cruz179c1862015-07-15 19:22:43 -07001433if ENABLE_DEVDOCS
1434DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1435
1436docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1437 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1438
1439docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1440 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1441endif
1442
1443DOCDIRS = \
1444 docs/developer \
1445 docs/tools
1446
1447$(DOCDIRS):
1448 $(MKDIR_P) $@
1449
1450.PHONY: doc $(DOXYGEN_INDICES)
1451
1452doc: $(DOXYGEN_INDICES)
1453
Jonas Ådahl496adb32015-11-17 16:00:27 +08001454.SECONDEXPANSION:
1455
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001456define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001457$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001458endef
1459
1460define protoname
1461$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1462endef
1463
1464protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001465 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1466
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001467protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001468 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1469
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001470protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001471 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1472
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001473protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1474 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001475
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001476protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1477 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001478
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001479protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1480 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@