blob: 863adb2402700681acbf34eaa20ec97b76481c23 [file] [log] [blame]
Thierry Reding0e6d9a72014-05-27 09:07:54 +02001ACLOCAL_AMFLAGS = -I m4
2
Kristian Høgsberge895f142014-01-27 21:46:30 -08003bin_PROGRAMS =
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -08004noinst_PROGRAMS =
Kristian Høgsberge73eccd2014-01-31 16:15:11 -08005libexec_PROGRAMS =
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -08006moduledir = $(libdir)/weston
7module_LTLIBRARIES =
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -08008noinst_LTLIBRARIES =
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -08009BUILT_SOURCES =
Kristian Høgsberge895f142014-01-27 21:46:30 -080010
Derek Foreman2ef9e812015-02-09 09:57:29 -060011AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
Kristian Høgsberg24639cc2013-02-25 13:03:15 -050012
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090013EXTRA_DIST = weston.ini.in ivi-shell/weston.ini.in
Neil Robertse3de16e2013-11-22 16:46:00 +000014
15weston.ini : $(srcdir)/weston.ini.in
16 $(AM_V_GEN)$(SED) \
17 -e 's|@bindir[@]|$(bindir)|g' \
18 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
19 -e 's|@libexecdir[@]|$(libexecdir)|g' \
20 $< > $@
21
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090022ivi-shell/weston.ini : $(srcdir)/ivi-shell/weston.ini.in
23 $(AM_V_GEN)$(SED) \
24 -e 's|@bindir[@]|$(bindir)|g' \
25 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
26 -e 's|@libexecdir[@]|$(libexecdir)|g' \
27 $< > $@
28
29all-local : weston.ini ivi-shell/weston.ini
Kristian Høgsberg98463742013-12-16 23:12:46 -080030
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080031AM_CFLAGS = $(GCC_CFLAGS)
32
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080033AM_CPPFLAGS = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080034 -I$(top_srcdir)/src \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080035 -I$(top_builddir)/src \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080036 -I$(top_builddir)/clients \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080037 -I$(top_builddir)/tests \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080038 -I$(top_srcdir)/shared \
Quentin Glidic088ba5e2014-02-01 21:39:12 +010039 -I$(top_builddir)/protocol \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080040 -DDATADIR='"$(datadir)"' \
41 -DMODULEDIR='"$(moduledir)"' \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080042 -DLIBEXECDIR='"$(libexecdir)"' \
43 -DBINDIR='"$(bindir)"'
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080044
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090045CLEANFILES = weston.ini ivi-shell/weston.ini $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080046
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080047bin_PROGRAMS += weston
48
49weston_LDFLAGS = -export-dynamic
50weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
51weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
52weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -080053 $(DLOPEN_LIBS) -lm libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080054
55weston_SOURCES = \
56 src/git-version.h \
57 src/log.c \
58 src/compositor.c \
59 src/compositor.h \
60 src/input.c \
61 src/data-device.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080062 src/screenshooter.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080063 src/clipboard.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080064 src/zoom.c \
65 src/text-backend.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080066 src/bindings.c \
67 src/animation.c \
68 src/noop-renderer.c \
69 src/pixman-renderer.c \
70 src/pixman-renderer.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +020071 src/timeline.c \
72 src/timeline.h \
73 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080074 shared/matrix.c \
75 shared/matrix.h \
76 shared/zalloc.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +010077 shared/platform.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080078 src/weston-egl-ext.h
79
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -080080nodist_weston_SOURCES = \
81 protocol/screenshooter-protocol.c \
82 protocol/screenshooter-server-protocol.h \
83 protocol/text-cursor-position-protocol.c \
84 protocol/text-cursor-position-server-protocol.h \
85 protocol/text-protocol.c \
86 protocol/text-server-protocol.h \
87 protocol/input-method-protocol.c \
88 protocol/input-method-server-protocol.h \
89 protocol/workspaces-protocol.c \
90 protocol/workspaces-server-protocol.h \
Pekka Paalanen7e62d252014-09-23 22:08:42 -040091 protocol/presentation_timing-protocol.c \
92 protocol/presentation_timing-server-protocol.h \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -080093 protocol/scaler-protocol.c \
94 protocol/scaler-server-protocol.h
95
96BUILT_SOURCES += $(nodist_weston_SOURCES)
97
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -080098# Track this dependency explicitly instead of using BUILT_SOURCES. We
99# add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h
100# in case we're building from tarballs.
101
102src/compositor.c : $(top_builddir)/src/git-version.h
103
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800104noinst_LTLIBRARIES += \
105 libsession-helper.la
106
107libsession_helper_la_SOURCES = \
108 src/weston-launch.h \
109 src/launcher-util.c \
110 src/launcher-util.h
111libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS)
112libsession_helper_la_LIBADD = $(LIBDRM_LIBS)
113
114if ENABLE_DBUS
115if HAVE_SYSTEMD_LOGIN
116libsession_helper_la_SOURCES += \
117 src/dbus.h \
118 src/dbus.c \
119 src/logind-util.h \
120 src/logind-util.c
121libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS)
122libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS)
123endif
124endif
125
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800126if HAVE_GIT_REPO
127src/git-version.h : $(top_srcdir)/.git/logs/HEAD
128 $(AM_V_GEN)echo "#define BUILD_ID \"$(shell git --git-dir=$(top_srcdir)/.git describe --always --dirty) $(shell git --git-dir=$(top_srcdir)/.git log -1 --format='%s (%ci)')\"" > $@
Kristian Høgsberg1d2dd072014-02-03 10:55:51 -0800129else
130src/git-version.h :
131 $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@
132
Kristian Høgsberg0aa19e92014-01-31 16:33:48 -0800133endif
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800134
135.FORCE :
136
137if BUILD_WESTON_LAUNCH
138bin_PROGRAMS += weston-launch
139weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h
140weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"'
141weston_launch_CFLAGS= \
142 $(GCC_CFLAGS) \
143 $(PAM_CFLAGS) \
144 $(SYSTEMD_LOGIN_CFLAGS) \
145 $(LIBDRM_CFLAGS)
146weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS)
147
148if ENABLE_SETUID_INSTALL
149install-exec-hook:
150 chown root $(DESTDIR)$(bindir)/weston-launch
151 chmod u+s $(DESTDIR)$(bindir)/weston-launch
152endif
153
154endif # BUILD_WESTON_LAUNCH
155
156pkgconfigdir = $(libdir)/pkgconfig
157pkgconfig_DATA = src/weston.pc
158
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100159wayland_sessiondir = $(datadir)/wayland-sessions
160wayland_session_DATA = src/weston.desktop
Marek Chalupa194ca2b2015-01-22 10:03:03 +0100161dist_wayland_session_DATA = $(wayland_session_DATA)
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100162
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800163westonincludedir = $(includedir)/weston
164westoninclude_HEADERS = \
165 src/version.h \
166 src/compositor.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200167 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800168 shared/matrix.h \
169 shared/config-parser.h \
Jonny Lamb51a7ae52015-03-20 15:26:51 +0100170 shared/zalloc.h \
171 shared/platform.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800172
173if ENABLE_EGL
174module_LTLIBRARIES += gl-renderer.la
175gl_renderer_la_LDFLAGS = -module -avoid-version
176gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
177gl_renderer_la_CFLAGS = \
178 $(COMPOSITOR_CFLAGS) \
179 $(EGL_CFLAGS) \
180 $(GCC_CFLAGS)
181gl_renderer_la_SOURCES = \
182 src/gl-renderer.h \
183 src/gl-renderer.c \
184 src/vertex-clipping.c \
185 src/vertex-clipping.h
186endif
187
188if ENABLE_X11_COMPOSITOR
189module_LTLIBRARIES += x11-backend.la
190x11_backend_la_LDFLAGS = -module -avoid-version
191x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800192 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800193x11_backend_la_CFLAGS = \
194 $(COMPOSITOR_CFLAGS) \
195 $(EGL_CFLAGS) \
196 $(PIXMAN_CFLAGS) \
197 $(CAIRO_CFLAGS) \
198 $(X11_COMPOSITOR_CFLAGS) \
199 $(GCC_CFLAGS)
200x11_backend_la_SOURCES = src/compositor-x11.c
201endif
202
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100203INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000204INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100205 src/libinput-seat.c \
206 src/libinput-seat.h \
207 src/libinput-device.c \
208 src/libinput-device.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100209
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800210if ENABLE_DRM_COMPOSITOR
211module_LTLIBRARIES += drm-backend.la
212drm_backend_la_LDFLAGS = -module -avoid-version
213drm_backend_la_LIBADD = \
214 $(COMPOSITOR_LIBS) \
215 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100216 $(INPUT_BACKEND_LIBS) \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100217 libshared.la -lrt \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800218 libsession-helper.la
219drm_backend_la_CFLAGS = \
220 $(COMPOSITOR_CFLAGS) \
221 $(EGL_CFLAGS) \
222 $(DRM_COMPOSITOR_CFLAGS) \
223 $(GCC_CFLAGS)
224drm_backend_la_SOURCES = \
225 src/compositor-drm.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100226 $(INPUT_BACKEND_SOURCES) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800227 src/libbacklight.c \
228 src/libbacklight.h
229
230if ENABLE_VAAPI_RECORDER
231drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
232drm_backend_la_LIBADD += $(LIBVA_LIBS)
233drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
234endif
235endif
236
237if ENABLE_WAYLAND_COMPOSITOR
238module_LTLIBRARIES += wayland-backend.la
239wayland_backend_la_LDFLAGS = -module -avoid-version
240wayland_backend_la_LIBADD = \
241 $(COMPOSITOR_LIBS) \
242 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800243 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800244wayland_backend_la_CFLAGS = \
245 $(COMPOSITOR_CFLAGS) \
246 $(EGL_CFLAGS) \
247 $(PIXMAN_CFLAGS) \
248 $(CAIRO_CFLAGS) \
249 $(WAYLAND_COMPOSITOR_CFLAGS) \
250 $(GCC_CFLAGS)
251wayland_backend_la_SOURCES = src/compositor-wayland.c
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500252nodist_wayland_backend_la_SOURCES = \
253 protocol/fullscreen-shell-protocol.c \
254 protocol/fullscreen-shell-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800255endif
256
257if ENABLE_RPI_COMPOSITOR
258if INSTALL_RPI_COMPOSITOR
259module_LTLIBRARIES += rpi-backend.la
260else
261noinst_LTLIBRARIES += rpi-backend.la
262endif
263
264rpi_backend_la_LDFLAGS = -module -avoid-version
265rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
266 $(RPI_COMPOSITOR_LIBS) \
267 $(RPI_BCM_HOST_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100268 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800269 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800270 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800271rpi_backend_la_CFLAGS = \
272 $(GCC_CFLAGS) \
273 $(COMPOSITOR_CFLAGS) \
274 $(RPI_COMPOSITOR_CFLAGS) \
275 $(RPI_BCM_HOST_CFLAGS)
276rpi_backend_la_SOURCES = \
277 src/compositor-rpi.c \
278 src/rpi-renderer.c \
279 src/rpi-renderer.h \
280 src/rpi-bcm-stubs.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100281 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800282
283if ENABLE_EGL
284rpi_backend_la_LIBADD += $(EGL_LIBS)
285rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
286endif
287
288endif
289
290if ENABLE_HEADLESS_COMPOSITOR
291module_LTLIBRARIES += headless-backend.la
292headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800293headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
294headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800295headless_backend_la_SOURCES = src/compositor-headless.c
296endif
297
298if ENABLE_FBDEV_COMPOSITOR
299module_LTLIBRARIES += fbdev-backend.la
300fbdev_backend_la_LDFLAGS = -module -avoid-version
301fbdev_backend_la_LIBADD = \
302 $(COMPOSITOR_LIBS) \
303 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100304 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800305 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800306 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800307fbdev_backend_la_CFLAGS = \
308 $(COMPOSITOR_CFLAGS) \
309 $(EGL_CFLAGS) \
310 $(FBDEV_COMPOSITOR_CFLAGS) \
311 $(PIXMAN_CFLAGS) \
312 $(GCC_CFLAGS)
313fbdev_backend_la_SOURCES = \
314 src/compositor-fbdev.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100315 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800316endif
317
318if ENABLE_RDP_COMPOSITOR
319module_LTLIBRARIES += rdp-backend.la
320rdp_backend_la_LDFLAGS = -module -avoid-version
321rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
322 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800323 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800324rdp_backend_la_CFLAGS = \
325 $(COMPOSITOR_CFLAGS) \
326 $(RDP_COMPOSITOR_CFLAGS) \
327 $(GCC_CFLAGS)
328rdp_backend_la_SOURCES = src/compositor-rdp.c
329endif
330
331if HAVE_LCMS
332module_LTLIBRARIES += cms-static.la
333cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800334cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800335cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
336cms_static_la_SOURCES = \
337 src/cms-static.c \
338 src/cms-helper.c \
339 src/cms-helper.h
340if ENABLE_COLORD
341module_LTLIBRARIES += cms-colord.la
342cms_colord_la_LDFLAGS = -module -avoid-version
343cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
344cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
345cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100346 src/cms-colord.c \
347 src/cms-helper.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800348 src/cms-helper.h
349endif
350endif
351
352noinst_PROGRAMS += spring-tool
353spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
354spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
355spring_tool_SOURCES = \
356 src/spring-tool.c \
357 src/animation.c \
358 shared/matrix.c \
359 shared/matrix.h \
360 src/compositor.h
361
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800362if BUILD_CLIENTS
363
364bin_PROGRAMS += weston-terminal weston-info
365
366libexec_PROGRAMS += \
367 weston-desktop-shell \
368 weston-screenshooter \
369 weston-keyboard \
370 weston-simple-im
371
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900372if ENABLE_IVI_SHELL
373libexec_PROGRAMS += \
374 weston-ivi-shell-user-interface
375endif
376
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800377demo_clients = \
378 weston-flower \
379 weston-image \
380 weston-cliptest \
381 weston-dnd \
382 weston-smoke \
383 weston-resizor \
384 weston-eventdemo \
385 weston-clickdot \
386 weston-transformed \
387 weston-fullscreen \
388 weston-stacking \
389 weston-calibrator \
390 weston-scaler
391
392if INSTALL_DEMO_CLIENTS
393bin_PROGRAMS += $(demo_clients)
394else
395noinst_PROGRAMS += $(demo_clients)
396endif
397
398
399if BUILD_SIMPLE_CLIENTS
400demo_clients += \
401 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500402 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800403 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400404 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800405 weston-multi-resource
406
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800407weston_simple_shm_SOURCES = clients/simple-shm.c
408nodist_weston_simple_shm_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800409 protocol/xdg-shell-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500410 protocol/xdg-shell-client-protocol.h \
411 protocol/fullscreen-shell-protocol.c \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900412 protocol/fullscreen-shell-client-protocol.h \
413 protocol/ivi-application-protocol.c \
414 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800415weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800416weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800417
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500418weston_simple_damage_SOURCES = clients/simple-damage.c
419nodist_weston_simple_damage_SOURCES = \
420 protocol/scaler-protocol.c \
421 protocol/scaler-client-protocol.h \
422 protocol/xdg-shell-protocol.c \
423 protocol/xdg-shell-client-protocol.h \
424 protocol/fullscreen-shell-protocol.c \
425 protocol/fullscreen-shell-client-protocol.h
426weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
427weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
428
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800429weston_simple_touch_SOURCES = clients/simple-touch.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800430weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800431weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800432
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400433weston_presentation_shm_SOURCES = clients/presentation-shm.c
434nodist_weston_presentation_shm_SOURCES = \
435 protocol/presentation_timing-protocol.c \
436 protocol/presentation_timing-client-protocol.h
437weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
438weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
439
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800440weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800441weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Javier Jardónc47931e2014-10-27 15:13:19 +0000442weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800443endif
444
445if BUILD_SIMPLE_EGL_CLIENTS
446demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800447weston_simple_egl_SOURCES = clients/simple-egl.c
448nodist_weston_simple_egl_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800449 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900450 protocol/xdg-shell-client-protocol.h \
451 protocol/ivi-application-protocol.c \
452 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800453weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800454weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
455endif
456
457noinst_LTLIBRARIES += libtoytoolkit.la
458
459libtoytoolkit_la_SOURCES = \
460 clients/window.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800461 clients/window.h
462
463nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100464 protocol/text-cursor-position-protocol.c \
465 protocol/text-cursor-position-client-protocol.h \
466 protocol/scaler-protocol.c \
467 protocol/scaler-client-protocol.h \
468 protocol/workspaces-protocol.c \
469 protocol/workspaces-client-protocol.h \
Pekka Paalanen7e62d252014-09-23 22:08:42 -0400470 protocol/presentation_timing-protocol.c \
471 protocol/presentation_timing-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100472 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900473 protocol/xdg-shell-client-protocol.h \
474 protocol/ivi-application-protocol.c \
475 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500476
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800477BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
478
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800479
480libtoytoolkit_la_LIBADD = \
481 $(CLIENT_LIBS) \
482 $(CAIRO_EGL_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800483 libshared-cairo.la -lrt -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800484libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800485
486weston_flower_SOURCES = clients/flower.c
487weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800488weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800489
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100490weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800491 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800492nodist_weston_screenshooter_SOURCES = \
493 protocol/screenshooter-protocol.c \
494 protocol/screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800495weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800496weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800497
498weston_terminal_SOURCES = clients/terminal.c
499weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800500weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800501
502weston_image_SOURCES = clients/image.c
503weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800504weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800505
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300506weston_cliptest_SOURCES = \
507 clients/cliptest.c \
508 src/vertex-clipping.c \
509 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800510weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800511weston_cliptest_LDADD = libtoytoolkit.la
512
513weston_dnd_SOURCES = clients/dnd.c
514weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800515weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800516
517weston_smoke_SOURCES = clients/smoke.c
518weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800519weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800520
521weston_resizor_SOURCES = clients/resizor.c
522weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800523weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800524
525weston_scaler_SOURCES = clients/scaler.c
526weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800527weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800528
529if HAVE_CAIRO_GLESV2
530demo_clients += weston-nested weston-nested-client
531
532weston_nested_SOURCES = clients/nested.c
533weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800534weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800535
536weston_nested_client_SOURCES = clients/nested-client.c
537weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800538weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800539endif
540
541weston_eventdemo_SOURCES = clients/eventdemo.c
542weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800543weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800544
545weston_clickdot_SOURCES = clients/clickdot.c
546weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800547weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800548
549weston_transformed_SOURCES = clients/transformed.c
550weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800551weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800552
553weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500554nodist_weston_fullscreen_SOURCES = \
555 protocol/fullscreen-shell-protocol.c \
556 protocol/fullscreen-shell-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800557weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800558weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800559
560weston_stacking_SOURCES = clients/stacking.c
561weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800562weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800563
564weston_calibrator_SOURCES = clients/calibrator.c \
565 shared/matrix.c \
566 shared/matrix.h
567weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800568weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800569
570if BUILD_SUBSURFACES_CLIENT
571demo_clients += weston-subsurfaces
572weston_subsurfaces_SOURCES = clients/subsurfaces.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800573weston_subsurfaces_CFLAGS = \
574 $(AM_CFLAGS) \
575 $(SIMPLE_EGL_CLIENT_CFLAGS) \
576 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800577weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
578endif
579
580if HAVE_PANGO
581demo_clients += weston-editor
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800582weston_editor_SOURCES = clients/editor.c
583nodist_weston_editor_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100584 protocol/text-protocol.c \
585 protocol/text-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800586weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800587weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800588endif
589
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800590weston_keyboard_SOURCES = clients/keyboard.c
591nodist_weston_keyboard_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100592 protocol/desktop-shell-client-protocol.h \
593 protocol/desktop-shell-protocol.c \
594 protocol/input-method-protocol.c \
595 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800596weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800597weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800598
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800599weston_simple_im_SOURCES = clients/weston-simple-im.c
600nodist_weston_simple_im_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100601 protocol/input-method-protocol.c \
602 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800603weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800604weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800605
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800606weston_info_SOURCES = clients/weston-info.c
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400607nodist_weston_info_SOURCES = \
608 protocol/presentation_timing-protocol.c \
609 protocol/presentation_timing-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800610weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200611weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800612
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800613weston_desktop_shell_SOURCES = clients/desktop-shell.c
614nodist_weston_desktop_shell_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100615 protocol/desktop-shell-client-protocol.h \
616 protocol/desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800617weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800618weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800619
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900620if ENABLE_IVI_SHELL
621weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
622nodist_weston_ivi_shell_user_interface_SOURCES = \
623 protocol/ivi-hmi-controller-client-protocol.h \
624 protocol/ivi-hmi-controller-protocol.c \
625 protocol/ivi-application-client-protocol.h \
626 protocol/ivi-application-protocol.c
627weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
628weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
629endif
630
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800631if BUILD_FULL_GL_CLIENTS
632demo_clients += weston-gears
633weston_gears_SOURCES = clients/gears.c
634weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800635weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800636
637if HAVE_GLU
638libexec_PROGRAMS += weston-screensaver
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100639weston_screensaver_SOURCES = \
640 clients/wscreensaver.c \
641 clients/wscreensaver.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100642 clients/wscreensaver-glue.c \
643 clients/wscreensaver-glue.h \
644 clients/glmatrix.c \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800645 clients/matrix3.xpm
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800646nodist_weston_screensaver_SOURCES = \
647 protocol/desktop-shell-client-protocol.h \
648 protocol/desktop-shell-protocol.c
649
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800650weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800651weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800652
653endif
654
655endif
656
657endif
658
659BUILT_SOURCES += \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100660 protocol/screenshooter-protocol.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800661 protocol/screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100662 protocol/text-cursor-position-client-protocol.h \
663 protocol/text-cursor-position-protocol.c \
664 protocol/text-protocol.c \
665 protocol/text-client-protocol.h \
666 protocol/input-method-protocol.c \
667 protocol/input-method-client-protocol.h \
668 protocol/desktop-shell-client-protocol.h \
669 protocol/desktop-shell-protocol.c \
670 protocol/scaler-client-protocol.h \
671 protocol/scaler-protocol.c \
672 protocol/workspaces-client-protocol.h \
673 protocol/workspaces-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500674 protocol/fullscreen-shell-protocol.c \
675 protocol/fullscreen-shell-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100676 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900677 protocol/xdg-shell-client-protocol.h \
678 protocol/ivi-hmi-controller-protocol.c \
679 protocol/ivi-hmi-controller-client-protocol.h \
680 protocol/ivi-application-protocol.c \
681 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800682
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800683westondatadir = $(datadir)/weston
684dist_westondata_DATA = \
685 data/wayland.svg \
686 data/wayland.png \
687 data/pattern.png \
688 data/terminal.png \
689 data/border.png \
690 data/icon_window.png \
691 data/sign_close.png \
692 data/sign_maximize.png \
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100693 data/sign_minimize.png
694
695if ENABLE_IVI_SHELL
696dist_westondata_DATA += \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900697 data/background.png \
698 data/tiling.png \
699 data/fullscreen.png \
700 data/panel.png \
701 data/random.png \
702 data/sidebyside.png \
703 data/home.png \
704 data/icon_ivi_clickdot.png \
705 data/icon_ivi_flower.png \
706 data/icon_ivi_simple-egl.png \
707 data/icon_ivi_simple-shm.png \
708 data/icon_ivi_smoke.png
Manuel Bachmannd2c68922015-02-16 11:00:36 +0100709endif
Kristian Høgsberge895f142014-01-27 21:46:30 -0800710
711
712if BUILD_WCAP_TOOLS
713bin_PROGRAMS += wcap-decode
714
715wcap_decode_SOURCES = \
716 wcap/main.c \
717 wcap/wcap-decode.c \
718 wcap/wcap-decode.h
719
720wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
721wcap_decode_LDADD = $(WCAP_LIBS)
722endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800723
724
725if ENABLE_DESKTOP_SHELL
726
727module_LTLIBRARIES += desktop-shell.la
728
729desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100730 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800731 -I$(top_srcdir)/shared \
732 -I$(top_srcdir)/src \
733 -I$(top_builddir)/src \
734 -I$(top_builddir)/desktop-shell \
735 -DDATADIR='"$(datadir)"' \
736 -DMODULEDIR='"$(moduledir)"' \
737 -DLIBEXECDIR='"$(libexecdir)"' \
738 -DIN_WESTON
739
740desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800741desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800742desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
743desktop_shell_la_SOURCES = \
744 desktop-shell/shell.h \
745 desktop-shell/shell.c \
746 desktop-shell/exposay.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800747 desktop-shell/input-panel.c
748nodist_desktop_shell_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100749 protocol/desktop-shell-protocol.c \
750 protocol/desktop-shell-server-protocol.h \
751 protocol/xdg-shell-protocol.c \
752 protocol/xdg-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800753
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800754BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800755endif
756
Jason Ekstrand946a9482014-04-02 19:53:47 -0500757if ENABLE_FULLSCREEN_SHELL
758
759module_LTLIBRARIES += fullscreen-shell.la
760
761fullscreen_shell_la_CPPFLAGS = \
762 -I$(top_builddir)/protocol \
763 -I$(top_srcdir)/shared \
764 -I$(top_srcdir)/src \
765 -I$(top_builddir)/src \
766 -DIN_WESTON
767
768fullscreen_shell_la_LDFLAGS = -module -avoid-version
769fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
770fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
771fullscreen_shell_la_SOURCES = \
772 fullscreen-shell/fullscreen-shell.c
773nodist_fullscreen_shell_la_SOURCES = \
774 protocol/fullscreen-shell-protocol.c \
775 protocol/fullscreen-shell-server-protocol.h
776
777BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
778endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800779
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900780if ENABLE_IVI_SHELL
781
782module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900783 $(ivi_shell) \
784 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900785
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900786ivi_shell = ivi-shell.la
787ivi_shell_la_LDFLAGS = -module -avoid-version
788ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
789ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
790ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900791 ivi-shell/ivi-layout-export.h \
792 ivi-shell/ivi-layout-private.h \
793 ivi-shell/ivi-layout.c \
794 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900795 ivi-shell/ivi-shell.h \
796 ivi-shell/ivi-shell.c \
Nobuhiko Tanibata0038b732014-11-27 13:25:34 +0900797 ivi-shell/input-panel-ivi.c
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900798nodist_ivi_shell_la_SOURCES = \
799 protocol/ivi-application-protocol.c \
800 protocol/ivi-application-server-protocol.h
801
802BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
803
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900804hmi_controller = hmi-controller.la
805hmi_controller_la_LDFLAGS = -module -avoid-version
806hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
807hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
808hmi_controller_la_SOURCES = \
809 ivi-shell/ivi-layout-export.h \
810 ivi-shell/hmi-controller.c
811nodist_hmi_controller_la_SOURCES = \
812 protocol/ivi-hmi-controller-protocol.c \
813 protocol/ivi-hmi-controller-server-protocol.h
814
815BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
816
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900817endif
818
819
Jason Ekstrand47928d82014-04-02 19:54:01 -0500820if ENABLE_SCREEN_SHARING
821
822module_LTLIBRARIES += screen-share.la
823
824screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
825screen_share_la_LDFLAGS = -module -avoid-version
826screen_share_la_LIBADD = \
827 $(COMPOSITOR_LIBS) \
828 $(SCREEN_SHARE_LIBS) \
829 libshared-cairo.la
830screen_share_la_CFLAGS = \
831 $(COMPOSITOR_CFLAGS) \
832 $(SCREEN_SHARE_CFLAGS) \
833 $(GCC_CFLAGS)
834screen_share_la_SOURCES = \
835 src/screen-share.c
836nodist_screen_share_la_SOURCES = \
837 protocol/fullscreen-shell-protocol.c \
838 protocol/fullscreen-shell-client-protocol.h
839
840endif
841
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800842if ENABLE_XWAYLAND
843
844module_LTLIBRARIES += xwayland.la
845
846xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100847 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800848 -I$(top_srcdir)/shared \
849 -I$(top_srcdir)/src \
850 -I$(top_builddir)/src \
851 -I$(top_builddir)/xwayland \
852 -DDATADIR='"$(datadir)"' \
853 -DMODULEDIR='"$(moduledir)"' \
854 -DLIBEXECDIR='"$(libexecdir)"' \
855 -DXSERVER_PATH='"@XSERVER_PATH@"'
856
857xwayland_la_LDFLAGS = -module -avoid-version
858xwayland_la_LIBADD = \
859 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800860 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800861xwayland_la_CFLAGS = \
862 $(GCC_CFLAGS) \
863 $(COMPOSITOR_CFLAGS) \
864 $(PIXMAN_CFLAGS) \
865 $(CAIRO_CFLAGS)
866xwayland_la_SOURCES = \
867 xwayland/xwayland.h \
868 xwayland/window-manager.c \
869 xwayland/selection.c \
870 xwayland/dnd.c \
871 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800872 xwayland/hash.c \
873 xwayland/hash.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800874endif
875
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800876
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800877#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800878# Shared utilities
879#
880
881noinst_LTLIBRARIES += libshared.la libshared-cairo.la
882
883libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
884
885libshared_la_SOURCES = \
886 shared/config-parser.c \
887 shared/option-parser.c \
888 shared/config-parser.h \
Pekka Paalanen899b50b2015-02-12 12:52:21 +0200889 shared/file-util.c \
890 shared/file-util.h \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800891 shared/os-compatibility.c \
892 shared/os-compatibility.h
893
894libshared_cairo_la_CFLAGS = \
895 -DDATADIR='"$(datadir)"' \
896 $(GCC_CFLAGS) \
897 $(COMPOSITOR_CFLAGS) \
898 $(PIXMAN_CFLAGS) \
899 $(CAIRO_CFLAGS) \
900 $(PNG_CFLAGS) \
901 $(WEBP_CFLAGS)
902
903libshared_cairo_la_LIBADD = \
904 $(PIXMAN_LIBS) \
905 $(CAIRO_LIBS) \
906 $(PNG_LIBS) \
907 $(WEBP_LIBS) \
908 $(JPEG_LIBS)
909
910libshared_cairo_la_SOURCES = \
911 $(libshared_la_SOURCES) \
912 shared/image-loader.c \
913 shared/image-loader.h \
914 shared/cairo-util.c \
915 shared/frame.c \
916 shared/cairo-util.h
917
918
919#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800920# tests subdirectory
921#
922
923TESTS = $(shared_tests) $(module_tests) $(weston_tests)
924
925shared_tests = \
926 config-parser.test \
927 vertex-clip.test
928
929module_tests = \
930 surface-test.la \
931 surface-global-test.la
932
933weston_tests = \
934 bad_buffer.weston \
935 keyboard.weston \
936 event.weston \
937 button.weston \
938 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -0400939 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +0300940 roles.weston \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800941 subsurface.weston
942
943
944AM_TESTS_ENVIRONMENT = \
945 abs_builddir='$(abs_builddir)'; export abs_builddir;
946
947TEST_EXTENSIONS = .la .weston
948LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
949WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
950
951clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +0300952 -rm -rf logs
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800953
954# To remove when automake 1.11 support is dropped
955export abs_builddir
956
957noinst_LTLIBRARIES += \
958 weston-test.la \
959 $(module_tests) \
960 libtest-runner.la \
961 libtest-client.la
962
963noinst_PROGRAMS += \
964 $(setbacklight) \
965 $(shared_tests) \
966 $(weston_tests) \
967 matrix-test
968
969test_module_ldflags = \
970 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
971
972surface_global_test_la_SOURCES = tests/surface-global-test.c
973surface_global_test_la_LDFLAGS = $(test_module_ldflags)
974surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
975
976surface_test_la_SOURCES = tests/surface-test.c
977surface_test_la_LDFLAGS = $(test_module_ldflags)
978surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
979
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800980weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800981weston_test_la_LDFLAGS = $(test_module_ldflags)
982weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800983weston_test_la_SOURCES = tests/weston-test.c
984nodist_weston_test_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -0600985 protocol/weston-test-protocol.c \
986 protocol/weston-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800987
988if ENABLE_EGL
989weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
990weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
991endif
992
993libtest_runner_la_SOURCES = \
994 tests/weston-test-runner.c \
995 tests/weston-test-runner.h
996libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
997
998config_parser_test_SOURCES = tests/config-parser-test.c
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800999config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001000
1001vertex_clip_test_SOURCES = \
1002 tests/vertex-clip-test.c \
1003 src/vertex-clipping.c \
1004 src/vertex-clipping.h
1005vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
1006
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001007libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001008 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001009 tests/weston-test-client-helper.h
1010nodist_libtest_client_la_SOURCES = \
Derek Foremanf6a65922015-02-24 09:32:14 -06001011 protocol/weston-test-protocol.c \
1012 protocol/weston-test-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001013libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001014libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001015
1016bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001017bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001018bad_buffer_weston_LDADD = libtest-client.la
1019
1020keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001021keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001022keyboard_weston_LDADD = libtest-client.la
1023
1024event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001025event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001026event_weston_LDADD = libtest-client.la
1027
1028button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001029button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001030button_weston_LDADD = libtest-client.la
1031
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001032text_weston_SOURCES = tests/text-test.c
1033nodist_text_weston_SOURCES = \
1034 protocol/text-protocol.c \
1035 protocol/text-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001036text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001037text_weston_LDADD = libtest-client.la
1038
1039subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001040subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001041subsurface_weston_LDADD = libtest-client.la
1042
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001043presentation_weston_SOURCES = tests/presentation-test.c
1044nodist_presentation_weston_SOURCES = \
1045 protocol/presentation_timing-protocol.c \
1046 protocol/presentation_timing-client-protocol.h
1047presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1048presentation_weston_LDADD = libtest-client.la
1049
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001050roles_weston_SOURCES = tests/roles-test.c
1051roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1052roles_weston_LDADD = libtest-client.la
1053
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001054if ENABLE_EGL
1055weston_tests += buffer-count.weston
1056buffer_count_weston_SOURCES = tests/buffer-count-test.c
1057buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1058buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1059endif
1060
1061if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001062weston_tests += xwayland-test.weston
1063xwayland_test_weston_SOURCES = tests/xwayland-test.c
1064xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1065xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001066endif
1067
1068matrix_test_SOURCES = \
1069 tests/matrix-test.c \
1070 shared/matrix.c \
1071 shared/matrix.h
1072matrix_test_CPPFLAGS = -DUNIT_TEST
1073matrix_test_LDADD = -lm -lrt
1074
1075if BUILD_SETBACKLIGHT
1076noinst_PROGRAMS += setbacklight
1077setbacklight_SOURCES = \
1078 tests/setbacklight.c \
1079 src/libbacklight.c \
1080 src/libbacklight.h
1081setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1082setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1083endif
1084
1085EXTRA_DIST += tests/weston-tests-env
1086
1087BUILT_SOURCES += \
Derek Foremanf6a65922015-02-24 09:32:14 -06001088 protocol/weston-test-protocol.c \
1089 protocol/weston-test-server-protocol.h \
1090 protocol/weston-test-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001091 protocol/text-protocol.c \
1092 protocol/text-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001093
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001094EXTRA_DIST += \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001095 protocol/desktop-shell.xml \
1096 protocol/screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001097 protocol/text.xml \
1098 protocol/input-method.xml \
1099 protocol/workspaces.xml \
1100 protocol/text-cursor-position.xml \
Derek Foremanf6a65922015-02-24 09:32:14 -06001101 protocol/weston-test.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001102 protocol/xdg-shell.xml \
Jason Ekstrand27e11672014-04-02 19:53:44 -05001103 protocol/fullscreen-shell.xml \
Pekka Paalanen7e62d252014-09-23 22:08:42 -04001104 protocol/presentation_timing.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001105 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001106 protocol/ivi-application.xml \
1107 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001108
Pekka Paalanen312fe5f2015-02-09 11:23:48 +02001109#
1110# manual test modules in tests subdirectory
1111#
1112
1113noinst_LTLIBRARIES += \
1114 surface-screenshot.la
1115
1116surface_screenshot_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
1117surface_screenshot_la_LDFLAGS = $(test_module_ldflags)
1118surface_screenshot_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
1119surface_screenshot_la_SOURCES = tests/surface-screenshot.c
1120
1121
1122#
1123# Documentation
1124#
1125
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001126man_MANS = weston.1 weston.ini.5
1127
1128if ENABLE_DRM_COMPOSITOR
1129man_MANS += weston-drm.7
1130endif
1131
1132MAN_SUBSTS = \
1133 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1134 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1135 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1136 -e 's|__version__|$(PACKAGE_VERSION)|g'
1137
1138SUFFIXES = .1 .5 .7 .man
1139
1140%.1 %.5 %.7 : man/%.man
1141 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1142
1143EXTRA_DIST += \
1144 man/weston.man \
1145 man/weston-drm.man \
1146 man/weston.ini.man
1147
1148CLEANFILES += $(man_MANS)
1149
1150
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001151protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1152 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001153
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001154protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1155 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001156
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001157protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1158 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@