blob: 494266d2ed64aae4b101063e76650d8ee4af0a85 [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
159westonincludedir = $(includedir)/weston
160westoninclude_HEADERS = \
161 src/version.h \
162 src/compositor.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200163 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800164 shared/matrix.h \
165 shared/config-parser.h \
166 shared/zalloc.h
167
168if ENABLE_EGL
169module_LTLIBRARIES += gl-renderer.la
170gl_renderer_la_LDFLAGS = -module -avoid-version
171gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
172gl_renderer_la_CFLAGS = \
173 $(COMPOSITOR_CFLAGS) \
174 $(EGL_CFLAGS) \
175 $(GCC_CFLAGS)
176gl_renderer_la_SOURCES = \
177 src/gl-renderer.h \
178 src/gl-renderer.c \
179 src/vertex-clipping.c \
180 src/vertex-clipping.h
181endif
182
183if ENABLE_X11_COMPOSITOR
184module_LTLIBRARIES += x11-backend.la
185x11_backend_la_LDFLAGS = -module -avoid-version
186x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800187 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800188x11_backend_la_CFLAGS = \
189 $(COMPOSITOR_CFLAGS) \
190 $(EGL_CFLAGS) \
191 $(PIXMAN_CFLAGS) \
192 $(CAIRO_CFLAGS) \
193 $(X11_COMPOSITOR_CFLAGS) \
194 $(GCC_CFLAGS)
195x11_backend_la_SOURCES = src/compositor-x11.c
196endif
197
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100198INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000199INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100200 src/libinput-seat.c \
201 src/libinput-seat.h \
202 src/libinput-device.c \
203 src/libinput-device.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100204
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800205if ENABLE_DRM_COMPOSITOR
206module_LTLIBRARIES += drm-backend.la
207drm_backend_la_LDFLAGS = -module -avoid-version
208drm_backend_la_LIBADD = \
209 $(COMPOSITOR_LIBS) \
210 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100211 $(INPUT_BACKEND_LIBS) \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100212 libshared.la -lrt \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800213 libsession-helper.la
214drm_backend_la_CFLAGS = \
215 $(COMPOSITOR_CFLAGS) \
216 $(EGL_CFLAGS) \
217 $(DRM_COMPOSITOR_CFLAGS) \
218 $(GCC_CFLAGS)
219drm_backend_la_SOURCES = \
220 src/compositor-drm.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100221 $(INPUT_BACKEND_SOURCES) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800222 src/libbacklight.c \
223 src/libbacklight.h
224
225if ENABLE_VAAPI_RECORDER
226drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
227drm_backend_la_LIBADD += $(LIBVA_LIBS)
228drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
229endif
230endif
231
232if ENABLE_WAYLAND_COMPOSITOR
233module_LTLIBRARIES += wayland-backend.la
234wayland_backend_la_LDFLAGS = -module -avoid-version
235wayland_backend_la_LIBADD = \
236 $(COMPOSITOR_LIBS) \
237 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800238 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800239wayland_backend_la_CFLAGS = \
240 $(COMPOSITOR_CFLAGS) \
241 $(EGL_CFLAGS) \
242 $(PIXMAN_CFLAGS) \
243 $(CAIRO_CFLAGS) \
244 $(WAYLAND_COMPOSITOR_CFLAGS) \
245 $(GCC_CFLAGS)
246wayland_backend_la_SOURCES = src/compositor-wayland.c
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500247nodist_wayland_backend_la_SOURCES = \
248 protocol/fullscreen-shell-protocol.c \
249 protocol/fullscreen-shell-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800250endif
251
252if ENABLE_RPI_COMPOSITOR
253if INSTALL_RPI_COMPOSITOR
254module_LTLIBRARIES += rpi-backend.la
255else
256noinst_LTLIBRARIES += rpi-backend.la
257endif
258
259rpi_backend_la_LDFLAGS = -module -avoid-version
260rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
261 $(RPI_COMPOSITOR_LIBS) \
262 $(RPI_BCM_HOST_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100263 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800264 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800265 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800266rpi_backend_la_CFLAGS = \
267 $(GCC_CFLAGS) \
268 $(COMPOSITOR_CFLAGS) \
269 $(RPI_COMPOSITOR_CFLAGS) \
270 $(RPI_BCM_HOST_CFLAGS)
271rpi_backend_la_SOURCES = \
272 src/compositor-rpi.c \
273 src/rpi-renderer.c \
274 src/rpi-renderer.h \
275 src/rpi-bcm-stubs.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100276 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800277
278if ENABLE_EGL
279rpi_backend_la_LIBADD += $(EGL_LIBS)
280rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
281endif
282
283endif
284
285if ENABLE_HEADLESS_COMPOSITOR
286module_LTLIBRARIES += headless-backend.la
287headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800288headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
289headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800290headless_backend_la_SOURCES = src/compositor-headless.c
291endif
292
293if ENABLE_FBDEV_COMPOSITOR
294module_LTLIBRARIES += fbdev-backend.la
295fbdev_backend_la_LDFLAGS = -module -avoid-version
296fbdev_backend_la_LIBADD = \
297 $(COMPOSITOR_LIBS) \
298 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100299 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800300 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800301 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800302fbdev_backend_la_CFLAGS = \
303 $(COMPOSITOR_CFLAGS) \
304 $(EGL_CFLAGS) \
305 $(FBDEV_COMPOSITOR_CFLAGS) \
306 $(PIXMAN_CFLAGS) \
307 $(GCC_CFLAGS)
308fbdev_backend_la_SOURCES = \
309 src/compositor-fbdev.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100310 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800311endif
312
313if ENABLE_RDP_COMPOSITOR
314module_LTLIBRARIES += rdp-backend.la
315rdp_backend_la_LDFLAGS = -module -avoid-version
316rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
317 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800318 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800319rdp_backend_la_CFLAGS = \
320 $(COMPOSITOR_CFLAGS) \
321 $(RDP_COMPOSITOR_CFLAGS) \
322 $(GCC_CFLAGS)
323rdp_backend_la_SOURCES = src/compositor-rdp.c
324endif
325
326if HAVE_LCMS
327module_LTLIBRARIES += cms-static.la
328cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800329cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800330cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
331cms_static_la_SOURCES = \
332 src/cms-static.c \
333 src/cms-helper.c \
334 src/cms-helper.h
335if ENABLE_COLORD
336module_LTLIBRARIES += cms-colord.la
337cms_colord_la_LDFLAGS = -module -avoid-version
338cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
339cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
340cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100341 src/cms-colord.c \
342 src/cms-helper.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800343 src/cms-helper.h
344endif
345endif
346
347noinst_PROGRAMS += spring-tool
348spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
349spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
350spring_tool_SOURCES = \
351 src/spring-tool.c \
352 src/animation.c \
353 shared/matrix.c \
354 shared/matrix.h \
355 src/compositor.h
356
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800357if BUILD_CLIENTS
358
359bin_PROGRAMS += weston-terminal weston-info
360
361libexec_PROGRAMS += \
362 weston-desktop-shell \
363 weston-screenshooter \
364 weston-keyboard \
365 weston-simple-im
366
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900367if ENABLE_IVI_SHELL
368libexec_PROGRAMS += \
369 weston-ivi-shell-user-interface
370endif
371
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800372demo_clients = \
373 weston-flower \
374 weston-image \
375 weston-cliptest \
376 weston-dnd \
377 weston-smoke \
378 weston-resizor \
379 weston-eventdemo \
380 weston-clickdot \
381 weston-transformed \
382 weston-fullscreen \
383 weston-stacking \
384 weston-calibrator \
385 weston-scaler
386
387if INSTALL_DEMO_CLIENTS
388bin_PROGRAMS += $(demo_clients)
389else
390noinst_PROGRAMS += $(demo_clients)
391endif
392
393
394if BUILD_SIMPLE_CLIENTS
395demo_clients += \
396 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500397 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800398 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400399 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800400 weston-multi-resource
401
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800402weston_simple_shm_SOURCES = clients/simple-shm.c
403nodist_weston_simple_shm_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800404 protocol/xdg-shell-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500405 protocol/xdg-shell-client-protocol.h \
406 protocol/fullscreen-shell-protocol.c \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900407 protocol/fullscreen-shell-client-protocol.h \
408 protocol/ivi-application-protocol.c \
409 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800410weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800411weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800412
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500413weston_simple_damage_SOURCES = clients/simple-damage.c
414nodist_weston_simple_damage_SOURCES = \
415 protocol/scaler-protocol.c \
416 protocol/scaler-client-protocol.h \
417 protocol/xdg-shell-protocol.c \
418 protocol/xdg-shell-client-protocol.h \
419 protocol/fullscreen-shell-protocol.c \
420 protocol/fullscreen-shell-client-protocol.h
421weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
422weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
423
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800424weston_simple_touch_SOURCES = clients/simple-touch.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800425weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800426weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800427
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400428weston_presentation_shm_SOURCES = clients/presentation-shm.c
429nodist_weston_presentation_shm_SOURCES = \
430 protocol/presentation_timing-protocol.c \
431 protocol/presentation_timing-client-protocol.h
432weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
433weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
434
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800435weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800436weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Javier Jardónc47931e2014-10-27 15:13:19 +0000437weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800438endif
439
440if BUILD_SIMPLE_EGL_CLIENTS
441demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800442weston_simple_egl_SOURCES = clients/simple-egl.c
443nodist_weston_simple_egl_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800444 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900445 protocol/xdg-shell-client-protocol.h \
446 protocol/ivi-application-protocol.c \
447 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800448weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800449weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
450endif
451
452noinst_LTLIBRARIES += libtoytoolkit.la
453
454libtoytoolkit_la_SOURCES = \
455 clients/window.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800456 clients/window.h
457
458nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100459 protocol/text-cursor-position-protocol.c \
460 protocol/text-cursor-position-client-protocol.h \
461 protocol/scaler-protocol.c \
462 protocol/scaler-client-protocol.h \
463 protocol/workspaces-protocol.c \
464 protocol/workspaces-client-protocol.h \
Pekka Paalanen7e62d252014-09-23 22:08:42 -0400465 protocol/presentation_timing-protocol.c \
466 protocol/presentation_timing-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100467 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900468 protocol/xdg-shell-client-protocol.h \
469 protocol/ivi-application-protocol.c \
470 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500471
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800472BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
473
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800474
475libtoytoolkit_la_LIBADD = \
476 $(CLIENT_LIBS) \
477 $(CAIRO_EGL_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800478 libshared-cairo.la -lrt -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800479libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800480
481weston_flower_SOURCES = clients/flower.c
482weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800483weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800484
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100485weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800486 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800487nodist_weston_screenshooter_SOURCES = \
488 protocol/screenshooter-protocol.c \
489 protocol/screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800490weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800491weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800492
493weston_terminal_SOURCES = clients/terminal.c
494weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800495weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800496
497weston_image_SOURCES = clients/image.c
498weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800499weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800500
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300501weston_cliptest_SOURCES = \
502 clients/cliptest.c \
503 src/vertex-clipping.c \
504 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800505weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800506weston_cliptest_LDADD = libtoytoolkit.la
507
508weston_dnd_SOURCES = clients/dnd.c
509weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800510weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800511
512weston_smoke_SOURCES = clients/smoke.c
513weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800514weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800515
516weston_resizor_SOURCES = clients/resizor.c
517weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800518weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800519
520weston_scaler_SOURCES = clients/scaler.c
521weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800522weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800523
524if HAVE_CAIRO_GLESV2
525demo_clients += weston-nested weston-nested-client
526
527weston_nested_SOURCES = clients/nested.c
528weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800529weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800530
531weston_nested_client_SOURCES = clients/nested-client.c
532weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800533weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800534endif
535
536weston_eventdemo_SOURCES = clients/eventdemo.c
537weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800538weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800539
540weston_clickdot_SOURCES = clients/clickdot.c
541weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800542weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800543
544weston_transformed_SOURCES = clients/transformed.c
545weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800546weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800547
548weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500549nodist_weston_fullscreen_SOURCES = \
550 protocol/fullscreen-shell-protocol.c \
551 protocol/fullscreen-shell-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800552weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800553weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800554
555weston_stacking_SOURCES = clients/stacking.c
556weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800557weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800558
559weston_calibrator_SOURCES = clients/calibrator.c \
560 shared/matrix.c \
561 shared/matrix.h
562weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800563weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800564
565if BUILD_SUBSURFACES_CLIENT
566demo_clients += weston-subsurfaces
567weston_subsurfaces_SOURCES = clients/subsurfaces.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800568weston_subsurfaces_CFLAGS = \
569 $(AM_CFLAGS) \
570 $(SIMPLE_EGL_CLIENT_CFLAGS) \
571 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800572weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
573endif
574
575if HAVE_PANGO
576demo_clients += weston-editor
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800577weston_editor_SOURCES = clients/editor.c
578nodist_weston_editor_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100579 protocol/text-protocol.c \
580 protocol/text-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800581weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800582weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800583endif
584
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800585weston_keyboard_SOURCES = clients/keyboard.c
586nodist_weston_keyboard_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100587 protocol/desktop-shell-client-protocol.h \
588 protocol/desktop-shell-protocol.c \
589 protocol/input-method-protocol.c \
590 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800591weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800592weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800593
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800594weston_simple_im_SOURCES = clients/weston-simple-im.c
595nodist_weston_simple_im_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100596 protocol/input-method-protocol.c \
597 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800598weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800599weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800600
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800601weston_info_SOURCES = clients/weston-info.c
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400602nodist_weston_info_SOURCES = \
603 protocol/presentation_timing-protocol.c \
604 protocol/presentation_timing-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800605weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200606weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800607
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800608weston_desktop_shell_SOURCES = clients/desktop-shell.c
609nodist_weston_desktop_shell_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100610 protocol/desktop-shell-client-protocol.h \
611 protocol/desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800612weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800613weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800614
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900615if ENABLE_IVI_SHELL
616weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
617nodist_weston_ivi_shell_user_interface_SOURCES = \
618 protocol/ivi-hmi-controller-client-protocol.h \
619 protocol/ivi-hmi-controller-protocol.c \
620 protocol/ivi-application-client-protocol.h \
621 protocol/ivi-application-protocol.c
622weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
623weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
624endif
625
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800626if BUILD_FULL_GL_CLIENTS
627demo_clients += weston-gears
628weston_gears_SOURCES = clients/gears.c
629weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800630weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800631
632if HAVE_GLU
633libexec_PROGRAMS += weston-screensaver
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100634weston_screensaver_SOURCES = \
635 clients/wscreensaver.c \
636 clients/wscreensaver.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100637 clients/wscreensaver-glue.c \
638 clients/wscreensaver-glue.h \
639 clients/glmatrix.c \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800640 clients/matrix3.xpm
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800641nodist_weston_screensaver_SOURCES = \
642 protocol/desktop-shell-client-protocol.h \
643 protocol/desktop-shell-protocol.c
644
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800645weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800646weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800647
648endif
649
650endif
651
652endif
653
654BUILT_SOURCES += \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100655 protocol/screenshooter-protocol.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800656 protocol/screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100657 protocol/text-cursor-position-client-protocol.h \
658 protocol/text-cursor-position-protocol.c \
659 protocol/text-protocol.c \
660 protocol/text-client-protocol.h \
661 protocol/input-method-protocol.c \
662 protocol/input-method-client-protocol.h \
663 protocol/desktop-shell-client-protocol.h \
664 protocol/desktop-shell-protocol.c \
665 protocol/scaler-client-protocol.h \
666 protocol/scaler-protocol.c \
667 protocol/workspaces-client-protocol.h \
668 protocol/workspaces-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500669 protocol/fullscreen-shell-protocol.c \
670 protocol/fullscreen-shell-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100671 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900672 protocol/xdg-shell-client-protocol.h \
673 protocol/ivi-hmi-controller-protocol.c \
674 protocol/ivi-hmi-controller-client-protocol.h \
675 protocol/ivi-application-protocol.c \
676 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800677
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800678westondatadir = $(datadir)/weston
679dist_westondata_DATA = \
680 data/wayland.svg \
681 data/wayland.png \
682 data/pattern.png \
683 data/terminal.png \
684 data/border.png \
685 data/icon_window.png \
686 data/sign_close.png \
687 data/sign_maximize.png \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900688 data/sign_minimize.png \
689 data/background.png \
690 data/tiling.png \
691 data/fullscreen.png \
692 data/panel.png \
693 data/random.png \
694 data/sidebyside.png \
695 data/home.png \
696 data/icon_ivi_clickdot.png \
697 data/icon_ivi_flower.png \
698 data/icon_ivi_simple-egl.png \
699 data/icon_ivi_simple-shm.png \
700 data/icon_ivi_smoke.png
Kristian Høgsberge895f142014-01-27 21:46:30 -0800701
702
703if BUILD_WCAP_TOOLS
704bin_PROGRAMS += wcap-decode
705
706wcap_decode_SOURCES = \
707 wcap/main.c \
708 wcap/wcap-decode.c \
709 wcap/wcap-decode.h
710
711wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
712wcap_decode_LDADD = $(WCAP_LIBS)
713endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800714
715
716if ENABLE_DESKTOP_SHELL
717
718module_LTLIBRARIES += desktop-shell.la
719
720desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100721 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800722 -I$(top_srcdir)/shared \
723 -I$(top_srcdir)/src \
724 -I$(top_builddir)/src \
725 -I$(top_builddir)/desktop-shell \
726 -DDATADIR='"$(datadir)"' \
727 -DMODULEDIR='"$(moduledir)"' \
728 -DLIBEXECDIR='"$(libexecdir)"' \
729 -DIN_WESTON
730
731desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800732desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800733desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
734desktop_shell_la_SOURCES = \
735 desktop-shell/shell.h \
736 desktop-shell/shell.c \
737 desktop-shell/exposay.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800738 desktop-shell/input-panel.c
739nodist_desktop_shell_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100740 protocol/desktop-shell-protocol.c \
741 protocol/desktop-shell-server-protocol.h \
742 protocol/xdg-shell-protocol.c \
743 protocol/xdg-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800744
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800745BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800746endif
747
Jason Ekstrand946a9482014-04-02 19:53:47 -0500748if ENABLE_FULLSCREEN_SHELL
749
750module_LTLIBRARIES += fullscreen-shell.la
751
752fullscreen_shell_la_CPPFLAGS = \
753 -I$(top_builddir)/protocol \
754 -I$(top_srcdir)/shared \
755 -I$(top_srcdir)/src \
756 -I$(top_builddir)/src \
757 -DIN_WESTON
758
759fullscreen_shell_la_LDFLAGS = -module -avoid-version
760fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
761fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
762fullscreen_shell_la_SOURCES = \
763 fullscreen-shell/fullscreen-shell.c
764nodist_fullscreen_shell_la_SOURCES = \
765 protocol/fullscreen-shell-protocol.c \
766 protocol/fullscreen-shell-server-protocol.h
767
768BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
769endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800770
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900771if ENABLE_IVI_SHELL
772
773module_LTLIBRARIES += \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900774 $(ivi_layout) \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900775 $(ivi_shell) \
776 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900777
778ivi_layout = ivi-layout.la
779ivi_layout_la_LDFLAGS = -module -avoid-version
780ivi_layout_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
781ivi_layout_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
782ivi_layout_la_SOURCES = \
783 ivi-shell/ivi-layout-export.h \
784 ivi-shell/ivi-layout-private.h \
785 ivi-shell/ivi-layout.c \
786 ivi-shell/ivi-layout-transition.c
787
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900788ivi_shell = ivi-shell.la
789ivi_shell_la_LDFLAGS = -module -avoid-version
790ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
791ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
792ivi_shell_la_SOURCES = \
793 ivi-shell/ivi-shell.h \
794 ivi-shell/ivi-shell.c \
Nobuhiko Tanibata0038b732014-11-27 13:25:34 +0900795 ivi-shell/ivi-layout-private.h \
796 ivi-shell/input-panel-ivi.c
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900797nodist_ivi_shell_la_SOURCES = \
798 protocol/ivi-application-protocol.c \
799 protocol/ivi-application-server-protocol.h
800
801BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
802
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900803hmi_controller = hmi-controller.la
804hmi_controller_la_LDFLAGS = -module -avoid-version
805hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
806hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
807hmi_controller_la_SOURCES = \
808 ivi-shell/ivi-layout-export.h \
809 ivi-shell/hmi-controller.c
810nodist_hmi_controller_la_SOURCES = \
811 protocol/ivi-hmi-controller-protocol.c \
812 protocol/ivi-hmi-controller-server-protocol.h
813
814BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
815
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900816endif
817
818
Jason Ekstrand47928d82014-04-02 19:54:01 -0500819if ENABLE_SCREEN_SHARING
820
821module_LTLIBRARIES += screen-share.la
822
823screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
824screen_share_la_LDFLAGS = -module -avoid-version
825screen_share_la_LIBADD = \
826 $(COMPOSITOR_LIBS) \
827 $(SCREEN_SHARE_LIBS) \
828 libshared-cairo.la
829screen_share_la_CFLAGS = \
830 $(COMPOSITOR_CFLAGS) \
831 $(SCREEN_SHARE_CFLAGS) \
832 $(GCC_CFLAGS)
833screen_share_la_SOURCES = \
834 src/screen-share.c
835nodist_screen_share_la_SOURCES = \
836 protocol/fullscreen-shell-protocol.c \
837 protocol/fullscreen-shell-client-protocol.h
838
839endif
840
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800841if ENABLE_XWAYLAND
842
843module_LTLIBRARIES += xwayland.la
844
845xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100846 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800847 -I$(top_srcdir)/shared \
848 -I$(top_srcdir)/src \
849 -I$(top_builddir)/src \
850 -I$(top_builddir)/xwayland \
851 -DDATADIR='"$(datadir)"' \
852 -DMODULEDIR='"$(moduledir)"' \
853 -DLIBEXECDIR='"$(libexecdir)"' \
854 -DXSERVER_PATH='"@XSERVER_PATH@"'
855
856xwayland_la_LDFLAGS = -module -avoid-version
857xwayland_la_LIBADD = \
858 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800859 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800860xwayland_la_CFLAGS = \
861 $(GCC_CFLAGS) \
862 $(COMPOSITOR_CFLAGS) \
863 $(PIXMAN_CFLAGS) \
864 $(CAIRO_CFLAGS)
865xwayland_la_SOURCES = \
866 xwayland/xwayland.h \
867 xwayland/window-manager.c \
868 xwayland/selection.c \
869 xwayland/dnd.c \
870 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800871 xwayland/hash.c \
872 xwayland/hash.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800873endif
874
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800875
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800876#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800877# Shared utilities
878#
879
880noinst_LTLIBRARIES += libshared.la libshared-cairo.la
881
882libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
883
884libshared_la_SOURCES = \
885 shared/config-parser.c \
886 shared/option-parser.c \
887 shared/config-parser.h \
888 shared/os-compatibility.c \
889 shared/os-compatibility.h
890
891libshared_cairo_la_CFLAGS = \
892 -DDATADIR='"$(datadir)"' \
893 $(GCC_CFLAGS) \
894 $(COMPOSITOR_CFLAGS) \
895 $(PIXMAN_CFLAGS) \
896 $(CAIRO_CFLAGS) \
897 $(PNG_CFLAGS) \
898 $(WEBP_CFLAGS)
899
900libshared_cairo_la_LIBADD = \
901 $(PIXMAN_LIBS) \
902 $(CAIRO_LIBS) \
903 $(PNG_LIBS) \
904 $(WEBP_LIBS) \
905 $(JPEG_LIBS)
906
907libshared_cairo_la_SOURCES = \
908 $(libshared_la_SOURCES) \
909 shared/image-loader.c \
910 shared/image-loader.h \
911 shared/cairo-util.c \
912 shared/frame.c \
913 shared/cairo-util.h
914
915
916#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800917# tests subdirectory
918#
919
920TESTS = $(shared_tests) $(module_tests) $(weston_tests)
921
922shared_tests = \
923 config-parser.test \
924 vertex-clip.test
925
926module_tests = \
927 surface-test.la \
928 surface-global-test.la
929
930weston_tests = \
931 bad_buffer.weston \
932 keyboard.weston \
933 event.weston \
934 button.weston \
935 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -0400936 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +0300937 roles.weston \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800938 subsurface.weston
939
940
941AM_TESTS_ENVIRONMENT = \
942 abs_builddir='$(abs_builddir)'; export abs_builddir;
943
944TEST_EXTENSIONS = .la .weston
945LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
946WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
947
948clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +0300949 -rm -rf logs
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800950
951# To remove when automake 1.11 support is dropped
952export abs_builddir
953
954noinst_LTLIBRARIES += \
955 weston-test.la \
956 $(module_tests) \
957 libtest-runner.la \
958 libtest-client.la
959
960noinst_PROGRAMS += \
961 $(setbacklight) \
962 $(shared_tests) \
963 $(weston_tests) \
964 matrix-test
965
966test_module_ldflags = \
967 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
968
969surface_global_test_la_SOURCES = tests/surface-global-test.c
970surface_global_test_la_LDFLAGS = $(test_module_ldflags)
971surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
972
973surface_test_la_SOURCES = tests/surface-test.c
974surface_test_la_LDFLAGS = $(test_module_ldflags)
975surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
976
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800977weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800978weston_test_la_LDFLAGS = $(test_module_ldflags)
979weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800980weston_test_la_SOURCES = tests/weston-test.c
981nodist_weston_test_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100982 protocol/wayland-test-protocol.c \
983 protocol/wayland-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800984
985if ENABLE_EGL
986weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
987weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
988endif
989
990libtest_runner_la_SOURCES = \
991 tests/weston-test-runner.c \
992 tests/weston-test-runner.h
993libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
994
995config_parser_test_SOURCES = tests/config-parser-test.c
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800996config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800997
998vertex_clip_test_SOURCES = \
999 tests/vertex-clip-test.c \
1000 src/vertex-clipping.c \
1001 src/vertex-clipping.h
1002vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
1003
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001004libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001005 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001006 tests/weston-test-client-helper.h
1007nodist_libtest_client_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001008 protocol/wayland-test-protocol.c \
1009 protocol/wayland-test-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001010libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001011libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001012
1013bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001014bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001015bad_buffer_weston_LDADD = libtest-client.la
1016
1017keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001018keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001019keyboard_weston_LDADD = libtest-client.la
1020
1021event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001022event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001023event_weston_LDADD = libtest-client.la
1024
1025button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001026button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001027button_weston_LDADD = libtest-client.la
1028
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001029text_weston_SOURCES = tests/text-test.c
1030nodist_text_weston_SOURCES = \
1031 protocol/text-protocol.c \
1032 protocol/text-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001033text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001034text_weston_LDADD = libtest-client.la
1035
1036subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001037subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001038subsurface_weston_LDADD = libtest-client.la
1039
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001040presentation_weston_SOURCES = tests/presentation-test.c
1041nodist_presentation_weston_SOURCES = \
1042 protocol/presentation_timing-protocol.c \
1043 protocol/presentation_timing-client-protocol.h
1044presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1045presentation_weston_LDADD = libtest-client.la
1046
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001047roles_weston_SOURCES = tests/roles-test.c
1048roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1049roles_weston_LDADD = libtest-client.la
1050
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001051if ENABLE_EGL
1052weston_tests += buffer-count.weston
1053buffer_count_weston_SOURCES = tests/buffer-count-test.c
1054buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1055buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1056endif
1057
1058if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001059weston_tests += xwayland-test.weston
1060xwayland_test_weston_SOURCES = tests/xwayland-test.c
1061xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1062xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001063endif
1064
1065matrix_test_SOURCES = \
1066 tests/matrix-test.c \
1067 shared/matrix.c \
1068 shared/matrix.h
1069matrix_test_CPPFLAGS = -DUNIT_TEST
1070matrix_test_LDADD = -lm -lrt
1071
1072if BUILD_SETBACKLIGHT
1073noinst_PROGRAMS += setbacklight
1074setbacklight_SOURCES = \
1075 tests/setbacklight.c \
1076 src/libbacklight.c \
1077 src/libbacklight.h
1078setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1079setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1080endif
1081
1082EXTRA_DIST += tests/weston-tests-env
1083
1084BUILT_SOURCES += \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001085 protocol/wayland-test-protocol.c \
1086 protocol/wayland-test-server-protocol.h \
1087 protocol/wayland-test-client-protocol.h \
1088 protocol/text-protocol.c \
1089 protocol/text-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001090
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001091EXTRA_DIST += \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001092 protocol/desktop-shell.xml \
1093 protocol/screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001094 protocol/text.xml \
1095 protocol/input-method.xml \
1096 protocol/workspaces.xml \
1097 protocol/text-cursor-position.xml \
1098 protocol/wayland-test.xml \
1099 protocol/xdg-shell.xml \
Jason Ekstrand27e11672014-04-02 19:53:44 -05001100 protocol/fullscreen-shell.xml \
Pekka Paalanen7e62d252014-09-23 22:08:42 -04001101 protocol/presentation_timing.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001102 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001103 protocol/ivi-application.xml \
1104 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001105
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001106man_MANS = weston.1 weston.ini.5
1107
1108if ENABLE_DRM_COMPOSITOR
1109man_MANS += weston-drm.7
1110endif
1111
1112MAN_SUBSTS = \
1113 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1114 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1115 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1116 -e 's|__version__|$(PACKAGE_VERSION)|g'
1117
1118SUFFIXES = .1 .5 .7 .man
1119
1120%.1 %.5 %.7 : man/%.man
1121 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1122
1123EXTRA_DIST += \
1124 man/weston.man \
1125 man/weston-drm.man \
1126 man/weston.ini.man
1127
1128CLEANFILES += $(man_MANS)
1129
1130
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001131protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1132 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001133
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001134protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1135 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001136
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001137protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1138 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@