d11abc2de93cd80efea47aac132ef10ea5d50fa2
[profile/ivi/weston-ivi-shell.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 bin_PROGRAMS =
4 noinst_PROGRAMS =
5 libexec_PROGRAMS =
6 moduledir = $(libdir)/weston
7 module_LTLIBRARIES =
8 noinst_LTLIBRARIES =
9 BUILT_SOURCES =
10
11 # Do not run xwayland test while it is known broken.
12 AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install --disable-xwayland-test
13
14 EXTRA_DIST = weston.ini.in
15
16 weston.ini : $(srcdir)/weston.ini.in
17         $(AM_V_GEN)$(SED) \
18                 -e 's|@bindir[@]|$(bindir)|g' \
19                 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
20                 -e 's|@libexecdir[@]|$(libexecdir)|g' \
21                 $< > $@
22
23 all-local : weston.ini
24
25 AM_CFLAGS = $(GCC_CFLAGS)
26
27 AM_CPPFLAGS =                                   \
28         -I$(top_srcdir)/src                     \
29         -I$(top_builddir)/src                   \
30         -I$(top_builddir)/clients               \
31         -I$(top_builddir)/tests                 \
32         -I$(top_srcdir)/shared                  \
33         -I$(top_builddir)/protocol              \
34         -DDATADIR='"$(datadir)"'                \
35         -DMODULEDIR='"$(moduledir)"'            \
36         -DLIBEXECDIR='"$(libexecdir)"'          \
37         -DBINDIR='"$(bindir)"'
38
39 CLEANFILES = weston.ini $(BUILT_SOURCES)
40
41 bin_PROGRAMS += weston
42
43 weston_LDFLAGS = -export-dynamic
44 weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
45 weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
46 weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
47         $(DLOPEN_LIBS) -lm libshared.la
48
49 weston_SOURCES =                                        \
50         src/git-version.h                               \
51         src/log.c                                       \
52         src/compositor.c                                \
53         src/compositor.h                                \
54         src/input.c                                     \
55         src/data-device.c                               \
56         src/screenshooter.c                             \
57         src/clipboard.c                                 \
58         src/zoom.c                                      \
59         src/text-backend.c                              \
60         src/bindings.c                                  \
61         src/animation.c                                 \
62         src/noop-renderer.c                             \
63         src/pixman-renderer.c                           \
64         src/pixman-renderer.h                           \
65         shared/matrix.c                                 \
66         shared/matrix.h                                 \
67         shared/zalloc.h                                 \
68         src/weston-egl-ext.h
69
70 nodist_weston_SOURCES =                                 \
71         protocol/screenshooter-protocol.c               \
72         protocol/screenshooter-server-protocol.h        \
73         protocol/text-cursor-position-protocol.c        \
74         protocol/text-cursor-position-server-protocol.h \
75         protocol/text-protocol.c                        \
76         protocol/text-server-protocol.h                 \
77         protocol/input-method-protocol.c                \
78         protocol/input-method-server-protocol.h         \
79         protocol/workspaces-protocol.c                  \
80         protocol/workspaces-server-protocol.h           \
81         protocol/scaler-protocol.c                      \
82         protocol/scaler-server-protocol.h
83
84 BUILT_SOURCES += $(nodist_weston_SOURCES)
85
86 # Track this dependency explicitly instead of using BUILT_SOURCES.  We
87 # add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
88 # in case we're building from tarballs.
89
90 src/compositor.c : $(top_builddir)/src/git-version.h
91
92 noinst_LTLIBRARIES +=                           \
93         libsession-helper.la
94
95 libsession_helper_la_SOURCES =                  \
96         src/weston-launch.h                     \
97         src/launcher-util.c                     \
98         src/launcher-util.h
99 libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
100 libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
101
102 if ENABLE_DBUS
103 if HAVE_SYSTEMD_LOGIN
104 libsession_helper_la_SOURCES +=                 \
105         src/dbus.h                              \
106         src/dbus.c                              \
107         src/logind-util.h                       \
108         src/logind-util.c
109 libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
110 libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
111 endif
112 endif
113
114 if HAVE_GIT_REPO
115 src/git-version.h : $(top_srcdir)/.git/logs/HEAD
116         $(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)')\"" > $@
117 else
118 src/git-version.h :
119         $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
120
121 endif
122
123 .FORCE :
124
125 if BUILD_WESTON_LAUNCH
126 bin_PROGRAMS += weston-launch
127 weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
128 weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
129 weston_launch_CFLAGS=                           \
130         $(GCC_CFLAGS)                           \
131         $(PAM_CFLAGS)                           \
132         $(SYSTEMD_LOGIN_CFLAGS)                 \
133         $(LIBDRM_CFLAGS)
134 weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
135
136 if ENABLE_SETUID_INSTALL
137 install-exec-hook:
138         chown root $(DESTDIR)$(bindir)/weston-launch
139         chmod u+s $(DESTDIR)$(bindir)/weston-launch
140 endif
141
142 endif # BUILD_WESTON_LAUNCH
143
144 pkgconfigdir = $(libdir)/pkgconfig
145 pkgconfig_DATA = src/weston.pc
146
147 westonincludedir = $(includedir)/weston
148 westoninclude_HEADERS =                         \
149         src/version.h                           \
150         src/compositor.h                        \
151         shared/matrix.h                         \
152         shared/config-parser.h                  \
153         shared/zalloc.h
154
155 if ENABLE_EGL
156 module_LTLIBRARIES += gl-renderer.la
157 gl_renderer_la_LDFLAGS = -module -avoid-version
158 gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
159 gl_renderer_la_CFLAGS =                         \
160         $(COMPOSITOR_CFLAGS)                    \
161         $(EGL_CFLAGS)                           \
162         $(GCC_CFLAGS)
163 gl_renderer_la_SOURCES =                        \
164         src/gl-renderer.h                       \
165         src/gl-renderer.c                       \
166         src/vertex-clipping.c                   \
167         src/vertex-clipping.h
168 endif
169
170 if ENABLE_X11_COMPOSITOR
171 module_LTLIBRARIES += x11-backend.la
172 x11_backend_la_LDFLAGS = -module -avoid-version
173 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
174         libshared-cairo.la
175 x11_backend_la_CFLAGS =                         \
176         $(COMPOSITOR_CFLAGS)                    \
177         $(EGL_CFLAGS)                           \
178         $(PIXMAN_CFLAGS)                        \
179         $(CAIRO_CFLAGS)                         \
180         $(X11_COMPOSITOR_CFLAGS)                \
181         $(GCC_CFLAGS)
182 x11_backend_la_SOURCES = src/compositor-x11.c
183 endif
184
185 INPUT_BACKEND_SOURCES = src/udev-input.h
186
187 if ENABLE_LIBINPUT_BACKEND
188 INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
189 INPUT_BACKEND_SOURCES +=                        \
190         src/libinput-seat.c                     \
191         src/libinput-seat.h                     \
192         src/libinput-device.c                   \
193         src/libinput-device.h
194 else
195 INPUT_BACKEND_SOURCES +=                        \
196         src/filter.c                            \
197         src/filter.h                            \
198         src/udev-seat.c                         \
199         src/udev-seat.h                         \
200         src/evdev.c                             \
201         src/evdev.h                             \
202         src/evdev-touchpad.c
203 endif
204
205 if ENABLE_DRM_COMPOSITOR
206 module_LTLIBRARIES += drm-backend.la
207 drm_backend_la_LDFLAGS = -module -avoid-version
208 drm_backend_la_LIBADD =                         \
209         $(COMPOSITOR_LIBS)                      \
210         $(DRM_COMPOSITOR_LIBS)                  \
211         $(INPUT_BACKEND_LIBS)                   \
212         libshared.la -lrt                       \
213         libsession-helper.la
214 drm_backend_la_CFLAGS =                         \
215         $(COMPOSITOR_CFLAGS)                    \
216         $(EGL_CFLAGS)                           \
217         $(DRM_COMPOSITOR_CFLAGS)                \
218         $(GCC_CFLAGS)
219 drm_backend_la_SOURCES =                        \
220         src/compositor-drm.c                    \
221         $(INPUT_BACKEND_SOURCES)                \
222         src/libbacklight.c                      \
223         src/libbacklight.h
224
225 if ENABLE_VAAPI_RECORDER
226 drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
227 drm_backend_la_LIBADD += $(LIBVA_LIBS)
228 drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
229 endif
230 endif
231
232 if ENABLE_WAYLAND_COMPOSITOR
233 module_LTLIBRARIES += wayland-backend.la
234 wayland_backend_la_LDFLAGS = -module -avoid-version
235 wayland_backend_la_LIBADD =                     \
236         $(COMPOSITOR_LIBS)                      \
237         $(WAYLAND_COMPOSITOR_LIBS)              \
238         libshared-cairo.la
239 wayland_backend_la_CFLAGS =                     \
240         $(COMPOSITOR_CFLAGS)                    \
241         $(EGL_CFLAGS)                           \
242         $(PIXMAN_CFLAGS)                        \
243         $(CAIRO_CFLAGS)                         \
244         $(WAYLAND_COMPOSITOR_CFLAGS)            \
245         $(GCC_CFLAGS)
246 wayland_backend_la_SOURCES = src/compositor-wayland.c
247 nodist_wayland_backend_la_SOURCES =                     \
248         protocol/fullscreen-shell-protocol.c            \
249         protocol/fullscreen-shell-client-protocol.h
250 endif
251
252 if ENABLE_RPI_COMPOSITOR
253 if INSTALL_RPI_COMPOSITOR
254 module_LTLIBRARIES += rpi-backend.la
255 else
256 noinst_LTLIBRARIES += rpi-backend.la
257 endif
258
259 rpi_backend_la_LDFLAGS = -module -avoid-version
260 rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS)      \
261         $(RPI_COMPOSITOR_LIBS)                  \
262         $(RPI_BCM_HOST_LIBS)                    \
263         $(INPUT_BACKEND_LIBS)                   \
264         libsession-helper.la                    \
265         libshared.la
266 rpi_backend_la_CFLAGS =                         \
267         $(GCC_CFLAGS)                           \
268         $(COMPOSITOR_CFLAGS)                    \
269         $(RPI_COMPOSITOR_CFLAGS)                \
270         $(RPI_BCM_HOST_CFLAGS)
271 rpi_backend_la_SOURCES =                        \
272         src/compositor-rpi.c                    \
273         src/rpi-renderer.c                      \
274         src/rpi-renderer.h                      \
275         src/rpi-bcm-stubs.h                     \
276         $(INPUT_BACKEND_SOURCES)
277
278 if ENABLE_EGL
279 rpi_backend_la_LIBADD += $(EGL_LIBS)
280 rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
281 endif
282
283 endif
284
285 if ENABLE_HEADLESS_COMPOSITOR
286 module_LTLIBRARIES += headless-backend.la
287 headless_backend_la_LDFLAGS = -module -avoid-version
288 headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
289 headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
290 headless_backend_la_SOURCES = src/compositor-headless.c
291 endif
292
293 if ENABLE_FBDEV_COMPOSITOR
294 module_LTLIBRARIES += fbdev-backend.la
295 fbdev_backend_la_LDFLAGS = -module -avoid-version
296 fbdev_backend_la_LIBADD =                       \
297         $(COMPOSITOR_LIBS)                      \
298         $(FBDEV_COMPOSITOR_LIBS)                \
299         $(INPUT_BACKEND_LIBS)                   \
300         libsession-helper.la                    \
301         libshared.la
302 fbdev_backend_la_CFLAGS =                       \
303         $(COMPOSITOR_CFLAGS)                    \
304         $(EGL_CFLAGS)                           \
305         $(FBDEV_COMPOSITOR_CFLAGS)              \
306         $(PIXMAN_CFLAGS)                        \
307         $(GCC_CFLAGS)
308 fbdev_backend_la_SOURCES =                      \
309         src/compositor-fbdev.c                  \
310         $(INPUT_BACKEND_SOURCES)
311 endif
312
313 if ENABLE_RDP_COMPOSITOR
314 module_LTLIBRARIES += rdp-backend.la
315 rdp_backend_la_LDFLAGS = -module -avoid-version
316 rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
317         $(RDP_COMPOSITOR_LIBS) \
318         libshared.la
319 rdp_backend_la_CFLAGS =                         \
320         $(COMPOSITOR_CFLAGS)                    \
321         $(RDP_COMPOSITOR_CFLAGS)                \
322         $(GCC_CFLAGS)
323 rdp_backend_la_SOURCES = src/compositor-rdp.c
324 endif
325
326 if HAVE_LCMS
327 module_LTLIBRARIES += cms-static.la
328 cms_static_la_LDFLAGS = -module -avoid-version
329 cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
330 cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
331 cms_static_la_SOURCES =                         \
332         src/cms-static.c                                \
333         src/cms-helper.c                                \
334         src/cms-helper.h
335 if ENABLE_COLORD
336 module_LTLIBRARIES += cms-colord.la
337 cms_colord_la_LDFLAGS = -module -avoid-version
338 cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
339 cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
340 cms_colord_la_SOURCES =                         \
341         src/cms-colord.c                        \
342         src/cms-helper.c                        \
343         src/cms-helper.h
344 endif
345 endif
346
347 noinst_PROGRAMS += spring-tool
348 spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
349 spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
350 spring_tool_SOURCES =                           \
351         src/spring-tool.c                       \
352         src/animation.c                         \
353         shared/matrix.c                         \
354         shared/matrix.h                         \
355         src/compositor.h
356
357 if BUILD_CLIENTS
358
359 bin_PROGRAMS += weston-terminal weston-info
360
361 libexec_PROGRAMS +=                             \
362         weston-desktop-shell                    \
363         weston-screenshooter                    \
364         weston-keyboard                         \
365         weston-simple-im
366
367 if ENABLE_IVI_SHELL
368 libexec_PROGRAMS +=                             \
369         weston-ivi-shell-user-interface
370 endif
371
372 demo_clients =                                  \
373         weston-flower                           \
374         weston-image                            \
375         weston-cliptest                         \
376         weston-dnd                              \
377         weston-smoke                            \
378         weston-resizor                          \
379         weston-eventdemo                        \
380         weston-clickdot                         \
381         weston-transformed                      \
382         weston-fullscreen                       \
383         weston-stacking                         \
384         weston-calibrator                       \
385         weston-scaler
386
387 if INSTALL_DEMO_CLIENTS
388 bin_PROGRAMS += $(demo_clients)
389 else
390 noinst_PROGRAMS += $(demo_clients)
391 endif
392
393
394 if BUILD_SIMPLE_CLIENTS
395 demo_clients +=                                 \
396         weston-simple-shm                       \
397         weston-simple-damage                    \
398         weston-simple-touch                     \
399         weston-multi-resource
400
401 weston_simple_shm_SOURCES = clients/simple-shm.c
402 nodist_weston_simple_shm_SOURCES =              \
403         protocol/xdg-shell-protocol.c           \
404         protocol/xdg-shell-client-protocol.h    \
405         protocol/fullscreen-shell-protocol.c    \
406         protocol/fullscreen-shell-client-protocol.h
407 weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
408 weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
409
410 weston_simple_damage_SOURCES = clients/simple-damage.c
411 nodist_weston_simple_damage_SOURCES =           \
412         protocol/scaler-protocol.c              \
413         protocol/scaler-client-protocol.h       \
414         protocol/xdg-shell-protocol.c           \
415         protocol/xdg-shell-client-protocol.h    \
416         protocol/fullscreen-shell-protocol.c    \
417         protocol/fullscreen-shell-client-protocol.h
418 weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
419 weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
420
421 weston_simple_touch_SOURCES = clients/simple-touch.c
422 weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
423 weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
424
425 weston_multi_resource_SOURCES = clients/multi-resource.c
426 weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
427 weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
428 endif
429
430 if BUILD_SIMPLE_EGL_CLIENTS
431 demo_clients += weston-simple-egl
432 weston_simple_egl_SOURCES = clients/simple-egl.c
433 nodist_weston_simple_egl_SOURCES =              \
434         protocol/xdg-shell-protocol.c           \
435         protocol/xdg-shell-client-protocol.h
436 weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
437 weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
438 endif
439
440 noinst_LTLIBRARIES += libtoytoolkit.la
441
442 libtoytoolkit_la_SOURCES =                              \
443         clients/window.c                                \
444         clients/window.h
445
446 nodist_libtoytoolkit_la_SOURCES =                       \
447         protocol/text-cursor-position-protocol.c        \
448         protocol/text-cursor-position-client-protocol.h \
449         protocol/scaler-protocol.c                      \
450         protocol/scaler-client-protocol.h               \
451         protocol/workspaces-protocol.c                  \
452         protocol/workspaces-client-protocol.h           \
453         protocol/xdg-shell-protocol.c                   \
454         protocol/xdg-shell-client-protocol.h            \
455         protocol/ivi-application-protocol.c             \
456         protocol/ivi-application-client-protocol.h
457
458 BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
459
460
461 libtoytoolkit_la_LIBADD =                       \
462         $(CLIENT_LIBS)                          \
463         $(CAIRO_EGL_LIBS)                       \
464         libshared-cairo.la -lrt -lm
465 libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
466
467 weston_flower_SOURCES = clients/flower.c
468 weston_flower_LDADD = libtoytoolkit.la
469 weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
470
471 weston_screenshooter_SOURCES =                          \
472         clients/screenshot.c
473 nodist_weston_screenshooter_SOURCES =                   \
474         protocol/screenshooter-protocol.c               \
475         protocol/screenshooter-client-protocol.h
476 weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
477 weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
478
479 weston_terminal_SOURCES = clients/terminal.c
480 weston_terminal_LDADD = libtoytoolkit.la -lutil
481 weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
482
483 weston_image_SOURCES = clients/image.c
484 weston_image_LDADD = libtoytoolkit.la
485 weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
486
487 weston_cliptest_SOURCES =                               \
488         clients/cliptest.c                              \
489         src/vertex-clipping.c                           \
490         src/vertex-clipping.h
491 weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
492 weston_cliptest_LDADD = libtoytoolkit.la
493
494 weston_dnd_SOURCES = clients/dnd.c
495 weston_dnd_LDADD = libtoytoolkit.la
496 weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
497
498 weston_smoke_SOURCES = clients/smoke.c
499 weston_smoke_LDADD = libtoytoolkit.la
500 weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
501
502 weston_resizor_SOURCES = clients/resizor.c
503 weston_resizor_LDADD = libtoytoolkit.la
504 weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
505
506 weston_scaler_SOURCES = clients/scaler.c
507 weston_scaler_LDADD = libtoytoolkit.la
508 weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
509
510 if HAVE_CAIRO_GLESV2
511 demo_clients += weston-nested weston-nested-client
512
513 weston_nested_SOURCES = clients/nested.c
514 weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
515 weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
516
517 weston_nested_client_SOURCES = clients/nested-client.c
518 weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
519 weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
520 endif
521
522 weston_eventdemo_SOURCES = clients/eventdemo.c
523 weston_eventdemo_LDADD = libtoytoolkit.la
524 weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
525
526 weston_clickdot_SOURCES = clients/clickdot.c
527 weston_clickdot_LDADD = libtoytoolkit.la
528 weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
529
530 weston_transformed_SOURCES = clients/transformed.c
531 weston_transformed_LDADD = libtoytoolkit.la
532 weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
533
534 weston_fullscreen_SOURCES = clients/fullscreen.c
535 nodist_weston_fullscreen_SOURCES =                      \
536         protocol/fullscreen-shell-protocol.c            \
537         protocol/fullscreen-shell-client-protocol.h
538 weston_fullscreen_LDADD = libtoytoolkit.la
539 weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
540
541 weston_stacking_SOURCES = clients/stacking.c
542 weston_stacking_LDADD = libtoytoolkit.la
543 weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
544
545 weston_calibrator_SOURCES = clients/calibrator.c        \
546         shared/matrix.c                                 \
547         shared/matrix.h
548 weston_calibrator_LDADD = libtoytoolkit.la
549 weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
550
551 if BUILD_SUBSURFACES_CLIENT
552 demo_clients += weston-subsurfaces
553 weston_subsurfaces_SOURCES = clients/subsurfaces.c
554 weston_subsurfaces_CFLAGS =                     \
555         $(AM_CFLAGS)                            \
556         $(SIMPLE_EGL_CLIENT_CFLAGS)             \
557         $(CLIENT_CFLAGS)
558 weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
559 endif
560
561 if HAVE_PANGO
562 demo_clients += weston-editor
563 weston_editor_SOURCES = clients/editor.c
564 nodist_weston_editor_SOURCES =                  \
565         protocol/text-protocol.c                \
566         protocol/text-client-protocol.h
567 weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
568 weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
569 endif
570
571 weston_keyboard_SOURCES = clients/keyboard.c
572 nodist_weston_keyboard_SOURCES =                        \
573         protocol/desktop-shell-client-protocol.h        \
574         protocol/desktop-shell-protocol.c               \
575         protocol/input-method-protocol.c                \
576         protocol/input-method-client-protocol.h
577 weston_keyboard_LDADD = libtoytoolkit.la
578 weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
579
580 weston_simple_im_SOURCES = clients/weston-simple-im.c
581 nodist_weston_simple_im_SOURCES =               \
582         protocol/input-method-protocol.c        \
583         protocol/input-method-client-protocol.h
584 weston_simple_im_LDADD = $(CLIENT_LIBS)
585 weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
586
587 weston_info_SOURCES = clients/weston-info.c
588 weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
589 weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
590
591 weston_desktop_shell_SOURCES = clients/desktop-shell.c
592 nodist_weston_desktop_shell_SOURCES =                   \
593         protocol/desktop-shell-client-protocol.h        \
594         protocol/desktop-shell-protocol.c
595 weston_desktop_shell_LDADD = libtoytoolkit.la
596 weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
597
598 if ENABLE_IVI_SHELL
599 weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
600 nodist_weston_ivi_shell_user_interface_SOURCES =                        \
601         protocol/ivi-hmi-controller-client-protocol.h                   \
602         protocol/ivi-hmi-controller-protocol.c                          \
603         protocol/ivi-application-client-protocol.h                      \
604         protocol/ivi-application-protocol.c
605 weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
606 weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
607 endif
608
609 if BUILD_FULL_GL_CLIENTS
610 demo_clients += weston-gears
611 weston_gears_SOURCES = clients/gears.c
612 weston_gears_LDADD = libtoytoolkit.la
613 weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
614
615 if HAVE_GLU
616 libexec_PROGRAMS += weston-screensaver
617 weston_screensaver_SOURCES =                            \
618         clients/wscreensaver.c                          \
619         clients/wscreensaver.h                          \
620         clients/wscreensaver-glue.c                     \
621         clients/wscreensaver-glue.h                     \
622         clients/glmatrix.c                              \
623         clients/matrix3.xpm
624 nodist_weston_screensaver_SOURCES =                     \
625         protocol/desktop-shell-client-protocol.h        \
626         protocol/desktop-shell-protocol.c
627
628 weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
629 weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
630
631 endif
632
633 endif
634
635 endif
636
637 BUILT_SOURCES +=                                        \
638         protocol/screenshooter-protocol.c               \
639         protocol/screenshooter-client-protocol.h        \
640         protocol/text-cursor-position-client-protocol.h \
641         protocol/text-cursor-position-protocol.c        \
642         protocol/text-protocol.c                        \
643         protocol/text-client-protocol.h                 \
644         protocol/input-method-protocol.c                \
645         protocol/input-method-client-protocol.h         \
646         protocol/desktop-shell-client-protocol.h        \
647         protocol/desktop-shell-protocol.c               \
648         protocol/scaler-client-protocol.h               \
649         protocol/scaler-protocol.c                      \
650         protocol/workspaces-client-protocol.h           \
651         protocol/workspaces-protocol.c                  \
652         protocol/fullscreen-shell-protocol.c            \
653         protocol/fullscreen-shell-client-protocol.h     \
654         protocol/xdg-shell-protocol.c                   \
655         protocol/xdg-shell-client-protocol.h            \
656         protocol/ivi-hmi-controller-protocol.c          \
657         protocol/ivi-hmi-controller-client-protocol.h   \
658         protocol/ivi-application-protocol.c             \
659         protocol/ivi-application-client-protocol.h
660
661 westondatadir = $(datadir)/weston
662 dist_westondata_DATA =                          \
663         data/wayland.svg                        \
664         data/wayland.png                        \
665         data/pattern.png                        \
666         data/terminal.png                       \
667         data/border.png                         \
668         data/icon_window.png                    \
669         data/sign_close.png                     \
670         data/sign_maximize.png                  \
671         data/sign_minimize.png                  \
672         data/background.png                     \
673         data/tiling.png                         \
674         data/fullscreen.png                     \
675         data/panel.png                          \
676         data/random.png                         \
677         data/sidebyside.png                     \
678         data/home.png                           \
679         data/icon_ivi_clickdot.png              \
680         data/icon_ivi_flower.png                \
681         data/icon_ivi_simple-egl.png            \
682         data/icon_ivi_simple-shm.png            \
683         data/icon_ivi_smoke.png
684
685
686 if BUILD_WCAP_TOOLS
687 bin_PROGRAMS += wcap-decode
688
689 wcap_decode_SOURCES =                           \
690         wcap/main.c                             \
691         wcap/wcap-decode.c                      \
692         wcap/wcap-decode.h
693
694 wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
695 wcap_decode_LDADD = $(WCAP_LIBS)
696 endif
697
698
699 if ENABLE_DESKTOP_SHELL
700
701 module_LTLIBRARIES += desktop-shell.la
702
703 desktop_shell_la_CPPFLAGS =                     \
704         -I$(top_builddir)/protocol              \
705         -I$(top_srcdir)/shared                  \
706         -I$(top_srcdir)/src                     \
707         -I$(top_builddir)/src                   \
708         -I$(top_builddir)/desktop-shell         \
709         -DDATADIR='"$(datadir)"'                \
710         -DMODULEDIR='"$(moduledir)"'            \
711         -DLIBEXECDIR='"$(libexecdir)"'          \
712         -DIN_WESTON
713
714 desktop_shell_la_LDFLAGS = -module -avoid-version
715 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
716 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
717 desktop_shell_la_SOURCES =                              \
718         desktop-shell/shell.h                           \
719         desktop-shell/shell.c                           \
720         desktop-shell/exposay.c                         \
721         desktop-shell/input-panel.c
722 nodist_desktop_shell_la_SOURCES =                       \
723         protocol/desktop-shell-protocol.c               \
724         protocol/desktop-shell-server-protocol.h        \
725         protocol/xdg-shell-protocol.c                   \
726         protocol/xdg-shell-server-protocol.h
727
728 BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
729 endif
730
731 if ENABLE_FULLSCREEN_SHELL
732
733 module_LTLIBRARIES += fullscreen-shell.la
734
735 fullscreen_shell_la_CPPFLAGS =                  \
736         -I$(top_builddir)/protocol              \
737         -I$(top_srcdir)/shared                  \
738         -I$(top_srcdir)/src                     \
739         -I$(top_builddir)/src                   \
740         -DIN_WESTON
741
742 fullscreen_shell_la_LDFLAGS = -module -avoid-version
743 fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
744 fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
745 fullscreen_shell_la_SOURCES =                   \
746         fullscreen-shell/fullscreen-shell.c
747 nodist_fullscreen_shell_la_SOURCES =                    \
748         protocol/fullscreen-shell-protocol.c            \
749         protocol/fullscreen-shell-server-protocol.h
750
751 BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
752 endif
753
754 if ENABLE_IVI_SHELL
755
756 module_LTLIBRARIES +=                           \
757         $(ivi_layout)                           \
758         $(ivi_shell)                            \
759         $(hmi_controller)
760
761 ivi_layout = ivi-layout.la
762 ivi_layout_la_LDFLAGS = -module -avoid-version
763 ivi_layout_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
764 ivi_layout_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
765 ivi_layout_la_SOURCES =                         \
766         ivi-shell/ivi-layout-export.h           \
767         ivi-shell/ivi-layout-private.h          \
768         ivi-shell/ivi-layout.c                  \
769         ivi-shell/ivi-layout-transition.c
770
771 ivi_shell = ivi-shell.la
772 ivi_shell_la_LDFLAGS = -module -avoid-version
773 ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
774 ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
775 ivi_shell_la_SOURCES =                          \
776         ivi-shell/ivi-shell.h                   \
777         ivi-shell/ivi-shell.c                   \
778         ivi-shell/ivi-layout-private.h
779 nodist_ivi_shell_la_SOURCES =                   \
780         protocol/ivi-application-protocol.c             \
781         protocol/ivi-application-server-protocol.h
782
783 BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
784
785 hmi_controller = hmi-controller.la
786 hmi_controller_la_LDFLAGS = -module -avoid-version
787 hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
788 hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
789 hmi_controller_la_SOURCES =                             \
790         ivi-shell/ivi-layout-export.h                   \
791         ivi-shell/hmi-controller.c
792 nodist_hmi_controller_la_SOURCES =                      \
793         protocol/ivi-hmi-controller-protocol.c          \
794         protocol/ivi-hmi-controller-server-protocol.h
795
796 BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
797
798 endif
799
800
801 if ENABLE_SCREEN_SHARING
802
803 module_LTLIBRARIES += screen-share.la
804
805 screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
806 screen_share_la_LDFLAGS = -module -avoid-version
807 screen_share_la_LIBADD =                        \
808         $(COMPOSITOR_LIBS)                      \
809         $(SCREEN_SHARE_LIBS)                    \
810         libshared-cairo.la
811 screen_share_la_CFLAGS =                        \
812         $(COMPOSITOR_CFLAGS)                    \
813         $(SCREEN_SHARE_CFLAGS)                  \
814         $(GCC_CFLAGS)
815 screen_share_la_SOURCES =                       \
816         src/screen-share.c
817 nodist_screen_share_la_SOURCES =                        \
818         protocol/fullscreen-shell-protocol.c            \
819         protocol/fullscreen-shell-client-protocol.h
820
821 endif
822
823 if ENABLE_XWAYLAND
824
825 module_LTLIBRARIES += xwayland.la
826
827 xwayland_la_CPPFLAGS =                          \
828         -I$(top_builddir)/protocol              \
829         -I$(top_srcdir)/shared                  \
830         -I$(top_srcdir)/src                     \
831         -I$(top_builddir)/src                   \
832         -I$(top_builddir)/xwayland              \
833         -DDATADIR='"$(datadir)"'                \
834         -DMODULEDIR='"$(moduledir)"'            \
835         -DLIBEXECDIR='"$(libexecdir)"'          \
836         -DXSERVER_PATH='"@XSERVER_PATH@"'
837
838 xwayland_la_LDFLAGS = -module -avoid-version
839 xwayland_la_LIBADD =                    \
840         $(XWAYLAND_LIBS)                \
841         $(top_builddir)/libshared-cairo.la
842 xwayland_la_CFLAGS =                            \
843         $(GCC_CFLAGS)                           \
844         $(COMPOSITOR_CFLAGS)                    \
845         $(PIXMAN_CFLAGS)                        \
846         $(CAIRO_CFLAGS)
847 xwayland_la_SOURCES =                           \
848         xwayland/xwayland.h                     \
849         xwayland/window-manager.c               \
850         xwayland/selection.c                    \
851         xwayland/dnd.c                          \
852         xwayland/launcher.c                     \
853         xwayland/hash.c                         \
854         xwayland/hash.h
855 endif
856
857
858 #
859 # Shared utilities
860 #
861
862 noinst_LTLIBRARIES += libshared.la libshared-cairo.la
863
864 libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
865
866 libshared_la_SOURCES =                          \
867         shared/config-parser.c                  \
868         shared/option-parser.c                  \
869         shared/config-parser.h                  \
870         shared/str-util.c                       \
871         shared/str-util.h                       \
872         shared/os-compatibility.c               \
873         shared/os-compatibility.h
874
875 libshared_cairo_la_CFLAGS =                     \
876         -DDATADIR='"$(datadir)"'                \
877         $(GCC_CFLAGS)                           \
878         $(COMPOSITOR_CFLAGS)                    \
879         $(PIXMAN_CFLAGS)                        \
880         $(CAIRO_CFLAGS)                         \
881         $(PNG_CFLAGS)                           \
882         $(WEBP_CFLAGS)
883
884 libshared_cairo_la_LIBADD =                     \
885         $(PIXMAN_LIBS)                          \
886         $(CAIRO_LIBS)                           \
887         $(PNG_LIBS)                             \
888         $(WEBP_LIBS)                            \
889         $(JPEG_LIBS)
890
891 libshared_cairo_la_SOURCES =                    \
892         $(libshared_la_SOURCES)                 \
893         shared/image-loader.c                   \
894         shared/image-loader.h                   \
895         shared/cairo-util.c                     \
896         shared/frame.c                          \
897         shared/cairo-util.h
898
899
900 #
901 # tests subdirectory
902 #
903
904 TESTS = $(shared_tests) $(module_tests) $(weston_tests)
905
906 shared_tests =                                  \
907         config-parser.test                      \
908         strutil.test                            \
909         vertex-clip.test
910
911 module_tests =                                  \
912         surface-test.la                         \
913         surface-global-test.la
914
915 weston_tests =                                  \
916         bad_buffer.weston                       \
917         keyboard.weston                         \
918         event.weston                            \
919         button.weston                           \
920         text.weston                             \
921         subsurface.weston
922
923
924 AM_TESTS_ENVIRONMENT = \
925         abs_builddir='$(abs_builddir)'; export abs_builddir;
926
927 TEST_EXTENSIONS = .la .weston
928 LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
929 WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
930
931 clean-local:
932         -rm -rf logs
933
934 # To remove when automake 1.11 support is dropped
935 export abs_builddir
936
937 noinst_LTLIBRARIES +=                   \
938         weston-test.la                  \
939         $(module_tests)                 \
940         libtest-runner.la               \
941         libtest-client.la
942
943 noinst_PROGRAMS +=                      \
944         $(setbacklight)                 \
945         $(shared_tests)                 \
946         $(weston_tests)                 \
947         matrix-test
948
949 test_module_ldflags = \
950         -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
951
952 surface_global_test_la_SOURCES = tests/surface-global-test.c
953 surface_global_test_la_LDFLAGS = $(test_module_ldflags)
954 surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
955
956 surface_test_la_SOURCES = tests/surface-test.c
957 surface_test_la_LDFLAGS = $(test_module_ldflags)
958 surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
959
960 weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
961 weston_test_la_LDFLAGS = $(test_module_ldflags)
962 weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
963 weston_test_la_SOURCES = tests/weston-test.c
964 nodist_weston_test_la_SOURCES =                 \
965         protocol/wayland-test-protocol.c        \
966         protocol/wayland-test-server-protocol.h
967
968 if ENABLE_EGL
969 weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
970 weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
971 endif
972
973 libtest_runner_la_SOURCES =                     \
974         tests/weston-test-runner.c              \
975         tests/weston-test-runner.h
976 libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
977
978 config_parser_test_SOURCES = tests/config-parser-test.c
979 config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
980
981 strutil_test_SOURCES = tests/strutil-test.c
982 strutil_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
983
984 vertex_clip_test_SOURCES =                      \
985         tests/vertex-clip-test.c                \
986         src/vertex-clipping.c                   \
987         src/vertex-clipping.h
988 vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
989
990 libtest_client_la_SOURCES =                     \
991         tests/weston-test-client-helper.c       \
992         tests/weston-test-client-helper.h
993 nodist_libtest_client_la_SOURCES =              \
994         protocol/wayland-test-protocol.c        \
995         protocol/wayland-test-client-protocol.h
996 libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
997 libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
998
999 bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
1000 bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1001 bad_buffer_weston_LDADD = libtest-client.la
1002
1003 keyboard_weston_SOURCES = tests/keyboard-test.c
1004 keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1005 keyboard_weston_LDADD = libtest-client.la
1006
1007 event_weston_SOURCES = tests/event-test.c
1008 event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1009 event_weston_LDADD = libtest-client.la
1010
1011 button_weston_SOURCES = tests/button-test.c
1012 button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1013 button_weston_LDADD = libtest-client.la
1014
1015 text_weston_SOURCES = tests/text-test.c
1016 nodist_text_weston_SOURCES =                    \
1017         protocol/text-protocol.c                \
1018         protocol/text-client-protocol.h
1019 text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1020 text_weston_LDADD = libtest-client.la
1021
1022 subsurface_weston_SOURCES = tests/subsurface-test.c
1023 subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1024 subsurface_weston_LDADD = libtest-client.la
1025
1026 if ENABLE_EGL
1027 weston_tests += buffer-count.weston
1028 buffer_count_weston_SOURCES = tests/buffer-count-test.c
1029 buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1030 buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1031 endif
1032
1033 if ENABLE_XWAYLAND_TEST
1034 weston_tests += xwayland-test.weston
1035 xwayland_test_weston_SOURCES = tests/xwayland-test.c
1036 xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1037 xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
1038 endif
1039
1040 matrix_test_SOURCES =                           \
1041         tests/matrix-test.c                     \
1042         shared/matrix.c                         \
1043         shared/matrix.h
1044 matrix_test_CPPFLAGS = -DUNIT_TEST
1045 matrix_test_LDADD = -lm -lrt
1046
1047 if BUILD_SETBACKLIGHT
1048 noinst_PROGRAMS += setbacklight
1049 setbacklight_SOURCES =                  \
1050         tests/setbacklight.c            \
1051         shared/str-util.c               \
1052         shared/str-util.h               \
1053         src/libbacklight.c              \
1054         src/libbacklight.h
1055 setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1056 setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1057 endif
1058
1059 EXTRA_DIST += tests/weston-tests-env
1060
1061 BUILT_SOURCES +=                                \
1062         protocol/wayland-test-protocol.c        \
1063         protocol/wayland-test-server-protocol.h \
1064         protocol/wayland-test-client-protocol.h \
1065         protocol/text-protocol.c                \
1066         protocol/text-client-protocol.h
1067
1068 EXTRA_DIST +=                                   \
1069         protocol/desktop-shell.xml              \
1070         protocol/screenshooter.xml              \
1071         protocol/text.xml                       \
1072         protocol/input-method.xml               \
1073         protocol/workspaces.xml                 \
1074         protocol/text-cursor-position.xml       \
1075         protocol/wayland-test.xml               \
1076         protocol/xdg-shell.xml                  \
1077         protocol/fullscreen-shell.xml           \
1078         protocol/scaler.xml                     \
1079         protocol/ivi-application.xml            \
1080         protocol/ivi-hmi-controller.xml
1081
1082 man_MANS = weston.1 weston.ini.5
1083
1084 if ENABLE_DRM_COMPOSITOR
1085 man_MANS += weston-drm.7
1086 endif
1087
1088 MAN_SUBSTS =                                                            \
1089         -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g'     \
1090         -e 's|__weston_modules_dir__|$(pkglibdir)|g'                    \
1091         -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g'         \
1092         -e 's|__version__|$(PACKAGE_VERSION)|g'
1093
1094 SUFFIXES = .1 .5 .7 .man
1095
1096 %.1 %.5 %.7 : man/%.man
1097         $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1098
1099 EXTRA_DIST +=                                   \
1100         man/weston.man                          \
1101         man/weston-drm.man                      \
1102         man/weston.ini.man
1103
1104 CLEANFILES += $(man_MANS)
1105
1106
1107 protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1108         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
1109
1110 protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1111         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
1112
1113 protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1114         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@