Makefile.am 48.4 KB
Newer Older
1 2
ACLOCAL_AMFLAGS = -I m4

3
bin_PROGRAMS =
4
noinst_PROGRAMS =
5
libexec_PROGRAMS =
6 7
moduledir = $(libdir)/weston
module_LTLIBRARIES =
8
libweston_moduledir = $(libdir)/libweston-$(LIBWESTON_MAJOR)
9
libweston_module_LTLIBRARIES =
10
noinst_LTLIBRARIES =
11
BUILT_SOURCES =
12

13
AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
14

15
EXTRA_DIST = weston.ini.in ivi-shell/weston.ini.in
16 17 18 19 20 21 22 23

weston.ini : $(srcdir)/weston.ini.in
	$(AM_V_GEN)$(SED) \
		-e 's|@bindir[@]|$(bindir)|g' \
		-e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
		-e 's|@libexecdir[@]|$(libexecdir)|g' \
		$< > $@

24
ivi-shell/weston.ini : $(srcdir)/ivi-shell/weston.ini.in
25
	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
26 27
		-e 's|@bindir[@]|$(bindir)|g' \
		-e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
28
		-e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
29
		-e 's|@libexecdir[@]|$(libexecdir)|g' \
30 31 32 33
		-e 's|@plugin_prefix[@]||g' \
		$< > $@

tests/weston-ivi.ini : $(srcdir)/ivi-shell/weston.ini.in
34
	$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
35 36
		-e 's|@bindir[@]|$(bindir)|g' \
		-e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
37
		-e 's|@abs_top_srcdir[@]|$(abs_top_srcdir)|g' \
38
		-e 's|@libexecdir[@]|$(abs_builddir)|g' \
39
		-e 's|@plugin_prefix[@]|$(abs_top_builddir)/.libs/|g' \
40 41 42
		$< > $@

all-local : weston.ini ivi-shell/weston.ini
43

44 45
AM_CFLAGS = $(GCC_CFLAGS)

46
AM_CPPFLAGS = 					\
Pekka Paalanen's avatar
Pekka Paalanen committed
47
	-I$(top_builddir)/libweston		\
48
	-I$(top_srcdir)/libweston		\
49
	-I$(top_builddir)/clients		\
50
	-I$(top_builddir)/tests			\
51
	-I$(top_srcdir)/shared			\
52
	-I$(top_builddir)/protocol		\
53
	-DDATADIR='"$(datadir)"'		\
54
	-DLIBWESTON_MODULEDIR='"$(libweston_moduledir)"' \
55 56
	-DLIBEXECDIR='"$(libexecdir)"'		\
	-DBINDIR='"$(bindir)"'
57

58 59 60
CLEANFILES = weston.ini				\
	ivi-shell/weston.ini			\
	tests/weston-ivi.ini			\
61
	internal-screenshot-00.png		\
62
	$(BUILT_SOURCES)
63

64 65 66 67 68 69 70 71
# Libtool race fix
# libweston-desktop depends on libweston, and desktop-shell depends on both.
# This leads to a libtool race at installation, because libtool re-links
# everything.
# If you add more fixes, you may need a workaround to keep automake generated
# targets. See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7328
install-libweston_moduleLTLIBRARIES install-moduleLTLIBRARIES: install-libLTLIBRARIES

72 73
lib_LTLIBRARIES = libweston-@LIBWESTON_MAJOR@.la
libweston_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
74
libweston_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) \
75
	$(COMPOSITOR_CFLAGS) $(EGL_CFLAGS) $(LIBUNWIND_CFLAGS) $(LIBDRM_CFLAGS)
76
libweston_@LIBWESTON_MAJOR@_la_LIBADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
77
	$(DL_LIBS) -lm $(CLOCK_GETTIME_LIBS) \
78
	$(LIBINPUT_BACKEND_LIBS) libshared.la
79
libweston_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
80

81
libweston_@LIBWESTON_MAJOR@_la_SOURCES =			\
Pekka Paalanen's avatar
Pekka Paalanen committed
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
	libweston/git-version.h				\
	libweston/log.c					\
	libweston/compositor.c				\
	libweston/compositor.h				\
	libweston/compositor-drm.h			\
	libweston/compositor-fbdev.h			\
	libweston/compositor-headless.h			\
	libweston/compositor-rdp.h			\
	libweston/compositor-wayland.h			\
	libweston/compositor-x11.h			\
	libweston/input.c				\
	libweston/data-device.c				\
	libweston/screenshooter.c			\
	libweston/clipboard.c				\
	libweston/zoom.c				\
	libweston/bindings.c				\
	libweston/animation.c				\
	libweston/noop-renderer.c			\
	libweston/pixman-renderer.c			\
	libweston/pixman-renderer.h			\
102 103
	libweston/plugin-registry.c				\
	libweston/plugin-registry.h				\
Pekka Paalanen's avatar
Pekka Paalanen committed
104 105 106 107 108
	libweston/timeline.c				\
	libweston/timeline.h				\
	libweston/timeline-object.h			\
	libweston/linux-dmabuf.c			\
	libweston/linux-dmabuf.h			\
109 110
	libweston/pixel-formats.c			\
	libweston/pixel-formats.h			\
111
	shared/helpers.h				\
112 113
	shared/matrix.c					\
	shared/matrix.h					\
114
	shared/timespec-util.h				\
115
	shared/zalloc.h					\
116
	shared/platform.h				\
117
	shared/weston-egl-ext.h
118

Quentin Glidic's avatar
Quentin Glidic committed
119 120 121
lib_LTLIBRARIES += libweston-desktop-@LIBWESTON_MAJOR@.la
libweston_desktop_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
libweston_desktop_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
122 123 124
libweston_desktop_@LIBWESTON_MAJOR@_la_LIBADD =		\
	libweston-@LIBWESTON_MAJOR@.la			\
	$(COMPOSITOR_LIBS)
Quentin Glidic's avatar
Quentin Glidic committed
125 126 127 128 129 130 131 132 133 134
libweston_desktop_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)

libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES =	\
	libweston-desktop/client.c			\
	libweston-desktop/internal.h			\
	libweston-desktop/libweston-desktop.c		\
	libweston-desktop/libweston-desktop.h		\
	libweston-desktop/seat.c			\
	libweston-desktop/surface.c			\
	libweston-desktop/wl-shell.c			\
135
	libweston-desktop/xdg-shell-v6.c		\
Quentin Glidic's avatar
Quentin Glidic committed
136 137 138 139
	libweston-desktop/xdg-shell-v5.c		\
	libweston-desktop/xwayland.c

nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES =		\
140 141
	protocol/xdg-shell-unstable-v6-protocol.c		\
	protocol/xdg-shell-unstable-v6-server-protocol.h	\
Quentin Glidic's avatar
Quentin Glidic committed
142 143 144
	protocol/xdg-shell-unstable-v5-protocol.c		\
	protocol/xdg-shell-unstable-v5-server-protocol.h

145 146
BUILT_SOURCES += $(nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES)

147
libweston-desktop-@LIBWESTON_MAJOR@.la libweston-desktop/libweston_desktop_@LIBWESTON_MAJOR@_la-xdg-shell-v6.lo: protocol/xdg-shell-unstable-v6-server-protocol.h
Quentin Glidic's avatar
Quentin Glidic committed
148 149
libweston-desktop-@LIBWESTON_MAJOR@.la libweston-desktop/libweston_desktop_@LIBWESTON_MAJOR@_la-xdg-shell-v5.lo: protocol/xdg-shell-unstable-v5-server-protocol.h

150 151 152
if SYSTEMD_NOTIFY_SUPPORT
module_LTLIBRARIES += systemd-notify.la
systemd_notify_la_LDFLAGS = -module -avoid-version
153
systemd_notify_la_LIBADD = libweston-@LIBWESTON_MAJOR@.la $(SYSTEMD_DAEMON_LIBS)
154
systemd_notify_la_CFLAGS =			\
155 156
	$(COMPOSITOR_CFLAGS)			\
	$(SYSTEMD_DAEMON_CFLAGS)		\
157 158 159
	$(PIXMAN_CFLAGS)			\
	$(AM_CFLAGS)
systemd_notify_la_SOURCES =			\
160
	compositor/systemd-notify.c		\
161 162
	shared/helpers.h			\
	shared/zalloc.h				\
Pekka Paalanen's avatar
Pekka Paalanen committed
163
	libweston/compositor.h
164
endif
165

166
nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES =				\
167 168
	protocol/weston-screenshooter-protocol.c			\
	protocol/weston-screenshooter-server-protocol.h			\
169 170
	protocol/text-cursor-position-protocol.c	\
	protocol/text-cursor-position-server-protocol.h	\
171 172
	protocol/text-input-unstable-v1-protocol.c			\
	protocol/text-input-unstable-v1-server-protocol.h		\
173 174
	protocol/input-method-unstable-v1-protocol.c			\
	protocol/input-method-unstable-v1-server-protocol.h		\
175 176
	protocol/presentation-time-protocol.c		\
	protocol/presentation-time-server-protocol.h	\
177 178
	protocol/viewporter-protocol.c			\
	protocol/viewporter-server-protocol.h		\
179
	protocol/linux-dmabuf-unstable-v1-protocol.c	\
180 181
	protocol/linux-dmabuf-unstable-v1-server-protocol.h		\
	protocol/relative-pointer-unstable-v1-protocol.c		\
182 183
	protocol/relative-pointer-unstable-v1-server-protocol.h		\
	protocol/pointer-constraints-unstable-v1-protocol.c		\
184
	protocol/pointer-constraints-unstable-v1-server-protocol.h
185

186
BUILT_SOURCES += $(nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES)
Giulio Camuffo's avatar
Giulio Camuffo committed
187 188 189 190 191

bin_PROGRAMS += weston

weston_LDFLAGS = -export-dynamic
weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON 		\
192 193
				 -DMODULEDIR='"$(moduledir)"' \
				 -DXSERVER_PATH='"@XSERVER_PATH@"'
