Makefile.am 52.3 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|@libexecdir[@]|$(libexecdir)|g' \
28
		-e 's|@westondatadir[@]|$(westondatadir)|g' \
29
30
		$< > $@

31
all-local : weston.ini ivi-shell/weston.ini
32

33
34
AM_CFLAGS = $(GCC_CFLAGS)

35
AM_CPPFLAGS = 					\
Pekka Paalanen's avatar
Pekka Paalanen committed
36
	-I$(top_builddir)/libweston		\
37
	-I$(top_srcdir)/libweston		\
38
	-I$(top_builddir)/clients		\
39
	-I$(top_builddir)/tests			\
40
	-I$(top_srcdir)/shared			\
41
	-I$(top_builddir)/protocol		\
42
	-DLIBWESTON_MODULEDIR='"$(libweston_moduledir)"' \
43
44
	-DLIBEXECDIR='"$(libexecdir)"'		\
	-DBINDIR='"$(bindir)"'
45

46
47
CLEANFILES = weston.ini				\
	ivi-shell/weston.ini			\
48
	internal-screenshot-00.png		\
49
	$(BUILT_SOURCES)
50

Quentin Glidic's avatar
Quentin Glidic committed
51
52
53
54
55
56
57
58
# 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

59
60
lib_LTLIBRARIES = libweston-@LIBWESTON_MAJOR@.la
libweston_@LIBWESTON_MAJOR@_la_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
61
libweston_@LIBWESTON_MAJOR@_la_CFLAGS = $(AM_CFLAGS) \
62
63
	$(COMPOSITOR_CFLAGS) $(EGL_CFLAGS) $(LIBDRM_CFLAGS)
libweston_@LIBWESTON_MAJOR@_la_LIBADD = $(COMPOSITOR_LIBS) \
64
	$(DL_LIBS) -lm $(CLOCK_GETTIME_LIBS) \
65
	$(LIBINPUT_BACKEND_LIBS) libshared.la
66
libweston_@LIBWESTON_MAJOR@_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
67

68
libweston_@LIBWESTON_MAJOR@_la_SOURCES =			\
Pekka Paalanen's avatar
Pekka Paalanen committed
69
70
71
72
73
74
75
76
77
78
79
80
81
	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			\
82
	libweston/touch-calibration.c			\
Pekka Paalanen's avatar
Pekka Paalanen committed
83
84
85
86
87
88
89
	libweston/clipboard.c				\
	libweston/zoom.c				\
	libweston/bindings.c				\
	libweston/animation.c				\
	libweston/noop-renderer.c			\
	libweston/pixman-renderer.c			\
	libweston/pixman-renderer.h			\
90
91
	libweston/plugin-registry.c				\
	libweston/plugin-registry.h				\
Pekka Paalanen's avatar
Pekka Paalanen committed
92
93
94
95
96
	libweston/timeline.c				\
	libweston/timeline.h				\
	libweston/timeline-object.h			\
	libweston/linux-dmabuf.c			\
	libweston/linux-dmabuf.h			\
97
98
	libweston/pixel-formats.c			\
	libweston/pixel-formats.h			\
99
100
	libweston/weston-debug.c			\
	libweston/weston-debug.h			\
101
	shared/helpers.h				\
102
103
	shared/matrix.c					\
	shared/matrix.h					\
104
	shared/timespec-util.h				\
105
	shared/zalloc.h					\
106
	shared/platform.h				\
Daniel Stone's avatar
Daniel Stone committed
107
	shared/weston-egl-ext.h
108

109
110
111
112
libweston_@LIBWESTON_MAJOR@_datadir = $(datadir)/weston/protocols
dist_libweston_@LIBWESTON_MAJOR@_data_DATA =	\
	protocol/weston-debug.xml

Quentin Glidic's avatar
Quentin Glidic committed
113
114
115
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)
116
117
118
libweston_desktop_@LIBWESTON_MAJOR@_la_LIBADD =		\
	libweston-@LIBWESTON_MAJOR@.la			\
	$(COMPOSITOR_LIBS)
Quentin Glidic's avatar
Quentin Glidic committed
119
120
121
122
123
124
125
126
127
128
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			\
129
	libweston-desktop/xdg-shell-v6.c		\
Quentin Glidic's avatar
Quentin Glidic committed
130
131
132
	libweston-desktop/xwayland.c

nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES =		\
133
	protocol/xdg-shell-unstable-v6-protocol.c		\
134
	protocol/xdg-shell-unstable-v6-server-protocol.h
