blob: 2d7273072c2f6f6c9354d7766a523314f73e6fe5 [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 =
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -08008noinst_LTLIBRARIES =
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -08009BUILT_SOURCES =
Kristian Høgsberge895f142014-01-27 21:46:30 -080010
Derek Foreman2ef9e812015-02-09 09:57:29 -060011AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
Kristian Høgsberg24639cc2013-02-25 13:03:15 -050012
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090013EXTRA_DIST = weston.ini.in ivi-shell/weston.ini.in
Neil Robertse3de16e2013-11-22 16:46:00 +000014
15weston.ini : $(srcdir)/weston.ini.in
16 $(AM_V_GEN)$(SED) \
17 -e 's|@bindir[@]|$(bindir)|g' \
18 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
19 -e 's|@libexecdir[@]|$(libexecdir)|g' \
20 $< > $@
21
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090022ivi-shell/weston.ini : $(srcdir)/ivi-shell/weston.ini.in
Ross Burton2eff22b2015-07-17 12:33:45 +010023 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090024 -e 's|@bindir[@]|$(bindir)|g' \
25 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
Pekka Paalanen8cb25872015-03-24 14:09:57 +020026 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090027 -e 's|@libexecdir[@]|$(libexecdir)|g' \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020028 -e 's|@plugin_prefix[@]||g' \
29 $< > $@
30
31tests/weston-ivi.ini : $(srcdir)/ivi-shell/weston.ini.in
Ross Burton2eff22b2015-07-17 12:33:45 +010032 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020033 -e 's|@bindir[@]|$(bindir)|g' \
34 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
Pekka Paalanen8cb25872015-03-24 14:09:57 +020035 -e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
Derek Foremanbbdd9bc2015-06-16 13:30:35 -050036 -e 's|@libexecdir[@]|$(abs_builddir)|g' \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020037 -e 's|@plugin_prefix[@]|$(abs_top_builddir)/.libs/|g' \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090038 $< > $@
39
40all-local : weston.ini ivi-shell/weston.ini
Kristian Høgsberg98463742013-12-16 23:12:46 -080041
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080042AM_CFLAGS = $(GCC_CFLAGS)
43
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080044AM_CPPFLAGS = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080045 -I$(top_srcdir)/src \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080046 -I$(top_builddir)/src \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080047 -I$(top_builddir)/clients \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080048 -I$(top_builddir)/tests \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080049 -I$(top_srcdir)/shared \
Quentin Glidic088ba5e2014-02-01 21:39:12 +010050 -I$(top_builddir)/protocol \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080051 -DDATADIR='"$(datadir)"' \
52 -DMODULEDIR='"$(moduledir)"' \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080053 -DLIBEXECDIR='"$(libexecdir)"' \
54 -DBINDIR='"$(bindir)"'
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080055
Pekka Paalanenf3a34532015-03-24 13:51:05 +020056CLEANFILES = weston.ini \
57 ivi-shell/weston.ini \
58 tests/weston-ivi.ini \
Derek Foreman1ce2ef52015-05-26 10:21:03 -050059 internal-screenshot-00.png \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020060 $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080061
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080062bin_PROGRAMS += weston
63
64weston_LDFLAGS = -export-dynamic
65weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
Derek Foreman4ff38742015-06-18 11:43:11 -050066weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080067weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -030068 $(DLOPEN_LIBS) -lm $(CLOCK_GETTIME_LIBS) libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080069
70weston_SOURCES = \
71 src/git-version.h \
72 src/log.c \
73 src/compositor.c \
74 src/compositor.h \
Benoit Gschwind3c530942016-04-15 20:28:32 -070075 src/compositor-headless.h \
Benoit Gschwindbd573102016-04-22 17:05:26 +020076 src/compositor-rdp.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080077 src/input.c \
78 src/data-device.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080079 src/screenshooter.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080080 src/clipboard.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080081 src/zoom.c \
82 src/text-backend.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080083 src/bindings.c \
84 src/animation.c \
85 src/noop-renderer.c \
86 src/pixman-renderer.c \
87 src/pixman-renderer.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +020088 src/timeline.c \
89 src/timeline.h \
90 src/timeline-object.h \
Giulio Camuffobab996e2014-10-12 00:24:25 +030091 src/main.c \
Pekka Paalanen230f3b12014-09-29 14:18:40 -040092 src/linux-dmabuf.c \
93 src/linux-dmabuf.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -070094 shared/helpers.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080095 shared/matrix.c \
96 shared/matrix.h \
Pekka Paalanenaa21f622015-07-03 15:44:50 +030097 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080098 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +010099 shared/platform.h \
Egor Starkov94fd9a52015-09-29 14:50:41 +0300100 src/weston-egl-ext.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300101
102if SYSTEMD_NOTIFY_SUPPORT
103module_LTLIBRARIES += systemd-notify.la
104systemd_notify_la_LDFLAGS = -module -avoid-version
105systemd_notify_la_LIBADD = $(SYSTEMD_DAEMON_LIBS)
106systemd_notify_la_CFLAGS = \
Pekka Paalanenaff703e2016-04-05 14:08:11 +0300107 $(COMPOSITOR_CFLAGS) \
108 $(SYSTEMD_DAEMON_CFLAGS) \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300109 $(PIXMAN_CFLAGS) \
110 $(AM_CFLAGS)
111systemd_notify_la_SOURCES = \
112 src/systemd-notify.c \
Egor Starkov7ce2e972015-09-25 18:00:27 +0300113 shared/helpers.h \
114 shared/zalloc.h \
Bryce Harringtona0dd5b42015-09-25 15:16:25 -0700115 src/compositor.h
Egor Starkov7ce2e972015-09-25 18:00:27 +0300116endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800117
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800118nodist_weston_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800119 protocol/weston-screenshooter-protocol.c \
120 protocol/weston-screenshooter-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800121 protocol/text-cursor-position-protocol.c \
122 protocol/text-cursor-position-server-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800123 protocol/text-input-unstable-v1-protocol.c \
124 protocol/text-input-unstable-v1-server-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800125 protocol/input-method-unstable-v1-protocol.c \
126 protocol/input-method-unstable-v1-server-protocol.h \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200127 protocol/presentation-time-protocol.c \
128 protocol/presentation-time-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800129 protocol/scaler-protocol.c \
Pekka Paalanen23ab7152014-09-29 14:08:29 -0400130 protocol/scaler-server-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800131 protocol/linux-dmabuf-unstable-v1-protocol.c \
132 protocol/linux-dmabuf-unstable-v1-server-protocol.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800133
134BUILT_SOURCES += $(nodist_weston_SOURCES)
135
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800136# Track this dependency explicitly instead of using BUILT_SOURCES. We
137# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
138# in case we're building from tarballs.
139
140src/compositor.c : $(top_builddir)/src/git-version.h
141
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800142noinst_LTLIBRARIES += \
143 libsession-helper.la
144
145libsession_helper_la_SOURCES = \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800146 src/launcher-util.c \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700147 src/launcher-util.h \
Derek Foremancb156202015-09-24 09:26:48 -0500148 src/launcher-impl.h \
Jasper St. Pierre72dea062015-09-23 10:46:47 -0700149 src/weston-launch.h \
150 src/launcher-weston-launch.c \
151 src/launcher-direct.c
Derek Foreman4ff38742015-06-18 11:43:11 -0500152libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800153libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
154
155if ENABLE_DBUS
156if HAVE_SYSTEMD_LOGIN
157libsession_helper_la_SOURCES += \
158 src/dbus.h \
159 src/dbus.c \
Jasper St. Pierre30bcf352015-09-23 10:46:46 -0700160 src/launcher-logind.c
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800161libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
162libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
163endif
164endif
165
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800166if HAVE_GIT_REPO
167src/git-version.h : $(top_srcdir)/.git/logs/HEAD
168 $(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 -0800169else
170src/git-version.h :
171 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
172
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800173endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800174
175.FORCE :
176
177if BUILD_WESTON_LAUNCH
178bin_PROGRAMS += weston-launch
179weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
180weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
181weston_launch_CFLAGS= \
Derek Foreman4ff38742015-06-18 11:43:11 -0500182 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800183 $(PAM_CFLAGS) \
184 $(SYSTEMD_LOGIN_CFLAGS) \
185 $(LIBDRM_CFLAGS)
186weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
187
188if ENABLE_SETUID_INSTALL
189install-exec-hook:
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700190 can_suid_files=no; \
191 chown root $(DESTDIR)$(bindir)/weston-launch \
192 && chmod u+s $(DESTDIR)$(bindir)/weston-launch \
193 && can_suid_files=yes;\
Derek Foreman6d116792015-04-10 11:55:27 -0500194 if test $$can_suid_files = no; then \
Jon A. Cruz90f23ca2015-04-09 17:52:56 -0700195 echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
196 echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
197 false; \
198 fi
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800199endif
200
201endif # BUILD_WESTON_LAUNCH
202
203pkgconfigdir = $(libdir)/pkgconfig
204pkgconfig_DATA = src/weston.pc
205
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100206wayland_sessiondir = $(datadir)/wayland-sessions
Ross Burton315476f2015-07-16 20:56:32 +0100207dist_wayland_session_DATA = src/weston.desktop
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100208
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800209westonincludedir = $(includedir)/weston
210westoninclude_HEADERS = \
211 src/version.h \
212 src/compositor.h \
Benoit Gschwind3c530942016-04-15 20:28:32 -0700213 src/compositor-headless.h \
Benoit Gschwindbd573102016-04-22 17:05:26 +0200214 src/compositor-rdp.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200215 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800216 shared/matrix.h \
217 shared/config-parser.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100218 shared/zalloc.h \
219 shared/platform.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800220
Ucan, Emre \(ADITG/SW1\)ae2541d2015-10-15 14:51:43 +0000221if ENABLE_IVI_SHELL
222westoninclude_HEADERS += \
223 ivi-shell/ivi-layout-export.h
224endif
225
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800226if ENABLE_EGL
227module_LTLIBRARIES += gl-renderer.la
228gl_renderer_la_LDFLAGS = -module -avoid-version
229gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
230gl_renderer_la_CFLAGS = \
231 $(COMPOSITOR_CFLAGS) \
232 $(EGL_CFLAGS) \
Pekka Paalanena3525802014-06-12 16:49:29 +0300233 $(GL_RENDERER_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500234 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800235gl_renderer_la_SOURCES = \
236 src/gl-renderer.h \
237 src/gl-renderer.c \
238 src/vertex-clipping.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700239 src/vertex-clipping.h \
240 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800241endif
242
243if ENABLE_X11_COMPOSITOR
244module_LTLIBRARIES += x11-backend.la
245x11_backend_la_LDFLAGS = -module -avoid-version
246x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800247 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800248x11_backend_la_CFLAGS = \
249 $(COMPOSITOR_CFLAGS) \
250 $(EGL_CFLAGS) \
251 $(PIXMAN_CFLAGS) \
252 $(CAIRO_CFLAGS) \
253 $(X11_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500254 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700255x11_backend_la_SOURCES = \
256 src/compositor-x11.c \
257 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800258endif
259
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100260INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000261INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100262 src/libinput-seat.c \
263 src/libinput-seat.h \
264 src/libinput-device.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700265 src/libinput-device.h \
266 shared/helpers.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100267
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800268if ENABLE_DRM_COMPOSITOR
269module_LTLIBRARIES += drm-backend.la
270drm_backend_la_LDFLAGS = -module -avoid-version
271drm_backend_la_LIBADD = \
272 $(COMPOSITOR_LIBS) \
273 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100274 $(INPUT_BACKEND_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300275 libshared.la \
276 $(CLOCK_GETTIME_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800277 libsession-helper.la
278drm_backend_la_CFLAGS = \
279 $(COMPOSITOR_CFLAGS) \
280 $(EGL_CFLAGS) \
281 $(DRM_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500282 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800283drm_backend_la_SOURCES = \
284 src/compositor-drm.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100285 $(INPUT_BACKEND_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700286 shared/helpers.h \
Mario Kleinerf507ec32015-06-21 21:25:14 +0200287 shared/timespec-util.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800288 src/libbacklight.c \
289 src/libbacklight.h
290
291if ENABLE_VAAPI_RECORDER
292drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
293drm_backend_la_LIBADD += $(LIBVA_LIBS)
294drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
295endif
296endif
297
298if ENABLE_WAYLAND_COMPOSITOR
299module_LTLIBRARIES += wayland-backend.la
300wayland_backend_la_LDFLAGS = -module -avoid-version
301wayland_backend_la_LIBADD = \
302 $(COMPOSITOR_LIBS) \
303 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800304 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800305wayland_backend_la_CFLAGS = \
306 $(COMPOSITOR_CFLAGS) \
307 $(EGL_CFLAGS) \
308 $(PIXMAN_CFLAGS) \
309 $(CAIRO_CFLAGS) \
310 $(WAYLAND_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500311 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700312wayland_backend_la_SOURCES = \
313 src/compositor-wayland.c \
314 shared/helpers.h
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500315nodist_wayland_backend_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800316 protocol/fullscreen-shell-unstable-v1-protocol.c \
317 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800318endif
319
320if ENABLE_RPI_COMPOSITOR
321if INSTALL_RPI_COMPOSITOR
322module_LTLIBRARIES += rpi-backend.la
323else
324noinst_LTLIBRARIES += rpi-backend.la
325endif
326
327rpi_backend_la_LDFLAGS = -module -avoid-version
328rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
329 $(RPI_COMPOSITOR_LIBS) \
330 $(RPI_BCM_HOST_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100331 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800332 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800333 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800334rpi_backend_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500335 $(AM_CFLAGS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800336 $(COMPOSITOR_CFLAGS) \
337 $(RPI_COMPOSITOR_CFLAGS) \
338 $(RPI_BCM_HOST_CFLAGS)
339rpi_backend_la_SOURCES = \
340 src/compositor-rpi.c \
341 src/rpi-renderer.c \
342 src/rpi-renderer.h \
343 src/rpi-bcm-stubs.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700344 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100345 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800346
347if ENABLE_EGL
348rpi_backend_la_LIBADD += $(EGL_LIBS)
349rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
350endif
351
352endif
353
354if ENABLE_HEADLESS_COMPOSITOR
355module_LTLIBRARIES += headless-backend.la
356headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800357headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500358headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700359headless_backend_la_SOURCES = \
360 src/compositor-headless.c \
Benoit Gschwind3c530942016-04-15 20:28:32 -0700361 src/compositor-headless.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700362 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800363endif
364
365if ENABLE_FBDEV_COMPOSITOR
366module_LTLIBRARIES += fbdev-backend.la
367fbdev_backend_la_LDFLAGS = -module -avoid-version
368fbdev_backend_la_LIBADD = \
369 $(COMPOSITOR_LIBS) \
370 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100371 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800372 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800373 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800374fbdev_backend_la_CFLAGS = \
375 $(COMPOSITOR_CFLAGS) \
376 $(EGL_CFLAGS) \
377 $(FBDEV_COMPOSITOR_CFLAGS) \
378 $(PIXMAN_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500379 $(AM_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800380fbdev_backend_la_SOURCES = \
381 src/compositor-fbdev.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700382 shared/helpers.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100383 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800384endif
385
386if ENABLE_RDP_COMPOSITOR
387module_LTLIBRARIES += rdp-backend.la
388rdp_backend_la_LDFLAGS = -module -avoid-version
389rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
390 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800391 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800392rdp_backend_la_CFLAGS = \
393 $(COMPOSITOR_CFLAGS) \
394 $(RDP_COMPOSITOR_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500395 $(AM_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -0700396rdp_backend_la_SOURCES = \
397 src/compositor-rdp.c \
Benoit Gschwindbd573102016-04-22 17:05:26 +0200398 src/compositor-rdp.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700399 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800400endif
401
402if HAVE_LCMS
403module_LTLIBRARIES += cms-static.la
404cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800405cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500406cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800407cms_static_la_SOURCES = \
408 src/cms-static.c \
409 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700410 src/cms-helper.h \
411 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800412if ENABLE_COLORD
413module_LTLIBRARIES += cms-colord.la
414cms_colord_la_LDFLAGS = -module -avoid-version
415cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500416cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800417cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100418 src/cms-colord.c \
419 src/cms-helper.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700420 src/cms-helper.h \
421 shared/helpers.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800422endif
423endif
424
425noinst_PROGRAMS += spring-tool
Derek Foreman4ff38742015-06-18 11:43:11 -0500426spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800427spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
428spring_tool_SOURCES = \
429 src/spring-tool.c \
430 src/animation.c \
431 shared/matrix.c \
432 shared/matrix.h \
433 src/compositor.h
434
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800435if BUILD_CLIENTS
436
437bin_PROGRAMS += weston-terminal weston-info
438
439libexec_PROGRAMS += \
440 weston-desktop-shell \
441 weston-screenshooter \
442 weston-keyboard \
443 weston-simple-im
444
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900445if ENABLE_IVI_SHELL
446libexec_PROGRAMS += \
447 weston-ivi-shell-user-interface
448endif
449
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800450demo_clients = \
451 weston-flower \
452 weston-image \
453 weston-cliptest \
454 weston-dnd \
455 weston-smoke \
456 weston-resizor \
457 weston-eventdemo \
458 weston-clickdot \
459 weston-transformed \
460 weston-fullscreen \
461 weston-stacking \
462 weston-calibrator \
463 weston-scaler
464
465if INSTALL_DEMO_CLIENTS
466bin_PROGRAMS += $(demo_clients)
467else
468noinst_PROGRAMS += $(demo_clients)
469endif
470
471
472if BUILD_SIMPLE_CLIENTS
473demo_clients += \
474 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500475 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800476 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400477 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800478 weston-multi-resource
479
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800480weston_simple_shm_SOURCES = clients/simple-shm.c
481nodist_weston_simple_shm_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800482 protocol/xdg-shell-unstable-v5-protocol.c \
483 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800484 protocol/fullscreen-shell-unstable-v1-protocol.c \
485 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900486 protocol/ivi-application-protocol.c \
487 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800488weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800489weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800490
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500491weston_simple_damage_SOURCES = clients/simple-damage.c
492nodist_weston_simple_damage_SOURCES = \
493 protocol/scaler-protocol.c \
494 protocol/scaler-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800495 protocol/xdg-shell-unstable-v5-protocol.c \
496 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800497 protocol/fullscreen-shell-unstable-v1-protocol.c \
498 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500499weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
500weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
501
Jon A. Cruzb09da242015-06-16 13:15:13 -0700502weston_simple_touch_SOURCES = \
503 clients/simple-touch.c \
504 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800505weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800506weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800507
Jon A. Cruzb09da242015-06-16 13:15:13 -0700508weston_presentation_shm_SOURCES = \
509 clients/presentation-shm.c \
510 shared/helpers.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400511nodist_weston_presentation_shm_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200512 protocol/presentation-time-protocol.c \
513 protocol/presentation-time-client-protocol.h
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400514weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300515weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400516
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800517weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800518weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300519weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800520endif
521
522if BUILD_SIMPLE_EGL_CLIENTS
523demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800524weston_simple_egl_SOURCES = clients/simple-egl.c
525nodist_weston_simple_egl_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800526 protocol/xdg-shell-unstable-v5-protocol.c \
527 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900528 protocol/ivi-application-protocol.c \
529 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800530weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800531weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
532endif
533
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000534if BUILD_SIMPLE_DMABUF_INTEL_CLIENT
535demo_clients += weston-simple-dmabuf-intel
536weston_simple_dmabuf_intel_SOURCES = clients/simple-dmabuf-intel.c
537nodist_weston_simple_dmabuf_intel_SOURCES = \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800538 protocol/xdg-shell-unstable-v5-protocol.c \
539 protocol/xdg-shell-unstable-v5-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800540 protocol/fullscreen-shell-unstable-v1-protocol.c \
541 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800542 protocol/linux-dmabuf-unstable-v1-protocol.c \
543 protocol/linux-dmabuf-unstable-v1-client-protocol.h
Emmanuel Gil Peyrot3b65b0b2016-01-11 19:04:36 +0000544weston_simple_dmabuf_intel_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_INTEL_CLIENT_CFLAGS)
545weston_simple_dmabuf_intel_LDADD = $(SIMPLE_DMABUF_INTEL_CLIENT_LIBS) libshared.la
Jonas Ådahl57e48f02015-11-17 16:00:28 +0800546BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
George Kiagiadakis53868982014-06-12 16:26:49 +0200547endif
548
Emmanuel Gil Peyrot5d43af32016-01-11 19:04:38 +0000549if BUILD_SIMPLE_DMABUF_V4L_CLIENT
550demo_clients += weston-simple-dmabuf-v4l
551weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
552nodist_weston_simple_dmabuf_v4l_SOURCES = \
553 protocol/xdg-shell-unstable-v5-protocol.c \
554 protocol/xdg-shell-unstable-v5-client-protocol.h \
555 protocol/fullscreen-shell-unstable-v1-protocol.c \
556 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
557 protocol/linux-dmabuf-unstable-v1-protocol.c \
558 protocol/linux-dmabuf-unstable-v1-client-protocol.h
559weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
560weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
561BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
562endif
563
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800564noinst_LTLIBRARIES += libtoytoolkit.la
565
566libtoytoolkit_la_SOURCES = \
567 clients/window.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700568 clients/window.h \
569 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800570
571nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100572 protocol/text-cursor-position-protocol.c \
573 protocol/text-cursor-position-client-protocol.h \
574 protocol/scaler-protocol.c \
575 protocol/scaler-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800576 protocol/xdg-shell-unstable-v5-protocol.c \
577 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900578 protocol/ivi-application-protocol.c \
579 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500580
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800581BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
582
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800583
584libtoytoolkit_la_LIBADD = \
585 $(CLIENT_LIBS) \
586 $(CAIRO_EGL_LIBS) \
Gustavo Zacarias34d59852016-04-21 11:18:48 -0300587 libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800588libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800589
590weston_flower_SOURCES = clients/flower.c
591weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800592weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800593
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100594weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800595 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800596nodist_weston_screenshooter_SOURCES = \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800597 protocol/weston-screenshooter-protocol.c \
598 protocol/weston-screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800599weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800600weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800601
Jon A. Cruzb09da242015-06-16 13:15:13 -0700602weston_terminal_SOURCES = \
603 clients/terminal.c \
604 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800605weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800606weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800607
608weston_image_SOURCES = clients/image.c
609weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800610weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800611
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300612weston_cliptest_SOURCES = \
613 clients/cliptest.c \
614 src/vertex-clipping.c \
615 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800616weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800617weston_cliptest_LDADD = libtoytoolkit.la
618
Jon A. Cruzb09da242015-06-16 13:15:13 -0700619weston_dnd_SOURCES = \
620 clients/dnd.c \
621 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800622weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800623weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800624
625weston_smoke_SOURCES = clients/smoke.c
626weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800627weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800628
629weston_resizor_SOURCES = clients/resizor.c
630weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800631weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800632
633weston_scaler_SOURCES = clients/scaler.c
634weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800635weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800636
637if HAVE_CAIRO_GLESV2
638demo_clients += weston-nested weston-nested-client
639
Jon A. Cruzb09da242015-06-16 13:15:13 -0700640weston_nested_SOURCES = \
641 clients/nested.c \
642 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800643weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800644weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800645
646weston_nested_client_SOURCES = clients/nested-client.c
647weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800648weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800649endif
650
Jon A. Cruzb09da242015-06-16 13:15:13 -0700651weston_eventdemo_SOURCES = \
652 clients/eventdemo.c \
653 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800654weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800655weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800656
Jon A. Cruzb09da242015-06-16 13:15:13 -0700657weston_clickdot_SOURCES = \
658 clients/clickdot.c \
659 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800660weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800661weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800662
663weston_transformed_SOURCES = clients/transformed.c
664weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800665weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800666
667weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500668nodist_weston_fullscreen_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800669 protocol/fullscreen-shell-unstable-v1-protocol.c \
670 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800671weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800672weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800673
Jon A. Cruzb09da242015-06-16 13:15:13 -0700674weston_stacking_SOURCES = \
675 clients/stacking.c \
676 shared/helpers.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800677weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800678weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800679
Jon A. Cruzb09da242015-06-16 13:15:13 -0700680weston_calibrator_SOURCES = \
681 clients/calibrator.c \
682 shared/helpers.h \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800683 shared/matrix.c \
684 shared/matrix.h
685weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800686weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800687
688if BUILD_SUBSURFACES_CLIENT
689demo_clients += weston-subsurfaces
Jon A. Cruzb09da242015-06-16 13:15:13 -0700690weston_subsurfaces_SOURCES = \
691 clients/subsurfaces.c \
692 shared/helpers.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800693weston_subsurfaces_CFLAGS = \
694 $(AM_CFLAGS) \
695 $(SIMPLE_EGL_CLIENT_CFLAGS) \
696 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800697weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
698endif
699
700if HAVE_PANGO
701demo_clients += weston-editor
Jon A. Cruzb09da242015-06-16 13:15:13 -0700702weston_editor_SOURCES = \
703 clients/editor.c \
704 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800705nodist_weston_editor_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800706 protocol/text-input-unstable-v1-protocol.c \
707 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800708weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800709weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800710endif
711
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800712weston_keyboard_SOURCES = clients/keyboard.c
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800713nodist_weston_keyboard_SOURCES = \
714 protocol/weston-desktop-shell-client-protocol.h \
715 protocol/weston-desktop-shell-protocol.c \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800716 protocol/input-method-unstable-v1-protocol.c \
717 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800718weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800719weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800720
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800721weston_simple_im_SOURCES = clients/weston-simple-im.c
722nodist_weston_simple_im_SOURCES = \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800723 protocol/input-method-unstable-v1-protocol.c \
724 protocol/input-method-unstable-v1-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800725weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800726weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800727
Jon A. Cruzb09da242015-06-16 13:15:13 -0700728weston_info_SOURCES = \
729 clients/weston-info.c \
730 shared/helpers.h
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400731nodist_weston_info_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200732 protocol/presentation-time-protocol.c \
733 protocol/presentation-time-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800734weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200735weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800736
Jon A. Cruzb09da242015-06-16 13:15:13 -0700737weston_desktop_shell_SOURCES = \
738 clients/desktop-shell.c \
739 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800740nodist_weston_desktop_shell_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800741 protocol/weston-desktop-shell-client-protocol.h \
742 protocol/weston-desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800743weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800744weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800745
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900746if ENABLE_IVI_SHELL
Jon A. Cruzb09da242015-06-16 13:15:13 -0700747weston_ivi_shell_user_interface_SOURCES = \
748 clients/ivi-shell-user-interface.c \
749 shared/helpers.h
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900750nodist_weston_ivi_shell_user_interface_SOURCES = \
751 protocol/ivi-hmi-controller-client-protocol.h \
752 protocol/ivi-hmi-controller-protocol.c \
753 protocol/ivi-application-client-protocol.h \
754 protocol/ivi-application-protocol.c
755weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
756weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
757endif
758
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800759if BUILD_FULL_GL_CLIENTS
760demo_clients += weston-gears
761weston_gears_SOURCES = clients/gears.c
762weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800763weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800764endif
765
766endif
767
768BUILT_SOURCES += \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +0800769 protocol/weston-screenshooter-protocol.c \
770 protocol/weston-screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100771 protocol/text-cursor-position-client-protocol.h \
772 protocol/text-cursor-position-protocol.c \
Jonas Ådahl3bcba342015-11-17 16:00:29 +0800773 protocol/text-input-unstable-v1-protocol.c \
774 protocol/text-input-unstable-v1-client-protocol.h \
Jonas Ådahlb57f4722015-11-17 16:00:30 +0800775 protocol/input-method-unstable-v1-protocol.c \
776 protocol/input-method-unstable-v1-client-protocol.h \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800777 protocol/weston-desktop-shell-client-protocol.h \
778 protocol/weston-desktop-shell-protocol.c \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100779 protocol/scaler-client-protocol.h \
780 protocol/scaler-protocol.c \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +0200781 protocol/presentation-time-protocol.c \
782 protocol/presentation-time-client-protocol.h \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800783 protocol/fullscreen-shell-unstable-v1-protocol.c \
784 protocol/fullscreen-shell-unstable-v1-client-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800785 protocol/xdg-shell-unstable-v5-protocol.c \
786 protocol/xdg-shell-unstable-v5-client-protocol.h \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900787 protocol/ivi-hmi-controller-protocol.c \
788 protocol/ivi-hmi-controller-client-protocol.h \
789 protocol/ivi-application-protocol.c \
790 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800791
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800792westondatadir = $(datadir)/weston
793dist_westondata_DATA = \
794 data/wayland.svg \
795 data/wayland.png \
796 data/pattern.png \
797 data/terminal.png \
798 data/border.png \
799 data/icon_window.png \
800 data/sign_close.png \
801 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100802 data/sign_minimize.png
803
804if ENABLE_IVI_SHELL
805dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900806 data/background.png \
807 data/tiling.png \
808 data/fullscreen.png \
809 data/panel.png \
810 data/random.png \
811 data/sidebyside.png \
812 data/home.png \
813 data/icon_ivi_clickdot.png \
814 data/icon_ivi_flower.png \
815 data/icon_ivi_simple-egl.png \
816 data/icon_ivi_simple-shm.png \
817 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100818endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800819
820
821if BUILD_WCAP_TOOLS
822bin_PROGRAMS += wcap-decode
823
824wcap_decode_SOURCES = \
825 wcap/main.c \
826 wcap/wcap-decode.c \
827 wcap/wcap-decode.h
828
Derek Foreman4ff38742015-06-18 11:43:11 -0500829wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
Kristian Høgsberge895f142014-01-27 21:46:30 -0800830wcap_decode_LDADD = $(WCAP_LIBS)
831endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800832
833
834if ENABLE_DESKTOP_SHELL
835
836module_LTLIBRARIES += desktop-shell.la
837
838desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100839 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800840 -I$(top_srcdir)/shared \
841 -I$(top_srcdir)/src \
842 -I$(top_builddir)/src \
843 -I$(top_builddir)/desktop-shell \
844 -DDATADIR='"$(datadir)"' \
845 -DMODULEDIR='"$(moduledir)"' \
846 -DLIBEXECDIR='"$(libexecdir)"' \
847 -DIN_WESTON
848
849desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800850desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500851desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800852desktop_shell_la_SOURCES = \
853 desktop-shell/shell.h \
854 desktop-shell/shell.c \
855 desktop-shell/exposay.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700856 desktop-shell/input-panel.c \
857 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800858nodist_desktop_shell_la_SOURCES = \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +0800859 protocol/weston-desktop-shell-protocol.c \
860 protocol/weston-desktop-shell-server-protocol.h \
Jonas Ådahl2a229332015-11-17 16:00:32 +0800861 protocol/xdg-shell-unstable-v5-protocol.c \
862 protocol/xdg-shell-unstable-v5-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800863
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800864BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800865endif
866
Jason Ekstrand946a9482014-04-02 19:53:47 -0500867if ENABLE_FULLSCREEN_SHELL
868
869module_LTLIBRARIES += fullscreen-shell.la
870
871fullscreen_shell_la_CPPFLAGS = \
872 -I$(top_builddir)/protocol \
873 -I$(top_srcdir)/shared \
874 -I$(top_srcdir)/src \
875 -I$(top_builddir)/src \
876 -DIN_WESTON
877
878fullscreen_shell_la_LDFLAGS = -module -avoid-version
879fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
Derek Foreman4ff38742015-06-18 11:43:11 -0500880fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jason Ekstrand946a9482014-04-02 19:53:47 -0500881fullscreen_shell_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700882 fullscreen-shell/fullscreen-shell.c \
883 shared/helpers.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500884nodist_fullscreen_shell_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800885 protocol/fullscreen-shell-unstable-v1-protocol.c \
886 protocol/fullscreen-shell-unstable-v1-server-protocol.h
Jason Ekstrand946a9482014-04-02 19:53:47 -0500887
888BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
889endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800890
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900891if ENABLE_IVI_SHELL
892
893module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900894 $(ivi_shell) \
895 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900896
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900897ivi_shell = ivi-shell.la
898ivi_shell_la_LDFLAGS = -module -avoid-version
899ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500900ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900901ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900902 ivi-shell/ivi-layout-export.h \
903 ivi-shell/ivi-layout-private.h \
Pekka Paalanen32ca7912016-03-15 17:21:00 +0200904 ivi-shell/ivi-layout-shell.h \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900905 ivi-shell/ivi-layout.c \
906 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900907 ivi-shell/ivi-shell.h \
908 ivi-shell/ivi-shell.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700909 ivi-shell/input-panel-ivi.c \
910 shared/helpers.h
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900911nodist_ivi_shell_la_SOURCES = \
912 protocol/ivi-application-protocol.c \
913 protocol/ivi-application-server-protocol.h
914
915BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
916
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900917hmi_controller = hmi-controller.la
918hmi_controller_la_LDFLAGS = -module -avoid-version
919hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Derek Foreman4ff38742015-06-18 11:43:11 -0500920hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900921hmi_controller_la_SOURCES = \
922 ivi-shell/ivi-layout-export.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700923 ivi-shell/hmi-controller.c \
924 shared/helpers.h
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900925nodist_hmi_controller_la_SOURCES = \
926 protocol/ivi-hmi-controller-protocol.c \
927 protocol/ivi-hmi-controller-server-protocol.h
928
929BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
930
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900931endif
932
933
Jason Ekstrand47928d82014-04-02 19:54:01 -0500934if ENABLE_SCREEN_SHARING
935
936module_LTLIBRARIES += screen-share.la
937
938screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
939screen_share_la_LDFLAGS = -module -avoid-version
940screen_share_la_LIBADD = \
941 $(COMPOSITOR_LIBS) \
942 $(SCREEN_SHARE_LIBS) \
943 libshared-cairo.la
944screen_share_la_CFLAGS = \
945 $(COMPOSITOR_CFLAGS) \
946 $(SCREEN_SHARE_CFLAGS) \
Derek Foreman4ff38742015-06-18 11:43:11 -0500947 $(AM_CFLAGS)
Jason Ekstrand47928d82014-04-02 19:54:01 -0500948screen_share_la_SOURCES = \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700949 src/screen-share.c \
950 shared/helpers.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500951nodist_screen_share_la_SOURCES = \
Jonas Ådahl496adb32015-11-17 16:00:27 +0800952 protocol/fullscreen-shell-unstable-v1-protocol.c \
953 protocol/fullscreen-shell-unstable-v1-client-protocol.h
Jason Ekstrand47928d82014-04-02 19:54:01 -0500954
955endif
956
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800957if ENABLE_XWAYLAND
958
959module_LTLIBRARIES += xwayland.la
960
961xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100962 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800963 -I$(top_srcdir)/shared \
964 -I$(top_srcdir)/src \
965 -I$(top_builddir)/src \
966 -I$(top_builddir)/xwayland \
967 -DDATADIR='"$(datadir)"' \
968 -DMODULEDIR='"$(moduledir)"' \
969 -DLIBEXECDIR='"$(libexecdir)"' \
970 -DXSERVER_PATH='"@XSERVER_PATH@"'
971
972xwayland_la_LDFLAGS = -module -avoid-version
973xwayland_la_LIBADD = \
974 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800975 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800976xwayland_la_CFLAGS = \
Derek Foreman4ff38742015-06-18 11:43:11 -0500977 $(AM_CFLAGS) \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800978 $(COMPOSITOR_CFLAGS) \
979 $(PIXMAN_CFLAGS) \
980 $(CAIRO_CFLAGS)
981xwayland_la_SOURCES = \
982 xwayland/xwayland.h \
983 xwayland/window-manager.c \
984 xwayland/selection.c \
985 xwayland/dnd.c \
986 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800987 xwayland/hash.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -0700988 xwayland/hash.h \
989 shared/helpers.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800990endif
991
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800992
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800993#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800994# Shared utilities
995#
996
Jon A. Cruz5a75a412015-07-02 23:36:44 -0700997noinst_LTLIBRARIES += libshared.la libshared-cairo.la \
998 libzunitc.la libzunitcmain.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800999
Derek Foreman4ff38742015-06-18 11:43:11 -05001000libshared_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001001
1002libshared_la_SOURCES = \
1003 shared/config-parser.c \
1004 shared/option-parser.c \
1005 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +02001006 shared/file-util.c \
1007 shared/file-util.h \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001008 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001009 shared/os-compatibility.c \
Bryce Harringtone99e4bf2016-03-16 14:15:18 -07001010 shared/os-compatibility.h \
1011 shared/xalloc.c \
1012 shared/xalloc.h
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001013
1014libshared_cairo_la_CFLAGS = \
1015 -DDATADIR='"$(datadir)"' \
Derek Foreman4ff38742015-06-18 11:43:11 -05001016 $(AM_CFLAGS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001017 $(COMPOSITOR_CFLAGS) \
1018 $(PIXMAN_CFLAGS) \
1019 $(CAIRO_CFLAGS) \
1020 $(PNG_CFLAGS) \
1021 $(WEBP_CFLAGS)
1022
1023libshared_cairo_la_LIBADD = \
1024 $(PIXMAN_LIBS) \
1025 $(CAIRO_LIBS) \
1026 $(PNG_LIBS) \
1027 $(WEBP_LIBS) \
1028 $(JPEG_LIBS)
1029
1030libshared_cairo_la_SOURCES = \
1031 $(libshared_la_SOURCES) \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001032 shared/helpers.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001033 shared/image-loader.c \
1034 shared/image-loader.h \
1035 shared/cairo-util.c \
1036 shared/frame.c \
1037 shared/cairo-util.h
1038
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001039libzunitc_la_SOURCES = \
1040 tools/zunitc/inc/zunitc/zunitc.h \
1041 tools/zunitc/inc/zunitc/zunitc_impl.h \
1042 tools/zunitc/src/zuc_base_logger.c \
1043 tools/zunitc/src/zuc_base_logger.h \
1044 tools/zunitc/src/zuc_collector.c \
1045 tools/zunitc/src/zuc_collector.h \
1046 tools/zunitc/src/zuc_context.h \
1047 tools/zunitc/src/zuc_event.h \
1048 tools/zunitc/src/zuc_event_listener.h \
Jon A. Cruz646aef52015-07-15 19:22:41 -07001049 tools/zunitc/src/zuc_junit_reporter.c \
1050 tools/zunitc/src/zuc_junit_reporter.h \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001051 tools/zunitc/src/zuc_types.h \
1052 tools/zunitc/src/zunitc_impl.c \
1053 shared/helpers.h
1054
1055libzunitc_la_CFLAGS = \
1056 $(AM_CFLAGS) \
1057 -I$(top_srcdir)/tools/zunitc/inc
1058
1059libzunitc_la_LIBADD = \
Gustavo Zacarias57c83f62016-04-22 10:54:35 -03001060 libshared.la \
1061 $(CLOCK_GETTIME_LIBS)
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001062
Jon A. Cruz646aef52015-07-15 19:22:41 -07001063if ENABLE_JUNIT_XML
1064libzunitc_la_CFLAGS += \
1065 $(LIBXML2_CFLAGS)
1066libzunitc_la_LIBADD += \
1067 $(LIBXML2_LIBS)
1068endif
1069
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001070libzunitcmain_la_SOURCES = \
1071 tools/zunitc/src/main.c
1072
1073libzunitcmain_la_CFLAGS = \
1074 $(AM_CFLAGS) \
1075 -I$(top_srcdir)/tools/zunitc/inc
1076
1077libzunitcmain_la_LIBADD = \
1078 libzunitc.la \
1079 libshared.la
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001080
1081#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001082# tests subdirectory
1083#
1084
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001085TESTS = $(internal_tests) $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
1086
1087internal_tests = \
1088 internal-screenshot.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001089
1090shared_tests = \
1091 config-parser.test \
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001092 vertex-clip.test \
1093 zuctest
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001094
1095module_tests = \
1096 surface-test.la \
1097 surface-global-test.la
1098
1099weston_tests = \
1100 bad_buffer.weston \
1101 keyboard.weston \
1102 event.weston \
1103 button.weston \
1104 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001105 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001106 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -04001107 subsurface.weston \
1108 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001109
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001110ivi_tests =
1111
1112$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001113
1114AM_TESTS_ENVIRONMENT = \
Bryce Harringtoned2c6442015-04-15 15:31:11 -07001115 abs_builddir='$(abs_builddir)'; export abs_builddir; \
1116 abs_top_srcdir='$(abs_top_srcdir)'; export abs_top_srcdir;
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001117
1118TEST_EXTENSIONS = .la .weston
1119LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1120WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
1121
1122clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +03001123 -rm -rf logs
Jon A. Cruz179c1862015-07-15 19:22:43 -07001124 -rm -rf $(DOCDIRS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001125
1126# To remove when automake 1.11 support is dropped
1127export abs_builddir
1128
1129noinst_LTLIBRARIES += \
1130 weston-test.la \
1131 $(module_tests) \
1132 libtest-runner.la \
1133 libtest-client.la
1134
1135noinst_PROGRAMS += \
1136 $(setbacklight) \
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001137 $(internal_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001138 $(shared_tests) \
1139 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +02001140 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001141 matrix-test
1142
1143test_module_ldflags = \
1144 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
1145
1146surface_global_test_la_SOURCES = tests/surface-global-test.c
1147surface_global_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001148surface_global_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001149
1150surface_test_la_SOURCES = tests/surface-test.c
1151surface_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001152surface_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001153
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001154weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001155weston_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001156weston_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Jon A. Cruzb09da242015-06-16 13:15:13 -07001157weston_test_la_SOURCES = \
1158 tests/weston-test.c \
1159 shared/helpers.h
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001160nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001161 protocol/weston-test-protocol.c \
1162 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001163
1164if ENABLE_EGL
1165weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1166weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1167endif
1168
1169libtest_runner_la_SOURCES = \
1170 tests/weston-test-runner.c \
1171 tests/weston-test-runner.h
Derek Foreman4ff38742015-06-18 11:43:11 -05001172libtest_runner_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001173
1174config_parser_test_SOURCES = tests/config-parser-test.c
Jon A. Cruza67c5412015-07-15 19:22:42 -07001175config_parser_test_LDADD = \
1176 libshared.la \
1177 $(COMPOSITOR_LIBS) \
1178 libzunitc.la \
1179 libzunitcmain.la
1180config_parser_test_CFLAGS = \
1181 $(AM_CFLAGS) \
1182 -I$(top_srcdir)/tools/zunitc/inc
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001183
1184vertex_clip_test_SOURCES = \
1185 tests/vertex-clip-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001186 shared/helpers.h \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001187 src/vertex-clipping.c \
1188 src/vertex-clipping.h
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001189vertex_clip_test_LDADD = libtest-runner.la -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001190
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001191libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001192 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001193 tests/weston-test-client-helper.h
1194nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001195 protocol/weston-test-protocol.c \
1196 protocol/weston-test-client-protocol.h
Bryce Harrington892122e2015-09-24 14:31:44 -07001197libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) $(CAIRO_CFLAGS)
1198libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) $(CAIRO_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001199
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001200
1201#
1202# Internal tests - tests functionality of the testsuite itself
1203#
1204
1205internal_screenshot_weston_SOURCES = tests/internal-screenshot-test.c
Bryce Harrington892122e2015-09-24 14:31:44 -07001206internal_screenshot_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1207internal_screenshot_weston_LDADD = libtest-client.la
Bryce Harringtonfb9089d2014-11-04 16:39:38 -08001208
1209
1210#
1211# Weston Tests
1212#
1213
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001214bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001215bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001216bad_buffer_weston_LDADD = libtest-client.la
1217
1218keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001219keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001220keyboard_weston_LDADD = libtest-client.la
1221
1222event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001223event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001224event_weston_LDADD = libtest-client.la
1225
1226button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001227button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001228button_weston_LDADD = libtest-client.la
1229
Marek Chalupa5fd81402015-03-30 09:21:29 -04001230devices_weston_SOURCES = tests/devices-test.c
1231devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1232devices_weston_LDADD = libtest-client.la
1233
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001234text_weston_SOURCES = tests/text-test.c
1235nodist_text_weston_SOURCES = \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001236 protocol/text-input-unstable-v1-protocol.c \
1237 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001238text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001239text_weston_LDADD = libtest-client.la
1240
1241subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001242subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001243subsurface_weston_LDADD = libtest-client.la
1244
Jon A. Cruzb09da242015-06-16 13:15:13 -07001245presentation_weston_SOURCES = \
1246 tests/presentation-test.c \
1247 shared/helpers.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001248nodist_presentation_weston_SOURCES = \
Pekka Paalanenb00c79b2016-02-18 16:53:27 +02001249 protocol/presentation-time-protocol.c \
1250 protocol/presentation-time-client-protocol.h
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001251presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1252presentation_weston_LDADD = libtest-client.la
1253
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001254roles_weston_SOURCES = tests/roles-test.c
1255roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1256roles_weston_LDADD = libtest-client.la
1257
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001258if ENABLE_EGL
1259weston_tests += buffer-count.weston
1260buffer_count_weston_SOURCES = tests/buffer-count-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001261buffer_count_weston_CFLAGS = $(AM_CFLAGS) $(EGL_TESTS_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001262buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1263endif
1264
1265if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001266weston_tests += xwayland-test.weston
1267xwayland_test_weston_SOURCES = tests/xwayland-test.c
Derek Foreman4ff38742015-06-18 11:43:11 -05001268xwayland_test_weston_CFLAGS = $(AM_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001269xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001270endif
1271
1272matrix_test_SOURCES = \
1273 tests/matrix-test.c \
1274 shared/matrix.c \
1275 shared/matrix.h
1276matrix_test_CPPFLAGS = -DUNIT_TEST
Gustavo Zacarias34d59852016-04-21 11:18:48 -03001277matrix_test_LDADD = -lm $(CLOCK_GETTIME_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001278
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001279if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001280module_tests += \
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001281 ivi-layout-internal-test.la \
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001282 ivi-layout-test.la
1283
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001284ivi_layout_internal_test_la_LIBADD = $(COMPOSITOR_LIBS)
1285ivi_layout_internal_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001286ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen46804ca2015-03-27 11:55:21 +02001287ivi_layout_internal_test_la_SOURCES = \
1288 tests/ivi_layout-internal-test.c
1289
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001290ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1291ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001292ivi_layout_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001293ivi_layout_test_la_SOURCES = \
1294 tests/ivi_layout-test-plugin.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001295 tests/ivi-test.h \
1296 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001297nodist_ivi_layout_test_la_SOURCES = \
1298 protocol/weston-test-protocol.c \
1299 protocol/weston-test-server-protocol.h
1300
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001301ivi_tests += \
1302 ivi-shell-app.weston
1303
1304ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1305nodist_ivi_shell_app_weston_SOURCES = \
1306 protocol/ivi-application-protocol.c \
1307 protocol/ivi-application-client-protocol.h
1308ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1309ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001310
1311noinst_PROGRAMS += ivi-layout.ivi
1312
1313ivi_layout_ivi_SOURCES = \
1314 tests/ivi_layout-test.c \
Jon A. Cruzb09da242015-06-16 13:15:13 -07001315 tests/ivi-test.h \
1316 shared/helpers.h
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001317nodist_ivi_layout_ivi_SOURCES = \
1318 protocol/ivi-application-protocol.c \
1319 protocol/ivi-application-client-protocol.h
1320ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1321ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001322endif
1323
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001324if BUILD_SETBACKLIGHT
1325noinst_PROGRAMS += setbacklight
1326setbacklight_SOURCES = \
1327 tests/setbacklight.c \
1328 src/libbacklight.c \
1329 src/libbacklight.h
1330setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1331setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1332endif
1333
Jon A. Cruz5a75a412015-07-02 23:36:44 -07001334all-local: zuctest$(EXEEXT)
1335
1336noinst_PROGRAMS += zuctest$(EXEEXT)
1337
1338zuctest_LDADD = \
1339 libzunitc.la \
1340 libzunitcmain.la
1341
1342zuctest_CFLAGS = \
1343 $(AM_CFLAGS) \
1344 -I$(top_srcdir)/tools/zunitc/inc
1345
1346zuctest_SOURCES = \
1347 tools/zunitc/test/fixtures_test.c \
1348 tools/zunitc/test/zunitc_test.c
1349
Derek Foreman1ce2ef52015-05-26 10:21:03 -05001350EXTRA_DIST += \
1351 tests/weston-tests-env \
1352 tests/internal-screenshot.ini \
1353 tests/reference/internal-screenshot-bad-00.png \
1354 tests/reference/internal-screenshot-good-00.png
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001355
1356BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001357 protocol/weston-test-protocol.c \
1358 protocol/weston-test-server-protocol.h \
1359 protocol/weston-test-client-protocol.h \
Jonas Ådahl3bcba342015-11-17 16:00:29 +08001360 protocol/text-input-unstable-v1-protocol.c \
1361 protocol/text-input-unstable-v1-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001362
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001363EXTRA_DIST += \
Jonas Ådahl6d6fb612015-11-17 16:00:33 +08001364 protocol/weston-desktop-shell.xml \
Jonas Ådahlcf1efd22015-11-17 16:00:34 +08001365 protocol/weston-screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001366 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001367 protocol/weston-test.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001368 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001369 protocol/ivi-application.xml \
Jonas Ådahl57e48f02015-11-17 16:00:28 +08001370 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001371
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001372#
1373# manual test modules in tests subdirectory
1374#
1375
1376noinst_LTLIBRARIES += \
1377 surface-screenshot.la
1378
1379surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1380surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
Derek Foreman4ff38742015-06-18 11:43:11 -05001381surface_screenshot_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001382surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1383
1384
1385#
1386# Documentation
1387#
1388
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001389man_MANS = weston.1 weston.ini.5
1390
1391if ENABLE_DRM_COMPOSITOR
1392man_MANS += weston-drm.7
1393endif
1394
1395MAN_SUBSTS = \
1396 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1397 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1398 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1399 -e 's|__version__|$(PACKAGE_VERSION)|g'
1400
1401SUFFIXES = .1 .5 .7 .man
1402
1403%.1 %.5 %.7 : man/%.man
1404 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1405
1406EXTRA_DIST += \
1407 man/weston.man \
1408 man/weston-drm.man \
1409 man/weston.ini.man
1410
1411CLEANFILES += $(man_MANS)
1412
Jon A. Cruz179c1862015-07-15 19:22:43 -07001413if ENABLE_DEVDOCS
1414DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
1415
1416docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
1417 cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
1418
1419docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
1420 cd doc/doxygen && $(DOXYGEN) tools.doxygen
1421endif
1422
1423DOCDIRS = \
1424 docs/developer \
1425 docs/tools
1426
1427$(DOCDIRS):
1428 $(MKDIR_P) $@
1429
1430.PHONY: doc $(DOXYGEN_INDICES)
1431
1432doc: $(DOXYGEN_INDICES)
1433
Jonas Ådahl496adb32015-11-17 16:00:27 +08001434.SECONDEXPANSION:
1435
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001436define protostability
Pekka Paalanen35552aa2016-02-18 16:56:13 +02001437$(if $(findstring unstable,$1),unstable,stable)
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001438endef
1439
1440define protoname
1441$(shell echo $1 | sed 's/\([a-z\-]\+\)-[a-z]\+-v[0-9]\+/\1/')
1442endef
1443
1444protocol/%-protocol.c : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001445 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1446
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001447protocol/%-server-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001448 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1449
Jonas Ådahl08ab0bc2015-11-17 16:00:31 +08001450protocol/%-client-protocol.h : $(WAYLAND_PROTOCOLS_DATADIR)/$$(call protostability,$$*)/$$(call protoname,$$*)/$$*.xml
Jonas Ådahl496adb32015-11-17 16:00:27 +08001451 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
1452
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001453protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1454 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001455
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001456protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1457 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001458
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001459protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1460 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@