Giulio Camuffo's avatar
Giulio Camuffo committed
194
weston_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
195 196
weston_LDADD = libshared.la libweston-@LIBWESTON_MAJOR@.la \
	$(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
197
	$(DL_LIBS) $(LIBINPUT_BACKEND_LIBS) \
198
	$(CLOCK_GETRES_LIBS) \
199
	-lm
Giulio Camuffo's avatar
Giulio Camuffo committed
200 201

weston_SOURCES = 					\
202 203
	compositor/main.c				\
	compositor/weston-screenshooter.c		\
204 205
	compositor/text-backend.c			\
	compositor/xwayland.c
206

207 208 209 210
# Track this dependency explicitly instead of using BUILT_SOURCES.  We
# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
# in case we're building from tarballs.

211
compositor/main.c : $(top_builddir)/libweston/git-version.h
Pekka Paalanen's avatar
Pekka Paalanen committed
212
libweston/compositor.c : $(top_builddir)/libweston/git-version.h
213

214 215 216 217
noinst_LTLIBRARIES +=				\
	libsession-helper.la

libsession_helper_la_SOURCES =			\
Pekka Paalanen's avatar
Pekka Paalanen committed
218 219 220 221 222 223
	libweston/launcher-util.c		\
	libweston/launcher-util.h		\
	libweston/launcher-impl.h		\
	libweston/weston-launch.h		\
	libweston/launcher-weston-launch.c	\
	libweston/launcher-direct.c
224
libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
225 226 227 228 229
libsession_helper_la_LIBADD = libweston-@LIBWESTON_MAJOR@.la

if ENABLE_DRM_COMPOSITOR
libsession_helper_la_LIBADD += $(LIBDRM_LIBS)
endif
230 231 232 233

if ENABLE_DBUS
if HAVE_SYSTEMD_LOGIN
libsession_helper_la_SOURCES +=			\
Pekka Paalanen's avatar
Pekka Paalanen committed
234 235 236
	libweston/dbus.h			\
	libweston/dbus.c			\
	libweston/launcher-logind.c
237 238 239 240 241
libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
endif
endif

242
if HAVE_GIT_REPO
Pekka Paalanen's avatar
Pekka Paalanen committed
243
libweston/git-version.h : $(top_srcdir)/.git/logs/HEAD
244
	$(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)')\"" > $@
245
else
Pekka Paalanen's avatar
Pekka Paalanen committed
246
libweston/git-version.h :
247 248
	$(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@

249
endif
250 251 252 253 254

.FORCE :

if BUILD_WESTON_LAUNCH
bin_PROGRAMS += weston-launch
Pekka Paalanen's avatar
Pekka Paalanen committed
255
weston_launch_SOURCES = libweston/weston-launch.c libweston/weston-launch.h
256 257
weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
weston_launch_CFLAGS=				\
258
	$(AM_CFLAGS)				\
259 260 261
	$(PAM_CFLAGS)				\
	$(SYSTEMD_LOGIN_CFLAGS)			\
	$(LIBDRM_CFLAGS)
262 263 264 265 266
weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS)

if ENABLE_DRM_COMPOSITOR
weston_launch_LDADD += $(LIBDRM_LIBS)
endif
267 268 269

if ENABLE_SETUID_INSTALL
install-exec-hook:
270 271 272 273
	can_suid_files=no; \
	chown root $(DESTDIR)$(bindir)/weston-launch \
		&& chmod u+s $(DESTDIR)$(bindir)/weston-launch \
		&& can_suid_files=yes;\
Derek Foreman's avatar
Derek Foreman committed
274
	if test $$can_suid_files = no; then \
275 276 277 278
		echo 'Error: unable to unable to change ownership/setuid on weston-launch.'; \
		echo 'To skip this step, re-run ./configure using --disable-setuid-install'; \
		false; \
	fi
279 280 281 282 283
endif

endif # BUILD_WESTON_LAUNCH

pkgconfigdir = $(libdir)/pkgconfig
Quentin Glidic's avatar
Quentin Glidic committed
284 285 286 287
pkgconfig_DATA = \
	libweston/libweston-${LIBWESTON_MAJOR}.pc \
	libweston-desktop/libweston-desktop-${LIBWESTON_MAJOR}.pc \
	compositor/weston.pc
288

289
wayland_sessiondir = $(datadir)/wayland-sessions
290
dist_wayland_session_DATA = compositor/weston.desktop
291

292
libwestonincludedir = $(includedir)/libweston-${LIBWESTON_MAJOR}
Pekka Paalanen's avatar
Pekka Paalanen committed
293 294 295 296 297 298 299 300 301
libwestoninclude_HEADERS =			\
	libweston/version.h			\
	libweston/compositor.h			\
	libweston/compositor-drm.h		\
	libweston/compositor-fbdev.h		\
	libweston/compositor-headless.h		\
	libweston/compositor-rdp.h		\
	libweston/compositor-wayland.h		\
	libweston/compositor-x11.h		\
302
	libweston/windowed-output-api.h		\
303
	libweston/plugin-registry.h		\
Pekka Paalanen's avatar
Pekka Paalanen committed
304
	libweston/timeline-object.h		\
305 306
	shared/matrix.h				\
	shared/config-parser.h			\
307
	shared/zalloc.h
308

Quentin Glidic's avatar
Quentin Glidic committed
309 310 311
libwestoninclude_HEADERS +=			\
	libweston-desktop/libweston-desktop.h

312
westonincludedir = $(includedir)/weston
313
westoninclude_HEADERS = compositor/weston.h
314

315 316 317 318 319
if ENABLE_IVI_SHELL
westoninclude_HEADERS +=				\
	ivi-shell/ivi-layout-export.h
endif

320
if ENABLE_EGL
321
libweston_module_LTLIBRARIES += gl-renderer.la
322
gl_renderer_la_LDFLAGS = -module -avoid-version
323 324 325 326
gl_renderer_la_LIBADD =				\
	libweston-@LIBWESTON_MAJOR@.la		\
	$(EGL_LIBS)				\
	$(COMPOSITOR_LIBS)
327 328 329
gl_renderer_la_CFLAGS =				\
	$(COMPOSITOR_CFLAGS)			\
	$(EGL_CFLAGS)				\
330
	$(LIBDRM_CFLAGS)			\
331
	$(AM_CFLAGS)
332
gl_renderer_la_SOURCES =			\
Pekka Paalanen's avatar
Pekka Paalanen committed
333 334 335 336
	libweston/gl-renderer.h			\
	libweston/gl-renderer.c			\
	libweston/vertex-clipping.c		\
	libweston/vertex-clipping.h		\
337
	shared/helpers.h
338 339 340
endif

if ENABLE_X11_COMPOSITOR
341
libweston_module_LTLIBRARIES += x11-backend.la
342
x11_backend_la_LDFLAGS = -module -avoid-version
343 344 345 346 347
x11_backend_la_LIBADD =				\
	libshared-cairo.la			\
	libweston-@LIBWESTON_MAJOR@.la		\
	$(X11_COMPOSITOR_LIBS)			\
	$(COMPOSITOR_LIBS)
348
x11_backend_la_CFLAGS =				\
349
	$(AM_CFLAGS)				\
350 351 352 353
	$(COMPOSITOR_CFLAGS)			\
	$(EGL_CFLAGS)				\
	$(PIXMAN_CFLAGS)			\
	$(CAIRO_CFLAGS)				\
354
	$(X11_COMPOSITOR_CFLAGS)
355
x11_backend_la_SOURCES = 			\
Pekka Paalanen's avatar
Pekka Paalanen committed
356 357
	libweston/compositor-x11.c		\
	libweston/compositor-x11.h		\
358
	shared/helpers.h
359 360
endif

361
INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
362
INPUT_BACKEND_SOURCES =				\
Pekka Paalanen's avatar
Pekka Paalanen committed
363 364 365 366
	libweston/libinput-seat.c		\
	libweston/libinput-seat.h		\
	libweston/libinput-device.c		\
	libweston/libinput-device.h		\
367
	shared/helpers.h
368

369
if ENABLE_DRM_COMPOSITOR
370
libweston_module_LTLIBRARIES += drm-backend.la
371 372
drm_backend_la_LDFLAGS = -module -avoid-version
drm_backend_la_LIBADD =				\
373 374
	libsession-helper.la			\
	libweston-@LIBWESTON_MAJOR@.la		\
375 376
	$(COMPOSITOR_LIBS)			\
	$(DRM_COMPOSITOR_LIBS)			\
377
	$(INPUT_BACKEND_LIBS)			\
378
	libshared.la				\
379
	$(CLOCK_GETTIME_LIBS)
380 381 382 383
drm_backend_la_CFLAGS =				\
	$(COMPOSITOR_CFLAGS)			\
	$(EGL_CFLAGS)				\
	$(DRM_COMPOSITOR_CFLAGS)		\
384
	$(AM_CFLAGS)
385
drm_backend_la_SOURCES =			\
Pekka Paalanen's avatar
Pekka Paalanen committed
386 387
	libweston/compositor-drm.c		\
	libweston/compositor-drm.h		\
388
	$(INPUT_BACKEND_SOURCES)		\
389
	shared/helpers.h			\
390
	shared/timespec-util.h			\
Pekka Paalanen's avatar
Pekka Paalanen committed
391 392
	libweston/libbacklight.c		\
	libweston/libbacklight.h
393 394

if ENABLE_VAAPI_RECORDER
Pekka Paalanen's avatar
Pekka Paalanen committed
395
drm_backend_la_SOURCES += libweston/vaapi-recorder.c libweston/vaapi-recorder.h
396
drm_backend_la_LIBADD += $(LIBVA_LIBS)
397
drm_backend_la_LDFLAGS += -pthread
398 399 400 401 402
drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
endif
endif

if ENABLE_WAYLAND_COMPOSITOR
403
libweston_module_LTLIBRARIES += wayland-backend.la
404 405
wayland_backend_la_LDFLAGS = -module -avoid-version
wayland_backend_la_LIBADD =			\
406 407
	libshared-cairo.la			\
	libweston-@LIBWESTON_MAJOR@.la		\
408
	$(COMPOSITOR_LIBS)			\
409
	$(WAYLAND_COMPOSITOR_EGL_LIBS)		\
410
	$(WAYLAND_COMPOSITOR_LIBS)
411 412 413 414 415 416
wayland_backend_la_CFLAGS =			\
	$(COMPOSITOR_CFLAGS)			\
	$(EGL_CFLAGS)				\
	$(PIXMAN_CFLAGS)			\
	$(CAIRO_CFLAGS)				\
	$(WAYLAND_COMPOSITOR_CFLAGS)		\
417
	$(AM_CFLAGS)
418 419 420
wayland_backend_la_SOURCES = 					\
	libweston/compositor-wayland.c				\
	libweston/compositor-wayland.h				\
421
	shared/helpers.h
422 423 424 425 426
nodist_wayland_backend_la_SOURCES =				\
	protocol/fullscreen-shell-unstable-v1-protocol.c	\
	protocol/fullscreen-shell-unstable-v1-client-protocol.h	\
	protocol/xdg-shell-unstable-v6-protocol.c		\
	protocol/xdg-shell-unstable-v6-client-protocol.h
427 428 429
endif

if ENABLE_HEADLESS_COMPOSITOR
430
libweston_module_LTLIBRARIES += headless-backend.la
431
headless_backend_la_LDFLAGS = -module -avoid-version
432 433 434 435
headless_backend_la_LIBADD =			\
	libshared.la				\
	libweston-@LIBWESTON_MAJOR@.la		\
	$(COMPOSITOR_LIBS)
436
headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
437
headless_backend_la_SOURCES = 			\
Pekka Paalanen's avatar
Pekka Paalanen committed
438 439
	libweston/compositor-headless.c		\
	libweston/compositor-headless.h		\
440
	shared/helpers.h
441 442 443
endif

if ENABLE_FBDEV_COMPOSITOR
444
libweston_module_LTLIBRARIES += fbdev-backend.la
445 446
fbdev_backend_la_LDFLAGS = -module -avoid-version
fbdev_backend_la_LIBADD =			\
447 448 449
	libshared.la				\
	libsession-helper.la			\
	libweston-@LIBWESTON_MAJOR@.la		\
450 451
	$(COMPOSITOR_LIBS)			\
	$(FBDEV_COMPOSITOR_LIBS)		\
452
	$(INPUT_BACKEND_LIBS)
453 454 455 456 457
fbdev_backend_la_CFLAGS =			\
	$(COMPOSITOR_CFLAGS)			\
	$(EGL_CFLAGS)				\
	$(FBDEV_COMPOSITOR_CFLAGS)		\
	$(PIXMAN_CFLAGS)			\
458
	$(AM_CFLAGS)
459
fbdev_backend_la_SOURCES =			\
Pekka Paalanen's avatar
Pekka Paalanen committed
460 461
	libweston/compositor-fbdev.c		\
	libweston/compositor-fbdev.h		\
462
	shared/helpers.h			\
463
	$(INPUT_BACKEND_SOURCES)
464 465 466
endif

if ENABLE_RDP_COMPOSITOR
467
libweston_module_LTLIBRARIES += rdp-backend.la
468
rdp_backend_la_LDFLAGS = -module -avoid-version
469 470 471 472 473
rdp_backend_la_LIBADD =				\
	libshared.la				\
	libweston-@LIBWESTON_MAJOR@.la		\
	$(COMPOSITOR_LIBS)		\
	$(RDP_COMPOSITOR_LIBS)
474 475 476
rdp_backend_la_CFLAGS =				\
	$(COMPOSITOR_CFLAGS)			\
	$(RDP_COMPOSITOR_CFLAGS)		\
477
	$(AM_CFLAGS)
478
rdp_backend_la_SOURCES = 			\
Pekka Paalanen's avatar
Pekka Paalanen committed
479 480
	libweston/compositor-rdp.c		\
	libweston/compositor-rdp.h		\
481
	shared/helpers.h
482 483 484 485 486
endif

if HAVE_LCMS
module_LTLIBRARIES += cms-static.la
cms_static_la_LDFLAGS = -module -avoid-version
487 488 489 490 491
cms_static_la_LIBADD =				\
	libshared.la				\
	libweston-@LIBWESTON_MAJOR@.la		\
	$(LCMS_LIBS)				\
	$(COMPOSITOR_LIBS)
492
cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
493
cms_static_la_SOURCES =				\
494 495 496
	compositor/cms-static.c			\
	compositor/cms-helper.c			\
	compositor/cms-helper.h			\
497
	shared/helpers.h
498 499 500
if ENABLE_COLORD
module_LTLIBRARIES += cms-colord.la
cms_colord_la_LDFLAGS = -module -avoid-version
501 502 503 504 505 506
cms_colord_la_LIBADD =				\
	libshared.la				\
	libweston-@LIBWESTON_MAJOR@.la		\
	$(COLORD_LIBS)				\
	$(LCMS_LIBS)				\
	$(COMPOSITOR_LIBS)
507
cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
508
cms_colord_la_SOURCES =				\
509 510 511
	compositor/cms-colord.c			\
	compositor/cms-helper.c			\
	compositor/cms-helper.h			\
512
	shared/helpers.h
513 514 515 516
endif
endif

noinst_PROGRAMS += spring-tool
517
spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
518 519
spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
spring_tool_SOURCES =				\
Pekka Paalanen's avatar
Pekka Paalanen committed
520 521
	libweston/spring-tool.c			\
	libweston/animation.c			\
522 523
	shared/matrix.c				\
	shared/matrix.h				\
Pekka Paalanen's avatar
Pekka Paalanen committed
524
	libweston/compositor.h
525

526 527 528 529 530 531 532 533 534 535
if BUILD_CLIENTS

bin_PROGRAMS += weston-terminal weston-info

libexec_PROGRAMS +=				\
	weston-desktop-shell			\
	weston-screenshooter			\
	weston-keyboard				\
	weston-simple-im

536 537 538 539 540
if ENABLE_IVI_SHELL
libexec_PROGRAMS +=				\
	weston-ivi-shell-user-interface
endif

541 542 543 544 545 546 547 548 549
demo_clients =					\
	weston-flower				\
	weston-image				\
	weston-cliptest				\
	weston-dnd				\
	weston-smoke				\
	weston-resizor				\
	weston-eventdemo			\
	weston-clickdot				\
550
	weston-confine				\
551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566
	weston-transformed			\
	weston-fullscreen			\
	weston-stacking				\
	weston-calibrator			\
	weston-scaler

if INSTALL_DEMO_CLIENTS
bin_PROGRAMS += $(demo_clients)
else
noinst_PROGRAMS += $(demo_clients)
endif


if BUILD_SIMPLE_CLIENTS
demo_clients +=					\
	weston-simple-shm			\
567
	weston-simple-damage			\
568
	weston-simple-touch			\
569
	weston-presentation-shm			\
570 571
	weston-multi-resource

572 573
weston_simple_shm_SOURCES = clients/simple-shm.c
nodist_weston_simple_shm_SOURCES =		\
574 575
	protocol/xdg-shell-unstable-v6-protocol.c		\
	protocol/xdg-shell-unstable-v6-client-protocol.h	\
576 577
	protocol/fullscreen-shell-unstable-v1-protocol.c	\
	protocol/fullscreen-shell-unstable-v1-client-protocol.h	\
578 579
	protocol/ivi-application-protocol.c		\
	protocol/ivi-application-client-protocol.h
580
weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
581
weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
582

583 584
weston_simple_damage_SOURCES = clients/simple-damage.c
nodist_weston_simple_damage_SOURCES =		\
585 586
	protocol/viewporter-protocol.c		\
	protocol/viewporter-client-protocol.h	\
587 588
	protocol/xdg-shell-unstable-v6-protocol.c		\
	protocol/xdg-shell-unstable-v6-client-protocol.h	\
589 590
	protocol/fullscreen-shell-unstable-v1-protocol.c	\
	protocol/fullscreen-shell-unstable-v1-client-protocol.h
591 592 593
weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la

594 595 596
weston_simple_touch_SOURCES = 			\
	clients/simple-touch.c			\
	shared/helpers.h
597
weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
598
weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
599

600 601 602
weston_presentation_shm_SOURCES = 			\
	clients/presentation-shm.c			\
	shared/helpers.h
603
nodist_weston_presentation_shm_SOURCES =		\
604 605
	protocol/presentation-time-protocol.c		\
	protocol/presentation-time-client-protocol.h
606
weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
607
weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
608

609
weston_multi_resource_SOURCES = clients/multi-resource.c
610
weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
611
weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
612 613 614 615
endif

if BUILD_SIMPLE_EGL_CLIENTS
demo_clients += weston-simple-egl
616 617
weston_simple_egl_SOURCES = clients/simple-egl.c
nodist_weston_simple_egl_SOURCES =		\
618 619
	protocol/xdg-shell-unstable-v6-protocol.c		\
	protocol/xdg-shell-unstable-v6-client-protocol.h	\
620 621
	protocol/ivi-application-protocol.c		\
	protocol/ivi-application-client-protocol.h
622
weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
623 624 625
weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
endif

626 627
if BUILD_SIMPLE_DMABUF_DRM_CLIENT
demo_clients += weston-simple-dmabuf-drm
628 629 630
weston_simple_dmabuf_drm_SOURCES =			\
	clients/simple-dmabuf-drm.c			\
	clients/simple-dmabuf-drm-data.h
631
nodist_weston_simple_dmabuf_drm_SOURCES =		\
632 633
	protocol/xdg-shell-unstable-v6-protocol.c		\
	protocol/xdg-shell-unstable-v6-client-protocol.h	\
634 635
	protocol/fullscreen-shell-unstable-v1-protocol.c	\
	protocol/fullscreen-shell-unstable-v1-client-protocol.h \
636 637
	protocol/linux-dmabuf-unstable-v1-protocol.c \
	protocol/linux-dmabuf-unstable-v1-client-protocol.h
638
weston_simple_dmabuf_drm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_DRM_CLIENT_CFLAGS)
639
weston_simple_dmabuf_drm_LDADD = $(SIMPLE_DMABUF_DRM_CLIENT_LIBS) $(LIBDRM_PLATFORM_LIBS) libshared.la
640
BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
641 642
endif

