blob: 9797f6bd9fc3bc4f6e69e159c2b3d384aaa234b2 [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 =
Emil Velikov7fe47f32016-07-22 14:51:51 +01008libweston_moduledir = $(libdir)/libweston-$(LIBWESTON_MAJOR)
Giulio Camuffo179fcda2016-06-02 21:48:14 +03009libweston_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
Emil Velikov7fe47f32016-07-22 14:51:51 +010064lib_LTLIBRARIES = libweston-@LIBWESTON_MAJOR@.la
65libweston_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
66libweston_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
67libweston_@LIBWESTON_MAJOR@_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
Emil Velikov7fe47f32016-07-22 14:51:51 +010070libweston_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080071
Emil Velikov7fe47f32016-07-22 14:51:51 +010072libweston_@LIBWESTON_MAJOR@_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
Emil Velikov7fe47f32016-07-22 14:51:51 +0100124nodist_libweston_@LIBWESTON_MAJOR@_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 \
Jonas Ådahl30d61d82014-10-22 21:21:17 +0200138 protocol/linux-dmabuf-unstable-v1-server-protocol.h \
139 protocol/relative-pointer-unstable-v1-protocol.c \
Jonas Ådahld3414f22016-07-22 17:56:31 +0800140 protocol/relative-pointer-unstable-v1-server-protocol.h \
141 protocol/pointer-constraints-unstable-v1-protocol.c \
142 protocol/pointer-constraints-unstable-v1-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800143
Emil Velikov7fe47f32016-07-22 14:51:51 +0100144BUILT_SOURCES += $(nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES)
Giulio Camuffo9e445982016-06-02 21:48:15 +0300145
146bin_PROGRAMS += weston
147
148weston_LDFLAGS = -export-dynamic
149weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON \
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200150 -DMODULEDIR='"$(moduledir)"' \
151 -DXSERVER_PATH='"@XSERVER_PATH@"'
Giulio Camuffo9e445982016-06-02 21:48:15 +0300152weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
153weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
154 $(DLOPEN_LIBS) $(LIBINPUT_BACKEND_LIBS) \
Emil Velikov7fe47f32016-07-22 14:51:51 +0100155 -lm libshared.la libweston-@LIBWESTON_MAJOR@.la
Giulio Camuffo9e445982016-06-02 21:48:15 +0300156
157weston_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300158 compositor/main.c \
159 compositor/weston-screenshooter.c \
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200160 compositor/text-backend.c \
161 compositor/xwayland.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800162
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800163# Track this dependency explicitly instead of using BUILT_SOURCES. We
164# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
165# in case we're building from tarballs.
166
Emil Velikova8840242016-07-04 14:57:12 +0100167compositor/main.c : $(top_builddir)/libweston/git-version.h
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300168libweston/compositor.c : $(top_builddir)/libweston/git-version.h
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800169
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800170noinst_LTLIBRARIES += \
171 libsession-helper.la
172
173libsession_helper_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300174 libweston/launcher-util.c \
175 libweston/launcher-util.h \
176 libweston/launcher-impl.h \
177 libweston/weston-launch.h \
178 libweston/launcher-weston-launch.c \
179 libweston/launcher-direct.c
Derek Foreman4ff38742015-06-18 11:43:11 -0500180libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800181libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
182
183if ENABLE_DBUS
184if HAVE_SYSTEMD_LOGIN
185libsession_helper_la_SOURCES += \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300186 libweston/dbus.h \
187 libweston/dbus.c \
188 libweston/launcher-logind.c
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800189libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
190libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
191endif
192endif
193
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800194if HAVE_GIT_REPO
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300195libweston/git-version.h : $(top_srcdir)/.git/logs/HEAD
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800196 $(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 -0800197else
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300198libweston/git-version.h :
Kristian Høgsberg1d2dd072014-02-03 10:55:51 -0800199 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
200
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800201endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800202
203.FORCE :
204
205if BUILD_WESTON_LAUNCH
206bin_PROGRAMS += weston-launch
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300207weston_launch_SOURCES = libweston/weston-launch.c libweston/weston-launch.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800208weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
209weston_launch_CFLAGS= \
Derek Foreman4ff38742015-06-18 11:43:11 -0500210 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800211 $(PAM_CFLAGS) \
212 $(SYSTEMD_LOGIN_CFLAGS) \
213 $(LIBDRM_CFLAGS)
214weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
215
216if ENABLE_SETUID_INSTALL
217install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700218 can_suid_files=no; \
219 chown root $(DESTDIR)$(bindir)/weston-launch \
220 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
221 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500222 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700223 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
224 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
225 false; \
226 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800227endif
228
229endif # BUILD_WESTON_LAUNCH
230
231pkgconfigdir = $(libdir)/pkgconfig
Emil Velikov7fe47f32016-07-22 14:51:51 +0100232pkgconfig_DATA = compositor/weston.pc libweston/libweston-${LIBWESTON_MAJOR}.pc
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800233
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100234wayland_sessiondir = $(datadir)/wayland-sessions
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300235dist_wayland_session_DATA = compositor/weston.desktop
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100236
Emil Velikov7fe47f32016-07-22 14:51:51 +0100237libwestonincludedir = $(includedir)/libweston-${LIBWESTON_MAJOR}
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300238libwestoninclude_HEADERS = \
239 libweston/version.h \
240 libweston/compositor.h \
241 libweston/compositor-drm.h \
242 libweston/compositor-fbdev.h \
243 libweston/compositor-headless.h \
244 libweston/compositor-rdp.h \
245 libweston/compositor-wayland.h \
246 libweston/compositor-x11.h \
Pekka Paalanen827b5d22016-06-29 11:54:26 +0200247 libweston/plugin-registry.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300248 libweston/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800249 shared/matrix.h \
250 shared/config-parser.h \
Emil Velikovcbcf5452016-07-04 15:34:17 +0100251 shared/zalloc.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800252
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300253westonincludedir = $(includedir)/weston
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300254westoninclude_HEADERS = compositor/weston.h
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300255
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000256if ENABLE_IVI_SHELL
257westoninclude_HEADERS += \
258 ivi-shell/ivi-layout-export.h
259endif
260
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800261if ENABLE_EGL
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300262libweston_module_LTLIBRARIES += gl-renderer.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800263gl_renderer_la_LDFLAGS = -module -avoid-version
264gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
265gl_renderer_la_CFLAGS = \
266 $(COMPOSITOR_CFLAGS) \
267 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300268 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500269 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800270gl_renderer_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300271 libweston/gl-renderer.h \
272 libweston/gl-renderer.c \
273 libweston/vertex-clipping.c \
274 libweston/vertex-clipping.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700275 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800276endif
277
278if ENABLE_X11_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300279libweston_module_LTLIBRARIES += x11-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800280x11_backend_la_LDFLAGS = -module -avoid-version
281x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800282 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800283x11_backend_la_CFLAGS = \
284 $(COMPOSITOR_CFLAGS) \
285 $(EGL_CFLAGS) \
286 $(PIXMAN_CFLAGS) \
287 $(CAIRO_CFLAGS) \
288 $(X11_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500289 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700290x11_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300291 libweston/compositor-x11.c \
292 libweston/compositor-x11.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700293 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800294endif
295
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100296INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000297INPUT_BACKEND_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300298 libweston/libinput-seat.c \
299 libweston/libinput-seat.h \
300 libweston/libinput-device.c \
301 libweston/libinput-device.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700302 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100303
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800304if ENABLE_DRM_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300305libweston_module_LTLIBRARIES += drm-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800306drm_backend_la_LDFLAGS = -module -avoid-version
307drm_backend_la_LIBADD = \
308 $(COMPOSITOR_LIBS) \
309 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100310 $(INPUT_BACKEND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300311 libshared.la \
312 $(CLOCK_GETTIME_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800313 libsession-helper.la
314drm_backend_la_CFLAGS = \
315 $(COMPOSITOR_CFLAGS) \
316 $(EGL_CFLAGS) \
317 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500318 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800319drm_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300320 libweston/compositor-drm.c \
321 libweston/compositor-drm.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100322 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700323 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200324 shared/timespec-util.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300325 libweston/libbacklight.c \
326 libweston/libbacklight.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800327
328if ENABLE_VAAPI_RECORDER
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300329drm_backend_la_SOURCES += libweston/vaapi-recorder.c libweston/vaapi-recorder.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800330drm_backend_la_LIBADD += $(LIBVA_LIBS)
331drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
332endif
333endif
334
335if ENABLE_WAYLAND_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300336libweston_module_LTLIBRARIES += wayland-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800337wayland_backend_la_LDFLAGS = -module -avoid-version
338wayland_backend_la_LIBADD = \
339 $(COMPOSITOR_LIBS) \
340 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800341 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800342wayland_backend_la_CFLAGS = \
343 $(COMPOSITOR_CFLAGS) \
344 $(EGL_CFLAGS) \
345 $(PIXMAN_CFLAGS) \
346 $(CAIRO_CFLAGS) \
347 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500348 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700349wayland_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300350 libweston/compositor-wayland.c \
351 libweston/compositor-wayland.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700352 shared/helpers.h
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500353nodist_wayland_backend_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800354 protocol/fullscreen-shell-unstable-v1-protocol.c \
355 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800356endif
357
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800358if ENABLE_HEADLESS_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300359libweston_module_LTLIBRARIES += headless-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800360headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800361headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500362headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700363headless_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300364 libweston/compositor-headless.c \
365 libweston/compositor-headless.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700366 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800367endif
368
369if ENABLE_FBDEV_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300370libweston_module_LTLIBRARIES += fbdev-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800371fbdev_backend_la_LDFLAGS = -module -avoid-version
372fbdev_backend_la_LIBADD = \
373 $(COMPOSITOR_LIBS) \
374 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100375 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800376 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800377 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800378fbdev_backend_la_CFLAGS = \
379 $(COMPOSITOR_CFLAGS) \
380 $(EGL_CFLAGS) \
381 $(FBDEV_COMPOSITOR_CFLAGS) \
382 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500383 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800384fbdev_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300385 libweston/compositor-fbdev.c \
386 libweston/compositor-fbdev.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700387 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100388 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800389endif
390
391if ENABLE_RDP_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300392libweston_module_LTLIBRARIES += rdp-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800393rdp_backend_la_LDFLAGS = -module -avoid-version
394rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
395 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800396 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800397rdp_backend_la_CFLAGS = \
398 $(COMPOSITOR_CFLAGS) \
399 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500400 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700401rdp_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300402 libweston/compositor-rdp.c \
403 libweston/compositor-rdp.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700404 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800405endif
406
407if HAVE_LCMS
408module_LTLIBRARIES += cms-static.la
409cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800410cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500411cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800412cms_static_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300413 compositor/cms-static.c \
414 compositor/cms-helper.c \
415 compositor/cms-helper.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700416 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800417if ENABLE_COLORD
418module_LTLIBRARIES += cms-colord.la
419cms_colord_la_LDFLAGS = -module -avoid-version
420cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500421cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800422cms_colord_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300423 compositor/cms-colord.c \
424 compositor/cms-helper.c \
425 compositor/cms-helper.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700426 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800427endif
428endif
429
430noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500431spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800432spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
433spring_tool_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300434 libweston/spring-tool.c \
435 libweston/animation.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800436 shared/matrix.c \
437 shared/matrix.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300438 libweston/compositor.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800439
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800440if BUILD_CLIENTS
441
442bin_PROGRAMS += weston-terminal weston-info
443
444libexec_PROGRAMS += \
445 weston-desktop-shell \
446 weston-screenshooter \
447 weston-keyboard \
448 weston-simple-im
449
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900450if ENABLE_IVI_SHELL
451libexec_PROGRAMS += \
452 weston-ivi-shell-user-interface
453endif
454
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800455demo_clients = \
456 weston-flower \
457 weston-image \
458 weston-cliptest \
459 weston-dnd \
460 weston-smoke \
461 weston-resizor \
462 weston-eventdemo \
463 weston-clickdot \
Jonas Ådahl61831f42016-03-15 18:14:00 +0800464 weston-confine \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800465 weston-transformed \
466 weston-fullscreen \
467 weston-stacking \
468 weston-calibrator \
469 weston-scaler
470
471if INSTALL_DEMO_CLIENTS
472bin_PROGRAMS += $(demo_clients)
473else
474noinst_PROGRAMS += $(demo_clients)
475endif
476
477
478if BUILD_SIMPLE_CLIENTS
479demo_clients += \
480 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500481 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800482 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400483 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800484 weston-multi-resource
485
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800486weston_simple_shm_SOURCES = clients/simple-shm.c
487nodist_weston_simple_shm_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800488 protocol/xdg-shell-unstable-v5-protocol.c \
489 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800490 protocol/fullscreen-shell-unstable-v1-protocol.c \
491 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900492 protocol/ivi-application-protocol.c \
493 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800494weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800495weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800496
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500497weston_simple_damage_SOURCES = clients/simple-damage.c
498nodist_weston_simple_damage_SOURCES = \
Pekka Paalanen7b69d6c2016-04-15 17:00:21 +0300499 protocol/viewporter-protocol.c \
500 protocol/viewporter-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800501 protocol/xdg-shell-unstable-v5-protocol.c \
502 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800503 protocol/fullscreen-shell-unstable-v1-protocol.c \
504 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500505weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
506weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
507
Jon A. Cruzb09da242015-06-16 13:15:13 -0700508weston_simple_touch_SOURCES = \
509 clients/simple-touch.c \
510 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800511weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800512weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800513
Jon A. Cruzb09da242015-06-16 13:15:13 -0700514weston_presentation_shm_SOURCES = \
515 clients/presentation-shm.c \
516 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400517nodist_weston_presentation_shm_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200518 protocol/presentation-time-protocol.c \
519 protocol/presentation-time-client-protocol.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400520weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300521weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400522
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800523weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800524weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300525weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800526endif
527
528if BUILD_SIMPLE_EGL_CLIENTS
529demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800530weston_simple_egl_SOURCES = clients/simple-egl.c
531nodist_weston_simple_egl_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800532 protocol/xdg-shell-unstable-v5-protocol.c \
533 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900534 protocol/ivi-application-protocol.c \
535 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800536weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800537weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
538endif
539
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000540if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
541demo_clients += weston-simple-dmabuf-intel
542weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
543nodist_weston_simple_dmabuf_intel_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800544 protocol/xdg-shell-unstable-v5-protocol.c \
545 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800546 protocol/fullscreen-shell-unstable-v1-protocol.c \
547 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800548 protocol/linux-dmabuf-unstable-v1-protocol.c \
549 protocol/linux-dmabuf-unstable-v1-client-protocol.h
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000550weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
551weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800552BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200553endif
554
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000555if BUILD_SIMPLE_DMABUF_V4L_CLIENT
556demo_clients += weston-simple-dmabuf-v4l
557weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
558nodist_weston_simple_dmabuf_v4l_SOURCES = \
559 protocol/xdg-shell-unstable-v5-protocol.c \
560 protocol/xdg-shell-unstable-v5-client-protocol.h \
561 protocol/fullscreen-shell-unstable-v1-protocol.c \
562 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
563 protocol/linux-dmabuf-unstable-v1-protocol.c \
564 protocol/linux-dmabuf-unstable-v1-client-protocol.h
565weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
566weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
567BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
568endif
569
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800570noinst_LTLIBRARIES += libtoytoolkit.la
571
572libtoytoolkit_la_SOURCES = \
573 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700574 clients/window.h \
575 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800576
577nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100578 protocol/text-cursor-position-protocol.c \
579 protocol/text-cursor-position-client-protocol.h \
Pekka Paalanen73511002016-04-15 16:53:41 +0300580 protocol/viewporter-protocol.c \
581 protocol/viewporter-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800582 protocol/xdg-shell-unstable-v5-protocol.c \
583 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900584 protocol/ivi-application-protocol.c \
Jonas Ådahle5a1bb42014-11-25 10:25:27 +0800585 protocol/ivi-application-client-protocol.h \
586 protocol/pointer-constraints-unstable-v1-protocol.c \
587 protocol/pointer-constraints-unstable-v1-client-protocol.h \
588 protocol/relative-pointer-unstable-v1-protocol.c \
589 protocol/relative-pointer-unstable-v1-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500590
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800591BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
592
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800593
594libtoytoolkit_la_LIBADD = \
595 $(CLIENT_LIBS) \
596 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300597 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800598libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800599
600weston_flower_SOURCES = clients/flower.c
601weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800602weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800603
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100604weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800605 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800606nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800607 protocol/weston-screenshooter-protocol.c \
608 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800609weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800610weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800611
Jon A. Cruzb09da242015-06-16 13:15:13 -0700612weston_terminal_SOURCES = \
613 clients/terminal.c \
614 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800615weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800616weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800617
618weston_image_SOURCES = clients/image.c
619weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800620weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800621
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300622weston_cliptest_SOURCES = \
623 clients/cliptest.c \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300624 libweston/vertex-clipping.c \
625 libweston/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800626weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800627weston_cliptest_LDADD = libtoytoolkit.la
628
Jon A. Cruzb09da242015-06-16 13:15:13 -0700629weston_dnd_SOURCES = \
630 clients/dnd.c \
631 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800632weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800633weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800634
635weston_smoke_SOURCES = clients/smoke.c
636weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800637weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800638
639weston_resizor_SOURCES = clients/resizor.c
640weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800641weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800642
643weston_scaler_SOURCES = clients/scaler.c
644weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800645weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800646
647if HAVE_CAIRO_GLESV2
648demo_clients += weston-nested weston-nested-client
649
Jon A. Cruzb09da242015-06-16 13:15:13 -0700650weston_nested_SOURCES = \
651 clients/nested.c \
652 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800653weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800654weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800655
656weston_nested_client_SOURCES = clients/nested-client.c
657weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800658weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800659endif
660
Jon A. Cruzb09da242015-06-16 13:15:13 -0700661weston_eventdemo_SOURCES = \
662 clients/eventdemo.c \
663 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800664weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800665weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800666
Jon A. Cruzb09da242015-06-16 13:15:13 -0700667weston_clickdot_SOURCES = \
668 clients/clickdot.c \
669 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800670weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800671weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800672
Jonas Ådahl61831f42016-03-15 18:14:00 +0800673weston_confine_SOURCES = \
674 clients/confine.c \
675 shared/helpers.h
676weston_confine_LDADD = libtoytoolkit.la
677weston_confine_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
678
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800679weston_transformed_SOURCES = clients/transformed.c
680weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800681weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800682
683weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500684nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800685 protocol/fullscreen-shell-unstable-v1-protocol.c \
686 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800687weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800688weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800689
Jon A. Cruzb09da242015-06-16 13:15:13 -0700690weston_stacking_SOURCES = \
691 clients/stacking.c \
692 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800693weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800694weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800695
Jon A. Cruzb09da242015-06-16 13:15:13 -0700696weston_calibrator_SOURCES = \
697 clients/calibrator.c \
698 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800699 shared/matrix.c \
700 shared/matrix.h
701weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800702weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800703
704if BUILD_SUBSURFACES_CLIENT
705demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700706weston_subsurfaces_SOURCES = \
707 clients/subsurfaces.c \
708 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800709weston_subsurfaces_CFLAGS = \
710 $(AM_CFLAGS) \
711 $(SIMPLE_EGL_CLIENT_CFLAGS) \
712 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800713weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
714endif
715
716if HAVE_PANGO
717demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700718weston_editor_SOURCES = \
719 clients/editor.c \
720 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800721nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800722 protocol/text-input-unstable-v1-protocol.c \
723 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800724weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800725weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800726endif
727
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800728weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800729nodist_weston_keyboard_SOURCES = \
730 protocol/weston-desktop-shell-client-protocol.h \
731 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800732 protocol/input-method-unstable-v1-protocol.c \
733 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800734weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800735weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800736
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800737weston_simple_im_SOURCES = clients/weston-simple-im.c
738nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800739 protocol/input-method-unstable-v1-protocol.c \
740 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800741weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800742weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800743
Jon A. Cruzb09da242015-06-16 13:15:13 -0700744weston_info_SOURCES = \
745 clients/weston-info.c \
746 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400747nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200748 protocol/presentation-time-protocol.c \
749 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800750weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200751weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800752
Jon A. Cruzb09da242015-06-16 13:15:13 -0700753weston_desktop_shell_SOURCES = \
754 clients/desktop-shell.c \
755 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800756nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800757 protocol/weston-desktop-shell-client-protocol.h \
758 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800759weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800760weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800761
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900762if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700763weston_ivi_shell_user_interface_SOURCES = \
764 clients/ivi-shell-user-interface.c \
765 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900766nodist_weston_ivi_shell_user_interface_SOURCES = \
767 protocol/ivi-hmi-controller-client-protocol.h \
768 protocol/ivi-hmi-controller-protocol.c \
769 protocol/ivi-application-client-protocol.h \
770 protocol/ivi-application-protocol.c
771weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
772weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
773endif
774
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800775if BUILD_FULL_GL_CLIENTS
776demo_clients += weston-gears
777weston_gears_SOURCES = clients/gears.c
778weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800779weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800780endif
781
782endif
783
784BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800785 protocol/weston-screenshooter-protocol.c \
786 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100787 protocol/text-cursor-position-client-protocol.h \
788 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800789 protocol/text-input-unstable-v1-protocol.c \
790 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800791 protocol/input-method-unstable-v1-protocol.c \
792 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800793 protocol/weston-desktop-shell-client-protocol.h \
794 protocol/weston-desktop-shell-protocol.c \
Pekka Paalanen73511002016-04-15 16:53:41 +0300795 protocol/viewporter-client-protocol.h \
796 protocol/viewporter-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200797 protocol/presentation-time-protocol.c \
798 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800799 protocol/fullscreen-shell-unstable-v1-protocol.c \
800 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800801 protocol/xdg-shell-unstable-v5-protocol.c \
802 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900803 protocol/ivi-hmi-controller-protocol.c \
804 protocol/ivi-hmi-controller-client-protocol.h \
805 protocol/ivi-application-protocol.c \
806 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800807
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800808westondatadir = $(datadir)/weston
809dist_westondata_DATA = \
810 data/wayland.svg \
811 data/wayland.png \
812 data/pattern.png \
813 data/terminal.png \
814 data/border.png \
Bryce Harrington6bc52542016-03-24 17:57:39 -0700815 data/icon_editor.png \
816 data/icon_flower.png \
817 data/icon_terminal.png \
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800818 data/icon_window.png \
819 data/sign_close.png \
820 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100821 data/sign_minimize.png
822
823if ENABLE_IVI_SHELL
824dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900825 data/background.png \
826 data/tiling.png \
827 data/fullscreen.png \
828 data/panel.png \
829 data/random.png \
830 data/sidebyside.png \
831 data/home.png \
832 data/icon_ivi_clickdot.png \
833 data/icon_ivi_flower.png \
834 data/icon_ivi_simple-egl.png \
835 data/icon_ivi_simple-shm.png \
836 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100837endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800838
839
840if BUILD_WCAP_TOOLS
841bin_PROGRAMS += wcap-decode
842
843wcap_decode_SOURCES = \
844 wcap/main.c \
845 wcap/wcap-decode.c \
846 wcap/wcap-decode.h
847
Derek Foreman4ff38742015-06-18 11:43:11 -0500848wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800849wcap_decode_LDADD = $(WCAP_LIBS)
850endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800851
852
853if ENABLE_DESKTOP_SHELL
854
855module_LTLIBRARIES += desktop-shell.la
856
857desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100858 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800859 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300860 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +0100861 -I$(top_srcdir)/libweston \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800862 -I$(top_builddir)/desktop-shell \
863 -DDATADIR='"$(datadir)"' \
864 -DMODULEDIR='"$(moduledir)"' \
865 -DLIBEXECDIR='"$(libexecdir)"' \
866 -DIN_WESTON
867
868desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800869desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500870desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800871desktop_shell_la_SOURCES = \
872 desktop-shell/shell.h \
873 desktop-shell/shell.c \
874 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700875 desktop-shell/input-panel.c \
876 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800877nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800878 protocol/weston-desktop-shell-protocol.c \
879 protocol/weston-desktop-shell-server-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800880 protocol/xdg-shell-unstable-v5-protocol.c \
881 protocol/xdg-shell-unstable-v5-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800882
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800883BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800884endif
885
Jason Ekstrand946a9482014-04-02 19:53:47 -0500886if ENABLE_FULLSCREEN_SHELL
887
888module_LTLIBRARIES += fullscreen-shell.la
889
890fullscreen_shell_la_CPPFLAGS = \
891 -I$(top_builddir)/protocol \
892 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300893 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +0100894 -I$(top_srcdir)/libweston \
Jason Ekstrand946a9482014-04-02 19:53:47 -0500895 -DIN_WESTON
896
897fullscreen_shell_la_LDFLAGS = -module -avoid-version
898fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500899fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500900fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700901 fullscreen-shell/fullscreen-shell.c \
902 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500903nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800904 protocol/fullscreen-shell-unstable-v1-protocol.c \
905 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500906
907BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
908endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800909
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900910if ENABLE_IVI_SHELL
911
912module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900913 $(ivi_shell) \
914 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900915
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900916ivi_shell = ivi-shell.la
917ivi_shell_la_LDFLAGS = -module -avoid-version
918ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500919ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900920ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900921 ivi-shell/ivi-layout-export.h \
922 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +0200923 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900924 ivi-shell/ivi-layout.c \
925 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900926 ivi-shell/ivi-shell.h \
927 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700928 ivi-shell/input-panel-ivi.c \
929 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900930nodist_ivi_shell_la_SOURCES = \
931 protocol/ivi-application-protocol.c \
932 protocol/ivi-application-server-protocol.h
933
934BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
935
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900936hmi_controller = hmi-controller.la
937hmi_controller_la_LDFLAGS = -module -avoid-version
938hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500939hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900940hmi_controller_la_SOURCES = \
941 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700942 ivi-shell/hmi-controller.c \
943 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900944nodist_hmi_controller_la_SOURCES = \
945 protocol/ivi-hmi-controller-protocol.c \
946 protocol/ivi-hmi-controller-server-protocol.h
947
948BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
949
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900950endif
951
952
Jason Ekstrand47928d82014-04-02 19:54:01 -0500953if ENABLE_SCREEN_SHARING
954
955module_LTLIBRARIES += screen-share.la
956
957screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
958screen_share_la_LDFLAGS = -module -avoid-version
959screen_share_la_LIBADD = \
960 $(COMPOSITOR_LIBS) \
961 $(SCREEN_SHARE_LIBS) \
962 libshared-cairo.la
963screen_share_la_CFLAGS = \
964 $(COMPOSITOR_CFLAGS) \
965 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500966 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -0500967screen_share_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300968 compositor/screen-share.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700969 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500970nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800971 protocol/fullscreen-shell-unstable-v1-protocol.c \
972 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500973
974endif
975
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800976if ENABLE_XWAYLAND
977
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200978libweston_module_LTLIBRARIES += xwayland.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800979
980xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100981 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800982 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300983 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +0100984 -I$(top_srcdir)/libweston \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800985 -I$(top_builddir)/xwayland \
986 -DDATADIR='"$(datadir)"' \
987 -DMODULEDIR='"$(moduledir)"' \
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200988 -DLIBEXECDIR='"$(libexecdir)"'
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800989
990xwayland_la_LDFLAGS = -module -avoid-version
991xwayland_la_LIBADD = \
992 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800993 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800994xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500995 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800996 $(COMPOSITOR_CFLAGS) \
997 $(PIXMAN_CFLAGS) \
998 $(CAIRO_CFLAGS)
999xwayland_la_SOURCES = \
1000 xwayland/xwayland.h \
1001 xwayland/window-manager.c \
1002 xwayland/selection.c \
1003 xwayland/dnd.c \
1004 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001005 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001006 xwayland/hash.h \
1007 shared/helpers.h
Giulio Camuffo9c764df2016-06-29 11:54:27 +02001008
1009libwestoninclude_HEADERS += xwayland/xwayland-api.h
1010
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001011endif
1012
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001013
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001014#
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001015# Shared utilities
1016#
1017
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001018noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
1019 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001020
Derek Foreman4ff38742015-06-18 11:43:11 -05001021libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001022
1023libshared_la_SOURCES = \
1024 shared/config-parser.c \
1025 shared/option-parser.c \
1026 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +02001027 shared/file-util.c \
1028 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001029 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001030 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -07001031 shared/os-compatibility.h \
1032 shared/xalloc.c \
1033 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001034
1035libshared_cairo_la_CFLAGS = \
1036 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001037 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001038 $(COMPOSITOR_CFLAGS) \
1039 $(PIXMAN_CFLAGS) \
1040 $(CAIRO_CFLAGS) \
1041 $(PNG_CFLAGS) \
1042 $(WEBP_CFLAGS)
1043
1044libshared_cairo_la_LIBADD = \
1045 $(PIXMAN_LIBS) \
1046 $(CAIRO_LIBS) \
1047 $(PNG_LIBS) \
1048 $(WEBP_LIBS) \
1049 $(JPEG_LIBS)
1050
1051libshared_cairo_la_SOURCES = \
1052 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001053 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001054 shared/image-loader.c \
1055 shared/image-loader.h \
1056 shared/cairo-util.c \
1057 shared/frame.c \
1058 shared/cairo-util.h
1059
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001060libzunitc_la_SOURCES = \
1061 tools/zunitc/inc/zunitc/zunitc.h \
1062 tools/zunitc/inc/zunitc/zunitc_impl.h \
1063 tools/zunitc/src/zuc_base_logger.c \
1064 tools/zunitc/src/zuc_base_logger.h \
1065 tools/zunitc/src/zuc_collector.c \
1066 tools/zunitc/src/zuc_collector.h \
1067 tools/zunitc/src/zuc_context.h \
1068 tools/zunitc/src/zuc_event.h \
1069 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001070 tools/zunitc/src/zuc_junit_reporter.c \
1071 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001072 tools/zunitc/src/zuc_types.h \
1073 tools/zunitc/src/zunitc_impl.c \
1074 shared/helpers.h
1075
1076libzunitc_la_CFLAGS = \
1077 $(AM_CFLAGS) \
1078 -I$(top_srcdir)/tools/zunitc/inc
1079
1080libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001081 libshared.la \
1082 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001083
Jon A. Cruz646aef52015-07-15 19:22:41 -07001084if ENABLE_JUNIT_XML
1085libzunitc_la_CFLAGS += \
1086 $(LIBXML2_CFLAGS)
1087libzunitc_la_LIBADD += \
1088 $(LIBXML2_LIBS)
1089endif
1090
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001091libzunitcmain_la_SOURCES = \
1092 tools/zunitc/src/main.c
1093
1094libzunitcmain_la_CFLAGS = \
1095 $(AM_CFLAGS) \
1096 -I$(top_srcdir)/tools/zunitc/inc
1097
1098libzunitcmain_la_LIBADD = \
1099 libzunitc.la \
1100 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001101
1102#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001103# tests subdirectory
1104#
1105
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001106TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1107
1108internal_tests = \
1109 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001110
1111shared_tests = \
1112 config-parser.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001113 vertex-clip.test \
1114 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001115
1116module_tests = \
Pekka Paalanen827b5d22016-06-29 11:54:26 +02001117 plugin-registry-test.la \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001118 surface-test.la \
1119 surface-global-test.la
1120
1121weston_tests = \
1122 bad_buffer.weston \
1123 keyboard.weston \
1124 event.weston \
1125 button.weston \
1126 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001127 presentation.weston \
Pekka Paalanen82d95a62016-04-19 17:20:42 +03001128 viewporter.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001129 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001130 subsurface.weston \
1131 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001132
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001133ivi_tests =
1134
1135$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001136
1137AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001138 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1139 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001140
1141TEST_EXTENSIONS = .la .weston
1142LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1143WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1144
1145clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001146 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001147 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001148
1149# To remove when automake 1.11 support is dropped
1150export abs_builddir
1151
1152noinst_LTLIBRARIES += \
1153 weston-test.la \
1154 $(module_tests) \
1155 libtest-runner.la \
1156 libtest-client.la
1157
1158noinst_PROGRAMS += \
1159 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001160 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001161 $(shared_tests) \
1162 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001163 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001164 matrix-test
1165
1166test_module_ldflags = \
1167 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1168
Pekka Paalanen827b5d22016-06-29 11:54:26 +02001169plugin_registry_test_la_SOURCES = tests/plugin-registry-test.c
1170plugin_registry_test_la_LDFLAGS = $(test_module_ldflags)
1171plugin_registry_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1172
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001173surface_global_test_la_SOURCES = tests/surface-global-test.c
1174surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001175surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001176
1177surface_test_la_SOURCES = tests/surface-test.c
1178surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001179surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001180
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001181weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001182weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001183weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001184weston_test_la_SOURCES = \
1185 tests/weston-test.c \
1186 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001187nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001188 protocol/weston-test-protocol.c \
1189 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001190
1191if ENABLE_EGL
1192weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1193weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1194endif
1195
1196libtest_runner_la_SOURCES = \
1197 tests/weston-test-runner.c \
1198 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001199libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001200
1201config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001202config_parser_test_LDADD = \
1203 libshared.la \
1204 $(COMPOSITOR_LIBS) \
1205 libzunitc.la \
1206 libzunitcmain.la
1207config_parser_test_CFLAGS = \
1208 $(AM_CFLAGS) \
1209 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001210
1211vertex_clip_test_SOURCES = \
1212 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001213 shared/helpers.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001214 libweston/vertex-clipping.c \
1215 libweston/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001216vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001217
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001218libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001219 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001220 tests/weston-test-client-helper.h
1221nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001222 protocol/weston-test-protocol.c \
1223 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001224libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1225libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) $(CAIRO_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001226
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001227
1228#
1229# Internal tests - tests functionality of the testsuite itself
1230#
1231
1232internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001233internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1234internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001235
1236
1237#
1238# Weston Tests
1239#
1240
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001241bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001242bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001243bad_buffer_weston_LDADD = libtest-client.la
1244
1245keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001246keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001247keyboard_weston_LDADD = libtest-client.la
1248
1249event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001250event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001251event_weston_LDADD = libtest-client.la
1252
1253button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001254button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001255button_weston_LDADD = libtest-client.la
1256
Marek Chalupa5fd81402015-03-30 09:21:29 -04001257devices_weston_SOURCES = tests/devices-test.c
1258devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1259devices_weston_LDADD = libtest-client.la
1260
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001261text_weston_SOURCES = tests/text-test.c
1262nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001263 protocol/text-input-unstable-v1-protocol.c \
1264 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001265text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001266text_weston_LDADD = libtest-client.la
1267
1268subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001269subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001270subsurface_weston_LDADD = libtest-client.la
1271
Jon A. Cruzb09da242015-06-16 13:15:13 -07001272presentation_weston_SOURCES = \
1273 tests/presentation-test.c \
1274 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001275nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001276 protocol/presentation-time-protocol.c \
1277 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001278presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1279presentation_weston_LDADD = libtest-client.la
1280
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001281roles_weston_SOURCES = tests/roles-test.c
1282roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1283roles_weston_LDADD = libtest-client.la
1284
Pekka Paalanen82d95a62016-04-19 17:20:42 +03001285viewporter_weston_SOURCES = \
1286 tests/viewporter-test.c \
1287 shared/helpers.h
1288nodist_viewporter_weston_SOURCES = \
1289 protocol/viewporter-protocol.c \
1290 protocol/viewporter-client-protocol.h
1291viewporter_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1292viewporter_weston_LDADD = libtest-client.la
1293
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001294if ENABLE_EGL
1295weston_tests += buffer-count.weston
1296buffer_count_weston_SOURCES = tests/buffer-count-test.c
Pekka Paalanen924cd942016-05-20 17:25:38 +03001297buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001298buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1299endif
1300
1301if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001302weston_tests += xwayland-test.weston
1303xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001304xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001305xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001306endif
1307
1308matrix_test_SOURCES = \
1309 tests/matrix-test.c \
1310 shared/matrix.c \
1311 shared/matrix.h
1312matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001313matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001314
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001315if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001316module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001317 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001318 ivi-layout-test.la
1319
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001320ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1321ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001322ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001323ivi_layout_internal_test_la_SOURCES = \
1324 tests/ivi_layout-internal-test.c
1325
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001326ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1327ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001328ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001329ivi_layout_test_la_SOURCES = \
1330 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001331 tests/ivi-test.h \
1332 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001333nodist_ivi_layout_test_la_SOURCES = \
1334 protocol/weston-test-protocol.c \
1335 protocol/weston-test-server-protocol.h
1336
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001337ivi_tests += \
1338 ivi-shell-app.weston
1339
1340ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1341nodist_ivi_shell_app_weston_SOURCES = \
1342 protocol/ivi-application-protocol.c \
1343 protocol/ivi-application-client-protocol.h
1344ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1345ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001346
1347noinst_PROGRAMS += ivi-layout.ivi
1348
1349ivi_layout_ivi_SOURCES = \
1350 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001351 tests/ivi-test.h \
1352 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001353nodist_ivi_layout_ivi_SOURCES = \
1354 protocol/ivi-application-protocol.c \
1355 protocol/ivi-application-client-protocol.h
1356ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1357ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001358endif
1359
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001360if BUILD_SETBACKLIGHT
1361noinst_PROGRAMS += setbacklight
1362setbacklight_SOURCES = \
1363 tests/setbacklight.c \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001364 libweston/libbacklight.c \
1365 libweston/libbacklight.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001366setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1367setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1368endif
1369
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001370all-local: zuctest$(EXEEXT)
1371
1372noinst_PROGRAMS += zuctest$(EXEEXT)
1373
1374zuctest_LDADD = \
1375 libzunitc.la \
1376 libzunitcmain.la
1377
1378zuctest_CFLAGS = \
1379 $(AM_CFLAGS) \
1380 -I$(top_srcdir)/tools/zunitc/inc
1381
1382zuctest_SOURCES = \
1383 tools/zunitc/test/fixtures_test.c \
1384 tools/zunitc/test/zunitc_test.c
1385
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001386EXTRA_DIST += \
1387 tests/weston-tests-env \
1388 tests/internal-screenshot.ini \
1389 tests/reference/internal-screenshot-bad-00.png \
1390 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001391
1392BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001393 protocol/weston-test-protocol.c \
1394 protocol/weston-test-server-protocol.h \
1395 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001396 protocol/text-input-unstable-v1-protocol.c \
1397 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001398
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001399EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001400 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001401 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001402 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001403 protocol/weston-test.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001404 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001405 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001406
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001407#
1408# manual test modules in tests subdirectory
1409#
1410
1411noinst_LTLIBRARIES += \
1412 surface-screenshot.la
1413
1414surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1415surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001416surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001417surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1418
1419
1420#
1421# Documentation
1422#
1423
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001424man_MANS = weston.1 weston.ini.5
1425
1426if ENABLE_DRM_COMPOSITOR
1427man_MANS += weston-drm.7
1428endif
1429
1430MAN_SUBSTS = \
1431 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1432 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1433 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1434 -e 's|__version__|$(PACKAGE_VERSION)|g'
1435
1436SUFFIXES = .1 .5 .7 .man
1437
1438%.1 %.5 %.7 : man/%.man
1439 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1440
1441EXTRA_DIST += \
1442 man/weston.man \
1443 man/weston-drm.man \
1444 man/weston.ini.man
1445
1446CLEANFILES += $(man_MANS)
1447
Jon A. Cruz179c1862015-07-15 19:22:43 -07001448if ENABLE_DEVDOCS
1449DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1450
1451docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1452 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1453
1454docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1455 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1456endif
1457
1458DOCDIRS = \
1459 docs/developer \
1460 docs/tools
1461
1462$(DOCDIRS):
1463 $(MKDIR_P) $@
1464
1465.PHONY: doc $(DOXYGEN_INDICES)
1466
1467doc: $(DOXYGEN_INDICES)
1468
Jonas Ådahl496adb32015-11-17 16:00:27 +08001469.SECONDEXPANSION:
1470
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001471define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001472$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001473endef
1474
1475define protoname
1476$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1477endef
1478
1479protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001480 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1481
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001482protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001483 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1484
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001485protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001486 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1487
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001488protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1489 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001490
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001491protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1492 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001493
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001494protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1495 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@