blob: 1e63a58ce721f941b946778501599c28e5a10f71 [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 \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300114 libweston/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)
119libweston_desktop_@LIBWESTON_MAJOR@_la_LIBADD = libweston-@LIBWESTON_MAJOR@.la $(COMPOSITOR_LIBS)
120libweston_desktop_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
121
122libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES = \
123 libweston-desktop/client.c \
124 libweston-desktop/internal.h \
125 libweston-desktop/libweston-desktop.c \
126 libweston-desktop/libweston-desktop.h \
127 libweston-desktop/seat.c \
128 libweston-desktop/surface.c \
129 libweston-desktop/wl-shell.c \
Quentin Glidic9c5dd7e2016-08-12 10:41:37 +0200130 libweston-desktop/xdg-shell-v6.c \
Quentin Glidic248dd102016-08-12 10:41:34 +0200131 libweston-desktop/xdg-shell-v5.c \
132 libweston-desktop/xwayland.c
133
134nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES = \
Quentin Glidic9c5dd7e2016-08-12 10:41:37 +0200135 protocol/xdg-shell-unstable-v6-protocol.c \
136 protocol/xdg-shell-unstable-v6-server-protocol.h \
Quentin Glidic248dd102016-08-12 10:41:34 +0200137 protocol/xdg-shell-unstable-v5-protocol.c \
138 protocol/xdg-shell-unstable-v5-server-protocol.h
139
Jonas Ådahl5ac91a12016-08-15 17:31:02 +0800140BUILT_SOURCES += $(nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES)
141
Quentin Glidic9c5dd7e2016-08-12 10:41:37 +0200142libweston-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 +0200143libweston-desktop-@LIBWESTON_MAJOR@.la libweston-desktop/libweston_desktop_@LIBWESTON_MAJOR@_la-xdg-shell-v5.lo: protocol/xdg-shell-unstable-v5-server-protocol.h
144
Egor Starkov7ce2e972015-09-25 18:00:27 +0300145if SYSTEMD_NOTIFY_SUPPORT
146module_LTLIBRARIES += systemd-notify.la
147systemd_notify_la_LDFLAGS = -module -avoid-version
148systemd_notify_la_LIBADD = $(SYSTEMD_DAEMON_LIBS)
149systemd_notify_la_CFLAGS = \
Pekka Paalanenaff703e2016-04-05 14:08:11 +0300150 $(COMPOSITOR_CFLAGS) \
151 $(SYSTEMD_DAEMON_CFLAGS) \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300152 $(PIXMAN_CFLAGS) \
153 $(AM_CFLAGS)
154systemd_notify_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300155 compositor/systemd-notify.c \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300156 shared/helpers.h \
157 shared/zalloc.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300158 libweston/compositor.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300159endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800160
Emil Velikov7fe47f32016-07-22 14:51:51 +0100161nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800162 protocol/weston-screenshooter-protocol.c \
163 protocol/weston-screenshooter-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800164 protocol/text-cursor-position-protocol.c \
165 protocol/text-cursor-position-server-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800166 protocol/text-input-unstable-v1-protocol.c \
167 protocol/text-input-unstable-v1-server-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800168 protocol/input-method-unstable-v1-protocol.c \
169 protocol/input-method-unstable-v1-server-protocol.h \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200170 protocol/presentation-time-protocol.c \
171 protocol/presentation-time-server-protocol.h \
Pekka Paalanene95ad5c2016-04-15 14:47:08 +0300172 protocol/viewporter-protocol.c \
173 protocol/viewporter-server-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800174 protocol/linux-dmabuf-unstable-v1-protocol.c \
Jonas Ådahl30d61d82014-10-22 21:21:17 +0200175 protocol/linux-dmabuf-unstable-v1-server-protocol.h \
176 protocol/relative-pointer-unstable-v1-protocol.c \
Jonas Ådahld3414f22016-07-22 17:56:31 +0800177 protocol/relative-pointer-unstable-v1-server-protocol.h \
178 protocol/pointer-constraints-unstable-v1-protocol.c \
Bryce Harrington873a3f82016-08-30 12:05:01 -0700179 protocol/pointer-constraints-unstable-v1-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800180
Emil Velikov7fe47f32016-07-22 14:51:51 +0100181BUILT_SOURCES += $(nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES)
Giulio Camuffo9e445982016-06-02 21:48:15 +0300182
183bin_PROGRAMS += weston
184
185weston_LDFLAGS = -export-dynamic
186weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON \
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200187 -DMODULEDIR='"$(moduledir)"' \
188 -DXSERVER_PATH='"@XSERVER_PATH@"'
Giulio Camuffo9e445982016-06-02 21:48:15 +0300189weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
Emil Velikov67351452016-07-22 14:52:42 +0100190weston_LDADD = libshared.la libweston-@LIBWESTON_MAJOR@.la \
191 $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Giulio Camuffo9e445982016-06-02 21:48:15 +0300192 $(DLOPEN_LIBS) $(LIBINPUT_BACKEND_LIBS) \
Emil Velikov67351452016-07-22 14:52:42 +0100193 -lm
Giulio Camuffo9e445982016-06-02 21:48:15 +0300194
195weston_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300196 compositor/main.c \
197 compositor/weston-screenshooter.c \
Giulio Camuffo9c764df2016-06-29 11:54:27 +0200198 compositor/text-backend.c \
199 compositor/xwayland.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800200
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800201# Track this dependency explicitly instead of using BUILT_SOURCES. We
202# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
203# in case we're building from tarballs.
204
Emil Velikova8840242016-07-04 14:57:12 +0100205compositor/main.c : $(top_builddir)/libweston/git-version.h
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300206libweston/compositor.c : $(top_builddir)/libweston/git-version.h
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800207
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800208noinst_LTLIBRARIES += \
209 libsession-helper.la
210
211libsession_helper_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300212 libweston/launcher-util.c \
213 libweston/launcher-util.h \
214 libweston/launcher-impl.h \
215 libweston/weston-launch.h \
216 libweston/launcher-weston-launch.c \
217 libweston/launcher-direct.c
Derek Foreman4ff38742015-06-18 11:43:11 -0500218libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800219libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
220
221if ENABLE_DBUS
222if HAVE_SYSTEMD_LOGIN
223libsession_helper_la_SOURCES += \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300224 libweston/dbus.h \
225 libweston/dbus.c \
226 libweston/launcher-logind.c
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800227libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
228libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
229endif
230endif
231
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800232if HAVE_GIT_REPO
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300233libweston/git-version.h : $(top_srcdir)/.git/logs/HEAD
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800234 $(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 -0800235else
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300236libweston/git-version.h :
Kristian Høgsberg1d2dd072014-02-03 10:55:51 -0800237 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
238
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800239endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800240
241.FORCE :
242
243if BUILD_WESTON_LAUNCH
244bin_PROGRAMS += weston-launch
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300245weston_launch_SOURCES = libweston/weston-launch.c libweston/weston-launch.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800246weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
247weston_launch_CFLAGS= \
Derek Foreman4ff38742015-06-18 11:43:11 -0500248 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800249 $(PAM_CFLAGS) \
250 $(SYSTEMD_LOGIN_CFLAGS) \
251 $(LIBDRM_CFLAGS)
252weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
253
254if ENABLE_SETUID_INSTALL
255install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700256 can_suid_files=no; \
257 chown root $(DESTDIR)$(bindir)/weston-launch \
258 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
259 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500260 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700261 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
262 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
263 false; \
264 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800265endif
266
267endif # BUILD_WESTON_LAUNCH
268
269pkgconfigdir = $(libdir)/pkgconfig
Quentin Glidic248dd102016-08-12 10:41:34 +0200270pkgconfig_DATA = \
271 libweston/libweston-${LIBWESTON_MAJOR}.pc \
272 libweston-desktop/libweston-desktop-${LIBWESTON_MAJOR}.pc \
273 compositor/weston.pc
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800274
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100275wayland_sessiondir = $(datadir)/wayland-sessions
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300276dist_wayland_session_DATA = compositor/weston.desktop
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100277
Emil Velikov7fe47f32016-07-22 14:51:51 +0100278libwestonincludedir = $(includedir)/libweston-${LIBWESTON_MAJOR}
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300279libwestoninclude_HEADERS = \
280 libweston/version.h \
281 libweston/compositor.h \
282 libweston/compositor-drm.h \
283 libweston/compositor-fbdev.h \
284 libweston/compositor-headless.h \
285 libweston/compositor-rdp.h \
286 libweston/compositor-wayland.h \
287 libweston/compositor-x11.h \
Pekka Paalanen827b5d22016-06-29 11:54:26 +0200288 libweston/plugin-registry.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300289 libweston/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800290 shared/matrix.h \
291 shared/config-parser.h \
Emil Velikovcbcf5452016-07-04 15:34:17 +0100292 shared/zalloc.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800293
Quentin Glidic248dd102016-08-12 10:41:34 +0200294libwestoninclude_HEADERS += \
295 libweston-desktop/libweston-desktop.h
296
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300297westonincludedir = $(includedir)/weston
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300298westoninclude_HEADERS = compositor/weston.h
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300299
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000300if ENABLE_IVI_SHELL
301westoninclude_HEADERS += \
302 ivi-shell/ivi-layout-export.h
303endif
304
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800305if ENABLE_EGL
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300306libweston_module_LTLIBRARIES += gl-renderer.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800307gl_renderer_la_LDFLAGS = -module -avoid-version
308gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
309gl_renderer_la_CFLAGS = \
310 $(COMPOSITOR_CFLAGS) \
311 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300312 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500313 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800314gl_renderer_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300315 libweston/gl-renderer.h \
316 libweston/gl-renderer.c \
317 libweston/vertex-clipping.c \
318 libweston/vertex-clipping.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700319 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800320endif
321
322if ENABLE_X11_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300323libweston_module_LTLIBRARIES += x11-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800324x11_backend_la_LDFLAGS = -module -avoid-version
325x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800326 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800327x11_backend_la_CFLAGS = \
328 $(COMPOSITOR_CFLAGS) \
329 $(EGL_CFLAGS) \
330 $(PIXMAN_CFLAGS) \
331 $(CAIRO_CFLAGS) \
332 $(X11_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500333 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700334x11_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300335 libweston/compositor-x11.c \
336 libweston/compositor-x11.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700337 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800338endif
339
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100340INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000341INPUT_BACKEND_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300342 libweston/libinput-seat.c \
343 libweston/libinput-seat.h \
344 libweston/libinput-device.c \
345 libweston/libinput-device.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700346 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100347
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800348if ENABLE_DRM_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300349libweston_module_LTLIBRARIES += drm-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800350drm_backend_la_LDFLAGS = -module -avoid-version
351drm_backend_la_LIBADD = \
352 $(COMPOSITOR_LIBS) \
353 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100354 $(INPUT_BACKEND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300355 libshared.la \
356 $(CLOCK_GETTIME_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800357 libsession-helper.la
358drm_backend_la_CFLAGS = \
359 $(COMPOSITOR_CFLAGS) \
360 $(EGL_CFLAGS) \
361 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500362 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800363drm_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300364 libweston/compositor-drm.c \
365 libweston/compositor-drm.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100366 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700367 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200368 shared/timespec-util.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300369 libweston/libbacklight.c \
370 libweston/libbacklight.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800371
372if ENABLE_VAAPI_RECORDER
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300373drm_backend_la_SOURCES += libweston/vaapi-recorder.c libweston/vaapi-recorder.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800374drm_backend_la_LIBADD += $(LIBVA_LIBS)
375drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
376endif
377endif
378
379if ENABLE_WAYLAND_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300380libweston_module_LTLIBRARIES += wayland-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800381wayland_backend_la_LDFLAGS = -module -avoid-version
382wayland_backend_la_LIBADD = \
383 $(COMPOSITOR_LIBS) \
384 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800385 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800386wayland_backend_la_CFLAGS = \
387 $(COMPOSITOR_CFLAGS) \
388 $(EGL_CFLAGS) \
389 $(PIXMAN_CFLAGS) \
390 $(CAIRO_CFLAGS) \
391 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500392 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700393wayland_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300394 libweston/compositor-wayland.c \
395 libweston/compositor-wayland.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700396 shared/helpers.h
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500397nodist_wayland_backend_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800398 protocol/fullscreen-shell-unstable-v1-protocol.c \
399 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800400endif
401
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800402if ENABLE_HEADLESS_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300403libweston_module_LTLIBRARIES += headless-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800404headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800405headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500406headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700407headless_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300408 libweston/compositor-headless.c \
409 libweston/compositor-headless.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700410 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800411endif
412
413if ENABLE_FBDEV_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300414libweston_module_LTLIBRARIES += fbdev-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800415fbdev_backend_la_LDFLAGS = -module -avoid-version
416fbdev_backend_la_LIBADD = \
417 $(COMPOSITOR_LIBS) \
418 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100419 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800420 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800421 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800422fbdev_backend_la_CFLAGS = \
423 $(COMPOSITOR_CFLAGS) \
424 $(EGL_CFLAGS) \
425 $(FBDEV_COMPOSITOR_CFLAGS) \
426 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500427 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800428fbdev_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300429 libweston/compositor-fbdev.c \
430 libweston/compositor-fbdev.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700431 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100432 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800433endif
434
435if ENABLE_RDP_COMPOSITOR
Giulio Camuffo179fcda2016-06-02 21:48:14 +0300436libweston_module_LTLIBRARIES += rdp-backend.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800437rdp_backend_la_LDFLAGS = -module -avoid-version
438rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
439 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800440 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800441rdp_backend_la_CFLAGS = \
442 $(COMPOSITOR_CFLAGS) \
443 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500444 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700445rdp_backend_la_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300446 libweston/compositor-rdp.c \
447 libweston/compositor-rdp.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700448 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800449endif
450
451if HAVE_LCMS
452module_LTLIBRARIES += cms-static.la
453cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800454cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500455cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800456cms_static_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300457 compositor/cms-static.c \
458 compositor/cms-helper.c \
459 compositor/cms-helper.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700460 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800461if ENABLE_COLORD
462module_LTLIBRARIES += cms-colord.la
463cms_colord_la_LDFLAGS = -module -avoid-version
464cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500465cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800466cms_colord_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +0300467 compositor/cms-colord.c \
468 compositor/cms-helper.c \
469 compositor/cms-helper.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700470 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800471endif
472endif
473
474noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500475spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800476spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
477spring_tool_SOURCES = \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300478 libweston/spring-tool.c \
479 libweston/animation.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800480 shared/matrix.c \
481 shared/matrix.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300482 libweston/compositor.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800483
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800484if BUILD_CLIENTS
485
486bin_PROGRAMS += weston-terminal weston-info
487
488libexec_PROGRAMS += \
489 weston-desktop-shell \
490 weston-screenshooter \
491 weston-keyboard \
492 weston-simple-im
493
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900494if ENABLE_IVI_SHELL
495libexec_PROGRAMS += \
496 weston-ivi-shell-user-interface
497endif
498
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800499demo_clients = \
500 weston-flower \
501 weston-image \
502 weston-cliptest \
503 weston-dnd \
504 weston-smoke \
505 weston-resizor \
506 weston-eventdemo \
507 weston-clickdot \
Jonas Ådahl61831f42016-03-15 18:14:00 +0800508 weston-confine \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800509 weston-transformed \
510 weston-fullscreen \
511 weston-stacking \
512 weston-calibrator \
513 weston-scaler
514
515if INSTALL_DEMO_CLIENTS
516bin_PROGRAMS += $(demo_clients)
517else
518noinst_PROGRAMS += $(demo_clients)
519endif
520
521
522if BUILD_SIMPLE_CLIENTS
523demo_clients += \
524 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500525 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800526 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400527 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800528 weston-multi-resource
529
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800530weston_simple_shm_SOURCES = clients/simple-shm.c
531nodist_weston_simple_shm_SOURCES = \
Jonas Ådahle023cbc2016-08-11 23:29:38 +0800532 protocol/xdg-shell-unstable-v6-protocol.c \
533 protocol/xdg-shell-unstable-v6-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800534 protocol/fullscreen-shell-unstable-v1-protocol.c \
535 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900536 protocol/ivi-application-protocol.c \
537 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800538weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800539weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800540
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500541weston_simple_damage_SOURCES = clients/simple-damage.c
542nodist_weston_simple_damage_SOURCES = \
Pekka Paalanen7b69d6c2016-04-15 17:00:21 +0300543 protocol/viewporter-protocol.c \
544 protocol/viewporter-client-protocol.h \
Jonas Ådahla74eff92016-08-11 23:39:31 +0800545 protocol/xdg-shell-unstable-v6-protocol.c \
546 protocol/xdg-shell-unstable-v6-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800547 protocol/fullscreen-shell-unstable-v1-protocol.c \
548 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500549weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
550weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
551
Jon A. Cruzb09da242015-06-16 13:15:13 -0700552weston_simple_touch_SOURCES = \
553 clients/simple-touch.c \
554 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800555weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800556weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800557
Jon A. Cruzb09da242015-06-16 13:15:13 -0700558weston_presentation_shm_SOURCES = \
559 clients/presentation-shm.c \
560 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400561nodist_weston_presentation_shm_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200562 protocol/presentation-time-protocol.c \
563 protocol/presentation-time-client-protocol.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400564weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300565weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400566
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800567weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800568weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300569weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800570endif
571
572if BUILD_SIMPLE_EGL_CLIENTS
573demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800574weston_simple_egl_SOURCES = clients/simple-egl.c
575nodist_weston_simple_egl_SOURCES = \
Jonas Ådahl83630022016-08-11 23:13:20 +0800576 protocol/xdg-shell-unstable-v6-protocol.c \
577 protocol/xdg-shell-unstable-v6-client-protocol.h \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900578 protocol/ivi-application-protocol.c \
579 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800580weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800581weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
582endif
583
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000584if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
585demo_clients += weston-simple-dmabuf-intel
586weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
587nodist_weston_simple_dmabuf_intel_SOURCES = \
Jonas Ådahl42682622016-08-11 23:44:41 +0800588 protocol/xdg-shell-unstable-v6-protocol.c \
589 protocol/xdg-shell-unstable-v6-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800590 protocol/fullscreen-shell-unstable-v1-protocol.c \
591 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800592 protocol/linux-dmabuf-unstable-v1-protocol.c \
593 protocol/linux-dmabuf-unstable-v1-client-protocol.h
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000594weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
595weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800596BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200597endif
598
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000599if BUILD_SIMPLE_DMABUF_V4L_CLIENT
600demo_clients += weston-simple-dmabuf-v4l
601weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
602nodist_weston_simple_dmabuf_v4l_SOURCES = \
Jonas Ådahl6ccd2862016-08-12 10:01:29 +0800603 protocol/xdg-shell-unstable-v6-protocol.c \
604 protocol/xdg-shell-unstable-v6-client-protocol.h \
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000605 protocol/fullscreen-shell-unstable-v1-protocol.c \
606 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
607 protocol/linux-dmabuf-unstable-v1-protocol.c \
608 protocol/linux-dmabuf-unstable-v1-client-protocol.h
609weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
610weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
611BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
612endif
613
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800614noinst_LTLIBRARIES += libtoytoolkit.la
615
616libtoytoolkit_la_SOURCES = \
617 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700618 clients/window.h \
619 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800620
621nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100622 protocol/text-cursor-position-protocol.c \
623 protocol/text-cursor-position-client-protocol.h \
Pekka Paalanen73511002016-04-15 16:53:41 +0300624 protocol/viewporter-protocol.c \
625 protocol/viewporter-client-protocol.h \
Jonas Ådahlaf7f98b2016-08-09 18:15:43 +0800626 protocol/xdg-shell-unstable-v6-protocol.c \
627 protocol/xdg-shell-unstable-v6-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900628 protocol/ivi-application-protocol.c \
Jonas Ådahle5a1bb42014-11-25 10:25:27 +0800629 protocol/ivi-application-client-protocol.h \
630 protocol/pointer-constraints-unstable-v1-protocol.c \
631 protocol/pointer-constraints-unstable-v1-client-protocol.h \
632 protocol/relative-pointer-unstable-v1-protocol.c \
633 protocol/relative-pointer-unstable-v1-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500634
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800635BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
636
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800637
638libtoytoolkit_la_LIBADD = \
639 $(CLIENT_LIBS) \
640 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300641 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800642libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800643
644weston_flower_SOURCES = clients/flower.c
645weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800646weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800647
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100648weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800649 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800650nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800651 protocol/weston-screenshooter-protocol.c \
652 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800653weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800654weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800655
Jon A. Cruzb09da242015-06-16 13:15:13 -0700656weston_terminal_SOURCES = \
657 clients/terminal.c \
658 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800659weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800660weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800661
662weston_image_SOURCES = clients/image.c
663weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800664weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800665
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300666weston_cliptest_SOURCES = \
667 clients/cliptest.c \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300668 libweston/vertex-clipping.c \
669 libweston/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800670weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800671weston_cliptest_LDADD = libtoytoolkit.la
672
Jon A. Cruzb09da242015-06-16 13:15:13 -0700673weston_dnd_SOURCES = \
674 clients/dnd.c \
675 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800676weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800677weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800678
679weston_smoke_SOURCES = clients/smoke.c
680weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800681weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800682
683weston_resizor_SOURCES = clients/resizor.c
684weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800685weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800686
687weston_scaler_SOURCES = clients/scaler.c
688weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800689weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800690
691if HAVE_CAIRO_GLESV2
692demo_clients += weston-nested weston-nested-client
693
Jon A. Cruzb09da242015-06-16 13:15:13 -0700694weston_nested_SOURCES = \
695 clients/nested.c \
696 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800697weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800698weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800699
700weston_nested_client_SOURCES = clients/nested-client.c
701weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800702weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800703endif
704
Jon A. Cruzb09da242015-06-16 13:15:13 -0700705weston_eventdemo_SOURCES = \
706 clients/eventdemo.c \
707 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800708weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800709weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800710
Jon A. Cruzb09da242015-06-16 13:15:13 -0700711weston_clickdot_SOURCES = \
712 clients/clickdot.c \
713 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800714weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800715weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800716
Jonas Ådahl61831f42016-03-15 18:14:00 +0800717weston_confine_SOURCES = \
718 clients/confine.c \
719 shared/helpers.h
720weston_confine_LDADD = libtoytoolkit.la
721weston_confine_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
722
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800723weston_transformed_SOURCES = clients/transformed.c
724weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800725weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800726
727weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500728nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800729 protocol/fullscreen-shell-unstable-v1-protocol.c \
730 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800731weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800732weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800733
Jon A. Cruzb09da242015-06-16 13:15:13 -0700734weston_stacking_SOURCES = \
735 clients/stacking.c \
736 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800737weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800738weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800739
Jon A. Cruzb09da242015-06-16 13:15:13 -0700740weston_calibrator_SOURCES = \
741 clients/calibrator.c \
742 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800743 shared/matrix.c \
744 shared/matrix.h
745weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800746weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800747
748if BUILD_SUBSURFACES_CLIENT
749demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700750weston_subsurfaces_SOURCES = \
751 clients/subsurfaces.c \
752 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800753weston_subsurfaces_CFLAGS = \
754 $(AM_CFLAGS) \
755 $(SIMPLE_EGL_CLIENT_CFLAGS) \
756 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800757weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
758endif
759
760if HAVE_PANGO
761demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700762weston_editor_SOURCES = \
763 clients/editor.c \
764 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800765nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800766 protocol/text-input-unstable-v1-protocol.c \
767 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800768weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800769weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800770endif
771
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800772weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800773nodist_weston_keyboard_SOURCES = \
774 protocol/weston-desktop-shell-client-protocol.h \
775 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800776 protocol/input-method-unstable-v1-protocol.c \
777 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800778weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800779weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800780
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800781weston_simple_im_SOURCES = clients/weston-simple-im.c
782nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800783 protocol/input-method-unstable-v1-protocol.c \
784 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800785weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800786weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800787
Jon A. Cruzb09da242015-06-16 13:15:13 -0700788weston_info_SOURCES = \
789 clients/weston-info.c \
790 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400791nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200792 protocol/presentation-time-protocol.c \
793 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800794weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200795weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800796
Jon A. Cruzb09da242015-06-16 13:15:13 -0700797weston_desktop_shell_SOURCES = \
798 clients/desktop-shell.c \
799 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800800nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800801 protocol/weston-desktop-shell-client-protocol.h \
802 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800803weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800804weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800805
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900806if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700807weston_ivi_shell_user_interface_SOURCES = \
808 clients/ivi-shell-user-interface.c \
809 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900810nodist_weston_ivi_shell_user_interface_SOURCES = \
811 protocol/ivi-hmi-controller-client-protocol.h \
812 protocol/ivi-hmi-controller-protocol.c \
813 protocol/ivi-application-client-protocol.h \
814 protocol/ivi-application-protocol.c
815weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
816weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
817endif
818
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800819if BUILD_FULL_GL_CLIENTS
820demo_clients += weston-gears
821weston_gears_SOURCES = clients/gears.c
822weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800823weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800824endif
825
826endif
827
828BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800829 protocol/weston-screenshooter-protocol.c \
830 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100831 protocol/text-cursor-position-client-protocol.h \
832 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800833 protocol/text-input-unstable-v1-protocol.c \
834 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800835 protocol/input-method-unstable-v1-protocol.c \
836 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800837 protocol/weston-desktop-shell-client-protocol.h \
838 protocol/weston-desktop-shell-protocol.c \
Pekka Paalanen73511002016-04-15 16:53:41 +0300839 protocol/viewporter-client-protocol.h \
840 protocol/viewporter-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200841 protocol/presentation-time-protocol.c \
842 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800843 protocol/fullscreen-shell-unstable-v1-protocol.c \
844 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahlaf7f98b2016-08-09 18:15:43 +0800845 protocol/xdg-shell-unstable-v6-protocol.c \
846 protocol/xdg-shell-unstable-v6-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900847 protocol/ivi-hmi-controller-protocol.c \
848 protocol/ivi-hmi-controller-client-protocol.h \
849 protocol/ivi-application-protocol.c \
Bryce Harrington6303d3b2016-08-30 12:04:05 -0700850 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800851
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800852westondatadir = $(datadir)/weston
853dist_westondata_DATA = \
854 data/wayland.svg \
855 data/wayland.png \
856 data/pattern.png \
857 data/terminal.png \
858 data/border.png \
Bryce Harrington6bc52542016-03-24 17:57:39 -0700859 data/icon_editor.png \
860 data/icon_flower.png \
861 data/icon_terminal.png \
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800862 data/icon_window.png \
863 data/sign_close.png \
864 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100865 data/sign_minimize.png
866
867if ENABLE_IVI_SHELL
868dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900869 data/background.png \
870 data/tiling.png \
871 data/fullscreen.png \
872 data/panel.png \
873 data/random.png \
874 data/sidebyside.png \
875 data/home.png \
876 data/icon_ivi_clickdot.png \
877 data/icon_ivi_flower.png \
878 data/icon_ivi_simple-egl.png \
879 data/icon_ivi_simple-shm.png \
880 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100881endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800882
883
884if BUILD_WCAP_TOOLS
885bin_PROGRAMS += wcap-decode
886
887wcap_decode_SOURCES = \
888 wcap/main.c \
889 wcap/wcap-decode.c \
890 wcap/wcap-decode.h
891
Derek Foreman4ff38742015-06-18 11:43:11 -0500892wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800893wcap_decode_LDADD = $(WCAP_LIBS)
894endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800895
896
897if ENABLE_DESKTOP_SHELL
898
899module_LTLIBRARIES += desktop-shell.la
900
901desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100902 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800903 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300904 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +0100905 -I$(top_srcdir)/libweston \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800906 -I$(top_builddir)/desktop-shell \
907 -DDATADIR='"$(datadir)"' \
908 -DMODULEDIR='"$(moduledir)"' \
909 -DLIBEXECDIR='"$(libexecdir)"' \
910 -DIN_WESTON
911
912desktop_shell_la_LDFLAGS = -module -avoid-version
Quentin Glidic8f9d90a2016-08-12 10:41:36 +0200913desktop_shell_la_LIBADD = libshared.la libweston-desktop-@LIBWESTON_MAJOR@.la $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500914desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800915desktop_shell_la_SOURCES = \
916 desktop-shell/shell.h \
917 desktop-shell/shell.c \
918 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700919 desktop-shell/input-panel.c \
920 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800921nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800922 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahl5ac91a12016-08-15 17:31:02 +0800923 protocol/weston-desktop-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800924
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800925BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800926endif
927
Jason Ekstrand946a9482014-04-02 19:53:47 -0500928if ENABLE_FULLSCREEN_SHELL
929
930module_LTLIBRARIES += fullscreen-shell.la
931
932fullscreen_shell_la_CPPFLAGS = \
933 -I$(top_builddir)/protocol \
934 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +0300935 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +0100936 -I$(top_srcdir)/libweston \
Jason Ekstrand946a9482014-04-02 19:53:47 -0500937 -DIN_WESTON
938
939fullscreen_shell_la_LDFLAGS = -module -avoid-version
940fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500941fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500942fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700943 fullscreen-shell/fullscreen-shell.c \
944 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500945nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800946 protocol/fullscreen-shell-unstable-v1-protocol.c \
947 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500948
949BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
950endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800951
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900952if ENABLE_IVI_SHELL
953
954module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900955 $(ivi_shell) \
956 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900957
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900958ivi_shell = ivi-shell.la
959ivi_shell_la_LDFLAGS = -module -avoid-version
Emil Velikov67351452016-07-22 14:52:42 +0100960ivi_shell_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500961ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900962ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900963 ivi-shell/ivi-layout-export.h \
964 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +0200965 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900966 ivi-shell/ivi-layout.c \
967 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900968 ivi-shell/ivi-shell.h \
969 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700970 ivi-shell/input-panel-ivi.c \
971 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900972nodist_ivi_shell_la_SOURCES = \
973 protocol/ivi-application-protocol.c \
974 protocol/ivi-application-server-protocol.h
975
976BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
977
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900978hmi_controller = hmi-controller.la
979hmi_controller_la_LDFLAGS = -module -avoid-version
Emil Velikov67351452016-07-22 14:52:42 +0100980hmi_controller_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500981hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900982hmi_controller_la_SOURCES = \
983 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700984 ivi-shell/hmi-controller.c \
985 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900986nodist_hmi_controller_la_SOURCES = \
987 protocol/ivi-hmi-controller-protocol.c \
988 protocol/ivi-hmi-controller-server-protocol.h
989
990BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
991
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900992endif
993
994
Jason Ekstrand47928d82014-04-02 19:54:01 -0500995if ENABLE_SCREEN_SHARING
996
997module_LTLIBRARIES += screen-share.la
998
999screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
1000screen_share_la_LDFLAGS = -module -avoid-version
1001screen_share_la_LIBADD = \
Emil Velikov67351452016-07-22 14:52:42 +01001002 libshared-cairo.la \
Jason Ekstrand47928d82014-04-02 19:54:01 -05001003 $(COMPOSITOR_LIBS) \
Emil Velikov67351452016-07-22 14:52:42 +01001004 $(SCREEN_SHARE_LIBS)
Jason Ekstrand47928d82014-04-02 19:54:01 -05001005screen_share_la_CFLAGS = \
1006 $(COMPOSITOR_CFLAGS) \
1007 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -05001008 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -05001009screen_share_la_SOURCES = \
Pekka Paalanen58f98c92016-06-03 16:45:21 +03001010 compositor/screen-share.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001011 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -05001012nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +08001013 protocol/fullscreen-shell-unstable-v1-protocol.c \
1014 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -05001015
1016endif
1017
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001018if ENABLE_XWAYLAND
1019
Giulio Camuffo9c764df2016-06-29 11:54:27 +02001020libweston_module_LTLIBRARIES += xwayland.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001021
1022xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001023 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001024 -I$(top_srcdir)/shared \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001025 -I$(top_builddir)/libweston \
Emil Velikov4ad45ca2016-07-04 14:57:11 +01001026 -I$(top_srcdir)/libweston \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001027 -I$(top_builddir)/xwayland \
1028 -DDATADIR='"$(datadir)"' \
1029 -DMODULEDIR='"$(moduledir)"' \
Giulio Camuffo9c764df2016-06-29 11:54:27 +02001030 -DLIBEXECDIR='"$(libexecdir)"'
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001031
1032xwayland_la_LDFLAGS = -module -avoid-version
1033xwayland_la_LIBADD = \
Emil Velikov67351452016-07-22 14:52:42 +01001034 libshared-cairo.la \
1035 $(XWAYLAND_LIBS)
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001036xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -05001037 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001038 $(COMPOSITOR_CFLAGS) \
1039 $(PIXMAN_CFLAGS) \
1040 $(CAIRO_CFLAGS)
1041xwayland_la_SOURCES = \
1042 xwayland/xwayland.h \
Quentin Glidic955cec02016-08-12 10:41:35 +02001043 xwayland/xwayland-internal-interface.h \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001044 xwayland/window-manager.c \
1045 xwayland/selection.c \
1046 xwayland/dnd.c \
1047 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001048 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001049 xwayland/hash.h \
1050 shared/helpers.h
Giulio Camuffo9c764df2016-06-29 11:54:27 +02001051
1052libwestoninclude_HEADERS += xwayland/xwayland-api.h
1053
Kristian Høgsberg058bd322014-01-27 21:59:55 -08001054endif
1055
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001056
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001057#
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001058# Shared utilities
1059#
1060
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001061noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
1062 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001063
Derek Foreman4ff38742015-06-18 11:43:11 -05001064libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001065
1066libshared_la_SOURCES = \
1067 shared/config-parser.c \
1068 shared/option-parser.c \
1069 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +02001070 shared/file-util.c \
1071 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001072 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001073 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -07001074 shared/os-compatibility.h \
1075 shared/xalloc.c \
1076 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001077
1078libshared_cairo_la_CFLAGS = \
1079 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001080 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001081 $(COMPOSITOR_CFLAGS) \
1082 $(PIXMAN_CFLAGS) \
1083 $(CAIRO_CFLAGS) \
1084 $(PNG_CFLAGS) \
1085 $(WEBP_CFLAGS)
1086
1087libshared_cairo_la_LIBADD = \
1088 $(PIXMAN_LIBS) \
1089 $(CAIRO_LIBS) \
1090 $(PNG_LIBS) \
1091 $(WEBP_LIBS) \
1092 $(JPEG_LIBS)
1093
1094libshared_cairo_la_SOURCES = \
1095 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001096 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001097 shared/image-loader.c \
1098 shared/image-loader.h \
1099 shared/cairo-util.c \
1100 shared/frame.c \
1101 shared/cairo-util.h
1102
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001103libzunitc_la_SOURCES = \
1104 tools/zunitc/inc/zunitc/zunitc.h \
1105 tools/zunitc/inc/zunitc/zunitc_impl.h \
1106 tools/zunitc/src/zuc_base_logger.c \
1107 tools/zunitc/src/zuc_base_logger.h \
1108 tools/zunitc/src/zuc_collector.c \
1109 tools/zunitc/src/zuc_collector.h \
1110 tools/zunitc/src/zuc_context.h \
1111 tools/zunitc/src/zuc_event.h \
1112 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001113 tools/zunitc/src/zuc_junit_reporter.c \
1114 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001115 tools/zunitc/src/zuc_types.h \
1116 tools/zunitc/src/zunitc_impl.c \
1117 shared/helpers.h
1118
1119libzunitc_la_CFLAGS = \
1120 $(AM_CFLAGS) \
1121 -I$(top_srcdir)/tools/zunitc/inc
1122
1123libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001124 libshared.la \
1125 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001126
Jon A. Cruz646aef52015-07-15 19:22:41 -07001127if ENABLE_JUNIT_XML
1128libzunitc_la_CFLAGS += \
1129 $(LIBXML2_CFLAGS)
1130libzunitc_la_LIBADD += \
1131 $(LIBXML2_LIBS)
1132endif
1133
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001134libzunitcmain_la_SOURCES = \
1135 tools/zunitc/src/main.c
1136
1137libzunitcmain_la_CFLAGS = \
1138 $(AM_CFLAGS) \
1139 -I$(top_srcdir)/tools/zunitc/inc
1140
1141libzunitcmain_la_LIBADD = \
1142 libzunitc.la \
1143 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001144
1145#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001146# tests subdirectory
1147#
1148
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001149TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1150
1151internal_tests = \
1152 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001153
1154shared_tests = \
1155 config-parser.test \
Bryce Harrington82b9f2b2016-08-03 17:40:51 -07001156 string.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001157 vertex-clip.test \
1158 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001159
1160module_tests = \
Pekka Paalanen827b5d22016-06-29 11:54:26 +02001161 plugin-registry-test.la \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001162 surface-test.la \
1163 surface-global-test.la
1164
1165weston_tests = \
1166 bad_buffer.weston \
1167 keyboard.weston \
1168 event.weston \
1169 button.weston \
1170 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001171 presentation.weston \
Pekka Paalanen82d95a62016-04-19 17:20:42 +03001172 viewporter.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001173 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001174 subsurface.weston \
1175 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001176
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001177ivi_tests =
1178
1179$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001180
1181AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001182 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1183 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001184
1185TEST_EXTENSIONS = .la .weston
1186LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1187WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1188
1189clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001190 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001191 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001192
1193# To remove when automake 1.11 support is dropped
1194export abs_builddir
1195
1196noinst_LTLIBRARIES += \
1197 weston-test.la \
1198 $(module_tests) \
1199 libtest-runner.la \
1200 libtest-client.la
1201
1202noinst_PROGRAMS += \
1203 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001204 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001205 $(shared_tests) \
1206 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001207 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001208 matrix-test
1209
1210test_module_ldflags = \
1211 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1212
Pekka Paalanen827b5d22016-06-29 11:54:26 +02001213plugin_registry_test_la_SOURCES = tests/plugin-registry-test.c
1214plugin_registry_test_la_LDFLAGS = $(test_module_ldflags)
1215plugin_registry_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1216
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001217surface_global_test_la_SOURCES = tests/surface-global-test.c
1218surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001219surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001220
1221surface_test_la_SOURCES = tests/surface-test.c
1222surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001223surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001224
Emil Velikov67351452016-07-22 14:52:42 +01001225weston_test_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001226weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001227weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001228weston_test_la_SOURCES = \
1229 tests/weston-test.c \
1230 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001231nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001232 protocol/weston-test-protocol.c \
1233 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001234
1235if ENABLE_EGL
1236weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1237weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1238endif
1239
1240libtest_runner_la_SOURCES = \
1241 tests/weston-test-runner.c \
1242 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001243libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001244
1245config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001246config_parser_test_LDADD = \
1247 libshared.la \
1248 $(COMPOSITOR_LIBS) \
1249 libzunitc.la \
1250 libzunitcmain.la
1251config_parser_test_CFLAGS = \
1252 $(AM_CFLAGS) \
1253 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001254
Bryce Harrington82b9f2b2016-08-03 17:40:51 -07001255string_test_SOURCES = \
1256 tests/string-test.c \
1257 shared/string-helpers.h
1258string_test_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1259string_test_LDADD = libtest-client.la
1260
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001261vertex_clip_test_SOURCES = \
1262 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001263 shared/helpers.h \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001264 libweston/vertex-clipping.c \
1265 libweston/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001266vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001267
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001268libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001269 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001270 tests/weston-test-client-helper.h
1271nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001272 protocol/weston-test-protocol.c \
1273 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001274libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
Emil Velikov67351452016-07-22 14:52:42 +01001275libtest_client_la_LIBADD = libshared.la libtest-runner.la $(TEST_CLIENT_LIBS) $(CAIRO_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001276
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001277
1278#
1279# Internal tests - tests functionality of the testsuite itself
1280#
1281
1282internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001283internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1284internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001285
1286
1287#
1288# Weston Tests
1289#
1290
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001291bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001292bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001293bad_buffer_weston_LDADD = libtest-client.la
1294
1295keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001296keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001297keyboard_weston_LDADD = libtest-client.la
1298
1299event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001300event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001301event_weston_LDADD = libtest-client.la
1302
1303button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001304button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001305button_weston_LDADD = libtest-client.la
1306
Marek Chalupa5fd81402015-03-30 09:21:29 -04001307devices_weston_SOURCES = tests/devices-test.c
1308devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1309devices_weston_LDADD = libtest-client.la
1310
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001311text_weston_SOURCES = tests/text-test.c
1312nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001313 protocol/text-input-unstable-v1-protocol.c \
1314 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001315text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001316text_weston_LDADD = libtest-client.la
1317
1318subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001319subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001320subsurface_weston_LDADD = libtest-client.la
1321
Jon A. Cruzb09da242015-06-16 13:15:13 -07001322presentation_weston_SOURCES = \
1323 tests/presentation-test.c \
1324 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001325nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001326 protocol/presentation-time-protocol.c \
1327 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001328presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1329presentation_weston_LDADD = libtest-client.la
1330
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001331roles_weston_SOURCES = tests/roles-test.c
1332roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1333roles_weston_LDADD = libtest-client.la
1334
Pekka Paalanen82d95a62016-04-19 17:20:42 +03001335viewporter_weston_SOURCES = \
1336 tests/viewporter-test.c \
1337 shared/helpers.h
1338nodist_viewporter_weston_SOURCES = \
1339 protocol/viewporter-protocol.c \
1340 protocol/viewporter-client-protocol.h
1341viewporter_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1342viewporter_weston_LDADD = libtest-client.la
1343
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001344if ENABLE_EGL
1345weston_tests += buffer-count.weston
1346buffer_count_weston_SOURCES = tests/buffer-count-test.c
Pekka Paalanen924cd942016-05-20 17:25:38 +03001347buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001348buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1349endif
1350
1351if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001352weston_tests += xwayland-test.weston
1353xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001354xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001355xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001356endif
1357
1358matrix_test_SOURCES = \
1359 tests/matrix-test.c \
1360 shared/matrix.c \
1361 shared/matrix.h
1362matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001363matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001364
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001365if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001366module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001367 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001368 ivi-layout-test.la
1369
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001370ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1371ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001372ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001373ivi_layout_internal_test_la_SOURCES = \
1374 tests/ivi_layout-internal-test.c
1375
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001376ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1377ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001378ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001379ivi_layout_test_la_SOURCES = \
1380 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001381 tests/ivi-test.h \
1382 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001383nodist_ivi_layout_test_la_SOURCES = \
1384 protocol/weston-test-protocol.c \
1385 protocol/weston-test-server-protocol.h
1386
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001387ivi_tests += \
1388 ivi-shell-app.weston
1389
1390ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1391nodist_ivi_shell_app_weston_SOURCES = \
1392 protocol/ivi-application-protocol.c \
1393 protocol/ivi-application-client-protocol.h
1394ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1395ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001396
1397noinst_PROGRAMS += ivi-layout.ivi
1398
1399ivi_layout_ivi_SOURCES = \
1400 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001401 tests/ivi-test.h \
1402 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001403nodist_ivi_layout_ivi_SOURCES = \
1404 protocol/ivi-application-protocol.c \
1405 protocol/ivi-application-client-protocol.h
1406ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1407ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001408endif
1409
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001410if BUILD_SETBACKLIGHT
1411noinst_PROGRAMS += setbacklight
1412setbacklight_SOURCES = \
1413 tests/setbacklight.c \
Pekka Paalanenb5e3ea22016-06-03 17:12:10 +03001414 libweston/libbacklight.c \
1415 libweston/libbacklight.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001416setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1417setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1418endif
1419
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001420all-local: zuctest$(EXEEXT)
1421
1422noinst_PROGRAMS += zuctest$(EXEEXT)
1423
1424zuctest_LDADD = \
1425 libzunitc.la \
1426 libzunitcmain.la
1427
1428zuctest_CFLAGS = \
1429 $(AM_CFLAGS) \
1430 -I$(top_srcdir)/tools/zunitc/inc
1431
1432zuctest_SOURCES = \
1433 tools/zunitc/test/fixtures_test.c \
1434 tools/zunitc/test/zunitc_test.c
1435
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001436EXTRA_DIST += \
1437 tests/weston-tests-env \
1438 tests/internal-screenshot.ini \
1439 tests/reference/internal-screenshot-bad-00.png \
1440 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001441
1442BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001443 protocol/weston-test-protocol.c \
1444 protocol/weston-test-server-protocol.h \
1445 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001446 protocol/text-input-unstable-v1-protocol.c \
1447 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001448
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001449EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001450 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001451 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001452 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001453 protocol/weston-test.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001454 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001455 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001456
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001457#
1458# manual test modules in tests subdirectory
1459#
1460
1461noinst_LTLIBRARIES += \
1462 surface-screenshot.la
1463
Emil Velikov67351452016-07-22 14:52:42 +01001464surface_screenshot_la_LIBADD = libshared.la $(COMPOSITOR_LIBS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001465surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001466surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001467surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1468
1469
1470#
1471# Documentation
1472#
1473
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001474man_MANS = weston.1 weston.ini.5
1475
1476if ENABLE_DRM_COMPOSITOR
1477man_MANS += weston-drm.7
1478endif
1479
1480MAN_SUBSTS = \
1481 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1482 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1483 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1484 -e 's|__version__|$(PACKAGE_VERSION)|g'
1485
1486SUFFIXES = .1 .5 .7 .man
1487
1488%.1 %.5 %.7 : man/%.man
1489 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1490
1491EXTRA_DIST += \
1492 man/weston.man \
1493 man/weston-drm.man \
1494 man/weston.ini.man
1495
1496CLEANFILES += $(man_MANS)
1497
Jon A. Cruz179c1862015-07-15 19:22:43 -07001498if ENABLE_DEVDOCS
1499DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1500
1501docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1502 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1503
1504docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1505 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1506endif
1507
1508DOCDIRS = \
1509 docs/developer \
1510 docs/tools
1511
1512$(DOCDIRS):
1513 $(MKDIR_P) $@
1514
1515.PHONY: doc $(DOXYGEN_INDICES)
1516
1517doc: $(DOXYGEN_INDICES)
1518
Jonas Ådahl496adb32015-11-17 16:00:27 +08001519.SECONDEXPANSION:
1520
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001521define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001522$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001523endef
1524
1525define protoname
1526$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1527endef
1528
1529protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001530 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1531
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001532protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001533 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1534
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001535protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001536 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1537
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001538protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1539 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001540
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001541protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1542 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001543
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001544protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1545 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@