blob: ff927c15f493f3170e06ac0f63719856fc86a73c [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
Quentin Glidic154c5d22016-08-15 17:29:09 +020064# Libtool race fix
65# libweston-desktop depends on libweston, and desktop-shell depends on both.
66# This leads to a libtool race at installation, because libtool re-links
67# everything.
68# If you add more fixes, you may need a workaround to keep automake generated
69# targets. See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
70install-libweston_moduleLTLIBRARIES install-moduleLTLIBRARIES: install-libLTLIBRARIES
71
Emil Velikov7fe47f32016-07-22 14:51:51 +010072lib_LTLIBRARIES = libweston-@LIBWESTON_MAJOR@.la
73libweston_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
74libweston_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
75libweston_@LIBWESTON_MAJOR@_la_LIBADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Giulio Camuffo8aedf7b2016-06-02 21:48:12 +030076 $(DLOPEN_LIBS) -lm $(CLOCK_GETTIME_LIBS) \
77 $(LIBINPUT_BACKEND_LIBS) libshared.la
Emil Velikov7fe47f32016-07-22 14:51:51 +010078libweston_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080079
Emil Velikov7fe47f32016-07-22 14:51:51 +010080libweston_@LIBWESTON_MAJOR@_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +030081 libweston/git-version.h \
82 libweston/log.c \
83 libweston/compositor.c \
84 libweston/compositor.h \
85 libweston/compositor-drm.h \
86 libweston/compositor-fbdev.h \
87 libweston/compositor-headless.h \
88 libweston/compositor-rdp.h \
89 libweston/compositor-wayland.h \
90 libweston/compositor-x11.h \
91 libweston/input.c \
92 libweston/data-device.c \
93 libweston/screenshooter.c \
94 libweston/clipboard.c \
95 libweston/zoom.c \
96 libweston/bindings.c \
97 libweston/animation.c \
98 libweston/noop-renderer.c \
99 libweston/pixman-renderer.c \
100 libweston/pixman-renderer.h \
Pekka Paalanen827b5d22016-06-29 11:54:26 +0200101 libweston/plugin-registry.c \
102 libweston/plugin-registry.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300103 libweston/timeline.c \
104 libweston/timeline.h \
105 libweston/timeline-object.h \
106 libweston/linux-dmabuf.c \
107 libweston/linux-dmabuf.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700108 shared/helpers.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800109 shared/matrix.c \
110 shared/matrix.h \
Pekka Paalanenaa21f622015-07-03 15:44:50 +0300111 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800112 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100113 shared/platform.h \
Daniel Stoneffff92d2016-11-24 19:14:20 +0000114 shared/weston-egl-ext.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300115
Quentin Glidic248dd102016-08-12 10:41:34 +0200116lib_LTLIBRARIES += libweston-desktop-@LIBWESTON_MAJOR@.la
117libweston_desktop_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
118libweston_desktop_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200119libweston_desktop_@LIBWESTON_MAJOR@_la_LIBADD = \
120 libweston-@LIBWESTON_MAJOR@.la \
121 $(COMPOSITOR_LIBS)
Quentin Glidic248dd102016-08-12 10:41:34 +0200122libweston_desktop_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
123
124libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES = \
125 libweston-desktop/client.c \
126 libweston-desktop/internal.h \
127 libweston-desktop/libweston-desktop.c \
128 libweston-desktop/libweston-desktop.h \
129 libweston-desktop/seat.c \
130 libweston-desktop/surface.c \
131 libweston-desktop/wl-shell.c \
Quentin Glidic9c5dd7e2016-08-12 10:41:37 +0200132 libweston-desktop/xdg-shell-v6.c \
Quentin Glidic248dd102016-08-12 10:41:34 +0200133 libweston-desktop/xdg-shell-v5.c \
134 libweston-desktop/xwayland.c
135
136nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES = \
Quentin Glidic9c5dd7e2016-08-12 10:41:37 +0200137 protocol/xdg-shell-unstable-v6-protocol.c \
138 protocol/xdg-shell-unstable-v6-server-protocol.h \
Quentin Glidic248dd102016-08-12 10:41:34 +0200139 protocol/xdg-shell-unstable-v5-protocol.c \
140 protocol/xdg-shell-unstable-v5-server-protocol.h
141
Jonas Ådahl5ac91a12016-08-15 17:31:02 +0800142BUILT_SOURCES += $(nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES)
143
Quentin Glidic9c5dd7e2016-08-12 10:41:37 +0200144libweston-desktop-@LIBWESTON_MAJOR@.la libweston-desktop/libweston_desktop_@LIBWESTON_MAJOR@_la-xdg-shell-v6.lo: protocol/xdg-shell-unstable-v6-server-protocol.h
Quentin Glidic248dd102016-08-12 10:41:34 +0200145libweston-desktop-@LIBWESTON_MAJOR@.la libweston-desktop/libweston_desktop_@LIBWESTON_MAJOR@_la-xdg-shell-v5.lo: protocol/xdg-shell-unstable-v5-server-protocol.h
146
Egor Starkov7ce2e972015-09-25 18:00:27 +0300147if SYSTEMD_NOTIFY_SUPPORT
148module_LTLIBRARIES += systemd-notify.la
149systemd_notify_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200150systemd_notify_la_LIBADD = libweston-@LIBWESTON_MAJOR@.la $(SYSTEMD_DAEMON_LIBS)
Egor Starkov7ce2e972015-09-25 18:00:27 +0300151systemd_notify_la_CFLAGS = \
Pekka Paalanenaff703e2016-04-05 14:08:11 +0300152 $(COMPOSITOR_CFLAGS) \
153 $(SYSTEMD_DAEMON_CFLAGS) \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300154 $(PIXMAN_CFLAGS) \
155 $(AM_CFLAGS)
156systemd_notify_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300157 compositor/systemd-notify.c \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300158 shared/helpers.h \
159 shared/zalloc.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300160 libweston/compositor.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300161endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800162
Emil Velikov7fe47f32016-07-22 14:51:51 +0100163nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800164 protocol/weston-screenshooter-protocol.c \
165 protocol/weston-screenshooter-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800166 protocol/text-cursor-position-protocol.c \
167 protocol/text-cursor-position-server-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800168 protocol/text-input-unstable-v1-protocol.c \
169 protocol/text-input-unstable-v1-server-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800170 protocol/input-method-unstable-v1-protocol.c \
171 protocol/input-method-unstable-v1-server-protocol.h \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200172 protocol/presentation-time-protocol.c \
173 protocol/presentation-time-server-protocol.h \
Pekka Paalanene95ad5c2016-04-15 14:47:08 +0300174 protocol/viewporter-protocol.c \
175 protocol/viewporter-server-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800176 protocol/linux-dmabuf-unstable-v1-protocol.c \
Jonas Ådahl30d61d82014-10-22 21:21:17 +0200177 protocol/linux-dmabuf-unstable-v1-server-protocol.h \
178 protocol/relative-pointer-unstable-v1-protocol.c \
Jonas Ådahld3414f22016-07-22 17:56:31 +0800179 protocol/relative-pointer-unstable-v1-server-protocol.h \
180 protocol/pointer-constraints-unstable-v1-protocol.c \
Bryce Harrington873a3f82016-08-30 12:05:01 -0700181 protocol/pointer-constraints-unstable-v1-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800182
Emil Velikov7fe47f32016-07-22 14:51:51 +0100183BUILT_SOURCES += $(nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES)
Giulio Camuffo9e445982016-06-02 21:48:15 +0300184
185bin_PROGRAMS += weston
186
187weston_LDFLAGS = -export-dynamic
188weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON \
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200189 -DMODULEDIR='"$(moduledir)"' \
190 -DXSERVER_PATH='"@XSERVER_PATH@"'
Giulio Camuffo9e445982016-06-02 21:48:15 +0300191weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
Emil Velikov67351452016-07-22 14:52:42 +0100192weston_LDADD = libshared.la libweston-@LIBWESTON_MAJOR@.la \
193 $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Giulio Camuffo9e445982016-06-02 21:48:15 +0300194 $(DLOPEN_LIBS) $(LIBINPUT_BACKEND_LIBS) \
Yann E. MORINb51e6ed2016-12-19 18:20:09 +0100195 $(CLOCK_GETRES_LIBS) \
Emil Velikov67351452016-07-22 14:52:42 +0100196 -lm
Giulio Camuffo9e445982016-06-02 21:48:15 +0300197
198weston_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300199 compositor/main.c \
200 compositor/weston-screenshooter.c \
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200201 compositor/text-backend.c \
202 compositor/xwayland.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800203
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800204# Track this dependency explicitly instead of using BUILT_SOURCES. We
205# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
206# in case we're building from tarballs.
207
Emil Velikova8840242016-07-04 14:57:12 +0100208compositor/main.c : $(top_builddir)/libweston/git-version.h
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300209libweston/compositor.c : $(top_builddir)/libweston/git-version.h
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800210
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800211noinst_LTLIBRARIES += \
212 libsession-helper.la
213
214libsession_helper_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300215 libweston/launcher-util.c \
216 libweston/launcher-util.h \
217 libweston/launcher-impl.h \
218 libweston/weston-launch.h \
219 libweston/launcher-weston-launch.c \
220 libweston/launcher-direct.c
Derek Foreman4ff38742015-06-18 11:43:11 -0500221libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen4e3522b2017-04-06 13:57:57 +0300222libsession_helper_la_LIBADD = libweston-@LIBWESTON_MAJOR@.la
223
224if ENABLE_DRM_COMPOSITOR
225libsession_helper_la_LIBADD += $(LIBDRM_LIBS)
226endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800227
228if ENABLE_DBUS
229if HAVE_SYSTEMD_LOGIN
230libsession_helper_la_SOURCES += \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300231 libweston/dbus.h \
232 libweston/dbus.c \
233 libweston/launcher-logind.c
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800234libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
235libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
236endif
237endif
238
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800239if HAVE_GIT_REPO
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300240libweston/git-version.h : $(top_srcdir)/.git/logs/HEAD
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800241 $(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 -0800242else
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300243libweston/git-version.h :
Kristian Høgsberg1d2dd072014-02-03 10:55:51 -0800244 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
245
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800246endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800247
248.FORCE :
249
250if BUILD_WESTON_LAUNCH
251bin_PROGRAMS += weston-launch
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300252weston_launch_SOURCES = libweston/weston-launch.c libweston/weston-launch.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800253weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
254weston_launch_CFLAGS= \
Derek Foreman4ff38742015-06-18 11:43:11 -0500255 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800256 $(PAM_CFLAGS) \
257 $(SYSTEMD_LOGIN_CFLAGS) \
258 $(LIBDRM_CFLAGS)
Pekka Paalanen4e3522b2017-04-06 13:57:57 +0300259weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS)
260
261if ENABLE_DRM_COMPOSITOR
262weston_launch_LDADD += $(LIBDRM_LIBS)
263endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800264
265if ENABLE_SETUID_INSTALL
266install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700267 can_suid_files=no; \
268 chown root $(DESTDIR)$(bindir)/weston-launch \
269 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
270 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500271 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700272 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
273 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
274 false; \
275 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800276endif
277
278endif # BUILD_WESTON_LAUNCH
279
280pkgconfigdir = $(libdir)/pkgconfig
Quentin Glidic248dd102016-08-12 10:41:34 +0200281pkgconfig_DATA = \
282 libweston/libweston-${LIBWESTON_MAJOR}.pc \
283 libweston-desktop/libweston-desktop-${LIBWESTON_MAJOR}.pc \
284 compositor/weston.pc
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800285
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100286wayland_sessiondir = $(datadir)/wayland-sessions
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300287dist_wayland_session_DATA = compositor/weston.desktop
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100288
Emil Velikov7fe47f32016-07-22 14:51:51 +0100289libwestonincludedir = $(includedir)/libweston-${LIBWESTON_MAJOR}
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300290libwestoninclude_HEADERS = \
291 libweston/version.h \
292 libweston/compositor.h \
293 libweston/compositor-drm.h \
294 libweston/compositor-fbdev.h \
295 libweston/compositor-headless.h \
296 libweston/compositor-rdp.h \
297 libweston/compositor-wayland.h \
298 libweston/compositor-x11.h \
Armin Krezović4690c562016-09-30 14:11:03 +0200299 libweston/windowed-output-api.h \
Pekka Paalanen827b5d22016-06-29 11:54:26 +0200300 libweston/plugin-registry.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300301 libweston/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800302 shared/matrix.h \
303 shared/config-parser.h \
Emil Velikovcbcf5452016-07-04 15:34:17 +0100304 shared/zalloc.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800305
Quentin Glidic248dd102016-08-12 10:41:34 +0200306libwestoninclude_HEADERS += \
307 libweston-desktop/libweston-desktop.h
308
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300309westonincludedir = $(includedir)/weston
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300310westoninclude_HEADERS = compositor/weston.h
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300311
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000312if ENABLE_IVI_SHELL
313westoninclude_HEADERS += \
314 ivi-shell/ivi-layout-export.h
315endif
316
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800317if ENABLE_EGL
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300318libweston_module_LTLIBRARIES += gl-renderer.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800319gl_renderer_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200320gl_renderer_la_LIBADD = \
321 libweston-@LIBWESTON_MAJOR@.la \
322 $(EGL_LIBS) \
323 $(COMPOSITOR_LIBS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800324gl_renderer_la_CFLAGS = \
325 $(COMPOSITOR_CFLAGS) \
326 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300327 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500328 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800329gl_renderer_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300330 libweston/gl-renderer.h \
331 libweston/gl-renderer.c \
332 libweston/vertex-clipping.c \
333 libweston/vertex-clipping.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700334 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800335endif
336
337if ENABLE_X11_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300338libweston_module_LTLIBRARIES += x11-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800339x11_backend_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200340x11_backend_la_LIBADD = \
341 libshared-cairo.la \
342 libweston-@LIBWESTON_MAJOR@.la \
343 $(X11_COMPOSITOR_LIBS) \
344 $(COMPOSITOR_LIBS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800345x11_backend_la_CFLAGS = \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200346 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800347 $(COMPOSITOR_CFLAGS) \
348 $(EGL_CFLAGS) \
349 $(PIXMAN_CFLAGS) \
350 $(CAIRO_CFLAGS) \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200351 $(X11_COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700352x11_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300353 libweston/compositor-x11.c \
354 libweston/compositor-x11.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700355 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800356endif
357
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100358INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000359INPUT_BACKEND_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300360 libweston/libinput-seat.c \
361 libweston/libinput-seat.h \
362 libweston/libinput-device.c \
363 libweston/libinput-device.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700364 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100365
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800366if ENABLE_DRM_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300367libweston_module_LTLIBRARIES += drm-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800368drm_backend_la_LDFLAGS = -module -avoid-version
369drm_backend_la_LIBADD = \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200370 libsession-helper.la \
371 libweston-@LIBWESTON_MAJOR@.la \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800372 $(COMPOSITOR_LIBS) \
373 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100374 $(INPUT_BACKEND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300375 libshared.la \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200376 $(CLOCK_GETTIME_LIBS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800377drm_backend_la_CFLAGS = \
378 $(COMPOSITOR_CFLAGS) \
379 $(EGL_CFLAGS) \
380 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500381 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800382drm_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300383 libweston/compositor-drm.c \
384 libweston/compositor-drm.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100385 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700386 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200387 shared/timespec-util.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300388 libweston/libbacklight.c \
389 libweston/libbacklight.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800390
391if ENABLE_VAAPI_RECORDER
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300392drm_backend_la_SOURCES += libweston/vaapi-recorder.c libweston/vaapi-recorder.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800393drm_backend_la_LIBADD += $(LIBVA_LIBS)
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200394drm_backend_la_LDFLAGS += -pthread
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800395drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
396endif
397endif
398
399if ENABLE_WAYLAND_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300400libweston_module_LTLIBRARIES += wayland-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800401wayland_backend_la_LDFLAGS = -module -avoid-version
402wayland_backend_la_LIBADD = \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200403 libshared-cairo.la \
404 libweston-@LIBWESTON_MAJOR@.la \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800405 $(COMPOSITOR_LIBS) \
Armin Krezovićb08e1a52016-12-09 22:58:27 +0100406 $(WAYLAND_COMPOSITOR_EGL_LIBS) \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200407 $(WAYLAND_COMPOSITOR_LIBS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800408wayland_backend_la_CFLAGS = \
409 $(COMPOSITOR_CFLAGS) \
410 $(EGL_CFLAGS) \
411 $(PIXMAN_CFLAGS) \
412 $(CAIRO_CFLAGS) \
413 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500414 $(AM_CFLAGS)
Armin Krezović34476192016-11-21 18:42:42 +0100415wayland_backend_la_SOURCES = \
416 libweston/compositor-wayland.c \
417 libweston/compositor-wayland.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700418 shared/helpers.h
Pekka Paalanen9f3d95e2016-11-23 11:46:57 +0200419nodist_wayland_backend_la_SOURCES = \
420 protocol/fullscreen-shell-unstable-v1-protocol.c \
421 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
422 protocol/xdg-shell-unstable-v6-protocol.c \
423 protocol/xdg-shell-unstable-v6-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800424endif
425
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800426if ENABLE_HEADLESS_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300427libweston_module_LTLIBRARIES += headless-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800428headless_backend_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200429headless_backend_la_LIBADD = \
430 libshared.la \
431 libweston-@LIBWESTON_MAJOR@.la \
432 $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500433headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700434headless_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300435 libweston/compositor-headless.c \
436 libweston/compositor-headless.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700437 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800438endif
439
440if ENABLE_FBDEV_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300441libweston_module_LTLIBRARIES += fbdev-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800442fbdev_backend_la_LDFLAGS = -module -avoid-version
443fbdev_backend_la_LIBADD = \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200444 libshared.la \
445 libsession-helper.la \
446 libweston-@LIBWESTON_MAJOR@.la \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800447 $(COMPOSITOR_LIBS) \
448 $(FBDEV_COMPOSITOR_LIBS) \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200449 $(INPUT_BACKEND_LIBS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800450fbdev_backend_la_CFLAGS = \
451 $(COMPOSITOR_CFLAGS) \
452 $(EGL_CFLAGS) \
453 $(FBDEV_COMPOSITOR_CFLAGS) \
454 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500455 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800456fbdev_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300457 libweston/compositor-fbdev.c \
458 libweston/compositor-fbdev.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700459 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100460 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800461endif
462
463if ENABLE_RDP_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300464libweston_module_LTLIBRARIES += rdp-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800465rdp_backend_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200466rdp_backend_la_LIBADD = \
467 libshared.la \
468 libweston-@LIBWESTON_MAJOR@.la \
469 $(COMPOSITOR_LIBS) \
470 $(RDP_COMPOSITOR_LIBS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800471rdp_backend_la_CFLAGS = \
472 $(COMPOSITOR_CFLAGS) \
473 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500474 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700475rdp_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300476 libweston/compositor-rdp.c \
477 libweston/compositor-rdp.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700478 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800479endif
480
481if HAVE_LCMS
482module_LTLIBRARIES += cms-static.la
483cms_static_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200484cms_static_la_LIBADD = \
485 libshared.la \
486 libweston-@LIBWESTON_MAJOR@.la \
487 $(LCMS_LIBS) \
488 $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500489cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800490cms_static_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300491 compositor/cms-static.c \
492 compositor/cms-helper.c \
493 compositor/cms-helper.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700494 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800495if ENABLE_COLORD
496module_LTLIBRARIES += cms-colord.la
497cms_colord_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200498cms_colord_la_LIBADD = \
499 libshared.la \
500 libweston-@LIBWESTON_MAJOR@.la \
501 $(COLORD_LIBS) \
502 $(LCMS_LIBS) \
503 $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500504cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800505cms_colord_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300506 compositor/cms-colord.c \
507 compositor/cms-helper.c \
508 compositor/cms-helper.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700509 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800510endif
511endif
512
513noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500514spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800515spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
516spring_tool_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300517 libweston/spring-tool.c \
518 libweston/animation.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800519 shared/matrix.c \
520 shared/matrix.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300521 libweston/compositor.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800522
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800523if BUILD_CLIENTS
524
525bin_PROGRAMS += weston-terminal weston-info
526
527libexec_PROGRAMS += \
528 weston-desktop-shell \
529 weston-screenshooter \
530 weston-keyboard \
531 weston-simple-im
532
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900533if ENABLE_IVI_SHELL
534libexec_PROGRAMS += \
535 weston-ivi-shell-user-interface
536endif
537
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800538demo_clients = \
539 weston-flower \
540 weston-image \
541 weston-cliptest \
542 weston-dnd \
543 weston-smoke \
544 weston-resizor \
545 weston-eventdemo \
546 weston-clickdot \
Jonas Ådahl61831f42016-03-15 18:14:00 +0800547 weston-confine \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800548 weston-transformed \
549 weston-fullscreen \
550 weston-stacking \
551 weston-calibrator \
552 weston-scaler
553
554if INSTALL_DEMO_CLIENTS
555bin_PROGRAMS += $(demo_clients)
556else
557noinst_PROGRAMS += $(demo_clients)
558endif
559
560
561if BUILD_SIMPLE_CLIENTS
562demo_clients += \
563 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500564 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800565 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400566 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800567 weston-multi-resource
568
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800569weston_simple_shm_SOURCES = clients/simple-shm.c
570nodist_weston_simple_shm_SOURCES = \
Jonas Ådahle023cbc2016-08-11 23:29:38 +0800571 protocol/xdg-shell-unstable-v6-protocol.c \
572 protocol/xdg-shell-unstable-v6-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800573 protocol/fullscreen-shell-unstable-v1-protocol.c \
574 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900575 protocol/ivi-application-protocol.c \
576 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800577weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800578weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800579
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500580weston_simple_damage_SOURCES = clients/simple-damage.c
581nodist_weston_simple_damage_SOURCES = \
Pekka Paalanen7b69d6c2016-04-15 17:00:21 +0300582 protocol/viewporter-protocol.c \
583 protocol/viewporter-client-protocol.h \
Jonas Ådahla74eff92016-08-11 23:39:31 +0800584 protocol/xdg-shell-unstable-v6-protocol.c \
585 protocol/xdg-shell-unstable-v6-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800586 protocol/fullscreen-shell-unstable-v1-protocol.c \
587 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500588weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
589weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
590
Jon A. Cruzb09da242015-06-16 13:15:13 -0700591weston_simple_touch_SOURCES = \
592 clients/simple-touch.c \
593 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800594weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800595weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800596
Jon A. Cruzb09da242015-06-16 13:15:13 -0700597weston_presentation_shm_SOURCES = \
598 clients/presentation-shm.c \
599 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400600nodist_weston_presentation_shm_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200601 protocol/presentation-time-protocol.c \
602 protocol/presentation-time-client-protocol.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400603weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300604weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400605
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800606weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800607weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300608weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800609endif
610
611if BUILD_SIMPLE_EGL_CLIENTS
612demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800613weston_simple_egl_SOURCES = clients/simple-egl.c
614nodist_weston_simple_egl_SOURCES = \
Jonas Ådahl83630022016-08-11 23:13:20 +0800615 protocol/xdg-shell-unstable-v6-protocol.c \
616 protocol/xdg-shell-unstable-v6-client-protocol.h \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900617 protocol/ivi-application-protocol.c \
618 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800619weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800620weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
621endif
622
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000623if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
624demo_clients += weston-simple-dmabuf-intel
625weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
626nodist_weston_simple_dmabuf_intel_SOURCES = \
Jonas Ådahl42682622016-08-11 23:44:41 +0800627 protocol/xdg-shell-unstable-v6-protocol.c \
628 protocol/xdg-shell-unstable-v6-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800629 protocol/fullscreen-shell-unstable-v1-protocol.c \
630 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800631 protocol/linux-dmabuf-unstable-v1-protocol.c \
632 protocol/linux-dmabuf-unstable-v1-client-protocol.h
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000633weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
634weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800635BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200636endif
637
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000638if BUILD_SIMPLE_DMABUF_V4L_CLIENT
639demo_clients += weston-simple-dmabuf-v4l
640weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
641nodist_weston_simple_dmabuf_v4l_SOURCES = \
Jonas Ådahl6ccd2862016-08-12 10:01:29 +0800642 protocol/xdg-shell-unstable-v6-protocol.c \
643 protocol/xdg-shell-unstable-v6-client-protocol.h \
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000644 protocol/fullscreen-shell-unstable-v1-protocol.c \
645 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
646 protocol/linux-dmabuf-unstable-v1-protocol.c \
647 protocol/linux-dmabuf-unstable-v1-client-protocol.h
648weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
649weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
650BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
651endif
652
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800653noinst_LTLIBRARIES += libtoytoolkit.la
654
655libtoytoolkit_la_SOURCES = \
656 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700657 clients/window.h \
658 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800659
660nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100661 protocol/text-cursor-position-protocol.c \
662 protocol/text-cursor-position-client-protocol.h \
Pekka Paalanen73511002016-04-15 16:53:41 +0300663 protocol/viewporter-protocol.c \
664 protocol/viewporter-client-protocol.h \
Jonas Ådahlaf7f98b2016-08-09 18:15:43 +0800665 protocol/xdg-shell-unstable-v6-protocol.c \
666 protocol/xdg-shell-unstable-v6-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900667 protocol/ivi-application-protocol.c \
Jonas Ådahle5a1bb42014-11-25 10:25:27 +0800668 protocol/ivi-application-client-protocol.h \
669 protocol/pointer-constraints-unstable-v1-protocol.c \
670 protocol/pointer-constraints-unstable-v1-client-protocol.h \
671 protocol/relative-pointer-unstable-v1-protocol.c \
672 protocol/relative-pointer-unstable-v1-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500673
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800674BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
675
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800676
677libtoytoolkit_la_LIBADD = \
678 $(CLIENT_LIBS) \
679 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300680 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800681libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800682
683weston_flower_SOURCES = clients/flower.c
684weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800685weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800686
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100687weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800688 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800689nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800690 protocol/weston-screenshooter-protocol.c \
691 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800692weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800693weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800694
Jon A. Cruzb09da242015-06-16 13:15:13 -0700695weston_terminal_SOURCES = \
696 clients/terminal.c \
697 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800698weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800699weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800700
701weston_image_SOURCES = clients/image.c
702weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800703weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800704
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300705weston_cliptest_SOURCES = \
706 clients/cliptest.c \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300707 libweston/vertex-clipping.c \
708 libweston/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800709weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800710weston_cliptest_LDADD = libtoytoolkit.la
711
Jon A. Cruzb09da242015-06-16 13:15:13 -0700712weston_dnd_SOURCES = \
713 clients/dnd.c \
714 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800715weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800716weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800717
718weston_smoke_SOURCES = clients/smoke.c
719weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800720weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800721
722weston_resizor_SOURCES = clients/resizor.c
723weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800724weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800725
726weston_scaler_SOURCES = clients/scaler.c
727weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800728weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800729
730if HAVE_CAIRO_GLESV2
731demo_clients += weston-nested weston-nested-client
732
Jon A. Cruzb09da242015-06-16 13:15:13 -0700733weston_nested_SOURCES = \
734 clients/nested.c \
735 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800736weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800737weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800738
739weston_nested_client_SOURCES = clients/nested-client.c
740weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800741weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800742endif
743
Jon A. Cruzb09da242015-06-16 13:15:13 -0700744weston_eventdemo_SOURCES = \
745 clients/eventdemo.c \
746 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800747weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800748weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800749
Jon A. Cruzb09da242015-06-16 13:15:13 -0700750weston_clickdot_SOURCES = \
751 clients/clickdot.c \
752 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800753weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800754weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800755
Jonas Ådahl61831f42016-03-15 18:14:00 +0800756weston_confine_SOURCES = \
757 clients/confine.c \
758 shared/helpers.h
759weston_confine_LDADD = libtoytoolkit.la
760weston_confine_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
761
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800762weston_transformed_SOURCES = clients/transformed.c
763weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800764weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800765
766weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500767nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800768 protocol/fullscreen-shell-unstable-v1-protocol.c \
769 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800770weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800771weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800772
Jon A. Cruzb09da242015-06-16 13:15:13 -0700773weston_stacking_SOURCES = \
774 clients/stacking.c \
775 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800776weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800777weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800778
Jon A. Cruzb09da242015-06-16 13:15:13 -0700779weston_calibrator_SOURCES = \
780 clients/calibrator.c \
781 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800782 shared/matrix.c \
783 shared/matrix.h
784weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800785weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800786
787if BUILD_SUBSURFACES_CLIENT
788demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700789weston_subsurfaces_SOURCES = \
790 clients/subsurfaces.c \
791 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800792weston_subsurfaces_CFLAGS = \
793 $(AM_CFLAGS) \
794 $(SIMPLE_EGL_CLIENT_CFLAGS) \
795 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800796weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
797endif
798
799if HAVE_PANGO
800demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700801weston_editor_SOURCES = \
802 clients/editor.c \
803 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800804nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800805 protocol/text-input-unstable-v1-protocol.c \
806 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800807weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800808weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800809endif
810
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800811weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800812nodist_weston_keyboard_SOURCES = \
813 protocol/weston-desktop-shell-client-protocol.h \
814 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800815 protocol/input-method-unstable-v1-protocol.c \
816 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800817weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800818weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800819
Bryce Harringtonc6a899d2016-10-11 16:24:05 -0700820weston_simple_im_SOURCES = clients/simple-im.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800821nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800822 protocol/input-method-unstable-v1-protocol.c \
823 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800824weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800825weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800826
Jon A. Cruzb09da242015-06-16 13:15:13 -0700827weston_info_SOURCES = \
828 clients/weston-info.c \
829 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400830nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200831 protocol/presentation-time-protocol.c \
832 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800833weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200834weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800835
Jon A. Cruzb09da242015-06-16 13:15:13 -0700836weston_desktop_shell_SOURCES = \
837 clients/desktop-shell.c \
838 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800839nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800840 protocol/weston-desktop-shell-client-protocol.h \
841 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800842weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800843weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800844
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900845if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700846weston_ivi_shell_user_interface_SOURCES = \
847 clients/ivi-shell-user-interface.c \
848 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900849nodist_weston_ivi_shell_user_interface_SOURCES = \
850 protocol/ivi-hmi-controller-client-protocol.h \
851 protocol/ivi-hmi-controller-protocol.c \
852 protocol/ivi-application-client-protocol.h \
853 protocol/ivi-application-protocol.c
854weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
855weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
856endif
857
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800858if BUILD_FULL_GL_CLIENTS
859demo_clients += weston-gears
860weston_gears_SOURCES = clients/gears.c
861weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800862weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800863endif
864
865endif
866
867BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800868 protocol/weston-screenshooter-protocol.c \
869 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100870 protocol/text-cursor-position-client-protocol.h \
871 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800872 protocol/text-input-unstable-v1-protocol.c \
873 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800874 protocol/input-method-unstable-v1-protocol.c \
875 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800876 protocol/weston-desktop-shell-client-protocol.h \
877 protocol/weston-desktop-shell-protocol.c \
Pekka Paalanen73511002016-04-15 16:53:41 +0300878 protocol/viewporter-client-protocol.h \
879 protocol/viewporter-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200880 protocol/presentation-time-protocol.c \
881 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800882 protocol/fullscreen-shell-unstable-v1-protocol.c \
883 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahlaf7f98b2016-08-09 18:15:43 +0800884 protocol/xdg-shell-unstable-v6-protocol.c \
885 protocol/xdg-shell-unstable-v6-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900886 protocol/ivi-hmi-controller-protocol.c \
887 protocol/ivi-hmi-controller-client-protocol.h \
888 protocol/ivi-application-protocol.c \
Bryce Harrington6303d3b2016-08-30 12:04:05 -0700889 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800890
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800891westondatadir = $(datadir)/weston
892dist_westondata_DATA = \
893 data/wayland.svg \
894 data/wayland.png \
895 data/pattern.png \
896 data/terminal.png \
897 data/border.png \
Bryce Harrington6bc52542016-03-24 17:57:39 -0700898 data/icon_editor.png \
899 data/icon_flower.png \
900 data/icon_terminal.png \
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800901 data/icon_window.png \
902 data/sign_close.png \
903 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100904 data/sign_minimize.png
905
906if ENABLE_IVI_SHELL
907dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900908 data/background.png \
909 data/tiling.png \
910 data/fullscreen.png \
911 data/panel.png \
912 data/random.png \
913 data/sidebyside.png \
914 data/home.png \
915 data/icon_ivi_clickdot.png \
916 data/icon_ivi_flower.png \
917 data/icon_ivi_simple-egl.png \
918 data/icon_ivi_simple-shm.png \
919 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100920endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800921
922
923if BUILD_WCAP_TOOLS
924bin_PROGRAMS += wcap-decode
925
926wcap_decode_SOURCES = \
927 wcap/main.c \
928 wcap/wcap-decode.c \
929 wcap/wcap-decode.h
930
Derek Foreman4ff38742015-06-18 11:43:11 -0500931wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800932wcap_decode_LDADD = $(WCAP_LIBS)
933endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800934
935
936if ENABLE_DESKTOP_SHELL
937
938module_LTLIBRARIES += desktop-shell.la
939
940desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100941 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800942 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300943 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +0100944 -I$(top_srcdir)/libweston \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800945 -I$(top_builddir)/desktop-shell \
946 -DDATADIR='"$(datadir)"' \
947 -DMODULEDIR='"$(moduledir)"' \
948 -DLIBEXECDIR='"$(libexecdir)"' \
949 -DIN_WESTON
950
951desktop_shell_la_LDFLAGS = -module -avoid-version
Quentin Glidic8f9d90a2016-08-12 10:41:36 +0200952desktop_shell_la_LIBADD = libshared.la libweston-desktop-@LIBWESTON_MAJOR@.la $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500953desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800954desktop_shell_la_SOURCES = \
955 desktop-shell/shell.h \
956 desktop-shell/shell.c \
957 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700958 desktop-shell/input-panel.c \
959 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800960nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800961 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahl5ac91a12016-08-15 17:31:02 +0800962 protocol/weston-desktop-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800963
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800964BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800965endif
966
Jason Ekstrand946a9482014-04-02 19:53:47 -0500967if ENABLE_FULLSCREEN_SHELL
968
969module_LTLIBRARIES += fullscreen-shell.la
970
971fullscreen_shell_la_CPPFLAGS = \
972 -I$(top_builddir)/protocol \
973 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300974 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +0100975 -I$(top_srcdir)/libweston \
Jason Ekstrand946a9482014-04-02 19:53:47 -0500976 -DIN_WESTON
977
978fullscreen_shell_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +0200979fullscreen_shell_la_LIBADD = \
980 libweston-@LIBWESTON_MAJOR@.la \
981 $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500982fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500983fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700984 fullscreen-shell/fullscreen-shell.c \
985 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500986nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800987 protocol/fullscreen-shell-unstable-v1-protocol.c \
988 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500989
990BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
991endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800992
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900993if ENABLE_IVI_SHELL
994
995module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900996 $(ivi_shell) \
997 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900998
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900999ivi_shell = ivi-shell.la
1000ivi_shell_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001001ivi_shell_la_LIBADD = \
1002 libshared.la \
1003 libweston-@LIBWESTON_MAJOR@.la \
1004 $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -05001005ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +09001006ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +09001007 ivi-shell/ivi-layout-export.h \
1008 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +02001009 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +09001010 ivi-shell/ivi-layout.c \
1011 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +09001012 ivi-shell/ivi-shell.h \
1013 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001014 ivi-shell/input-panel-ivi.c \
1015 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +09001016nodist_ivi_shell_la_SOURCES = \
1017 protocol/ivi-application-protocol.c \
1018 protocol/ivi-application-server-protocol.h
1019
1020BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
1021
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +09001022hmi_controller = hmi-controller.la
1023hmi_controller_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001024hmi_controller_la_LIBADD = \
1025 libshared.la \
1026 libweston-@LIBWESTON_MAJOR@.la \
1027 $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -05001028hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +09001029hmi_controller_la_SOURCES = \
1030 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001031 ivi-shell/hmi-controller.c \
1032 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +09001033nodist_hmi_controller_la_SOURCES = \
1034 protocol/ivi-hmi-controller-protocol.c \
1035 protocol/ivi-hmi-controller-server-protocol.h
1036
1037BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
1038
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +09001039endif
1040
1041
Jason Ekstrand47928d82014-04-02 19:54:01 -05001042if ENABLE_SCREEN_SHARING
1043
1044module_LTLIBRARIES += screen-share.la
1045
1046screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
1047screen_share_la_LDFLAGS = -module -avoid-version
1048screen_share_la_LIBADD = \
Emil Velikov67351452016-07-22 14:52:42 +01001049 libshared-cairo.la \
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001050 libweston-@LIBWESTON_MAJOR@.la \
Jason Ekstrand47928d82014-04-02 19:54:01 -05001051 $(COMPOSITOR_LIBS) \
Emil Velikov67351452016-07-22 14:52:42 +01001052 $(SCREEN_SHARE_LIBS)
Jason Ekstrand47928d82014-04-02 19:54:01 -05001053screen_share_la_CFLAGS = \
1054 $(COMPOSITOR_CFLAGS) \
1055 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -05001056 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -05001057screen_share_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +03001058 compositor/screen-share.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001059 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -05001060nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +08001061 protocol/fullscreen-shell-unstable-v1-protocol.c \
1062 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -05001063
1064endif
1065
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001066if ENABLE_XWAYLAND
1067
Giulio Camuffo9c764df2016-06-29 11:54:27 +02001068libweston_module_LTLIBRARIES += xwayland.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001069
1070xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001071 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001072 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001073 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +01001074 -I$(top_srcdir)/libweston \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001075 -I$(top_builddir)/xwayland \
1076 -DDATADIR='"$(datadir)"' \
1077 -DMODULEDIR='"$(moduledir)"' \
Giulio Camuffo9c764df2016-06-29 11:54:27 +02001078 -DLIBEXECDIR='"$(libexecdir)"'
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001079
1080xwayland_la_LDFLAGS = -module -avoid-version
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001081xwayland_la_LIBADD = \
1082 libshared-cairo.la \
1083 libweston-@LIBWESTON_MAJOR@.la \
Emil Velikov67351452016-07-22 14:52:42 +01001084 $(XWAYLAND_LIBS)
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001085xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -05001086 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001087 $(COMPOSITOR_CFLAGS) \
1088 $(PIXMAN_CFLAGS) \
1089 $(CAIRO_CFLAGS)
1090xwayland_la_SOURCES = \
1091 xwayland/xwayland.h \
Quentin Glidic955cec02016-08-12 10:41:35 +02001092 xwayland/xwayland-internal-interface.h \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001093 xwayland/window-manager.c \
1094 xwayland/selection.c \
1095 xwayland/dnd.c \
1096 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001097 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001098 xwayland/hash.h \
1099 shared/helpers.h
Giulio Camuffo9c764df2016-06-29 11:54:27 +02001100
1101libwestoninclude_HEADERS += xwayland/xwayland-api.h
1102
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001103endif
1104
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001105
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001106#
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001107# Shared utilities
1108#
1109
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001110noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
1111 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001112
Derek Foreman4ff38742015-06-18 11:43:11 -05001113libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001114
1115libshared_la_SOURCES = \
1116 shared/config-parser.c \
1117 shared/option-parser.c \
1118 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +02001119 shared/file-util.c \
1120 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001121 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001122 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -07001123 shared/os-compatibility.h \
1124 shared/xalloc.c \
1125 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001126
1127libshared_cairo_la_CFLAGS = \
1128 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001129 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001130 $(COMPOSITOR_CFLAGS) \
1131 $(PIXMAN_CFLAGS) \
1132 $(CAIRO_CFLAGS) \
1133 $(PNG_CFLAGS) \
1134 $(WEBP_CFLAGS)
1135
1136libshared_cairo_la_LIBADD = \
1137 $(PIXMAN_LIBS) \
1138 $(CAIRO_LIBS) \
1139 $(PNG_LIBS) \
1140 $(WEBP_LIBS) \
1141 $(JPEG_LIBS)
1142
1143libshared_cairo_la_SOURCES = \
1144 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001145 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001146 shared/image-loader.c \
1147 shared/image-loader.h \
1148 shared/cairo-util.c \
1149 shared/frame.c \
1150 shared/cairo-util.h
1151
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001152libzunitc_la_SOURCES = \
1153 tools/zunitc/inc/zunitc/zunitc.h \
1154 tools/zunitc/inc/zunitc/zunitc_impl.h \
1155 tools/zunitc/src/zuc_base_logger.c \
1156 tools/zunitc/src/zuc_base_logger.h \
1157 tools/zunitc/src/zuc_collector.c \
1158 tools/zunitc/src/zuc_collector.h \
1159 tools/zunitc/src/zuc_context.h \
1160 tools/zunitc/src/zuc_event.h \
1161 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001162 tools/zunitc/src/zuc_junit_reporter.c \
1163 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001164 tools/zunitc/src/zuc_types.h \
1165 tools/zunitc/src/zunitc_impl.c \
1166 shared/helpers.h
1167
1168libzunitc_la_CFLAGS = \
1169 $(AM_CFLAGS) \
1170 -I$(top_srcdir)/tools/zunitc/inc
1171
1172libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001173 libshared.la \
1174 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001175
Jon A. Cruz646aef52015-07-15 19:22:41 -07001176if ENABLE_JUNIT_XML
1177libzunitc_la_CFLAGS += \
1178 $(LIBXML2_CFLAGS)
1179libzunitc_la_LIBADD += \
1180 $(LIBXML2_LIBS)
1181endif
1182
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001183libzunitcmain_la_SOURCES = \
1184 tools/zunitc/src/main.c
1185
1186libzunitcmain_la_CFLAGS = \
1187 $(AM_CFLAGS) \
1188 -I$(top_srcdir)/tools/zunitc/inc
1189
1190libzunitcmain_la_LIBADD = \
1191 libzunitc.la \
1192 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001193
1194#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001195# tests subdirectory
1196#
1197
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001198TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1199
1200internal_tests = \
1201 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001202
1203shared_tests = \
1204 config-parser.test \
Daniel Stone5ae7e842017-03-01 11:34:00 +00001205 timespec.test \
Bryce Harrington82b9f2b2016-08-03 17:40:51 -07001206 string.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001207 vertex-clip.test \
1208 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001209
1210module_tests = \
Pekka Paalanen827b5d22016-06-29 11:54:26 +02001211 plugin-registry-test.la \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001212 surface-test.la \
1213 surface-global-test.la
1214
1215weston_tests = \
1216 bad_buffer.weston \
1217 keyboard.weston \
1218 event.weston \
1219 button.weston \
1220 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001221 presentation.weston \
Pekka Paalanen82d95a62016-04-19 17:20:42 +03001222 viewporter.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001223 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001224 subsurface.weston \
Pekka Paalanene7c6aa62017-01-27 17:30:28 +01001225 subsurface-shot.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001226 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001227
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001228ivi_tests =
1229
1230$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001231
1232AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001233 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1234 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001235
1236TEST_EXTENSIONS = .la .weston
1237LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1238WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1239
1240clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001241 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001242 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001243
1244# To remove when automake 1.11 support is dropped
1245export abs_builddir
1246
1247noinst_LTLIBRARIES += \
1248 weston-test.la \
Quentin Glidic642bcaf2017-01-27 17:30:23 +01001249 weston-test-desktop-shell.la \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001250 $(module_tests) \
1251 libtest-runner.la \
1252 libtest-client.la
1253
1254noinst_PROGRAMS += \
1255 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001256 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001257 $(shared_tests) \
1258 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001259 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001260 matrix-test
1261
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001262test_module_ldflags = -module -avoid-version -rpath $(libdir)
1263test_module_libadd = \
1264 libweston-@LIBWESTON_MAJOR@.la \
1265 $(COMPOSITOR_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001266
Pekka Paalanen827b5d22016-06-29 11:54:26 +02001267plugin_registry_test_la_SOURCES = tests/plugin-registry-test.c
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001268plugin_registry_test_la_LIBADD = $(test_module_libadd)
Pekka Paalanen827b5d22016-06-29 11:54:26 +02001269plugin_registry_test_la_LDFLAGS = $(test_module_ldflags)
1270plugin_registry_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1271
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001272surface_global_test_la_SOURCES = tests/surface-global-test.c
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001273surface_global_test_la_LIBADD = $(test_module_libadd)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001274surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001275surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001276
1277surface_test_la_SOURCES = tests/surface-test.c
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001278surface_test_la_LIBADD = $(test_module_libadd)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001279surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001280surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001281
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001282weston_test_la_LIBADD = libshared.la $(test_module_libadd)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001283weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001284weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001285weston_test_la_SOURCES = \
1286 tests/weston-test.c \
1287 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001288nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001289 protocol/weston-test-protocol.c \
1290 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001291
Quentin Glidic642bcaf2017-01-27 17:30:23 +01001292weston_test_desktop_shell_la_LIBADD = libshared.la libweston-desktop-@LIBWESTON_MAJOR@.la $(COMPOSITOR_LIBS)
1293weston_test_desktop_shell_la_LDFLAGS = $(test_module_ldflags)
1294weston_test_desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1295weston_test_desktop_shell_la_SOURCES = \
1296 tests/weston-test-desktop-shell.c \
1297 shared/helpers.h
1298
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001299if ENABLE_EGL
1300weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1301weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1302endif
1303
1304libtest_runner_la_SOURCES = \
1305 tests/weston-test-runner.c \
1306 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001307libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001308
1309config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001310config_parser_test_LDADD = \
1311 libshared.la \
1312 $(COMPOSITOR_LIBS) \
1313 libzunitc.la \
1314 libzunitcmain.la
1315config_parser_test_CFLAGS = \
1316 $(AM_CFLAGS) \
1317 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001318
Daniel Stone5ae7e842017-03-01 11:34:00 +00001319timespec_test_SOURCES = tests/timespec-test.c
1320timespec_test_LDADD = \
1321 libshared.la \
1322 libzunitc.la \
1323 libzunitcmain.la
1324timespec_test_CFLAGS = \
1325 $(AM_CFLAGS) \
1326 -I$(top_srcdir)/tools/zunitc/inc
1327
Bryce Harrington82b9f2b2016-08-03 17:40:51 -07001328string_test_SOURCES = \
1329 tests/string-test.c \
1330 shared/string-helpers.h
1331string_test_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1332string_test_LDADD = libtest-client.la
1333
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001334vertex_clip_test_SOURCES = \
1335 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001336 shared/helpers.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001337 libweston/vertex-clipping.c \
1338 libweston/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001339vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001340
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001341libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001342 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001343 tests/weston-test-client-helper.h
1344nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001345 protocol/weston-test-protocol.c \
1346 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001347libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
Emil Velikov67351452016-07-22 14:52:42 +01001348libtest_client_la_LIBADD = libshared.la libtest-runner.la $(TEST_CLIENT_LIBS) $(CAIRO_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001349
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001350
1351#
1352# Internal tests - tests functionality of the testsuite itself
1353#
1354
1355internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001356internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1357internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001358
1359
1360#
1361# Weston Tests
1362#
1363
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001364bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001365bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001366bad_buffer_weston_LDADD = libtest-client.la
1367
1368keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001369keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001370keyboard_weston_LDADD = libtest-client.la
1371
1372event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001373event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001374event_weston_LDADD = libtest-client.la
1375
1376button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001377button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001378button_weston_LDADD = libtest-client.la
1379
Marek Chalupa5fd81402015-03-30 09:21:29 -04001380devices_weston_SOURCES = tests/devices-test.c
1381devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1382devices_weston_LDADD = libtest-client.la
1383
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001384text_weston_SOURCES = tests/text-test.c
1385nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001386 protocol/text-input-unstable-v1-protocol.c \
1387 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001388text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001389text_weston_LDADD = libtest-client.la
1390
1391subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001392subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001393subsurface_weston_LDADD = libtest-client.la
1394
Pekka Paalanene7c6aa62017-01-27 17:30:28 +01001395subsurface_shot_weston_SOURCES = tests/subsurface-shot-test.c
1396subsurface_shot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1397subsurface_shot_weston_LDADD = libtest-client.la
1398
Jon A. Cruzb09da242015-06-16 13:15:13 -07001399presentation_weston_SOURCES = \
1400 tests/presentation-test.c \
1401 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001402nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001403 protocol/presentation-time-protocol.c \
1404 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001405presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1406presentation_weston_LDADD = libtest-client.la
1407
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001408roles_weston_SOURCES = tests/roles-test.c
1409roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1410roles_weston_LDADD = libtest-client.la
1411
Pekka Paalanen82d95a62016-04-19 17:20:42 +03001412viewporter_weston_SOURCES = \
1413 tests/viewporter-test.c \
1414 shared/helpers.h
1415nodist_viewporter_weston_SOURCES = \
1416 protocol/viewporter-protocol.c \
1417 protocol/viewporter-client-protocol.h
1418viewporter_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1419viewporter_weston_LDADD = libtest-client.la
1420
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001421if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001422weston_tests += xwayland-test.weston
1423xwayland_test_weston_SOURCES = tests/xwayland-test.c
Daniel Stone2295a622016-11-29 11:05:49 +00001424xwayland_test_weston_CFLAGS = \
1425 $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS) -DXSERVER_PATH='"@XSERVER_PATH@"'
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001426xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001427endif
1428
1429matrix_test_SOURCES = \
1430 tests/matrix-test.c \
1431 shared/matrix.c \
1432 shared/matrix.h
1433matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001434matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001435
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001436if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001437module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001438 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001439 ivi-layout-test.la
1440
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001441ivi_layout_internal_test_la_LIBADD = $(test_module_libadd)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001442ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001443ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001444ivi_layout_internal_test_la_SOURCES = \
1445 tests/ivi_layout-internal-test.c
1446
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001447ivi_layout_test_la_LIBADD = $(test_module_libadd)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001448ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001449ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001450ivi_layout_test_la_SOURCES = \
1451 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001452 tests/ivi-test.h \
1453 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001454nodist_ivi_layout_test_la_SOURCES = \
1455 protocol/weston-test-protocol.c \
1456 protocol/weston-test-server-protocol.h
1457
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001458ivi_tests += \
1459 ivi-shell-app.weston
1460
1461ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1462nodist_ivi_shell_app_weston_SOURCES = \
1463 protocol/ivi-application-protocol.c \
1464 protocol/ivi-application-client-protocol.h
1465ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1466ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001467
1468noinst_PROGRAMS += ivi-layout.ivi
1469
1470ivi_layout_ivi_SOURCES = \
1471 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001472 tests/ivi-test.h \
1473 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001474nodist_ivi_layout_ivi_SOURCES = \
1475 protocol/ivi-application-protocol.c \
1476 protocol/ivi-application-client-protocol.h
1477ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1478ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001479endif
1480
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001481if BUILD_SETBACKLIGHT
1482noinst_PROGRAMS += setbacklight
1483setbacklight_SOURCES = \
1484 tests/setbacklight.c \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001485 libweston/libbacklight.c \
1486 libweston/libbacklight.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001487setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1488setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1489endif
1490
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001491all-local: zuctest$(EXEEXT)
1492
1493noinst_PROGRAMS += zuctest$(EXEEXT)
1494
1495zuctest_LDADD = \
1496 libzunitc.la \
1497 libzunitcmain.la
1498
1499zuctest_CFLAGS = \
1500 $(AM_CFLAGS) \
1501 -I$(top_srcdir)/tools/zunitc/inc
1502
1503zuctest_SOURCES = \
1504 tools/zunitc/test/fixtures_test.c \
1505 tools/zunitc/test/zunitc_test.c
1506
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001507EXTRA_DIST += \
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001508 tests/internal-screenshot.ini \
1509 tests/reference/internal-screenshot-bad-00.png \
Pekka Paalanene7c6aa62017-01-27 17:30:28 +01001510 tests/reference/internal-screenshot-good-00.png \
1511 tests/reference/subsurface_z_order-00.png \
1512 tests/reference/subsurface_z_order-01.png \
1513 tests/reference/subsurface_z_order-02.png \
1514 tests/reference/subsurface_z_order-03.png \
1515 tests/reference/subsurface_z_order-04.png \
1516 tests/weston-tests-env
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001517
1518BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001519 protocol/weston-test-protocol.c \
1520 protocol/weston-test-server-protocol.h \
1521 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001522 protocol/text-input-unstable-v1-protocol.c \
1523 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001524
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001525EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001526 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001527 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001528 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001529 protocol/weston-test.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001530 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001531 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001532
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001533#
1534# manual test modules in tests subdirectory
1535#
1536
1537noinst_LTLIBRARIES += \
1538 surface-screenshot.la
1539
Quentin Glidicb2f32ab2016-08-18 10:58:58 +02001540surface_screenshot_la_LIBADD = libshared.la $(test_module_libadd)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001541surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001542surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001543surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1544
1545
1546#
1547# Documentation
1548#
1549
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001550man_MANS = weston.1 weston.ini.5
1551
1552if ENABLE_DRM_COMPOSITOR
1553man_MANS += weston-drm.7
1554endif
1555
1556MAN_SUBSTS = \
1557 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1558 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1559 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1560 -e 's|__version__|$(PACKAGE_VERSION)|g'
1561
1562SUFFIXES = .1 .5 .7 .man
1563
1564%.1 %.5 %.7 : man/%.man
1565 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1566
1567EXTRA_DIST += \
1568 man/weston.man \
1569 man/weston-drm.man \
1570 man/weston.ini.man
1571
1572CLEANFILES += $(man_MANS)
1573
Jon A. Cruz179c1862015-07-15 19:22:43 -07001574if ENABLE_DEVDOCS
1575DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1576
1577docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1578 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1579
1580docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1581 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1582endif
1583
1584DOCDIRS = \
1585 docs/developer \
1586 docs/tools
1587
1588$(DOCDIRS):
1589 $(MKDIR_P) $@
1590
1591.PHONY: doc $(DOXYGEN_INDICES)
1592
1593doc: $(DOXYGEN_INDICES)
1594
Jonas Ådahl496adb32015-11-17 16:00:27 +08001595.SECONDEXPANSION:
1596
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001597define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001598$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001599endef
1600
1601define protoname
1602$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1603endef
1604
1605protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001606 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1607
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001608protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001609 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1610
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001611protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001612 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1613
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001614protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1615 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001616
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001617protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1618 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001619
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001620protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1621 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@