643 644 645 646
if BUILD_SIMPLE_DMABUF_V4L_CLIENT
demo_clients += weston-simple-dmabuf-v4l
weston_simple_dmabuf_v4l_SOURCES = clients/simple-dmabuf-v4l.c
nodist_weston_simple_dmabuf_v4l_SOURCES =		\
647 648
	protocol/xdg-shell-unstable-v6-protocol.c		\
	protocol/xdg-shell-unstable-v6-client-protocol.h	\
649 650 651 652 653 654 655 656 657
	protocol/fullscreen-shell-unstable-v1-protocol.c	\
	protocol/fullscreen-shell-unstable-v1-client-protocol.h \
	protocol/linux-dmabuf-unstable-v1-protocol.c \
	protocol/linux-dmabuf-unstable-v1-client-protocol.h
weston_simple_dmabuf_v4l_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_V4L_CLIENT_CFLAGS)
weston_simple_dmabuf_v4l_LDADD = $(SIMPLE_DMABUF_V4L_CLIENT_LIBS) libshared.la
BUILT_SOURCES += protocol/linux-dmabuf-unstable-v1-client-protocol.h
endif

658 659 660 661
noinst_LTLIBRARIES += libtoytoolkit.la

libtoytoolkit_la_SOURCES =				\
	clients/window.c				\