Quentin Glidic's avatar
Quentin Glidic committed
135

136
137
BUILT_SOURCES += $(nodist_libweston_desktop_@LIBWESTON_MAJOR@_la_SOURCES)

138
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
139

140
141
142
if SYSTEMD_NOTIFY_SUPPORT
module_LTLIBRARIES += systemd-notify.la
systemd_notify_la_LDFLAGS = -module -avoid-version
143
systemd_notify_la_LIBADD = libweston-@LIBWESTON_MAJOR@.la $(SYSTEMD_DAEMON_LIBS)
144
systemd_notify_la_CFLAGS =			\
145
146
	$(COMPOSITOR_CFLAGS)			\
	$(SYSTEMD_DAEMON_CFLAGS)		\
147
148
149
	$(PIXMAN_CFLAGS)			\
	$(AM_CFLAGS)
systemd_notify_la_SOURCES =			\
150
	compositor/systemd-notify.c		\
151
152
	shared/helpers.h			\
	shared/zalloc.h				\
Pekka Paalanen's avatar
Pekka Paalanen committed
153
	libweston/compositor.h
154
endif
155

156
nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES =				\
157
158
	protocol/weston-screenshooter-protocol.c			\
	protocol/weston-screenshooter-server-protocol.h			\
159
160
	protocol/weston-debug-protocol.c				\
	protocol/weston-debug-server-protocol.h				\
161
162
	protocol/text-cursor-position-protocol.c	\
	protocol/text-cursor-position-server-protocol.h	\
163
164
	protocol/text-input-unstable-v1-protocol.c			\
	protocol/text-input-unstable-v1-server-protocol.h		\
165
166
	protocol/input-method-unstable-v1-protocol.c			\
	protocol/input-method-unstable-v1-server-protocol.h		\
167
168
	protocol/presentation-time-protocol.c		\
	protocol/presentation-time-server-protocol.h	\
169
170
	protocol/viewporter-protocol.c			\
	protocol/viewporter-server-protocol.h		\
171
	protocol/linux-dmabuf-unstable-v1-protocol.c	\
172
173
	protocol/linux-dmabuf-unstable-v1-server-protocol.h		\
	protocol/relative-pointer-unstable-v1-protocol.c		\
174
175
	protocol/relative-pointer-unstable-v1-server-protocol.h		\
	protocol/pointer-constraints-unstable-v1-protocol.c		\
176
177
	protocol/pointer-constraints-unstable-v1-server-protocol.h      \
	protocol/input-timestamps-unstable-v1-protocol.c		\
178
179
180
	protocol/input-timestamps-unstable-v1-server-protocol.h		\
	protocol/weston-touch-calibration-protocol.c			\
	protocol/weston-touch-calibration-server-protocol.h
181

182
BUILT_SOURCES += $(nodist_libweston_@LIBWESTON_MAJOR@_la_SOURCES)
Giulio Camuffo's avatar
Giulio Camuffo committed
183
184
185
186
187

bin_PROGRAMS += weston

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

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

205
206
207
208
# 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.

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

212
213
214
215
noinst_LTLIBRARIES +=				\
	libsession-helper.la

libsession_helper_la_SOURCES =			\
Pekka Paalanen's avatar
Pekka Paalanen committed
216
217
218
219
220
221
	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
