blob: b10d6bff1067865e5acf7bc12bc2132c49110428 [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
Pekka Paalanen3d3f4852014-08-20 12:11:04 +030011# Do not run xwayland test while it is known broken.
12AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install --disable-xwayland-test
Kristian Høgsberg24639cc2013-02-25 13:03:15 -050013
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090014EXTRA_DIST = weston.ini.in ivi-shell/weston.ini.in
Neil Robertse3de16e2013-11-22 16:46:00 +000015
16weston.ini : $(srcdir)/weston.ini.in
17 $(AM_V_GEN)$(SED) \
18 -e 's|@bindir[@]|$(bindir)|g' \
19 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
20 -e 's|@libexecdir[@]|$(libexecdir)|g' \
21 $< > $@
22
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090023ivi-shell/weston.ini : $(srcdir)/ivi-shell/weston.ini.in
24 $(AM_V_GEN)$(SED) \
25 -e 's|@bindir[@]|$(bindir)|g' \
26 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
27 -e 's|@libexecdir[@]|$(libexecdir)|g' \
28 $< > $@
29
30all-local : weston.ini ivi-shell/weston.ini
Kristian Høgsberg98463742013-12-16 23:12:46 -080031
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080032AM_CFLAGS = $(GCC_CFLAGS)
33
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080034AM_CPPFLAGS = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080035 -I$(top_srcdir)/src \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080036 -I$(top_builddir)/src \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080037 -I$(top_builddir)/clients \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -080038 -I$(top_builddir)/tests \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080039 -I$(top_srcdir)/shared \
Quentin Glidic088ba5e2014-02-01 21:39:12 +010040 -I$(top_builddir)/protocol \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080041 -DDATADIR='"$(datadir)"' \
42 -DMODULEDIR='"$(moduledir)"' \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -080043 -DLIBEXECDIR='"$(libexecdir)"' \
44 -DBINDIR='"$(bindir)"'
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080045
Nobuhiko Tanibata45d4cbf2014-11-27 13:24:16 +090046CLEANFILES = weston.ini ivi-shell/weston.ini $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080047
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080048bin_PROGRAMS += weston
49
50weston_LDFLAGS = -export-dynamic
51weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON
52weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS)
53weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -080054 $(DLOPEN_LIBS) -lm libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080055
56weston_SOURCES = \
57 src/git-version.h \
58 src/log.c \
59 src/compositor.c \
60 src/compositor.h \
61 src/input.c \
62 src/data-device.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080063 src/screenshooter.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080064 src/clipboard.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080065 src/zoom.c \
66 src/text-backend.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080067 src/bindings.c \
68 src/animation.c \
69 src/noop-renderer.c \
70 src/pixman-renderer.c \
71 src/pixman-renderer.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +020072 src/timeline.c \
73 src/timeline.h \
74 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -080075 shared/matrix.c \
76 shared/matrix.h \
77 shared/zalloc.h \
78 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 +0100159EXTRA_DIST += $(wayland_session_DATA)
160
161wayland_sessiondir = $(datadir)/wayland-sessions
162wayland_session_DATA = src/weston.desktop
163
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800164westonincludedir = $(includedir)/weston
165westoninclude_HEADERS = \
166 src/version.h \
167 src/compositor.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200168 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800169 shared/matrix.h \
170 shared/config-parser.h \
171 shared/zalloc.h
172
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 \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900693 data/sign_minimize.png \
694 data/background.png \
695 data/tiling.png \
696 data/fullscreen.png \
697 data/panel.png \
698 data/random.png \
699 data/sidebyside.png \
700 data/home.png \
701 data/icon_ivi_clickdot.png \
702 data/icon_ivi_flower.png \
703 data/icon_ivi_simple-egl.png \
704 data/icon_ivi_simple-shm.png \
705 data/icon_ivi_smoke.png
Kristian Høgsberge895f142014-01-27 21:46:30 -0800706
707
708if BUILD_WCAP_TOOLS
709bin_PROGRAMS += wcap-decode
710
711wcap_decode_SOURCES = \
712 wcap/main.c \
713 wcap/wcap-decode.c \
714 wcap/wcap-decode.h
715
716wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
717wcap_decode_LDADD = $(WCAP_LIBS)
718endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800719
720
721if ENABLE_DESKTOP_SHELL
722
723module_LTLIBRARIES += desktop-shell.la
724
725desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100726 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800727 -I$(top_srcdir)/shared \
728 -I$(top_srcdir)/src \
729 -I$(top_builddir)/src \
730 -I$(top_builddir)/desktop-shell \
731 -DDATADIR='"$(datadir)"' \
732 -DMODULEDIR='"$(moduledir)"' \
733 -DLIBEXECDIR='"$(libexecdir)"' \
734 -DIN_WESTON
735
736desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800737desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800738desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
739desktop_shell_la_SOURCES = \
740 desktop-shell/shell.h \
741 desktop-shell/shell.c \
742 desktop-shell/exposay.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800743 desktop-shell/input-panel.c
744nodist_desktop_shell_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100745 protocol/desktop-shell-protocol.c \
746 protocol/desktop-shell-server-protocol.h \
747 protocol/xdg-shell-protocol.c \
748 protocol/xdg-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800749
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800750BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800751endif
752
Jason Ekstrand946a9482014-04-02 19:53:47 -0500753if ENABLE_FULLSCREEN_SHELL
754
755module_LTLIBRARIES += fullscreen-shell.la
756
757fullscreen_shell_la_CPPFLAGS = \
758 -I$(top_builddir)/protocol \
759 -I$(top_srcdir)/shared \
760 -I$(top_srcdir)/src \
761 -I$(top_builddir)/src \
762 -DIN_WESTON
763
764fullscreen_shell_la_LDFLAGS = -module -avoid-version
765fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
766fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
767fullscreen_shell_la_SOURCES = \
768 fullscreen-shell/fullscreen-shell.c
769nodist_fullscreen_shell_la_SOURCES = \
770 protocol/fullscreen-shell-protocol.c \
771 protocol/fullscreen-shell-server-protocol.h
772
773BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
774endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800775
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900776if ENABLE_IVI_SHELL
777
778module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900779 $(ivi_shell) \
780 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900781
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900782ivi_shell = ivi-shell.la
783ivi_shell_la_LDFLAGS = -module -avoid-version
784ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
785ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
786ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900787 ivi-shell/ivi-layout-export.h \
788 ivi-shell/ivi-layout-private.h \
789 ivi-shell/ivi-layout.c \
790 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900791 ivi-shell/ivi-shell.h \
792 ivi-shell/ivi-shell.c \
Nobuhiko Tanibata0038b732014-11-27 13:25:34 +0900793 ivi-shell/input-panel-ivi.c
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900794nodist_ivi_shell_la_SOURCES = \
795 protocol/ivi-application-protocol.c \
796 protocol/ivi-application-server-protocol.h
797
798BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
799
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900800hmi_controller = hmi-controller.la
801hmi_controller_la_LDFLAGS = -module -avoid-version
802hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
803hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
804hmi_controller_la_SOURCES = \
805 ivi-shell/ivi-layout-export.h \
806 ivi-shell/hmi-controller.c
807nodist_hmi_controller_la_SOURCES = \
808 protocol/ivi-hmi-controller-protocol.c \
809 protocol/ivi-hmi-controller-server-protocol.h
810
811BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
812
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900813endif
814
815
Jason Ekstrand47928d82014-04-02 19:54:01 -0500816if ENABLE_SCREEN_SHARING
817
818module_LTLIBRARIES += screen-share.la
819
820screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
821screen_share_la_LDFLAGS = -module -avoid-version
822screen_share_la_LIBADD = \
823 $(COMPOSITOR_LIBS) \
824 $(SCREEN_SHARE_LIBS) \
825 libshared-cairo.la
826screen_share_la_CFLAGS = \
827 $(COMPOSITOR_CFLAGS) \
828 $(SCREEN_SHARE_CFLAGS) \
829 $(GCC_CFLAGS)
830screen_share_la_SOURCES = \
831 src/screen-share.c
832nodist_screen_share_la_SOURCES = \
833 protocol/fullscreen-shell-protocol.c \
834 protocol/fullscreen-shell-client-protocol.h
835
836endif
837
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800838if ENABLE_XWAYLAND
839
840module_LTLIBRARIES += xwayland.la
841
842xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100843 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800844 -I$(top_srcdir)/shared \
845 -I$(top_srcdir)/src \
846 -I$(top_builddir)/src \
847 -I$(top_builddir)/xwayland \
848 -DDATADIR='"$(datadir)"' \
849 -DMODULEDIR='"$(moduledir)"' \
850 -DLIBEXECDIR='"$(libexecdir)"' \
851 -DXSERVER_PATH='"@XSERVER_PATH@"'
852
853xwayland_la_LDFLAGS = -module -avoid-version
854xwayland_la_LIBADD = \
855 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800856 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800857xwayland_la_CFLAGS = \
858 $(GCC_CFLAGS) \
859 $(COMPOSITOR_CFLAGS) \
860 $(PIXMAN_CFLAGS) \
861 $(CAIRO_CFLAGS)
862xwayland_la_SOURCES = \
863 xwayland/xwayland.h \
864 xwayland/window-manager.c \
865 xwayland/selection.c \
866 xwayland/dnd.c \
867 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800868 xwayland/hash.c \
869 xwayland/hash.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800870endif
871
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800872
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800873#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800874# Shared utilities
875#
876
877noinst_LTLIBRARIES += libshared.la libshared-cairo.la
878
879libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
880
881libshared_la_SOURCES = \
882 shared/config-parser.c \
883 shared/option-parser.c \
884 shared/config-parser.h \
885 shared/os-compatibility.c \
886 shared/os-compatibility.h
887
888libshared_cairo_la_CFLAGS = \
889 -DDATADIR='"$(datadir)"' \
890 $(GCC_CFLAGS) \
891 $(COMPOSITOR_CFLAGS) \
892 $(PIXMAN_CFLAGS) \
893 $(CAIRO_CFLAGS) \
894 $(PNG_CFLAGS) \
895 $(WEBP_CFLAGS)
896
897libshared_cairo_la_LIBADD = \
898 $(PIXMAN_LIBS) \
899 $(CAIRO_LIBS) \
900 $(PNG_LIBS) \
901 $(WEBP_LIBS) \
902 $(JPEG_LIBS)
903
904libshared_cairo_la_SOURCES = \
905 $(libshared_la_SOURCES) \
906 shared/image-loader.c \
907 shared/image-loader.h \
908 shared/cairo-util.c \
909 shared/frame.c \
910 shared/cairo-util.h
911
912
913#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800914# tests subdirectory
915#
916
917TESTS = $(shared_tests) $(module_tests) $(weston_tests)
918
919shared_tests = \
920 config-parser.test \
921 vertex-clip.test
922
923module_tests = \
924 surface-test.la \
925 surface-global-test.la
926
927weston_tests = \
928 bad_buffer.weston \
929 keyboard.weston \
930 event.weston \
931 button.weston \
932 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -0400933 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +0300934 roles.weston \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800935 subsurface.weston
936
937
938AM_TESTS_ENVIRONMENT = \
939 abs_builddir='$(abs_builddir)'; export abs_builddir;
940
941TEST_EXTENSIONS = .la .weston
942LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
943WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
944
945clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +0300946 -rm -rf logs
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800947
948# To remove when automake 1.11 support is dropped
949export abs_builddir
950
951noinst_LTLIBRARIES += \
952 weston-test.la \
953 $(module_tests) \
954 libtest-runner.la \
955 libtest-client.la
956
957noinst_PROGRAMS += \
958 $(setbacklight) \
959 $(shared_tests) \
960 $(weston_tests) \
961 matrix-test
962
963test_module_ldflags = \
964 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
965
966surface_global_test_la_SOURCES = tests/surface-global-test.c
967surface_global_test_la_LDFLAGS = $(test_module_ldflags)
968surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
969
970surface_test_la_SOURCES = tests/surface-test.c
971surface_test_la_LDFLAGS = $(test_module_ldflags)
972surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
973
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800974weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800975weston_test_la_LDFLAGS = $(test_module_ldflags)
976weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800977weston_test_la_SOURCES = tests/weston-test.c
978nodist_weston_test_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100979 protocol/wayland-test-protocol.c \
980 protocol/wayland-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800981
982if ENABLE_EGL
983weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
984weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
985endif
986
987libtest_runner_la_SOURCES = \
988 tests/weston-test-runner.c \
989 tests/weston-test-runner.h
990libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
991
992config_parser_test_SOURCES = tests/config-parser-test.c
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800993config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800994
995vertex_clip_test_SOURCES = \
996 tests/vertex-clip-test.c \
997 src/vertex-clipping.c \
998 src/vertex-clipping.h
999vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
1000
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001001libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001002 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001003 tests/weston-test-client-helper.h
1004nodist_libtest_client_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001005 protocol/wayland-test-protocol.c \
1006 protocol/wayland-test-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001007libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001008libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001009
1010bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001011bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001012bad_buffer_weston_LDADD = libtest-client.la
1013
1014keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001015keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001016keyboard_weston_LDADD = libtest-client.la
1017
1018event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001019event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001020event_weston_LDADD = libtest-client.la
1021
1022button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001023button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001024button_weston_LDADD = libtest-client.la
1025
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001026text_weston_SOURCES = tests/text-test.c
1027nodist_text_weston_SOURCES = \
1028 protocol/text-protocol.c \
1029 protocol/text-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001030text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001031text_weston_LDADD = libtest-client.la
1032
1033subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001034subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001035subsurface_weston_LDADD = libtest-client.la
1036
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001037presentation_weston_SOURCES = tests/presentation-test.c
1038nodist_presentation_weston_SOURCES = \
1039 protocol/presentation_timing-protocol.c \
1040 protocol/presentation_timing-client-protocol.h
1041presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1042presentation_weston_LDADD = libtest-client.la
1043
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001044roles_weston_SOURCES = tests/roles-test.c
1045roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1046roles_weston_LDADD = libtest-client.la
1047
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001048if ENABLE_EGL
1049weston_tests += buffer-count.weston
1050buffer_count_weston_SOURCES = tests/buffer-count-test.c
1051buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1052buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1053endif
1054
1055if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001056weston_tests += xwayland-test.weston
1057xwayland_test_weston_SOURCES = tests/xwayland-test.c
1058xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1059xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001060endif
1061
1062matrix_test_SOURCES = \
1063 tests/matrix-test.c \
1064 shared/matrix.c \
1065 shared/matrix.h
1066matrix_test_CPPFLAGS = -DUNIT_TEST
1067matrix_test_LDADD = -lm -lrt
1068
1069if BUILD_SETBACKLIGHT
1070noinst_PROGRAMS += setbacklight
1071setbacklight_SOURCES = \
1072 tests/setbacklight.c \
1073 src/libbacklight.c \
1074 src/libbacklight.h
1075setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1076setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1077endif
1078
1079EXTRA_DIST += tests/weston-tests-env
1080
1081BUILT_SOURCES += \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001082 protocol/wayland-test-protocol.c \
1083 protocol/wayland-test-server-protocol.h \
1084 protocol/wayland-test-client-protocol.h \
1085 protocol/text-protocol.c \
1086 protocol/text-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001087
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001088EXTRA_DIST += \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001089 protocol/desktop-shell.xml \
1090 protocol/screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001091 protocol/text.xml \
1092 protocol/input-method.xml \
1093 protocol/workspaces.xml \
1094 protocol/text-cursor-position.xml \
1095 protocol/wayland-test.xml \
1096 protocol/xdg-shell.xml \
Jason Ekstrand27e11672014-04-02 19:53:44 -05001097 protocol/fullscreen-shell.xml \
Pekka Paalanen7e62d252014-09-23 22:08:42 -04001098 protocol/presentation_timing.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001099 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001100 protocol/ivi-application.xml \
1101 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001102
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001103man_MANS = weston.1 weston.ini.5
1104
1105if ENABLE_DRM_COMPOSITOR
1106man_MANS += weston-drm.7
1107endif
1108
1109MAN_SUBSTS = \
1110 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1111 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1112 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1113 -e 's|__version__|$(PACKAGE_VERSION)|g'
1114
1115SUFFIXES = .1 .5 .7 .man
1116
1117%.1 %.5 %.7 : man/%.man
1118 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1119
1120EXTRA_DIST += \
1121 man/weston.man \
1122 man/weston-drm.man \
1123 man/weston.ini.man
1124
1125CLEANFILES += $(man_MANS)
1126
1127
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001128protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1129 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001130
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001131protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1132 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001133
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001134protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1135 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@