662 663
	clients/window.h				\
	shared/helpers.h
664 665

nodist_libtoytoolkit_la_SOURCES =			\
666 667
	protocol/text-cursor-position-protocol.c	\
	protocol/text-cursor-position-client-protocol.h	\
668 669
	protocol/viewporter-protocol.c			\
	protocol/viewporter-client-protocol.h		\
670 671
	protocol/xdg-shell-unstable-v6-protocol.c			\
	protocol/xdg-shell-unstable-v6-client-protocol.h		\
672
	protocol/ivi-application-protocol.c		\
673 674 675 676 677
	protocol/ivi-application-client-protocol.h	\
	protocol/pointer-constraints-unstable-v1-protocol.c		\
	protocol/pointer-constraints-unstable-v1-client-protocol.h	\
	protocol/relative-pointer-unstable-v1-protocol.c		\
	protocol/relative-pointer-unstable-v1-client-protocol.h
678

679 680
BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)

681 682 683 684

libtoytoolkit_la_LIBADD =			\
	$(CLIENT_LIBS)				\
	$(CAIRO_EGL_LIBS)			\
685
	libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
686
libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
687 688 689

weston_flower_SOURCES = clients/flower.c
weston_flower_LDADD = libtoytoolkit.la
690
weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
691

692
weston_screenshooter_SOURCES =				\
693
	clients/screenshot.c