222
libsession_helper_la_CFLAGS = $(AM_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
223
224
225
226
227
libsession_helper_la_LIBADD = libweston-@LIBWESTON_MAJOR@.la

if ENABLE_DRM_COMPOSITOR
libsession_helper_la_LIBADD += $(LIBDRM_LIBS)
endif
228
229
230
231

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

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

247
endif
248
249
250
251
252

.FORCE :

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

if ENABLE_DRM_COMPOSITOR
weston_launch_LDADD += $(LIBDRM_LIBS)
endif
265
266
267

if ENABLE_SETUID_INSTALL
install-exec-hook:
268
269
270
271
	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
272
	if test $$can_suid_files = no; then \
273
274
275
276
		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
277
278
279
280
281
endif

endif # BUILD_WESTON_LAUNCH

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

287
288
289
290
noarch_pkgconfigdir = $(datadir)/pkgconfig
noarch_pkgconfig_DATA = \
	libweston/libweston-${LIBWESTON_MAJOR}-protocols.pc

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

294
libwestonincludedir = $(includedir)/libweston-${LIBWESTON_MAJOR}
Pekka Paalanen's avatar
Pekka Paalanen committed
295
296
297
298
299
300
301
302
303
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		\
304
	libweston/windowed-output-api.h		\
305
	libweston/plugin-registry.h		\
Pekka Paalanen's avatar
Pekka Paalanen committed
306
	libweston/timeline-object.h		\
307
308
	shared/matrix.h				\
	shared/config-parser.h			\
309
	shared/zalloc.h
310

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

314
westonincludedir = $(includedir)/weston
315
westoninclude_HEADERS = compositor/weston.h
316

eucan's avatar
eucan committed
317
318
319
320
321
if ENABLE_IVI_SHELL
westoninclude_HEADERS +=				\
	ivi-shell/ivi-layout-export.h
endif

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

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

364
INPUT_BACKEND_CFLAGS = $(LIBINPUT_BACKEND_CFLAGS)
365
INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
366
INPUT_BACKEND_SOURCES =				\
Pekka Paalanen's avatar
Pekka Paalanen committed
367
368
369
370
	libweston/libinput-seat.c		\
	libweston/libinput-seat.h		\
	libweston/libinput-device.c		\
	libweston/libinput-device.h		\
371
	shared/helpers.h
372

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

if ENABLE_VAAPI_RECORDER
Pekka Paalanen's avatar
Pekka Paalanen committed
400
drm_backend_la_SOURCES += libweston/vaapi-recorder.c libweston/vaapi-recorder.h
401
drm_backend_la_LIBADD += $(LIBVA_LIBS)
402
drm_backend_la_LDFLAGS += -pthread
403
404
drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
endif
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421

# remoting
if ENABLE_REMOTING
libweston_module_LTLIBRARIES += remoting-plugin.la
remoting_plugin_la_LDFLAGS = -module -avoid-version
remoting_plugin_la_LIBADD =			\
	$(COMPOSITOR_LIBS)			\
	$(REMOTING_GST_LIBS)
remoting_plugin_la_CFLAGS =			\
	$(COMPOSITOR_CFLAGS)			\
	$(REMOTING_GST_CFLAGS)			\
	$(AM_CFLAGS)
remoting_plugin_la_SOURCES =			\
	remoting/remoting-plugin.c		\
	remoting/remoting-plugin.h
endif

422
423
424
endif

if ENABLE_WAYLAND_COMPOSITOR
425
libweston_module_LTLIBRARIES += wayland-backend.la
426
427
wayland_backend_la_LDFLAGS = -module -avoid-version
wayland_backend_la_LIBADD =			\
428
429
	libshared-cairo.la			\
	libweston-@LIBWESTON_MAJOR@.la		\
430
	$(COMPOSITOR_LIBS)			\
431
	$(WAYLAND_COMPOSITOR_EGL_LIBS)		\
432
	$(WAYLAND_COMPOSITOR_LIBS)
433
434
435
436
437
438
wayland_backend_la_CFLAGS =			\
	$(COMPOSITOR_CFLAGS)			\
	$(EGL_CFLAGS)				\
	$(PIXMAN_CFLAGS)			\
	$(CAIRO_CFLAGS)				\
	$(WAYLAND_COMPOSITOR_CFLAGS)		\
439
	$(AM_CFLAGS)
440
441
442
wayland_backend_la_SOURCES = 					\
	libweston/compositor-wayland.c				\
	libweston/compositor-wayland.h				\
443
	shared/helpers.h
444
445
446
447
448
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
449
450
451
endif

if ENABLE_HEADLESS_COMPOSITOR
452
libweston_module_LTLIBRARIES += headless-backend.la
453
headless_backend_la_LDFLAGS = -module -avoid-version
454
455
456
457
headless_backend_la_LIBADD =			\
	libshared.la				\
	libweston-@LIBWESTON_MAJOR@.la		\
	$(COMPOSITOR_LIBS)
458
headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(AM_CFLAGS)
459
headless_backend_la_SOURCES = 			\
Pekka Paalanen's avatar
Pekka Paalanen committed
460
461
	libweston/compositor-headless.c		\
	libweston/compositor-headless.h		\
462
	shared/helpers.h
463
464
465
endif

if ENABLE_FBDEV_COMPOSITOR
466
libweston_module_LTLIBRARIES += fbdev-backend.la
467
468
fbdev_backend_la_LDFLAGS = -module -avoid-version
fbdev_backend_la_LIBADD =			\
469
470
471
	libshared.la				\
	libsession-helper.la			\
	libweston-@LIBWESTON_MAJOR@.la		\
472
473
	$(COMPOSITOR_LIBS)			\
	$(FBDEV_COMPOSITOR_LIBS)		\
474
	$(INPUT_BACKEND_LIBS)
475
476
477
478
479
fbdev_backend_la_CFLAGS =			\
	$(COMPOSITOR_CFLAGS)			\
	$(EGL_CFLAGS)				\
	$(FBDEV_COMPOSITOR_CFLAGS)		\
	$(PIXMAN_CFLAGS)			\
480
	$(INPUT_BACKEND_CFLAGS)			\
481
	$(AM_CFLAGS)
482
fbdev_backend_la_SOURCES =			\
Pekka Paalanen's avatar
Pekka Paalanen committed
483
484
	libweston/compositor-fbdev.c		\
	libweston/compositor-fbdev.h		\
485
	shared/helpers.h			\
486
	$(INPUT_BACKEND_SOURCES)
487
488
489
endif

if ENABLE_RDP_COMPOSITOR
490
libweston_module_LTLIBRARIES += rdp-backend.la
491
rdp_backend_la_LDFLAGS = -module -avoid-version
492
493
494
495
496
rdp_backend_la_LIBADD =				\
	libshared.la				\
	libweston-@LIBWESTON_MAJOR@.la		\
	$(COMPOSITOR_LIBS)		\
	$(RDP_COMPOSITOR_LIBS)
497
498
499
rdp_backend_la_CFLAGS =				\
	$(COMPOSITOR_CFLAGS)			\
	$(RDP_COMPOSITOR_CFLAGS)		\
500
	$(AM_CFLAGS)
501
rdp_backend_la_SOURCES = 			\
Pekka Paalanen's avatar
Pekka Paalanen committed
502
503
	libweston/compositor-rdp.c		\
	libweston/compositor-rdp.h		\
504
	shared/helpers.h
505
506
507
508
509
endif

if HAVE_LCMS
module_LTLIBRARIES += cms-static.la
cms_static_la_LDFLAGS = -module -avoid-version
510
511
512
513
514
cms_static_la_LIBADD =				\
	libshared.la				\
	libweston-@LIBWESTON_MAJOR@.la		\
	$(LCMS_LIBS)				\
	$(COMPOSITOR_LIBS)
515
cms_static_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
516
cms_static_la_SOURCES =				\
517
518
519
	compositor/cms-static.c			\
	compositor/cms-helper.c			\
	compositor/cms-helper.h			\
520
	shared/helpers.h
521
522
523
if ENABLE_COLORD
module_LTLIBRARIES += cms-colord.la
cms_colord_la_LDFLAGS = -module -avoid-version
524
525
526
527
528
529
cms_colord_la_LIBADD =				\
	libshared.la				\
	libweston-@LIBWESTON_MAJOR@.la		\
	$(COLORD_LIBS)				\
	$(LCMS_LIBS)				\
	$(COMPOSITOR_LIBS)
530
cms_colord_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
531
cms_colord_la_SOURCES =				\
532
533
534
	compositor/cms-colord.c			\
	compositor/cms-helper.c			\
	compositor/cms-helper.h			\
535
	shared/helpers.h
536
537
538
539
endif
endif

noinst_PROGRAMS += spring-tool
540
spring_tool_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
541
542
spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
spring_tool_SOURCES =				\
Pekka Paalanen's avatar
Pekka Paalanen committed
543
544
	libweston/spring-tool.c			\
	libweston/animation.c			\
545
546
	shared/matrix.c				\
	shared/matrix.h				\
Pekka Paalanen's avatar
Pekka Paalanen committed
547
	libweston/compositor.h
548

549
550
if BUILD_CLIENTS

551
bin_PROGRAMS += weston-terminal weston-info weston-debug weston-screenshooter
552
553
554
555
556
557

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

558
559
560
561
562
if ENABLE_IVI_SHELL
libexec_PROGRAMS +=				\
	weston-ivi-shell-user-interface
endif

563
564
565
566
567
568
569
570
571
demo_clients =					\
	weston-flower				\
	weston-image				\
	weston-cliptest				\
	weston-dnd				\
	weston-smoke				\
	weston-resizor				\
	weston-eventdemo			\
	weston-clickdot				\
572
	weston-confine				\
573
574
575
576
	weston-transformed			\
	weston-fullscreen			\
	weston-stacking				\
	weston-calibrator			\
577
	weston-touch-calibrator			\
578
579
580
581
582
583
584
585
586
587
588
589
	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			\
590
	weston-simple-damage			\
591
	weston-simple-touch			\
592
	weston-presentation-shm			\
593
594
	weston-multi-resource

595
596
weston_simple_shm_SOURCES = clients/simple-shm.c
nodist_weston_simple_shm_SOURCES =		\
597
598
	protocol/xdg-shell-unstable-v6-protocol.c		\
	protocol/xdg-shell-unstable-v6-client-protocol.h	\
599
600
	protocol/fullscreen-shell-unstable-v1-protocol.c	\
	protocol/fullscreen-shell-unstable-v1-client-protocol.h	\
601
602
	protocol/ivi-application-protocol.c		\
	protocol/ivi-application-client-protocol.h
603
weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
604
weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
605

606
607
weston_simple_damage_SOURCES = clients/simple-damage.c
nodist_weston_simple_damage_SOURCES =		\
608
609
	protocol/viewporter-protocol.c		\
	protocol/viewporter-client-protocol.h	\
610
611
	protocol/xdg-shell-unstable-v6-protocol.c		\
	protocol/xdg-shell-unstable-v6-client-protocol.h	\
612
613
	protocol/fullscreen-shell-unstable-v1-protocol.c	\
	protocol/fullscreen-shell-unstable-v1-client-protocol.h
614
615
616
weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la

617
618
619
weston_simple_touch_SOURCES = 			\
	clients/simple-touch.c			\
	shared/helpers.h
620
weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
621
weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
622

623
624
625
weston_presentation_shm_SOURCES = 			\
	clients/presentation-shm.c			\
	shared/helpers.h
626
nodist_weston_presentation_shm_SOURCES =		\
627
628
	protocol/presentation-time-protocol.c		\
	protocol/presentation-time-client-protocol.h
629
weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
630
weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm $(CLOCK_GETTIME_LIBS)
631

632
weston_multi_resource_SOURCES = clients/multi-resource.c
633
weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
634
weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la $(CLOCK_GETTIME_LIBS) -lm
635
636
637
638
endif

if BUILD_SIMPLE_EGL_CLIENTS
demo_clients += weston-simple-egl
639
640
weston_simple_egl_SOURCES = clients/simple-egl.c
nodist_weston_simple_egl_SOURCES =		\
641
642
	protocol/xdg-shell-unstable-v6-protocol.c		\
	protocol/xdg-shell-unstable-v6-client-protocol.h	\
643
644
	protocol/ivi-application-protocol.c		\
	protocol/ivi-application-client-protocol.h
645
weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
646
647
648
weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
endif

649
650
if BUILD_SIMPLE_DMABUF_DRM_CLIENT
demo_clients += weston-simple-dmabuf-drm
651
652
653
weston_simple_dmabuf_drm_SOURCES =			\
	clients/simple-dmabuf-drm.c			\
	clients/simple-dmabuf-drm-data.h
654
nodist_weston_simple_dmabuf_drm_SOURCES =		\
655
656
	protocol/xdg-shell-unstable-v6-protocol.c		\
	protocol/xdg-shell-unstable-v6-client-protocol.h	\
657
658
	protocol/fullscreen-shell-unstable-v1-protocol.c	\
	protocol/fullscreen-shell-unstable-v1-client-protocol.h \
659
660
	protocol/linux-dmabuf-unstable-v1-protocol.c \
	protocol/linux-dmabuf-unstable-v1-client-protocol.h
661
weston_simple_dmabuf_drm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_DRM_CLIENT_CFLAGS)
662
663
weston_simple_dmabuf_drm_LDADD = $(SIMPLE_DMABUF_DRM_CLIENT_LIBS) \
	$(LIBDRM_PLATFORM_FREEDRENO_LIBS) \
