blob: 1df0b2089929f773320574ef6538a6665f3bfbe6 [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
23 $(AM_V_GEN)$(SED) \
24 -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
32 $(AM_V_GEN)$(SED) \
33 -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' \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020036 -e 's|@libexecdir[@]|$(libexecdir)|g' \
37 -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 \
59 $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080060
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080061bin_PROGRAMS += weston
62
63weston_LDFLAGS = -export-dynamic
64weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
65weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
66weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -080067 $(DLOPEN_LIBS) -lm libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080068
69weston_SOURCES = \
70 src/git-version.h \
71 src/log.c \
72 src/compositor.c \
73 src/compositor.h \
74 src/input.c \
75 src/data-device.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080076 src/screenshooter.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080077 src/clipboard.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080078 src/zoom.c \
79 src/text-backend.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080080 src/bindings.c \
81 src/animation.c \
82 src/noop-renderer.c \
83 src/pixman-renderer.c \
84 src/pixman-renderer.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +020085 src/timeline.c \
86 src/timeline.h \
87 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080088 shared/matrix.c \
89 shared/matrix.h \
90 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +010091 shared/platform.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080092 src/weston-egl-ext.h
93
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -080094nodist_weston_SOURCES = \
95 protocol/screenshooter-protocol.c \
96 protocol/screenshooter-server-protocol.h \
97 protocol/text-cursor-position-protocol.c \
98 protocol/text-cursor-position-server-protocol.h \
99 protocol/text-protocol.c \
100 protocol/text-server-protocol.h \
101 protocol/input-method-protocol.c \
102 protocol/input-method-server-protocol.h \
103 protocol/workspaces-protocol.c \
104 protocol/workspaces-server-protocol.h \
Pekka Paalanen7e62d252014-09-23 22:08:42 -0400105 protocol/presentation_timing-protocol.c \
106 protocol/presentation_timing-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800107 protocol/scaler-protocol.c \
108 protocol/scaler-server-protocol.h
109
110BUILT_SOURCES += $(nodist_weston_SOURCES)
111
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800112# Track this dependency explicitly instead of using BUILT_SOURCES. We
113# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
114# in case we're building from tarballs.
115
116src/compositor.c : $(top_builddir)/src/git-version.h
117
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800118noinst_LTLIBRARIES += \
119 libsession-helper.la
120
121libsession_helper_la_SOURCES = \
122 src/weston-launch.h \
123 src/launcher-util.c \
124 src/launcher-util.h
125libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
126libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
127
128if ENABLE_DBUS
129if HAVE_SYSTEMD_LOGIN
130libsession_helper_la_SOURCES += \
131 src/dbus.h \
132 src/dbus.c \
133 src/logind-util.h \
134 src/logind-util.c
135libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
136libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
137endif
138endif
139
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800140if HAVE_GIT_REPO
141src/git-version.h : $(top_srcdir)/.git/logs/HEAD
142 $(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 -0800143else
144src/git-version.h :
145 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
146
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800147endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800148
149.FORCE :
150
151if BUILD_WESTON_LAUNCH
152bin_PROGRAMS += weston-launch
153weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
154weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
155weston_launch_CFLAGS= \
156 $(GCC_CFLAGS) \
157 $(PAM_CFLAGS) \
158 $(SYSTEMD_LOGIN_CFLAGS) \
159 $(LIBDRM_CFLAGS)
160weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
161
162if ENABLE_SETUID_INSTALL
163install-exec-hook:
164 chown root $(DESTDIR)$(bindir)/weston-launch
165 chmod u+s $(DESTDIR)$(bindir)/weston-launch
166endif
167
168endif # BUILD_WESTON_LAUNCH
169
170pkgconfigdir = $(libdir)/pkgconfig
171pkgconfig_DATA = src/weston.pc
172
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100173wayland_sessiondir = $(datadir)/wayland-sessions
174wayland_session_DATA = src/weston.desktop
Marek Chalupa194ca2b2015-01-22 10:03:03 +0100175dist_wayland_session_DATA = $(wayland_session_DATA)
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100176
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800177westonincludedir = $(includedir)/weston
178westoninclude_HEADERS = \
179 src/version.h \
180 src/compositor.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200181 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800182 shared/matrix.h \
183 shared/config-parser.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100184 shared/zalloc.h \
185 shared/platform.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800186
187if ENABLE_EGL
188module_LTLIBRARIES += gl-renderer.la
189gl_renderer_la_LDFLAGS = -module -avoid-version
190gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
191gl_renderer_la_CFLAGS = \
192 $(COMPOSITOR_CFLAGS) \
193 $(EGL_CFLAGS) \
194 $(GCC_CFLAGS)
195gl_renderer_la_SOURCES = \
196 src/gl-renderer.h \
197 src/gl-renderer.c \
198 src/vertex-clipping.c \
199 src/vertex-clipping.h
200endif
201
202if ENABLE_X11_COMPOSITOR
203module_LTLIBRARIES += x11-backend.la
204x11_backend_la_LDFLAGS = -module -avoid-version
205x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800206 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800207x11_backend_la_CFLAGS = \
208 $(COMPOSITOR_CFLAGS) \
209 $(EGL_CFLAGS) \
210 $(PIXMAN_CFLAGS) \
211 $(CAIRO_CFLAGS) \
212 $(X11_COMPOSITOR_CFLAGS) \
213 $(GCC_CFLAGS)
214x11_backend_la_SOURCES = src/compositor-x11.c
215endif
216
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100217INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000218INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100219 src/libinput-seat.c \
220 src/libinput-seat.h \
221 src/libinput-device.c \
222 src/libinput-device.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100223
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800224if ENABLE_DRM_COMPOSITOR
225module_LTLIBRARIES += drm-backend.la
226drm_backend_la_LDFLAGS = -module -avoid-version
227drm_backend_la_LIBADD = \
228 $(COMPOSITOR_LIBS) \
229 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100230 $(INPUT_BACKEND_LIBS) \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100231 libshared.la -lrt \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800232 libsession-helper.la
233drm_backend_la_CFLAGS = \
234 $(COMPOSITOR_CFLAGS) \
235 $(EGL_CFLAGS) \
236 $(DRM_COMPOSITOR_CFLAGS) \
237 $(GCC_CFLAGS)
238drm_backend_la_SOURCES = \
239 src/compositor-drm.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100240 $(INPUT_BACKEND_SOURCES) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800241 src/libbacklight.c \
242 src/libbacklight.h
243
244if ENABLE_VAAPI_RECORDER
245drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
246drm_backend_la_LIBADD += $(LIBVA_LIBS)
247drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
248endif
249endif
250
251if ENABLE_WAYLAND_COMPOSITOR
252module_LTLIBRARIES += wayland-backend.la
253wayland_backend_la_LDFLAGS = -module -avoid-version
254wayland_backend_la_LIBADD = \
255 $(COMPOSITOR_LIBS) \
256 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800257 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800258wayland_backend_la_CFLAGS = \
259 $(COMPOSITOR_CFLAGS) \
260 $(EGL_CFLAGS) \
261 $(PIXMAN_CFLAGS) \
262 $(CAIRO_CFLAGS) \
263 $(WAYLAND_COMPOSITOR_CFLAGS) \
264 $(GCC_CFLAGS)
265wayland_backend_la_SOURCES = src/compositor-wayland.c
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500266nodist_wayland_backend_la_SOURCES = \
267 protocol/fullscreen-shell-protocol.c \
268 protocol/fullscreen-shell-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800269endif
270
271if ENABLE_RPI_COMPOSITOR
272if INSTALL_RPI_COMPOSITOR
273module_LTLIBRARIES += rpi-backend.la
274else
275noinst_LTLIBRARIES += rpi-backend.la
276endif
277
278rpi_backend_la_LDFLAGS = -module -avoid-version
279rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
280 $(RPI_COMPOSITOR_LIBS) \
281 $(RPI_BCM_HOST_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100282 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800283 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800284 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800285rpi_backend_la_CFLAGS = \
286 $(GCC_CFLAGS) \
287 $(COMPOSITOR_CFLAGS) \
288 $(RPI_COMPOSITOR_CFLAGS) \
289 $(RPI_BCM_HOST_CFLAGS)
290rpi_backend_la_SOURCES = \
291 src/compositor-rpi.c \
292 src/rpi-renderer.c \
293 src/rpi-renderer.h \
294 src/rpi-bcm-stubs.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100295 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800296
297if ENABLE_EGL
298rpi_backend_la_LIBADD += $(EGL_LIBS)
299rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
300endif
301
302endif
303
304if ENABLE_HEADLESS_COMPOSITOR
305module_LTLIBRARIES += headless-backend.la
306headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800307headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
308headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800309headless_backend_la_SOURCES = src/compositor-headless.c
310endif
311
312if ENABLE_FBDEV_COMPOSITOR
313module_LTLIBRARIES += fbdev-backend.la
314fbdev_backend_la_LDFLAGS = -module -avoid-version
315fbdev_backend_la_LIBADD = \
316 $(COMPOSITOR_LIBS) \
317 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100318 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800319 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800320 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800321fbdev_backend_la_CFLAGS = \
322 $(COMPOSITOR_CFLAGS) \
323 $(EGL_CFLAGS) \
324 $(FBDEV_COMPOSITOR_CFLAGS) \
325 $(PIXMAN_CFLAGS) \
326 $(GCC_CFLAGS)
327fbdev_backend_la_SOURCES = \
328 src/compositor-fbdev.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100329 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800330endif
331
332if ENABLE_RDP_COMPOSITOR
333module_LTLIBRARIES += rdp-backend.la
334rdp_backend_la_LDFLAGS = -module -avoid-version
335rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
336 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800337 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800338rdp_backend_la_CFLAGS = \
339 $(COMPOSITOR_CFLAGS) \
340 $(RDP_COMPOSITOR_CFLAGS) \
341 $(GCC_CFLAGS)
342rdp_backend_la_SOURCES = src/compositor-rdp.c
343endif
344
345if HAVE_LCMS
346module_LTLIBRARIES += cms-static.la
347cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800348cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800349cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
350cms_static_la_SOURCES = \
351 src/cms-static.c \
352 src/cms-helper.c \
353 src/cms-helper.h
354if ENABLE_COLORD
355module_LTLIBRARIES += cms-colord.la
356cms_colord_la_LDFLAGS = -module -avoid-version
357cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
358cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
359cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100360 src/cms-colord.c \
361 src/cms-helper.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800362 src/cms-helper.h
363endif
364endif
365
366noinst_PROGRAMS += spring-tool
367spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
368spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
369spring_tool_SOURCES = \
370 src/spring-tool.c \
371 src/animation.c \
372 shared/matrix.c \
373 shared/matrix.h \
374 src/compositor.h
375
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800376if BUILD_CLIENTS
377
378bin_PROGRAMS += weston-terminal weston-info
379
380libexec_PROGRAMS += \
381 weston-desktop-shell \
382 weston-screenshooter \
383 weston-keyboard \
384 weston-simple-im
385
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900386if ENABLE_IVI_SHELL
387libexec_PROGRAMS += \
388 weston-ivi-shell-user-interface
389endif
390
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800391demo_clients = \
392 weston-flower \
393 weston-image \
394 weston-cliptest \
395 weston-dnd \
396 weston-smoke \
397 weston-resizor \
398 weston-eventdemo \
399 weston-clickdot \
400 weston-transformed \
401 weston-fullscreen \
402 weston-stacking \
403 weston-calibrator \
404 weston-scaler
405
406if INSTALL_DEMO_CLIENTS
407bin_PROGRAMS += $(demo_clients)
408else
409noinst_PROGRAMS += $(demo_clients)
410endif
411
412
413if BUILD_SIMPLE_CLIENTS
414demo_clients += \
415 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500416 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800417 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400418 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800419 weston-multi-resource
420
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800421weston_simple_shm_SOURCES = clients/simple-shm.c
422nodist_weston_simple_shm_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800423 protocol/xdg-shell-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500424 protocol/xdg-shell-client-protocol.h \
425 protocol/fullscreen-shell-protocol.c \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900426 protocol/fullscreen-shell-client-protocol.h \
427 protocol/ivi-application-protocol.c \
428 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800429weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800430weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800431
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500432weston_simple_damage_SOURCES = clients/simple-damage.c
433nodist_weston_simple_damage_SOURCES = \
434 protocol/scaler-protocol.c \
435 protocol/scaler-client-protocol.h \
436 protocol/xdg-shell-protocol.c \
437 protocol/xdg-shell-client-protocol.h \
438 protocol/fullscreen-shell-protocol.c \
439 protocol/fullscreen-shell-client-protocol.h
440weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
441weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
442
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800443weston_simple_touch_SOURCES = clients/simple-touch.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800444weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800445weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800446
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400447weston_presentation_shm_SOURCES = clients/presentation-shm.c
448nodist_weston_presentation_shm_SOURCES = \
449 protocol/presentation_timing-protocol.c \
450 protocol/presentation_timing-client-protocol.h
451weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
452weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
453
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800454weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800455weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Javier Jardónc47931e2014-10-27 15:13:19 +0000456weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800457endif
458
459if BUILD_SIMPLE_EGL_CLIENTS
460demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800461weston_simple_egl_SOURCES = clients/simple-egl.c
462nodist_weston_simple_egl_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800463 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900464 protocol/xdg-shell-client-protocol.h \
465 protocol/ivi-application-protocol.c \
466 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800467weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800468weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
469endif
470
471noinst_LTLIBRARIES += libtoytoolkit.la
472
473libtoytoolkit_la_SOURCES = \
474 clients/window.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800475 clients/window.h
476
477nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100478 protocol/text-cursor-position-protocol.c \
479 protocol/text-cursor-position-client-protocol.h \
480 protocol/scaler-protocol.c \
481 protocol/scaler-client-protocol.h \
482 protocol/workspaces-protocol.c \
483 protocol/workspaces-client-protocol.h \
Pekka Paalanen7e62d252014-09-23 22:08:42 -0400484 protocol/presentation_timing-protocol.c \
485 protocol/presentation_timing-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100486 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900487 protocol/xdg-shell-client-protocol.h \
488 protocol/ivi-application-protocol.c \
489 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500490
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800491BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
492
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800493
494libtoytoolkit_la_LIBADD = \
495 $(CLIENT_LIBS) \
496 $(CAIRO_EGL_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800497 libshared-cairo.la -lrt -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800498libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800499
500weston_flower_SOURCES = clients/flower.c
501weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800502weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800503
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100504weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800505 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800506nodist_weston_screenshooter_SOURCES = \
507 protocol/screenshooter-protocol.c \
508 protocol/screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800509weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800510weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800511
512weston_terminal_SOURCES = clients/terminal.c
513weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800514weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800515
516weston_image_SOURCES = clients/image.c
517weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800518weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800519
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300520weston_cliptest_SOURCES = \
521 clients/cliptest.c \
522 src/vertex-clipping.c \
523 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800524weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800525weston_cliptest_LDADD = libtoytoolkit.la
526
527weston_dnd_SOURCES = clients/dnd.c
528weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800529weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800530
531weston_smoke_SOURCES = clients/smoke.c
532weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800533weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800534
535weston_resizor_SOURCES = clients/resizor.c
536weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800537weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800538
539weston_scaler_SOURCES = clients/scaler.c
540weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800541weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800542
543if HAVE_CAIRO_GLESV2
544demo_clients += weston-nested weston-nested-client
545
546weston_nested_SOURCES = clients/nested.c
547weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800548weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800549
550weston_nested_client_SOURCES = clients/nested-client.c
551weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800552weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800553endif
554
555weston_eventdemo_SOURCES = clients/eventdemo.c
556weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800557weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800558
559weston_clickdot_SOURCES = clients/clickdot.c
560weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800561weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800562
563weston_transformed_SOURCES = clients/transformed.c
564weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800565weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800566
567weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500568nodist_weston_fullscreen_SOURCES = \
569 protocol/fullscreen-shell-protocol.c \
570 protocol/fullscreen-shell-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800571weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800572weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800573
574weston_stacking_SOURCES = clients/stacking.c
575weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800576weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800577
578weston_calibrator_SOURCES = clients/calibrator.c \
579 shared/matrix.c \
580 shared/matrix.h
581weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800582weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800583
584if BUILD_SUBSURFACES_CLIENT
585demo_clients += weston-subsurfaces
586weston_subsurfaces_SOURCES = clients/subsurfaces.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800587weston_subsurfaces_CFLAGS = \
588 $(AM_CFLAGS) \
589 $(SIMPLE_EGL_CLIENT_CFLAGS) \
590 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800591weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
592endif
593
594if HAVE_PANGO
595demo_clients += weston-editor
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800596weston_editor_SOURCES = clients/editor.c
597nodist_weston_editor_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100598 protocol/text-protocol.c \
599 protocol/text-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800600weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800601weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800602endif
603
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800604weston_keyboard_SOURCES = clients/keyboard.c
605nodist_weston_keyboard_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100606 protocol/desktop-shell-client-protocol.h \
607 protocol/desktop-shell-protocol.c \
608 protocol/input-method-protocol.c \
609 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800610weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800611weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800612
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800613weston_simple_im_SOURCES = clients/weston-simple-im.c
614nodist_weston_simple_im_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100615 protocol/input-method-protocol.c \
616 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800617weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800618weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800619
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800620weston_info_SOURCES = clients/weston-info.c
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400621nodist_weston_info_SOURCES = \
622 protocol/presentation_timing-protocol.c \
623 protocol/presentation_timing-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800624weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200625weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800626
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800627weston_desktop_shell_SOURCES = clients/desktop-shell.c
628nodist_weston_desktop_shell_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100629 protocol/desktop-shell-client-protocol.h \
630 protocol/desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800631weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800632weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800633
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900634if ENABLE_IVI_SHELL
635weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
636nodist_weston_ivi_shell_user_interface_SOURCES = \
637 protocol/ivi-hmi-controller-client-protocol.h \
638 protocol/ivi-hmi-controller-protocol.c \
639 protocol/ivi-application-client-protocol.h \
640 protocol/ivi-application-protocol.c
641weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
642weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
643endif
644
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800645if BUILD_FULL_GL_CLIENTS
646demo_clients += weston-gears
647weston_gears_SOURCES = clients/gears.c
648weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800649weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800650
651if HAVE_GLU
652libexec_PROGRAMS += weston-screensaver
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100653weston_screensaver_SOURCES = \
654 clients/wscreensaver.c \
655 clients/wscreensaver.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100656 clients/wscreensaver-glue.c \
657 clients/wscreensaver-glue.h \
658 clients/glmatrix.c \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800659 clients/matrix3.xpm
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800660nodist_weston_screensaver_SOURCES = \
661 protocol/desktop-shell-client-protocol.h \
662 protocol/desktop-shell-protocol.c
663
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800664weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800665weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800666
667endif
668
669endif
670
671endif
672
673BUILT_SOURCES += \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100674 protocol/screenshooter-protocol.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800675 protocol/screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100676 protocol/text-cursor-position-client-protocol.h \
677 protocol/text-cursor-position-protocol.c \
678 protocol/text-protocol.c \
679 protocol/text-client-protocol.h \
680 protocol/input-method-protocol.c \
681 protocol/input-method-client-protocol.h \
682 protocol/desktop-shell-client-protocol.h \
683 protocol/desktop-shell-protocol.c \
684 protocol/scaler-client-protocol.h \
685 protocol/scaler-protocol.c \
686 protocol/workspaces-client-protocol.h \
687 protocol/workspaces-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500688 protocol/fullscreen-shell-protocol.c \
689 protocol/fullscreen-shell-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100690 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900691 protocol/xdg-shell-client-protocol.h \
692 protocol/ivi-hmi-controller-protocol.c \
693 protocol/ivi-hmi-controller-client-protocol.h \
694 protocol/ivi-application-protocol.c \
695 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800696
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800697westondatadir = $(datadir)/weston
698dist_westondata_DATA = \
699 data/wayland.svg \
700 data/wayland.png \
701 data/pattern.png \
702 data/terminal.png \
703 data/border.png \
704 data/icon_window.png \
705 data/sign_close.png \
706 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100707 data/sign_minimize.png
708
709if ENABLE_IVI_SHELL
710dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900711 data/background.png \
712 data/tiling.png \
713 data/fullscreen.png \
714 data/panel.png \
715 data/random.png \
716 data/sidebyside.png \
717 data/home.png \
718 data/icon_ivi_clickdot.png \
719 data/icon_ivi_flower.png \
720 data/icon_ivi_simple-egl.png \
721 data/icon_ivi_simple-shm.png \
722 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100723endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800724
725
726if BUILD_WCAP_TOOLS
727bin_PROGRAMS += wcap-decode
728
729wcap_decode_SOURCES = \
730 wcap/main.c \
731 wcap/wcap-decode.c \
732 wcap/wcap-decode.h
733
734wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
735wcap_decode_LDADD = $(WCAP_LIBS)
736endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800737
738
739if ENABLE_DESKTOP_SHELL
740
741module_LTLIBRARIES += desktop-shell.la
742
743desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100744 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800745 -I$(top_srcdir)/shared \
746 -I$(top_srcdir)/src \
747 -I$(top_builddir)/src \
748 -I$(top_builddir)/desktop-shell \
749 -DDATADIR='"$(datadir)"' \
750 -DMODULEDIR='"$(moduledir)"' \
751 -DLIBEXECDIR='"$(libexecdir)"' \
752 -DIN_WESTON
753
754desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800755desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800756desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
757desktop_shell_la_SOURCES = \
758 desktop-shell/shell.h \
759 desktop-shell/shell.c \
760 desktop-shell/exposay.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800761 desktop-shell/input-panel.c
762nodist_desktop_shell_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100763 protocol/desktop-shell-protocol.c \
764 protocol/desktop-shell-server-protocol.h \
765 protocol/xdg-shell-protocol.c \
766 protocol/xdg-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800767
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800768BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800769endif
770
Jason Ekstrand946a9482014-04-02 19:53:47 -0500771if ENABLE_FULLSCREEN_SHELL
772
773module_LTLIBRARIES += fullscreen-shell.la
774
775fullscreen_shell_la_CPPFLAGS = \
776 -I$(top_builddir)/protocol \
777 -I$(top_srcdir)/shared \
778 -I$(top_srcdir)/src \
779 -I$(top_builddir)/src \
780 -DIN_WESTON
781
782fullscreen_shell_la_LDFLAGS = -module -avoid-version
783fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
784fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
785fullscreen_shell_la_SOURCES = \
786 fullscreen-shell/fullscreen-shell.c
787nodist_fullscreen_shell_la_SOURCES = \
788 protocol/fullscreen-shell-protocol.c \
789 protocol/fullscreen-shell-server-protocol.h
790
791BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
792endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800793
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900794if ENABLE_IVI_SHELL
795
796module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900797 $(ivi_shell) \
798 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900799
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900800ivi_shell = ivi-shell.la
801ivi_shell_la_LDFLAGS = -module -avoid-version
802ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
803ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
804ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900805 ivi-shell/ivi-layout-export.h \
806 ivi-shell/ivi-layout-private.h \
807 ivi-shell/ivi-layout.c \
808 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900809 ivi-shell/ivi-shell.h \
810 ivi-shell/ivi-shell.c \
Nobuhiko Tanibata0038b732014-11-27 13:25:34 +0900811 ivi-shell/input-panel-ivi.c
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900812nodist_ivi_shell_la_SOURCES = \
813 protocol/ivi-application-protocol.c \
814 protocol/ivi-application-server-protocol.h
815
816BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
817
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900818hmi_controller = hmi-controller.la
819hmi_controller_la_LDFLAGS = -module -avoid-version
820hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
821hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
822hmi_controller_la_SOURCES = \
823 ivi-shell/ivi-layout-export.h \
824 ivi-shell/hmi-controller.c
825nodist_hmi_controller_la_SOURCES = \
826 protocol/ivi-hmi-controller-protocol.c \
827 protocol/ivi-hmi-controller-server-protocol.h
828
829BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
830
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900831endif
832
833
Jason Ekstrand47928d82014-04-02 19:54:01 -0500834if ENABLE_SCREEN_SHARING
835
836module_LTLIBRARIES += screen-share.la
837
838screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
839screen_share_la_LDFLAGS = -module -avoid-version
840screen_share_la_LIBADD = \
841 $(COMPOSITOR_LIBS) \
842 $(SCREEN_SHARE_LIBS) \
843 libshared-cairo.la
844screen_share_la_CFLAGS = \
845 $(COMPOSITOR_CFLAGS) \
846 $(SCREEN_SHARE_CFLAGS) \
847 $(GCC_CFLAGS)
848screen_share_la_SOURCES = \
849 src/screen-share.c
850nodist_screen_share_la_SOURCES = \
851 protocol/fullscreen-shell-protocol.c \
852 protocol/fullscreen-shell-client-protocol.h
853
854endif
855
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800856if ENABLE_XWAYLAND
857
858module_LTLIBRARIES += xwayland.la
859
860xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100861 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800862 -I$(top_srcdir)/shared \
863 -I$(top_srcdir)/src \
864 -I$(top_builddir)/src \
865 -I$(top_builddir)/xwayland \
866 -DDATADIR='"$(datadir)"' \
867 -DMODULEDIR='"$(moduledir)"' \
868 -DLIBEXECDIR='"$(libexecdir)"' \
869 -DXSERVER_PATH='"@XSERVER_PATH@"'
870
871xwayland_la_LDFLAGS = -module -avoid-version
872xwayland_la_LIBADD = \
873 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800874 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800875xwayland_la_CFLAGS = \
876 $(GCC_CFLAGS) \
877 $(COMPOSITOR_CFLAGS) \
878 $(PIXMAN_CFLAGS) \
879 $(CAIRO_CFLAGS)
880xwayland_la_SOURCES = \
881 xwayland/xwayland.h \
882 xwayland/window-manager.c \
883 xwayland/selection.c \
884 xwayland/dnd.c \
885 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800886 xwayland/hash.c \
887 xwayland/hash.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800888endif
889
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800890
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800891#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800892# Shared utilities
893#
894
895noinst_LTLIBRARIES += libshared.la libshared-cairo.la
896
897libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
898
899libshared_la_SOURCES = \
900 shared/config-parser.c \
901 shared/option-parser.c \
902 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +0200903 shared/file-util.c \
904 shared/file-util.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800905 shared/os-compatibility.c \
906 shared/os-compatibility.h
907
908libshared_cairo_la_CFLAGS = \
909 -DDATADIR='"$(datadir)"' \
910 $(GCC_CFLAGS) \
911 $(COMPOSITOR_CFLAGS) \
912 $(PIXMAN_CFLAGS) \
913 $(CAIRO_CFLAGS) \
914 $(PNG_CFLAGS) \
915 $(WEBP_CFLAGS)
916
917libshared_cairo_la_LIBADD = \
918 $(PIXMAN_LIBS) \
919 $(CAIRO_LIBS) \
920 $(PNG_LIBS) \
921 $(WEBP_LIBS) \
922 $(JPEG_LIBS)
923
924libshared_cairo_la_SOURCES = \
925 $(libshared_la_SOURCES) \
926 shared/image-loader.c \
927 shared/image-loader.h \
928 shared/cairo-util.c \
929 shared/frame.c \
930 shared/cairo-util.h
931
932
933#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800934# tests subdirectory
935#
936
Pekka Paalanenf3a34532015-03-24 13:51:05 +0200937TESTS = $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800938
939shared_tests = \
940 config-parser.test \
941 vertex-clip.test
942
943module_tests = \
944 surface-test.la \
945 surface-global-test.la
946
947weston_tests = \
948 bad_buffer.weston \
949 keyboard.weston \
950 event.weston \
951 button.weston \
952 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -0400953 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +0300954 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -0400955 subsurface.weston \
956 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800957
Pekka Paalanenf3a34532015-03-24 13:51:05 +0200958ivi_tests =
959
960$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800961
962AM_TESTS_ENVIRONMENT = \
963 abs_builddir='$(abs_builddir)'; export abs_builddir;
964
965TEST_EXTENSIONS = .la .weston
966LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
967WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
968
969clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +0300970 -rm -rf logs
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800971
972# To remove when automake 1.11 support is dropped
973export abs_builddir
974
975noinst_LTLIBRARIES += \
976 weston-test.la \
977 $(module_tests) \
978 libtest-runner.la \
979 libtest-client.la
980
981noinst_PROGRAMS += \
982 $(setbacklight) \
983 $(shared_tests) \
984 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +0200985 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800986 matrix-test
987
988test_module_ldflags = \
989 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
990
991surface_global_test_la_SOURCES = tests/surface-global-test.c
992surface_global_test_la_LDFLAGS = $(test_module_ldflags)
993surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
994
995surface_test_la_SOURCES = tests/surface-test.c
996surface_test_la_LDFLAGS = $(test_module_ldflags)
997surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
998
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800999weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001000weston_test_la_LDFLAGS = $(test_module_ldflags)
1001weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001002weston_test_la_SOURCES = tests/weston-test.c
1003nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001004 protocol/weston-test-protocol.c \
1005 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001006
1007if ENABLE_EGL
1008weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1009weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1010endif
1011
1012libtest_runner_la_SOURCES = \
1013 tests/weston-test-runner.c \
1014 tests/weston-test-runner.h
1015libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1016
1017config_parser_test_SOURCES = tests/config-parser-test.c
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001018config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001019
1020vertex_clip_test_SOURCES = \
1021 tests/vertex-clip-test.c \
1022 src/vertex-clipping.c \
1023 src/vertex-clipping.h
1024vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
1025
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001026libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001027 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001028 tests/weston-test-client-helper.h
1029nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001030 protocol/weston-test-protocol.c \
1031 protocol/weston-test-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001032libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001033libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001034
1035bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001036bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001037bad_buffer_weston_LDADD = libtest-client.la
1038
1039keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001040keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001041keyboard_weston_LDADD = libtest-client.la
1042
1043event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001044event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001045event_weston_LDADD = libtest-client.la
1046
1047button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001048button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001049button_weston_LDADD = libtest-client.la
1050
Marek Chalupa5fd81402015-03-30 09:21:29 -04001051devices_weston_SOURCES = tests/devices-test.c
1052devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1053devices_weston_LDADD = libtest-client.la
1054
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001055text_weston_SOURCES = tests/text-test.c
1056nodist_text_weston_SOURCES = \
1057 protocol/text-protocol.c \
1058 protocol/text-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001059text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001060text_weston_LDADD = libtest-client.la
1061
1062subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001063subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001064subsurface_weston_LDADD = libtest-client.la
1065
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001066presentation_weston_SOURCES = tests/presentation-test.c
1067nodist_presentation_weston_SOURCES = \
1068 protocol/presentation_timing-protocol.c \
1069 protocol/presentation_timing-client-protocol.h
1070presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1071presentation_weston_LDADD = libtest-client.la
1072
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001073roles_weston_SOURCES = tests/roles-test.c
1074roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1075roles_weston_LDADD = libtest-client.la
1076
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001077if ENABLE_EGL
1078weston_tests += buffer-count.weston
1079buffer_count_weston_SOURCES = tests/buffer-count-test.c
1080buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1081buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1082endif
1083
1084if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001085weston_tests += xwayland-test.weston
1086xwayland_test_weston_SOURCES = tests/xwayland-test.c
1087xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1088xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001089endif
1090
1091matrix_test_SOURCES = \
1092 tests/matrix-test.c \
1093 shared/matrix.c \
1094 shared/matrix.h
1095matrix_test_CPPFLAGS = -DUNIT_TEST
1096matrix_test_LDADD = -lm -lrt
1097
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001098if ENABLE_IVI_SHELL
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001099module_tests += \
1100 ivi-layout-test.la
1101
1102ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS)
1103ivi_layout_test_la_LDFLAGS = $(test_module_ldflags)
1104ivi_layout_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1105ivi_layout_test_la_SOURCES = \
1106 tests/ivi_layout-test-plugin.c \
1107 tests/ivi-test.h
1108nodist_ivi_layout_test_la_SOURCES = \
1109 protocol/weston-test-protocol.c \
1110 protocol/weston-test-server-protocol.h
1111
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001112ivi_tests += \
1113 ivi-shell-app.weston
1114
1115ivi_shell_app_weston_SOURCES = tests/ivi-shell-app-test.c
1116nodist_ivi_shell_app_weston_SOURCES = \
1117 protocol/ivi-application-protocol.c \
1118 protocol/ivi-application-client-protocol.h
1119ivi_shell_app_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1120ivi_shell_app_weston_LDADD = libtest-client.la
Pekka Paalanenf5b74f72015-03-25 12:50:31 +02001121
1122noinst_PROGRAMS += ivi-layout.ivi
1123
1124ivi_layout_ivi_SOURCES = \
1125 tests/ivi_layout-test.c \
1126 tests/ivi-test.h
1127nodist_ivi_layout_ivi_SOURCES = \
1128 protocol/ivi-application-protocol.c \
1129 protocol/ivi-application-client-protocol.h
1130ivi_layout_ivi_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1131ivi_layout_ivi_LDADD = libtest-client.la
Pekka Paalanen0eb09412015-03-23 13:55:06 +02001132endif
1133
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001134if BUILD_SETBACKLIGHT
1135noinst_PROGRAMS += setbacklight
1136setbacklight_SOURCES = \
1137 tests/setbacklight.c \
1138 src/libbacklight.c \
1139 src/libbacklight.h
1140setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1141setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1142endif
1143
1144EXTRA_DIST += tests/weston-tests-env
1145
1146BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001147 protocol/weston-test-protocol.c \
1148 protocol/weston-test-server-protocol.h \
1149 protocol/weston-test-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001150 protocol/text-protocol.c \
1151 protocol/text-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001152
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001153EXTRA_DIST += \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001154 protocol/desktop-shell.xml \
1155 protocol/screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001156 protocol/text.xml \
1157 protocol/input-method.xml \
1158 protocol/workspaces.xml \
1159 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001160 protocol/weston-test.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001161 protocol/xdg-shell.xml \
Jason Ekstrand27e11672014-04-02 19:53:44 -05001162 protocol/fullscreen-shell.xml \
Pekka Paalanen7e62d252014-09-23 22:08:42 -04001163 protocol/presentation_timing.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001164 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001165 protocol/ivi-application.xml \
1166 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001167
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001168#
1169# manual test modules in tests subdirectory
1170#
1171
1172noinst_LTLIBRARIES += \
1173 surface-screenshot.la
1174
1175surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1176surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
1177surface_screenshot_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1178surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1179
1180
1181#
1182# Documentation
1183#
1184
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001185man_MANS = weston.1 weston.ini.5
1186
1187if ENABLE_DRM_COMPOSITOR
1188man_MANS += weston-drm.7
1189endif
1190
1191MAN_SUBSTS = \
1192 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1193 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1194 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1195 -e 's|__version__|$(PACKAGE_VERSION)|g'
1196
1197SUFFIXES = .1 .5 .7 .man
1198
1199%.1 %.5 %.7 : man/%.man
1200 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1201
1202EXTRA_DIST += \
1203 man/weston.man \
1204 man/weston-drm.man \
1205 man/weston.ini.man
1206
1207CLEANFILES += $(man_MANS)
1208
1209
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001210protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1211 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001212
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001213protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1214 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001215
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001216protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1217 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@