694
nodist_weston_screenshooter_SOURCES =			\
695 696
	protocol/weston-screenshooter-protocol.c	\
	protocol/weston-screenshooter-client-protocol.h
697
weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
698
weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
699

700 701 702
weston_terminal_SOURCES = 				\
	clients/terminal.c				\
	shared/helpers.h
703
weston_terminal_LDADD = libtoytoolkit.la -lutil
704
weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
705 706 707

weston_image_SOURCES = clients/image.c
weston_image_LDADD = libtoytoolkit.la
708
weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
709

710 711
weston_cliptest_SOURCES =				\
	clients/cliptest.c				\
Pekka Paalanen's avatar
Pekka Paalanen committed
712 713
	libweston/vertex-clipping.c			\
	libweston/vertex-clipping.h
714
weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
715 716
weston_cliptest_LDADD = libtoytoolkit.la

717 718 719
weston_dnd_SOURCES = 					\
	clients/dnd.c					\
	shared/helpers.h
720
weston_dnd_LDADD = libtoytoolkit.la
721
weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
722 723 724

weston_smoke_SOURCES = clients/smoke.c
weston_smoke_LDADD = libtoytoolkit.la
725
weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
726 727 728

weston_resizor_SOURCES = clients/resizor.c
weston_resizor_LDADD = libtoytoolkit.la
729
weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
730 731 732

weston_scaler_SOURCES = clients/scaler.c
weston_scaler_LDADD = libtoytoolkit.la
733
weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
734 735 736 737

if HAVE_CAIRO_GLESV2
demo_clients += weston-nested weston-nested-client

738 739 740
weston_nested_SOURCES = 				\
	clients/nested.c				\
	shared/helpers.h
741
weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
742
weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
743 744 745

weston_nested_client_SOURCES = clients/nested-client.c
weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
746
weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
747 748
endif

749 750 751
weston_eventdemo_SOURCES = 				\
	clients/eventdemo.c				\
	shared/helpers.h
752
weston_eventdemo_LDADD = libtoytoolkit.la
753
weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
754

755 756 757
weston_clickdot_SOURCES = 				\
	clients/clickdot.c				\
	shared/helpers.h
758
weston_clickdot_LDADD = libtoytoolkit.la
759
weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
760

761 762 763 764 765 766
weston_confine_SOURCES = 				\
	clients/confine.c				\
	shared/helpers.h
weston_confine_LDADD = libtoytoolkit.la
weston_confine_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)

767 768
weston_transformed_SOURCES = clients/transformed.c
weston_transformed_LDADD = libtoytoolkit.la
769
weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
770 771