664
	$(LIBDRM_PLATFORM_ETNAVIV_LIBS)   \
665
666
	$(LIBDRM_PLATFORM_INTEL_LIBS)     \
	libshared.la
667
668
endif

669
670
671
672
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 =		\
673
674
	protocol/xdg-shell-unstable-v6-protocol.c		\
	protocol/xdg-shell-unstable-v6-client-protocol.h	\
675
676
677
678
679
680
681
682
	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
endif

683
684
685
686
687
688
689
690
691
692
693
694
695
696
if BUILD_SIMPLE_DMABUF_EGL_CLIENT
demo_clients += weston-simple-dmabuf-egl
weston_simple_dmabuf_egl_SOURCES = clients/simple-dmabuf-egl.c
nodist_weston_simple_dmabuf_egl_SOURCES =		\
	protocol/xdg-shell-unstable-v6-protocol.c		\
	protocol/xdg-shell-unstable-v6-client-protocol.h	\
	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_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_DMABUF_EGL_CLIENT_CFLAGS)
weston_simple_dmabuf_egl_LDADD = $(SIMPLE_DMABUF_EGL_CLIENT_LIBS) libshared.la
endif

697
698
699
700
noinst_LTLIBRARIES += libtoytoolkit.la

libtoytoolkit_la_SOURCES =				\
	clients/window.c				\
