blob: 2aac21a5b1e9107089415770e9f5bf0c9e82bb0e [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' \
26 -e 's|@libexecdir[@]|$(libexecdir)|g' \
Pekka Paalanenf3a34532015-03-24 13:51:05 +020027 -e 's|@plugin_prefix[@]||g' \
28 $< > $@
29
30tests/weston-ivi.ini : $(srcdir)/ivi-shell/weston.ini.in
31 $(AM_V_GEN)$(SED) \
32 -e 's|@bindir[@]|$(bindir)|g' \
33 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
34 -e 's|@libexecdir[@]|$(libexecdir)|g' \
35 -e 's|@plugin_prefix[@]|$(abs_top_builddir)/.libs/|g' \
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090036 $< > $@
37
38all-local : weston.ini ivi-shell/weston.ini
Kristian Høgsberg98463742013-12-16 23:12:46 -080039
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080040AM_CFLAGS = $(GCC_CFLAGS)
41
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080042AM_CPPFLAGS = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080043 -I$(top_srcdir)/src \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080044 -I$(top_builddir)/src \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080045 -I$(top_builddir)/clients \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080046 -I$(top_builddir)/tests \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080047 -I$(top_srcdir)/shared \
Quentin Glidic088ba5e2014-02-01 21:39:12 +010048 -I$(top_builddir)/protocol \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080049 -DDATADIR='"$(datadir)"' \
50 -DMODULEDIR='"$(moduledir)"' \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080051 -DLIBEXECDIR='"$(libexecdir)"' \
52 -DBINDIR='"$(bindir)"'
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080053
Pekka Paalanenf3a34532015-03-24 13:51:05 +020054CLEANFILES = weston.ini \
55 ivi-shell/weston.ini \
56 tests/weston-ivi.ini \
57 $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080058
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080059bin_PROGRAMS += weston
60
61weston_LDFLAGS = -export-dynamic
62weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
63weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
64weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -080065 $(DLOPEN_LIBS) -lm libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080066
67weston_SOURCES = \
68 src/git-version.h \
69 src/log.c \
70 src/compositor.c \
71 src/compositor.h \
72 src/input.c \
73 src/data-device.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080074 src/screenshooter.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080075 src/clipboard.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080076 src/zoom.c \
77 src/text-backend.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080078 src/bindings.c \
79 src/animation.c \
80 src/noop-renderer.c \
81 src/pixman-renderer.c \
82 src/pixman-renderer.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +020083 src/timeline.c \
84 src/timeline.h \
85 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080086 shared/matrix.c \
87 shared/matrix.h \
88 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +010089 shared/platform.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080090 src/weston-egl-ext.h
91
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -080092nodist_weston_SOURCES = \
93 protocol/screenshooter-protocol.c \
94 protocol/screenshooter-server-protocol.h \
95 protocol/text-cursor-position-protocol.c \
96 protocol/text-cursor-position-server-protocol.h \
97 protocol/text-protocol.c \
98 protocol/text-server-protocol.h \
99 protocol/input-method-protocol.c \
100 protocol/input-method-server-protocol.h \
101 protocol/workspaces-protocol.c \
102 protocol/workspaces-server-protocol.h \
Pekka Paalanen7e62d252014-09-23 22:08:42 -0400103 protocol/presentation_timing-protocol.c \
104 protocol/presentation_timing-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800105 protocol/scaler-protocol.c \
106 protocol/scaler-server-protocol.h
107
108BUILT_SOURCES += $(nodist_weston_SOURCES)
109
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800110# Track this dependency explicitly instead of using BUILT_SOURCES. We
111# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
112# in case we're building from tarballs.
113
114src/compositor.c : $(top_builddir)/src/git-version.h
115
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800116noinst_LTLIBRARIES += \
117 libsession-helper.la
118
119libsession_helper_la_SOURCES = \
120 src/weston-launch.h \
121 src/launcher-util.c \
122 src/launcher-util.h
123libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
124libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
125
126if ENABLE_DBUS
127if HAVE_SYSTEMD_LOGIN
128libsession_helper_la_SOURCES += \
129 src/dbus.h \
130 src/dbus.c \
131 src/logind-util.h \
132 src/logind-util.c
133libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
134libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
135endif
136endif
137
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800138if HAVE_GIT_REPO
139src/git-version.h : $(top_srcdir)/.git/logs/HEAD
140 $(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 -0800141else
142src/git-version.h :
143 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
144
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800145endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800146
147.FORCE :
148
149if BUILD_WESTON_LAUNCH
150bin_PROGRAMS += weston-launch
151weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
152weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
153weston_launch_CFLAGS= \
154 $(GCC_CFLAGS) \
155 $(PAM_CFLAGS) \
156 $(SYSTEMD_LOGIN_CFLAGS) \
157 $(LIBDRM_CFLAGS)
158weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
159
160if ENABLE_SETUID_INSTALL
161install-exec-hook:
162 chown root $(DESTDIR)$(bindir)/weston-launch
163 chmod u+s $(DESTDIR)$(bindir)/weston-launch
164endif
165
166endif # BUILD_WESTON_LAUNCH
167
168pkgconfigdir = $(libdir)/pkgconfig
169pkgconfig_DATA = src/weston.pc
170
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100171wayland_sessiondir = $(datadir)/wayland-sessions
172wayland_session_DATA = src/weston.desktop
Marek Chalupa194ca2b2015-01-22 10:03:03 +0100173dist_wayland_session_DATA = $(wayland_session_DATA)
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100174
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800175westonincludedir = $(includedir)/weston
176westoninclude_HEADERS = \
177 src/version.h \
178 src/compositor.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200179 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800180 shared/matrix.h \
181 shared/config-parser.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100182 shared/zalloc.h \
183 shared/platform.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800184
185if ENABLE_EGL
186module_LTLIBRARIES += gl-renderer.la
187gl_renderer_la_LDFLAGS = -module -avoid-version
188gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
189gl_renderer_la_CFLAGS = \
190 $(COMPOSITOR_CFLAGS) \
191 $(EGL_CFLAGS) \
192 $(GCC_CFLAGS)
193gl_renderer_la_SOURCES = \
194 src/gl-renderer.h \
195 src/gl-renderer.c \
196 src/vertex-clipping.c \
197 src/vertex-clipping.h
198endif
199
200if ENABLE_X11_COMPOSITOR
201module_LTLIBRARIES += x11-backend.la
202x11_backend_la_LDFLAGS = -module -avoid-version
203x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800204 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800205x11_backend_la_CFLAGS = \
206 $(COMPOSITOR_CFLAGS) \
207 $(EGL_CFLAGS) \
208 $(PIXMAN_CFLAGS) \
209 $(CAIRO_CFLAGS) \
210 $(X11_COMPOSITOR_CFLAGS) \
211 $(GCC_CFLAGS)
212x11_backend_la_SOURCES = src/compositor-x11.c
213endif
214
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100215INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000216INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100217 src/libinput-seat.c \
218 src/libinput-seat.h \
219 src/libinput-device.c \
220 src/libinput-device.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100221
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800222if ENABLE_DRM_COMPOSITOR
223module_LTLIBRARIES += drm-backend.la
224drm_backend_la_LDFLAGS = -module -avoid-version
225drm_backend_la_LIBADD = \
226 $(COMPOSITOR_LIBS) \
227 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100228 $(INPUT_BACKEND_LIBS) \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100229 libshared.la -lrt \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800230 libsession-helper.la
231drm_backend_la_CFLAGS = \
232 $(COMPOSITOR_CFLAGS) \
233 $(EGL_CFLAGS) \
234 $(DRM_COMPOSITOR_CFLAGS) \
235 $(GCC_CFLAGS)
236drm_backend_la_SOURCES = \
237 src/compositor-drm.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100238 $(INPUT_BACKEND_SOURCES) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800239 src/libbacklight.c \
240 src/libbacklight.h
241
242if ENABLE_VAAPI_RECORDER
243drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
244drm_backend_la_LIBADD += $(LIBVA_LIBS)
245drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
246endif
247endif
248
249if ENABLE_WAYLAND_COMPOSITOR
250module_LTLIBRARIES += wayland-backend.la
251wayland_backend_la_LDFLAGS = -module -avoid-version
252wayland_backend_la_LIBADD = \
253 $(COMPOSITOR_LIBS) \
254 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800255 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800256wayland_backend_la_CFLAGS = \
257 $(COMPOSITOR_CFLAGS) \
258 $(EGL_CFLAGS) \
259 $(PIXMAN_CFLAGS) \
260 $(CAIRO_CFLAGS) \
261 $(WAYLAND_COMPOSITOR_CFLAGS) \
262 $(GCC_CFLAGS)
263wayland_backend_la_SOURCES = src/compositor-wayland.c
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500264nodist_wayland_backend_la_SOURCES = \
265 protocol/fullscreen-shell-protocol.c \
266 protocol/fullscreen-shell-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800267endif
268
269if ENABLE_RPI_COMPOSITOR
270if INSTALL_RPI_COMPOSITOR
271module_LTLIBRARIES += rpi-backend.la
272else
273noinst_LTLIBRARIES += rpi-backend.la
274endif
275
276rpi_backend_la_LDFLAGS = -module -avoid-version
277rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
278 $(RPI_COMPOSITOR_LIBS) \
279 $(RPI_BCM_HOST_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100280 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800281 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800282 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800283rpi_backend_la_CFLAGS = \
284 $(GCC_CFLAGS) \
285 $(COMPOSITOR_CFLAGS) \
286 $(RPI_COMPOSITOR_CFLAGS) \
287 $(RPI_BCM_HOST_CFLAGS)
288rpi_backend_la_SOURCES = \
289 src/compositor-rpi.c \
290 src/rpi-renderer.c \
291 src/rpi-renderer.h \
292 src/rpi-bcm-stubs.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100293 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800294
295if ENABLE_EGL
296rpi_backend_la_LIBADD += $(EGL_LIBS)
297rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
298endif
299
300endif
301
302if ENABLE_HEADLESS_COMPOSITOR
303module_LTLIBRARIES += headless-backend.la
304headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800305headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
306headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800307headless_backend_la_SOURCES = src/compositor-headless.c
308endif
309
310if ENABLE_FBDEV_COMPOSITOR
311module_LTLIBRARIES += fbdev-backend.la
312fbdev_backend_la_LDFLAGS = -module -avoid-version
313fbdev_backend_la_LIBADD = \
314 $(COMPOSITOR_LIBS) \
315 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100316 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800317 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800318 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800319fbdev_backend_la_CFLAGS = \
320 $(COMPOSITOR_CFLAGS) \
321 $(EGL_CFLAGS) \
322 $(FBDEV_COMPOSITOR_CFLAGS) \
323 $(PIXMAN_CFLAGS) \
324 $(GCC_CFLAGS)
325fbdev_backend_la_SOURCES = \
326 src/compositor-fbdev.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100327 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800328endif
329
330if ENABLE_RDP_COMPOSITOR
331module_LTLIBRARIES += rdp-backend.la
332rdp_backend_la_LDFLAGS = -module -avoid-version
333rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
334 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800335 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800336rdp_backend_la_CFLAGS = \
337 $(COMPOSITOR_CFLAGS) \
338 $(RDP_COMPOSITOR_CFLAGS) \
339 $(GCC_CFLAGS)
340rdp_backend_la_SOURCES = src/compositor-rdp.c
341endif
342
343if HAVE_LCMS
344module_LTLIBRARIES += cms-static.la
345cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800346cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800347cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
348cms_static_la_SOURCES = \
349 src/cms-static.c \
350 src/cms-helper.c \
351 src/cms-helper.h
352if ENABLE_COLORD
353module_LTLIBRARIES += cms-colord.la
354cms_colord_la_LDFLAGS = -module -avoid-version
355cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
356cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
357cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100358 src/cms-colord.c \
359 src/cms-helper.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800360 src/cms-helper.h
361endif
362endif
363
364noinst_PROGRAMS += spring-tool
365spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
366spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
367spring_tool_SOURCES = \
368 src/spring-tool.c \
369 src/animation.c \
370 shared/matrix.c \
371 shared/matrix.h \
372 src/compositor.h
373
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800374if BUILD_CLIENTS
375
376bin_PROGRAMS += weston-terminal weston-info
377
378libexec_PROGRAMS += \
379 weston-desktop-shell \
380 weston-screenshooter \
381 weston-keyboard \
382 weston-simple-im
383
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900384if ENABLE_IVI_SHELL
385libexec_PROGRAMS += \
386 weston-ivi-shell-user-interface
387endif
388
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800389demo_clients = \
390 weston-flower \
391 weston-image \
392 weston-cliptest \
393 weston-dnd \
394 weston-smoke \
395 weston-resizor \
396 weston-eventdemo \
397 weston-clickdot \
398 weston-transformed \
399 weston-fullscreen \
400 weston-stacking \
401 weston-calibrator \
402 weston-scaler
403
404if INSTALL_DEMO_CLIENTS
405bin_PROGRAMS += $(demo_clients)
406else
407noinst_PROGRAMS += $(demo_clients)
408endif
409
410
411if BUILD_SIMPLE_CLIENTS
412demo_clients += \
413 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500414 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800415 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400416 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800417 weston-multi-resource
418
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800419weston_simple_shm_SOURCES = clients/simple-shm.c
420nodist_weston_simple_shm_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800421 protocol/xdg-shell-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500422 protocol/xdg-shell-client-protocol.h \
423 protocol/fullscreen-shell-protocol.c \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900424 protocol/fullscreen-shell-client-protocol.h \
425 protocol/ivi-application-protocol.c \
426 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800427weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800428weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800429
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500430weston_simple_damage_SOURCES = clients/simple-damage.c
431nodist_weston_simple_damage_SOURCES = \
432 protocol/scaler-protocol.c \
433 protocol/scaler-client-protocol.h \
434 protocol/xdg-shell-protocol.c \
435 protocol/xdg-shell-client-protocol.h \
436 protocol/fullscreen-shell-protocol.c \
437 protocol/fullscreen-shell-client-protocol.h
438weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
439weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
440
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800441weston_simple_touch_SOURCES = clients/simple-touch.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800442weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800443weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800444
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400445weston_presentation_shm_SOURCES = clients/presentation-shm.c
446nodist_weston_presentation_shm_SOURCES = \
447 protocol/presentation_timing-protocol.c \
448 protocol/presentation_timing-client-protocol.h
449weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
450weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
451
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800452weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800453weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Javier Jardónc47931e2014-10-27 15:13:19 +0000454weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800455endif
456
457if BUILD_SIMPLE_EGL_CLIENTS
458demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800459weston_simple_egl_SOURCES = clients/simple-egl.c
460nodist_weston_simple_egl_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800461 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900462 protocol/xdg-shell-client-protocol.h \
463 protocol/ivi-application-protocol.c \
464 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800465weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800466weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
467endif
468
469noinst_LTLIBRARIES += libtoytoolkit.la
470
471libtoytoolkit_la_SOURCES = \
472 clients/window.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800473 clients/window.h
474
475nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100476 protocol/text-cursor-position-protocol.c \
477 protocol/text-cursor-position-client-protocol.h \
478 protocol/scaler-protocol.c \
479 protocol/scaler-client-protocol.h \
480 protocol/workspaces-protocol.c \
481 protocol/workspaces-client-protocol.h \
Pekka Paalanen7e62d252014-09-23 22:08:42 -0400482 protocol/presentation_timing-protocol.c \
483 protocol/presentation_timing-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100484 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900485 protocol/xdg-shell-client-protocol.h \
486 protocol/ivi-application-protocol.c \
487 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500488
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800489BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
490
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800491
492libtoytoolkit_la_LIBADD = \
493 $(CLIENT_LIBS) \
494 $(CAIRO_EGL_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800495 libshared-cairo.la -lrt -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800496libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800497
498weston_flower_SOURCES = clients/flower.c
499weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800500weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800501
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100502weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800503 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800504nodist_weston_screenshooter_SOURCES = \
505 protocol/screenshooter-protocol.c \
506 protocol/screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800507weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800508weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800509
510weston_terminal_SOURCES = clients/terminal.c
511weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800512weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800513
514weston_image_SOURCES = clients/image.c
515weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800516weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800517
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300518weston_cliptest_SOURCES = \
519 clients/cliptest.c \
520 src/vertex-clipping.c \
521 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800522weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800523weston_cliptest_LDADD = libtoytoolkit.la
524
525weston_dnd_SOURCES = clients/dnd.c
526weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800527weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800528
529weston_smoke_SOURCES = clients/smoke.c
530weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800531weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800532
533weston_resizor_SOURCES = clients/resizor.c
534weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800535weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800536
537weston_scaler_SOURCES = clients/scaler.c
538weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800539weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800540
541if HAVE_CAIRO_GLESV2
542demo_clients += weston-nested weston-nested-client
543
544weston_nested_SOURCES = clients/nested.c
545weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800546weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800547
548weston_nested_client_SOURCES = clients/nested-client.c
549weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800550weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800551endif
552
553weston_eventdemo_SOURCES = clients/eventdemo.c
554weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800555weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800556
557weston_clickdot_SOURCES = clients/clickdot.c
558weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800559weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800560
561weston_transformed_SOURCES = clients/transformed.c
562weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800563weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800564
565weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500566nodist_weston_fullscreen_SOURCES = \
567 protocol/fullscreen-shell-protocol.c \
568 protocol/fullscreen-shell-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800569weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800570weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800571
572weston_stacking_SOURCES = clients/stacking.c
573weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800574weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800575
576weston_calibrator_SOURCES = clients/calibrator.c \
577 shared/matrix.c \
578 shared/matrix.h
579weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800580weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800581
582if BUILD_SUBSURFACES_CLIENT
583demo_clients += weston-subsurfaces
584weston_subsurfaces_SOURCES = clients/subsurfaces.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800585weston_subsurfaces_CFLAGS = \
586 $(AM_CFLAGS) \
587 $(SIMPLE_EGL_CLIENT_CFLAGS) \
588 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800589weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
590endif
591
592if HAVE_PANGO
593demo_clients += weston-editor
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800594weston_editor_SOURCES = clients/editor.c
595nodist_weston_editor_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100596 protocol/text-protocol.c \
597 protocol/text-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800598weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800599weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800600endif
601
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800602weston_keyboard_SOURCES = clients/keyboard.c
603nodist_weston_keyboard_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100604 protocol/desktop-shell-client-protocol.h \
605 protocol/desktop-shell-protocol.c \
606 protocol/input-method-protocol.c \
607 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800608weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800609weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800610
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800611weston_simple_im_SOURCES = clients/weston-simple-im.c
612nodist_weston_simple_im_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100613 protocol/input-method-protocol.c \
614 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800615weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800616weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800617
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800618weston_info_SOURCES = clients/weston-info.c
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400619nodist_weston_info_SOURCES = \
620 protocol/presentation_timing-protocol.c \
621 protocol/presentation_timing-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800622weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200623weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800624
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800625weston_desktop_shell_SOURCES = clients/desktop-shell.c
626nodist_weston_desktop_shell_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100627 protocol/desktop-shell-client-protocol.h \
628 protocol/desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800629weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800630weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800631
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900632if ENABLE_IVI_SHELL
633weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
634nodist_weston_ivi_shell_user_interface_SOURCES = \
635 protocol/ivi-hmi-controller-client-protocol.h \
636 protocol/ivi-hmi-controller-protocol.c \
637 protocol/ivi-application-client-protocol.h \
638 protocol/ivi-application-protocol.c
639weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
640weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
641endif
642
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800643if BUILD_FULL_GL_CLIENTS
644demo_clients += weston-gears
645weston_gears_SOURCES = clients/gears.c
646weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800647weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800648
649if HAVE_GLU
650libexec_PROGRAMS += weston-screensaver
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100651weston_screensaver_SOURCES = \
652 clients/wscreensaver.c \
653 clients/wscreensaver.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100654 clients/wscreensaver-glue.c \
655 clients/wscreensaver-glue.h \
656 clients/glmatrix.c \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800657 clients/matrix3.xpm
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800658nodist_weston_screensaver_SOURCES = \
659 protocol/desktop-shell-client-protocol.h \
660 protocol/desktop-shell-protocol.c
661
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800662weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800663weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800664
665endif
666
667endif
668
669endif
670
671BUILT_SOURCES += \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100672 protocol/screenshooter-protocol.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800673 protocol/screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100674 protocol/text-cursor-position-client-protocol.h \
675 protocol/text-cursor-position-protocol.c \
676 protocol/text-protocol.c \
677 protocol/text-client-protocol.h \
678 protocol/input-method-protocol.c \
679 protocol/input-method-client-protocol.h \
680 protocol/desktop-shell-client-protocol.h \
681 protocol/desktop-shell-protocol.c \
682 protocol/scaler-client-protocol.h \
683 protocol/scaler-protocol.c \
684 protocol/workspaces-client-protocol.h \
685 protocol/workspaces-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500686 protocol/fullscreen-shell-protocol.c \
687 protocol/fullscreen-shell-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100688 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900689 protocol/xdg-shell-client-protocol.h \
690 protocol/ivi-hmi-controller-protocol.c \
691 protocol/ivi-hmi-controller-client-protocol.h \
692 protocol/ivi-application-protocol.c \
693 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800694
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800695westondatadir = $(datadir)/weston
696dist_westondata_DATA = \
697 data/wayland.svg \
698 data/wayland.png \
699 data/pattern.png \
700 data/terminal.png \
701 data/border.png \
702 data/icon_window.png \
703 data/sign_close.png \
704 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100705 data/sign_minimize.png
706
707if ENABLE_IVI_SHELL
708dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900709 data/background.png \
710 data/tiling.png \
711 data/fullscreen.png \
712 data/panel.png \
713 data/random.png \
714 data/sidebyside.png \
715 data/home.png \
716 data/icon_ivi_clickdot.png \
717 data/icon_ivi_flower.png \
718 data/icon_ivi_simple-egl.png \
719 data/icon_ivi_simple-shm.png \
720 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100721endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800722
723
724if BUILD_WCAP_TOOLS
725bin_PROGRAMS += wcap-decode
726
727wcap_decode_SOURCES = \
728 wcap/main.c \
729 wcap/wcap-decode.c \
730 wcap/wcap-decode.h
731
732wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
733wcap_decode_LDADD = $(WCAP_LIBS)
734endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800735
736
737if ENABLE_DESKTOP_SHELL
738
739module_LTLIBRARIES += desktop-shell.la
740
741desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100742 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800743 -I$(top_srcdir)/shared \
744 -I$(top_srcdir)/src \
745 -I$(top_builddir)/src \
746 -I$(top_builddir)/desktop-shell \
747 -DDATADIR='"$(datadir)"' \
748 -DMODULEDIR='"$(moduledir)"' \
749 -DLIBEXECDIR='"$(libexecdir)"' \
750 -DIN_WESTON
751
752desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800753desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800754desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
755desktop_shell_la_SOURCES = \
756 desktop-shell/shell.h \
757 desktop-shell/shell.c \
758 desktop-shell/exposay.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800759 desktop-shell/input-panel.c
760nodist_desktop_shell_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100761 protocol/desktop-shell-protocol.c \
762 protocol/desktop-shell-server-protocol.h \
763 protocol/xdg-shell-protocol.c \
764 protocol/xdg-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800765
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800766BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800767endif
768
Jason Ekstrand946a9482014-04-02 19:53:47 -0500769if ENABLE_FULLSCREEN_SHELL
770
771module_LTLIBRARIES += fullscreen-shell.la
772
773fullscreen_shell_la_CPPFLAGS = \
774 -I$(top_builddir)/protocol \
775 -I$(top_srcdir)/shared \
776 -I$(top_srcdir)/src \
777 -I$(top_builddir)/src \
778 -DIN_WESTON
779
780fullscreen_shell_la_LDFLAGS = -module -avoid-version
781fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
782fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
783fullscreen_shell_la_SOURCES = \
784 fullscreen-shell/fullscreen-shell.c
785nodist_fullscreen_shell_la_SOURCES = \
786 protocol/fullscreen-shell-protocol.c \
787 protocol/fullscreen-shell-server-protocol.h
788
789BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
790endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800791
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900792if ENABLE_IVI_SHELL
793
794module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900795 $(ivi_shell) \
796 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900797
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900798ivi_shell = ivi-shell.la
799ivi_shell_la_LDFLAGS = -module -avoid-version
800ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
801ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
802ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900803 ivi-shell/ivi-layout-export.h \
804 ivi-shell/ivi-layout-private.h \
805 ivi-shell/ivi-layout.c \
806 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900807 ivi-shell/ivi-shell.h \
808 ivi-shell/ivi-shell.c \
Nobuhiko Tanibata0038b732014-11-27 13:25:34 +0900809 ivi-shell/input-panel-ivi.c
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900810nodist_ivi_shell_la_SOURCES = \
811 protocol/ivi-application-protocol.c \
812 protocol/ivi-application-server-protocol.h
813
814BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
815
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900816hmi_controller = hmi-controller.la
817hmi_controller_la_LDFLAGS = -module -avoid-version
818hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
819hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
820hmi_controller_la_SOURCES = \
821 ivi-shell/ivi-layout-export.h \
822 ivi-shell/hmi-controller.c
823nodist_hmi_controller_la_SOURCES = \
824 protocol/ivi-hmi-controller-protocol.c \
825 protocol/ivi-hmi-controller-server-protocol.h
826
827BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
828
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900829endif
830
831
Jason Ekstrand47928d82014-04-02 19:54:01 -0500832if ENABLE_SCREEN_SHARING
833
834module_LTLIBRARIES += screen-share.la
835
836screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
837screen_share_la_LDFLAGS = -module -avoid-version
838screen_share_la_LIBADD = \
839 $(COMPOSITOR_LIBS) \
840 $(SCREEN_SHARE_LIBS) \
841 libshared-cairo.la
842screen_share_la_CFLAGS = \
843 $(COMPOSITOR_CFLAGS) \
844 $(SCREEN_SHARE_CFLAGS) \
845 $(GCC_CFLAGS)
846screen_share_la_SOURCES = \
847 src/screen-share.c
848nodist_screen_share_la_SOURCES = \
849 protocol/fullscreen-shell-protocol.c \
850 protocol/fullscreen-shell-client-protocol.h
851
852endif
853
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800854if ENABLE_XWAYLAND
855
856module_LTLIBRARIES += xwayland.la
857
858xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100859 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800860 -I$(top_srcdir)/shared \
861 -I$(top_srcdir)/src \
862 -I$(top_builddir)/src \
863 -I$(top_builddir)/xwayland \
864 -DDATADIR='"$(datadir)"' \
865 -DMODULEDIR='"$(moduledir)"' \
866 -DLIBEXECDIR='"$(libexecdir)"' \
867 -DXSERVER_PATH='"@XSERVER_PATH@"'
868
869xwayland_la_LDFLAGS = -module -avoid-version
870xwayland_la_LIBADD = \
871 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800872 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800873xwayland_la_CFLAGS = \
874 $(GCC_CFLAGS) \
875 $(COMPOSITOR_CFLAGS) \
876 $(PIXMAN_CFLAGS) \
877 $(CAIRO_CFLAGS)
878xwayland_la_SOURCES = \
879 xwayland/xwayland.h \
880 xwayland/window-manager.c \
881 xwayland/selection.c \
882 xwayland/dnd.c \
883 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800884 xwayland/hash.c \
885 xwayland/hash.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800886endif
887
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800888
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800889#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800890# Shared utilities
891#
892
893noinst_LTLIBRARIES += libshared.la libshared-cairo.la
894
895libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
896
897libshared_la_SOURCES = \
898 shared/config-parser.c \
899 shared/option-parser.c \
900 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +0200901 shared/file-util.c \
902 shared/file-util.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800903 shared/os-compatibility.c \
904 shared/os-compatibility.h
905
906libshared_cairo_la_CFLAGS = \
907 -DDATADIR='"$(datadir)"' \
908 $(GCC_CFLAGS) \
909 $(COMPOSITOR_CFLAGS) \
910 $(PIXMAN_CFLAGS) \
911 $(CAIRO_CFLAGS) \
912 $(PNG_CFLAGS) \
913 $(WEBP_CFLAGS)
914
915libshared_cairo_la_LIBADD = \
916 $(PIXMAN_LIBS) \
917 $(CAIRO_LIBS) \
918 $(PNG_LIBS) \
919 $(WEBP_LIBS) \
920 $(JPEG_LIBS)
921
922libshared_cairo_la_SOURCES = \
923 $(libshared_la_SOURCES) \
924 shared/image-loader.c \
925 shared/image-loader.h \
926 shared/cairo-util.c \
927 shared/frame.c \
928 shared/cairo-util.h
929
930
931#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800932# tests subdirectory
933#
934
Pekka Paalanenf3a34532015-03-24 13:51:05 +0200935TESTS = $(shared_tests) $(module_tests) $(weston_tests) $(ivi_tests)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800936
937shared_tests = \
938 config-parser.test \
939 vertex-clip.test
940
941module_tests = \
942 surface-test.la \
943 surface-global-test.la
944
945weston_tests = \
946 bad_buffer.weston \
947 keyboard.weston \
948 event.weston \
949 button.weston \
950 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -0400951 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +0300952 roles.weston \
Marek Chalupa5fd81402015-03-30 09:21:29 -0400953 subsurface.weston \
954 devices.weston
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800955
Pekka Paalanenf3a34532015-03-24 13:51:05 +0200956ivi_tests =
957
958$(ivi_tests) : $(builddir)/tests/weston-ivi.ini
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800959
960AM_TESTS_ENVIRONMENT = \
961 abs_builddir='$(abs_builddir)'; export abs_builddir;
962
963TEST_EXTENSIONS = .la .weston
964LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
965WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
966
967clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +0300968 -rm -rf logs
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800969
970# To remove when automake 1.11 support is dropped
971export abs_builddir
972
973noinst_LTLIBRARIES += \
974 weston-test.la \
975 $(module_tests) \
976 libtest-runner.la \
977 libtest-client.la
978
979noinst_PROGRAMS += \
980 $(setbacklight) \
981 $(shared_tests) \
982 $(weston_tests) \
Pekka Paalanenf3a34532015-03-24 13:51:05 +0200983 $(ivi_tests) \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800984 matrix-test
985
986test_module_ldflags = \
987 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
988
989surface_global_test_la_SOURCES = tests/surface-global-test.c
990surface_global_test_la_LDFLAGS = $(test_module_ldflags)
991surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
992
993surface_test_la_SOURCES = tests/surface-test.c
994surface_test_la_LDFLAGS = $(test_module_ldflags)
995surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
996
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800997weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800998weston_test_la_LDFLAGS = $(test_module_ldflags)
999weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001000weston_test_la_SOURCES = tests/weston-test.c
1001nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001002 protocol/weston-test-protocol.c \
1003 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001004
1005if ENABLE_EGL
1006weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
1007weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
1008endif
1009
1010libtest_runner_la_SOURCES = \
1011 tests/weston-test-runner.c \
1012 tests/weston-test-runner.h
1013libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1014
1015config_parser_test_SOURCES = tests/config-parser-test.c
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001016config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001017
1018vertex_clip_test_SOURCES = \
1019 tests/vertex-clip-test.c \
1020 src/vertex-clipping.c \
1021 src/vertex-clipping.h
1022vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
1023
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001024libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001025 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001026 tests/weston-test-client-helper.h
1027nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001028 protocol/weston-test-protocol.c \
1029 protocol/weston-test-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001030libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001031libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001032
1033bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001034bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001035bad_buffer_weston_LDADD = libtest-client.la
1036
1037keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001038keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001039keyboard_weston_LDADD = libtest-client.la
1040
1041event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001042event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001043event_weston_LDADD = libtest-client.la
1044
1045button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001046button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001047button_weston_LDADD = libtest-client.la
1048
Marek Chalupa5fd81402015-03-30 09:21:29 -04001049devices_weston_SOURCES = tests/devices-test.c
1050devices_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1051devices_weston_LDADD = libtest-client.la
1052
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001053text_weston_SOURCES = tests/text-test.c
1054nodist_text_weston_SOURCES = \
1055 protocol/text-protocol.c \
1056 protocol/text-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001057text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001058text_weston_LDADD = libtest-client.la
1059
1060subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001061subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001062subsurface_weston_LDADD = libtest-client.la
1063
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001064presentation_weston_SOURCES = tests/presentation-test.c
1065nodist_presentation_weston_SOURCES = \
1066 protocol/presentation_timing-protocol.c \
1067 protocol/presentation_timing-client-protocol.h
1068presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1069presentation_weston_LDADD = libtest-client.la
1070
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001071roles_weston_SOURCES = tests/roles-test.c
1072roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1073roles_weston_LDADD = libtest-client.la
1074
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001075if ENABLE_EGL
1076weston_tests += buffer-count.weston
1077buffer_count_weston_SOURCES = tests/buffer-count-test.c
1078buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1079buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1080endif
1081
1082if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001083weston_tests += xwayland-test.weston
1084xwayland_test_weston_SOURCES = tests/xwayland-test.c
1085xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1086xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001087endif
1088
1089matrix_test_SOURCES = \
1090 tests/matrix-test.c \
1091 shared/matrix.c \
1092 shared/matrix.h
1093matrix_test_CPPFLAGS = -DUNIT_TEST
1094matrix_test_LDADD = -lm -lrt
1095
1096if BUILD_SETBACKLIGHT
1097noinst_PROGRAMS += setbacklight
1098setbacklight_SOURCES = \
1099 tests/setbacklight.c \
1100 src/libbacklight.c \
1101 src/libbacklight.h
1102setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1103setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1104endif
1105
1106EXTRA_DIST += tests/weston-tests-env
1107
1108BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001109 protocol/weston-test-protocol.c \
1110 protocol/weston-test-server-protocol.h \
1111 protocol/weston-test-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001112 protocol/text-protocol.c \
1113 protocol/text-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001114
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001115EXTRA_DIST += \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001116 protocol/desktop-shell.xml \
1117 protocol/screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001118 protocol/text.xml \
1119 protocol/input-method.xml \
1120 protocol/workspaces.xml \
1121 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001122 protocol/weston-test.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001123 protocol/xdg-shell.xml \
Jason Ekstrand27e11672014-04-02 19:53:44 -05001124 protocol/fullscreen-shell.xml \
Pekka Paalanen7e62d252014-09-23 22:08:42 -04001125 protocol/presentation_timing.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001126 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001127 protocol/ivi-application.xml \
1128 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001129
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001130#
1131# manual test modules in tests subdirectory
1132#
1133
1134noinst_LTLIBRARIES += \
1135 surface-screenshot.la
1136
1137surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1138surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
1139surface_screenshot_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1140surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1141
1142
1143#
1144# Documentation
1145#
1146
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001147man_MANS = weston.1 weston.ini.5
1148
1149if ENABLE_DRM_COMPOSITOR
1150man_MANS += weston-drm.7
1151endif
1152
1153MAN_SUBSTS = \
1154 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1155 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1156 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1157 -e 's|__version__|$(PACKAGE_VERSION)|g'
1158
1159SUFFIXES = .1 .5 .7 .man
1160
1161%.1 %.5 %.7 : man/%.man
1162 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1163
1164EXTRA_DIST += \
1165 man/weston.man \
1166 man/weston-drm.man \
1167 man/weston.ini.man
1168
1169CLEANFILES += $(man_MANS)
1170
1171
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001172protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1173 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001174
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001175protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1176 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001177
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001178protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1179 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@