weston_fullscreen_SOURCES = clients/fullscreen.c
772
nodist_weston_fullscreen_SOURCES =			\
773 774
	protocol/fullscreen-shell-unstable-v1-protocol.c		\
	protocol/fullscreen-shell-unstable-v1-client-protocol.h
775
weston_fullscreen_LDADD = libtoytoolkit.la
776
weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
777

778 779 780
weston_stacking_SOURCES = 				\
	clients/stacking.c				\
	shared/helpers.h
781
weston_stacking_LDADD = libtoytoolkit.la
782
weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
783

784 785 786
weston_calibrator_SOURCES = 				\
	clients/calibrator.c				\
	shared/helpers.h				\
787 788 789
	shared/matrix.c					\
	shared/matrix.h
weston_calibrator_LDADD = libtoytoolkit.la
790
weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
791 792 793

if BUILD_SUBSURFACES_CLIENT
demo_clients += weston-subsurfaces
794 795 796
weston_subsurfaces_SOURCES = 			\
	clients/subsurfaces.c			\
	shared/helpers.h
797 798 799 800
weston_subsurfaces_CFLAGS =			\
	$(AM_CFLAGS)				\
	$(SIMPLE_EGL_CLIENT_CFLAGS)		\
	$(CLIENT_CFLAGS)
801 802 803 804 805
weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
endif

if HAVE_PANGO
demo_clients += weston-editor
806 807 808
weston_editor_SOURCES = 			\
	clients/editor.c			\
	shared/helpers.h
809
nodist_weston_editor_SOURCES =			\
810 811
	protocol/text-input-unstable-v1-protocol.c		\
	protocol/text-input-unstable-v1-client-protocol.h
812
weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
813
weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
814 815
endif

816
weston_keyboard_SOURCES = clients/keyboard.c
817 818 819
nodist_weston_keyboard_SOURCES =				\
	protocol/weston-desktop-shell-client-protocol.h		\
	protocol/weston-desktop-shell-protocol.c		\
820 821
	protocol/input-method-unstable-v1-protocol.c		\
	protocol/input-method-unstable-v1-client-protocol.h
822
weston_keyboard_LDADD = libtoytoolkit.la
823
weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
824

825
weston_simple_im_SOURCES = clients/simple-im.c
826
nodist_weston_simple_im_SOURCES =		\
827 828
	protocol/input-method-unstable-v1-protocol.c		\
	protocol/input-method-unstable-v1-client-protocol.h
829
weston_simple_im_LDADD = $(CLIENT_LIBS)
830
weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
831

832 833 834
weston_info_SOURCES = 					\
	clients/weston-info.c				\
	shared/helpers.h
835
nodist_weston_info_SOURCES =				\
836 837
	protocol/presentation-time-protocol.c		\
	protocol/presentation-time-client-protocol.h
838
weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
839
weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
840

841 842 843
weston_desktop_shell_SOURCES = 				\
	clients/desktop-shell.c				\
	shared/helpers.h
844
nodist_weston_desktop_shell_SOURCES =			\
845 846
	protocol/weston-desktop-shell-client-protocol.h	\
	protocol/weston-desktop-shell-protocol.c
847
weston_desktop_shell_LDADD = libtoytoolkit.la
848
weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
849

850
if ENABLE_IVI_SHELL
851 852 853
weston_ivi_shell_user_interface_SOURCES = 				\
	clients/ivi-shell-user-interface.c				\
	shared/helpers.h
854 855 856 857 858 859 860 861 862
nodist_weston_ivi_shell_user_interface_SOURCES =			\
	protocol/ivi-hmi-controller-client-protocol.h			\
	protocol/ivi-hmi-controller-protocol.c				\
	protocol/ivi-application-client-protocol.h			\
        protocol/ivi-application-protocol.c
weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
endif

863 864 865 866
if BUILD_FULL_GL_CLIENTS
demo_clients += weston-gears
weston_gears_SOURCES = clients/gears.c
weston_gears_LDADD = libtoytoolkit.la
867
weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
868 869 870 871 872
endif

endif

BUILT_SOURCES +=					\
873 874
	protocol/weston-screenshooter-protocol.c			\
	protocol/weston-screenshooter-client-protocol.h			\
875 876
	protocol/text-cursor-position-client-protocol.h	\
	protocol/text-cursor-position-protocol.c	\
877 878
	protocol/text-input-unstable-v1-protocol.c			\
	protocol/text-input-unstable-v1-client-protocol.h		\
879 880
	protocol/input-method-unstable-v1-protocol.c			\
	protocol/input-method-unstable-v1-client-protocol.h		\
881 882
	protocol/weston-desktop-shell-client-protocol.h			\
	protocol/weston-desktop-shell-protocol.c			\
883 884
	protocol/viewporter-client-protocol.h		\
	protocol/viewporter-protocol.c			\
885 886
	protocol/presentation-time-protocol.c				\
	protocol/presentation-time-client-protocol.h			\
887 888
	protocol/fullscreen-shell-unstable-v1-protocol.c		\
	protocol/fullscreen-shell-unstable-v1-client-protocol.h	\
889 890
	protocol/xdg-shell-unstable-v6-protocol.c			\
	protocol/xdg-shell-unstable-v6-client-protocol.h		\
891 892 893
	protocol/ivi-hmi-controller-protocol.c		\
	protocol/ivi-hmi-controller-client-protocol.h	\
	protocol/ivi-application-protocol.c		\
894
	protocol/ivi-application-client-protocol.h
895

896 897 898 899 900 901 902
westondatadir = $(datadir)/weston
dist_westondata_DATA =				\
	data/wayland.svg			\
	data/wayland.png			\
	data/pattern.png			\
	data/terminal.png			\
	data/border.png				\
Bryce Harrington's avatar
Bryce Harrington committed
903 904 905
	data/icon_editor.png			\
	data/icon_flower.png			\
	data/icon_terminal.png			\
906 907 908
	data/icon_window.png			\
	data/sign_close.png			\
	data/sign_maximize.png			\
909 910 911 912
	data/sign_minimize.png