701
702
	clients/window.h				\
	shared/helpers.h
703
704

nodist_libtoytoolkit_la_SOURCES =			\
705
706
	protocol/text-cursor-position-protocol.c	\
	protocol/text-cursor-position-client-protocol.h	\
707
708
	protocol/viewporter-protocol.c			\
	protocol/viewporter-client-protocol.h		\
709
710
	protocol/xdg-shell-unstable-v6-protocol.c			\
	protocol/xdg-shell-unstable-v6-client-protocol.h		\
711
	protocol/ivi-application-protocol.c		\
712
713
714
715
716
	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
717

718
719
BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)

720
721
722
723

libtoytoolkit_la_LIBADD =			\
	$(CLIENT_LIBS)				\
	$(CAIRO_EGL_LIBS)			\
724
	libshared-cairo.la $(CLOCK_GETTIME_LIBS) -lm
725
libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
726
727
728

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

731
weston_screenshooter_SOURCES =				\
732
	clients/screenshot.c
733
nodist_weston_screenshooter_SOURCES =			\
734
735
	protocol/weston-screenshooter-protocol.c	\
	protocol/weston-screenshooter-client-protocol.h
736
weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
737
weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
738

739
740
741
weston_terminal_SOURCES = 				\
	clients/terminal.c				\
	shared/helpers.h
742
weston_terminal_LDADD = libtoytoolkit.la -lutil
743
weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
744
745
746

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

749
750
weston_cliptest_SOURCES =				\
	clients/cliptest.c				\
Pekka Paalanen's avatar
Pekka Paalanen committed
751
752
	libweston/vertex-clipping.c			\
	libweston/vertex-clipping.h
753
weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
754
755
weston_cliptest_LDADD = libtoytoolkit.la

756
757
758
weston_dnd_SOURCES = 					\
	clients/dnd.c					\
	shared/helpers.h
759
weston_dnd_LDADD = libtoytoolkit.la
760
weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
761
762
763

weston_smoke_SOURCES = clients/smoke.c
weston_smoke_LDADD = libtoytoolkit.la
764
weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
765
766
767

weston_resizor_SOURCES = clients/resizor.c
weston_resizor_LDADD = libtoytoolkit.la
768
weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
769
770
771

weston_scaler_SOURCES = clients/scaler.c
weston_scaler_LDADD = libtoytoolkit.la
772
weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
773
774
775
776

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

777
778
779
weston_nested_SOURCES = 				\
	clients/nested.c				\
	shared/helpers.h
780
weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
781
weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
782
783
784

weston_nested_client_SOURCES = clients/nested-client.c
weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
785
weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
786
787
endif

788
789
790
weston_eventdemo_SOURCES = 				\
	clients/eventdemo.c				\
	shared/helpers.h
791
weston_eventdemo_LDADD = libtoytoolkit.la
792
weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
793

794
795
796
weston_clickdot_SOURCES = 				\
	clients/clickdot.c				\
	shared/helpers.h
797
weston_clickdot_LDADD = libtoytoolkit.la
798
weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
799

800
801
802
803
804
805
weston_confine_SOURCES = 				\
	clients/confine.c				\
	shared/helpers.h
weston_confine_LDADD = libtoytoolkit.la
weston_confine_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)

806
807
weston_transformed_SOURCES = clients/transformed.c
weston_transformed_LDADD = libtoytoolkit.la
808
weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
809
810

weston_fullscreen_SOURCES = clients/fullscreen.c
811
nodist_weston_fullscreen_SOURCES =			\
812
813
	protocol/fullscreen-shell-unstable-v1-protocol.c		\
	protocol/fullscreen-shell-unstable-v1-client-protocol.h
814
weston_fullscreen_LDADD = libtoytoolkit.la
815
weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
816

817
818
819
weston_stacking_SOURCES = 				\
	clients/stacking.c				\
	shared/helpers.h
820
weston_stacking_LDADD = libtoytoolkit.la
821
weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
822

823
824
825
weston_calibrator_SOURCES = 				\
	clients/calibrator.c				\
	shared/helpers.h				\
826
827
828
	shared/matrix.c					\
	shared/matrix.h