if ENABLE_IVI_SHELL
dist_westondata_DATA +=				\
913 914 915 916 917 918 919 920 921 922 923 924
	data/background.png                     \
	data/tiling.png                         \
	data/fullscreen.png                     \
	data/panel.png                          \
	data/random.png                         \
	data/sidebyside.png                     \
	data/home.png                           \
	data/icon_ivi_clickdot.png              \
	data/icon_ivi_flower.png                \
	data/icon_ivi_simple-egl.png            \
	data/icon_ivi_simple-shm.png            \
	data/icon_ivi_smoke.png
925
endif
926 927 928 929 930 931 932 933 934 935


if BUILD_WCAP_TOOLS
bin_PROGRAMS += wcap-decode

wcap_decode_SOURCES =				\
	wcap/main.c				\
	wcap/wcap-decode.c			\
	wcap/wcap-decode.h

936
wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
937 938
wcap_decode_LDADD = $(WCAP_LIBS)
endif
939 940 941 942 943 944 945


if ENABLE_DESKTOP_SHELL

module_LTLIBRARIES += desktop-shell.la

desktop_shell_la_CPPFLAGS =			\
946
	-I$(top_builddir)/protocol		\
947
	-I$(top_srcdir)/shared			\
Pekka Paalanen's avatar
Pekka Paalanen committed
948
	-I$(top_builddir)/libweston		\
949
	-I$(top_srcdir)/libweston		\
950 951 952 953 954 955 956
	-I$(top_builddir)/desktop-shell		\
	-DDATADIR='"$(datadir)"'		\
	-DMODULEDIR='"$(moduledir)"'		\
	-DLIBEXECDIR='"$(libexecdir)"'		\
	-DIN_WESTON

desktop_shell_la_LDFLAGS = -module -avoid-version
957
desktop_shell_la_LIBADD = libshared.la libweston-desktop-@LIBWESTON_MAJOR@.la $(COMPOSITOR_LIBS)
958
desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
959 960 961 962
desktop_shell_la_SOURCES =				\
	desktop-shell/shell.h				\
	desktop-shell/shell.c				\
	desktop-shell/exposay.c				\
963 964
	desktop-shell/input-panel.c			\
	shared/helpers.h
965
nodist_desktop_shell_la_SOURCES =			\
966
	protocol/weston-desktop-shell-protocol.c	\
967
	protocol/weston-desktop-shell-server-protocol.h
968

969
BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
970 971
endif

972 973 974 975 976 977 978
if ENABLE_FULLSCREEN_SHELL

module_LTLIBRARIES += fullscreen-shell.la

fullscreen_shell_la_CPPFLAGS =			\
	-I$(top_builddir)/protocol		\
	-I$(top_srcdir)/shared			\
Pekka Paalanen's avatar
Pekka Paalanen committed
979
	-I$(top_builddir)/libweston		\
980
	-I$(top_srcdir)/libweston		\
981 982 983
	-DIN_WESTON

fullscreen_shell_la_LDFLAGS = -module -avoid-version
984 985 986
fullscreen_shell_la_LIBADD =			\
	libweston-@LIBWESTON_MAJOR@.la		\
	$(COMPOSITOR_LIBS)
987
fullscreen_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
988
fullscreen_shell_la_SOURCES =			\
989 990
	fullscreen-shell/fullscreen-shell.c	\
	shared/helpers.h
991
nodist_fullscreen_shell_la_SOURCES =			\
992 993
	protocol/fullscreen-shell-unstable-v1-protocol.c		\
	protocol/fullscreen-shell-unstable-v1-server-protocol.h
994 995 996

BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
endif
997

998 999 1000
if ENABLE_IVI_SHELL

module_LTLIBRARIES +=				\
1001 1002
	$(ivi_shell)				\
	$(hmi_controller)
1003

1004 1005
ivi_shell = ivi-shell.la
ivi_shell_la_LDFLAGS = -module -avoid-version
1006 1007 1008 1009
ivi_shell_la_LIBADD =				\
	libshared.la				\
	libweston-@LIBWESTON_MAJOR@.la		\
	$(COMPOSITOR_LIBS)
1010
ivi_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1011
ivi_shell_la_SOURCES =				\
1012 1013
	ivi-shell/ivi-layout-export.h		\
	ivi-shell/ivi-layout-private.h		\
1014
	ivi-shell/ivi-layout-shell.h		\
1015 1016
	ivi-shell/ivi-layout.c			\
	ivi-shell/ivi-layout-transition.c	\
1017 1018
	ivi-shell/ivi-shell.h			\
	ivi-shell/ivi-shell.c			\
1019 1020
	ivi-shell/input-panel-ivi.c		\
	shared/helpers.h
1021 1022 1023 1024 1025 1026
nodist_ivi_shell_la_SOURCES =			\
	protocol/ivi-application-protocol.c		\
	protocol/ivi-application-server-protocol.h

BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)

1027 1028
hmi_controller = hmi-controller.la
hmi_controller_la_LDFLAGS = -module -avoid-version
1029 1030 1031 1032
hmi_controller_la_LIBADD =			\
	libshared.la				\
	libweston-@LIBWESTON_MAJOR@.la		\
	$(COMPOSITOR_LIBS)
1033
hmi_controller_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1034 1035
hmi_controller_la_SOURCES =				\
	ivi-shell/ivi-layout-export.h			\
1036 1037
	ivi-shell/hmi-controller.c			\
	shared/helpers.h
1038 1039 1040 1041 1042 1043
nodist_hmi_controller_la_SOURCES =			\
	protocol/ivi-hmi-controller-protocol.c		\
	protocol/ivi-hmi-controller-server-protocol.h

BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)

1044 1045 1046
endif


Jason Ekstrand's avatar
Jason Ekstrand committed
1047 1048 1049 1050 1051 1052 1053
if ENABLE_SCREEN_SHARING

module_LTLIBRARIES += screen-share.la

screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
screen_share_la_LDFLAGS = -module -avoid-version
screen_share_la_LIBADD =			\
1054
	libshared-cairo.la			\