weston_calibrator_LDADD = libtoytoolkit.la
829
weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
830

831
832
833
834
835
836
837
838
839
840
841
weston_touch_calibrator_SOURCES = 			\
	clients/touch-calibrator.c			\
	shared/helpers.h				\
	shared/matrix.c					\
	shared/matrix.h
nodist_weston_touch_calibrator_SOURCES =		\
	protocol/weston-touch-calibration-protocol.c	\
	protocol/weston-touch-calibration-client-protocol.h
weston_touch_calibrator_LDADD = libtoytoolkit.la
weston_touch_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)

842
843
if BUILD_SUBSURFACES_CLIENT
demo_clients += weston-subsurfaces
844
845
846
weston_subsurfaces_SOURCES = 			\
	clients/subsurfaces.c			\
	shared/helpers.h
847
848
849
850
weston_subsurfaces_CFLAGS =			\
	$(AM_CFLAGS)				\
	$(SIMPLE_EGL_CLIENT_CFLAGS)		\
	$(CLIENT_CFLAGS)
851
852
853
854
855
weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
endif

if HAVE_PANGO
demo_clients += weston-editor
856
857
858
weston_editor_SOURCES = 			\
	clients/editor.c			\
	shared/helpers.h
859
nodist_weston_editor_SOURCES =			\
860
861
	protocol/text-input-unstable-v1-protocol.c		\
	protocol/text-input-unstable-v1-client-protocol.h
862
weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
863
weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
864
865
endif

866
weston_keyboard_SOURCES = clients/keyboard.c
867
868
869
nodist_weston_keyboard_SOURCES =				\
	protocol/weston-desktop-shell-client-protocol.h		\
	protocol/weston-desktop-shell-protocol.c		\
870
871
	protocol/input-method-unstable-v1-protocol.c		\
	protocol/input-method-unstable-v1-client-protocol.h
872
weston_keyboard_LDADD = libtoytoolkit.la
873
weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
874

875
weston_simple_im_SOURCES = clients/simple-im.c
876
nodist_weston_simple_im_SOURCES =		\
877
878
	protocol/input-method-unstable-v1-protocol.c		\
	protocol/input-method-unstable-v1-client-protocol.h
879
weston_simple_im_LDADD = $(CLIENT_LIBS)
880
weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
881

882
883
884
weston_info_SOURCES = 					\
	clients/weston-info.c				\
	shared/helpers.h
885
886
887
888
889
890
nodist_weston_info_SOURCES =					\
	protocol/presentation-time-protocol.c			\
	protocol/presentation-time-client-protocol.h		\
	protocol/linux-dmabuf-unstable-v1-protocol.c		\
	protocol/linux-dmabuf-unstable-v1-client-protocol.h	\
	protocol/tablet-unstable-v2-protocol.c			\
891
892
893
	protocol/tablet-unstable-v2-client-protocol.h		\
	protocol/xdg-output-unstable-v1-protocol.c		\
	protocol/xdg-output-unstable-v1-client-protocol.h
894
weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen's avatar
Pekka Paalanen committed
895
weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
896

Pekka Paalanen's avatar
Pekka Paalanen committed
897
898
899
900
901
902
903
904
905
weston_debug_SOURCES = 					\
	clients/weston-debug.c				\
	shared/helpers.h
nodist_weston_debug_SOURCES =				\
	protocol/weston-debug-protocol.c		\
	protocol/weston-debug-client-protocol.h
weston_debug_LDADD = $(WESTON_INFO_LIBS) libshared.la
weston_debug_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)

906
907
908
weston_desktop_shell_SOURCES = 				\
	clients/desktop-shell.c				\
	shared/helpers.h
909
nodist_weston_desktop_shell_SOURCES =			\
910
911
	protocol/weston-desktop-shell-client-protocol.h	\
	protocol/weston-desktop-shell-protocol.c
912
weston_desktop_shell_LDADD = libtoytoolkit.la
913
weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
914

915
if ENABLE_IVI_SHELL
916
917
918
weston_ivi_shell_user_interface_SOURCES = 				\
	clients/ivi-shell-user-interface.c				\
	shared/helpers.h
919
920
921
922
923
924
925
926
927
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

928
929
930
931
if BUILD_FULL_GL_CLIENTS
demo_clients += weston-gears
weston_gears_SOURCES = clients/gears.c
weston_gears_LDADD = libtoytoolkit.la
932
weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
933
934
935
936
937
endif

endif

BUILT_SOURCES +=					\
938
939
	protocol/weston-screenshooter-protocol.c			\
	protocol/weston-screenshooter-client-protocol.h			\
940
941
	protocol/weston-touch-calibration-protocol.c			\
	protocol/weston-touch-calibration-client-protocol.h		\
Pekka Paalanen's avatar
Pekka Paalanen committed
942
943
	protocol/weston-debug-protocol.c				\
	protocol/weston-debug-client-protocol.h				\
944
945
	protocol/text-cursor-position-client-protocol.h	\
	protocol/text-cursor-position-protocol.c	\
946
947
	protocol/text-input-unstable-v1-protocol.c			\
	protocol/text-input-unstable-v1-client-protocol.h		\
948
949
	protocol/input-method-unstable-v1-protocol.c			\
	protocol/input-method-unstable-v1-client-protocol.h		\
950
951
	protocol/weston-desktop-shell-client-protocol.h			\
	protocol/weston-desktop-shell-protocol.c			\
952
953
	protocol/viewporter-client-protocol.h		\
	protocol/viewporter-protocol.c			\
954
955
	protocol/presentation-time-protocol.c				\
	protocol/presentation-time-client-protocol.h			\
956
957
	protocol/fullscreen-shell-unstable-v1-protocol.c		\
	protocol/fullscreen-shell-unstable-v1-client-protocol.h	\
958
959
	protocol/xdg-shell-unstable-v6-protocol.c			\
	protocol/xdg-shell-unstable-v6-client-protocol.h		\
960
961
962
	protocol/ivi-hmi-controller-protocol.c		\
	protocol/ivi-hmi-controller-client-protocol.h	\
	protocol/ivi-application-protocol.c		\
963
964
	protocol/ivi-application-client-protocol.h	\
	protocol/linux-dmabuf-unstable-v1-protocol.c	\
965
	protocol/linux-dmabuf-unstable-v1-client-protocol.h		\
966
967
	protocol/tablet-unstable-v2-protocol.c		\
	protocol/tablet-unstable-v2-client-protocol.h			\
968
	protocol/input-timestamps-unstable-v1-protocol.c		\
969
970
971
	protocol/input-timestamps-unstable-v1-client-protocol.h		\
	protocol/xdg-output-unstable-v1-protocol.c			\
	protocol/xdg-output-unstable-v1-client-protocol.h
972

973
974
975
976
977
978
979
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
980
981
982
	data/icon_editor.png			\
	data/icon_flower.png			\
	data/icon_terminal.png			\
983
984
985
	data/icon_window.png			\
	data/sign_close.png			\
	data/sign_maximize.png			\
986
987
988
989
	data/sign_minimize.png

if ENABLE_IVI_SHELL
dist_westondata_DATA +=				\
990
991
992
993
994
995
996
997
998
999
1000
1001
	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
1002
endif
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012


if BUILD_WCAP_TOOLS
bin_PROGRAMS += wcap-decode

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

1013
wcap_decode_CFLAGS = $(AM_CFLAGS) $(WCAP_CFLAGS)
1014
1015
wcap_decode_LDADD = $(WCAP_LIBS)
endif
1016
1017
1018
1019
1020
1021
1022


if ENABLE_DESKTOP_SHELL

module_LTLIBRARIES += desktop-shell.la

desktop_shell_la_CPPFLAGS =			\
1023
	-I$(top_builddir)/protocol		\
1024
	-I$(top_srcdir)/shared			\
Pekka Paalanen's avatar
Pekka Paalanen committed
1025
	-I$(top_builddir)/libweston		\
1026
	-I$(top_srcdir)/libweston		\
1027
1028
1029
1030
1031
1032
	-I$(top_builddir)/desktop-shell		\
	-DMODULEDIR='"$(moduledir)"'		\
	-DLIBEXECDIR='"$(libexecdir)"'		\
	-DIN_WESTON

desktop_shell_la_LDFLAGS = -module -avoid-version
1033
desktop_shell_la_LIBADD = libshared.la libweston-desktop-@LIBWESTON_MAJOR@.la $(COMPOSITOR_LIBS)
1034
desktop_shell_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS)
1035
1036
1037
1038
desktop_shell_la_SOURCES =				\
	desktop-shell/shell.h				\
	desktop-shell/shell.c				\
	desktop-shell/exposay.c				\
1039
1040
	desktop-shell/input-panel.c			\
	shared/helpers.h
1041
nodist_desktop_shell_la_SOURCES =			\
1042
	protocol/weston-desktop-shell-protocol.c	\