blob: 589b47b654562615c2bd087c99dcfc1a7cda863f [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 +0100159wayland_sessiondir = $(datadir)/wayland-sessions
160wayland_session_DATA = src/weston.desktop
Marek Chalupa194ca2b2015-01-22 10:03:03 +0100161dist_wayland_session_DATA = $(wayland_session_DATA)
Lubomir Rintel4f4b47a2014-12-28 14:20:49 +0100162
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800163westonincludedir = $(includedir)/weston
164westoninclude_HEADERS = \
165 src/version.h \
166 src/compositor.h \
Pekka Paalanenb5026542014-11-12 15:09:24 +0200167 src/timeline-object.h \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800168 shared/matrix.h \
169 shared/config-parser.h \
170 shared/zalloc.h
171
172if ENABLE_EGL
173module_LTLIBRARIES += gl-renderer.la
174gl_renderer_la_LDFLAGS = -module -avoid-version
175gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS)
176gl_renderer_la_CFLAGS = \
177 $(COMPOSITOR_CFLAGS) \
178 $(EGL_CFLAGS) \
179 $(GCC_CFLAGS)
180gl_renderer_la_SOURCES = \
181 src/gl-renderer.h \
182 src/gl-renderer.c \
183 src/vertex-clipping.c \
184 src/vertex-clipping.h
185endif
186
187if ENABLE_X11_COMPOSITOR
188module_LTLIBRARIES += x11-backend.la
189x11_backend_la_LDFLAGS = -module -avoid-version
190x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800191 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800192x11_backend_la_CFLAGS = \
193 $(COMPOSITOR_CFLAGS) \
194 $(EGL_CFLAGS) \
195 $(PIXMAN_CFLAGS) \
196 $(CAIRO_CFLAGS) \
197 $(X11_COMPOSITOR_CFLAGS) \
198 $(GCC_CFLAGS)
199x11_backend_la_SOURCES = src/compositor-x11.c
200endif
201
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100202INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS)
Peter Hutterer823ad332014-11-26 07:06:31 +1000203INPUT_BACKEND_SOURCES = \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100204 src/libinput-seat.c \
205 src/libinput-seat.h \
206 src/libinput-device.c \
207 src/libinput-device.h
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100208
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800209if ENABLE_DRM_COMPOSITOR
210module_LTLIBRARIES += drm-backend.la
211drm_backend_la_LDFLAGS = -module -avoid-version
212drm_backend_la_LIBADD = \
213 $(COMPOSITOR_LIBS) \
214 $(DRM_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100215 $(INPUT_BACKEND_LIBS) \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100216 libshared.la -lrt \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800217 libsession-helper.la
218drm_backend_la_CFLAGS = \
219 $(COMPOSITOR_CFLAGS) \
220 $(EGL_CFLAGS) \
221 $(DRM_COMPOSITOR_CFLAGS) \
222 $(GCC_CFLAGS)
223drm_backend_la_SOURCES = \
224 src/compositor-drm.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100225 $(INPUT_BACKEND_SOURCES) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800226 src/libbacklight.c \
227 src/libbacklight.h
228
229if ENABLE_VAAPI_RECORDER
230drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h
231drm_backend_la_LIBADD += $(LIBVA_LIBS)
232drm_backend_la_CFLAGS += $(LIBVA_CFLAGS)
233endif
234endif
235
236if ENABLE_WAYLAND_COMPOSITOR
237module_LTLIBRARIES += wayland-backend.la
238wayland_backend_la_LDFLAGS = -module -avoid-version
239wayland_backend_la_LIBADD = \
240 $(COMPOSITOR_LIBS) \
241 $(WAYLAND_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800242 libshared-cairo.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800243wayland_backend_la_CFLAGS = \
244 $(COMPOSITOR_CFLAGS) \
245 $(EGL_CFLAGS) \
246 $(PIXMAN_CFLAGS) \
247 $(CAIRO_CFLAGS) \
248 $(WAYLAND_COMPOSITOR_CFLAGS) \
249 $(GCC_CFLAGS)
250wayland_backend_la_SOURCES = src/compositor-wayland.c
Jason Ekstrand53ee0dc2014-04-02 19:53:54 -0500251nodist_wayland_backend_la_SOURCES = \
252 protocol/fullscreen-shell-protocol.c \
253 protocol/fullscreen-shell-client-protocol.h
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800254endif
255
256if ENABLE_RPI_COMPOSITOR
257if INSTALL_RPI_COMPOSITOR
258module_LTLIBRARIES += rpi-backend.la
259else
260noinst_LTLIBRARIES += rpi-backend.la
261endif
262
263rpi_backend_la_LDFLAGS = -module -avoid-version
264rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
265 $(RPI_COMPOSITOR_LIBS) \
266 $(RPI_BCM_HOST_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100267 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800268 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800269 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800270rpi_backend_la_CFLAGS = \
271 $(GCC_CFLAGS) \
272 $(COMPOSITOR_CFLAGS) \
273 $(RPI_COMPOSITOR_CFLAGS) \
274 $(RPI_BCM_HOST_CFLAGS)
275rpi_backend_la_SOURCES = \
276 src/compositor-rpi.c \
277 src/rpi-renderer.c \
278 src/rpi-renderer.h \
279 src/rpi-bcm-stubs.h \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100280 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800281
282if ENABLE_EGL
283rpi_backend_la_LIBADD += $(EGL_LIBS)
284rpi_backend_la_CFLAGS += $(EGL_CFLAGS)
285endif
286
287endif
288
289if ENABLE_HEADLESS_COMPOSITOR
290module_LTLIBRARIES += headless-backend.la
291headless_backend_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800292headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
293headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800294headless_backend_la_SOURCES = src/compositor-headless.c
295endif
296
297if ENABLE_FBDEV_COMPOSITOR
298module_LTLIBRARIES += fbdev-backend.la
299fbdev_backend_la_LDFLAGS = -module -avoid-version
300fbdev_backend_la_LIBADD = \
301 $(COMPOSITOR_LIBS) \
302 $(FBDEV_COMPOSITOR_LIBS) \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100303 $(INPUT_BACKEND_LIBS) \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800304 libsession-helper.la \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800305 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800306fbdev_backend_la_CFLAGS = \
307 $(COMPOSITOR_CFLAGS) \
308 $(EGL_CFLAGS) \
309 $(FBDEV_COMPOSITOR_CFLAGS) \
310 $(PIXMAN_CFLAGS) \
311 $(GCC_CFLAGS)
312fbdev_backend_la_SOURCES = \
313 src/compositor-fbdev.c \
Jonas Ådahle0de3c22014-03-12 22:08:42 +0100314 $(INPUT_BACKEND_SOURCES)
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800315endif
316
317if ENABLE_RDP_COMPOSITOR
318module_LTLIBRARIES += rdp-backend.la
319rdp_backend_la_LDFLAGS = -module -avoid-version
320rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
321 $(RDP_COMPOSITOR_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800322 libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800323rdp_backend_la_CFLAGS = \
324 $(COMPOSITOR_CFLAGS) \
325 $(RDP_COMPOSITOR_CFLAGS) \
326 $(GCC_CFLAGS)
327rdp_backend_la_SOURCES = src/compositor-rdp.c
328endif
329
330if HAVE_LCMS
331module_LTLIBRARIES += cms-static.la
332cms_static_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800333cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800334cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS)
335cms_static_la_SOURCES = \
336 src/cms-static.c \
337 src/cms-helper.c \
338 src/cms-helper.h
339if ENABLE_COLORD
340module_LTLIBRARIES += cms-colord.la
341cms_colord_la_LDFLAGS = -module -avoid-version
342cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS)
343cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS)
344cms_colord_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100345 src/cms-colord.c \
346 src/cms-helper.c \
Kristian Høgsbergb7e3ef42014-01-27 23:05:52 -0800347 src/cms-helper.h
348endif
349endif
350
351noinst_PROGRAMS += spring-tool
352spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
353spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm
354spring_tool_SOURCES = \
355 src/spring-tool.c \
356 src/animation.c \
357 shared/matrix.c \
358 shared/matrix.h \
359 src/compositor.h
360
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800361if BUILD_CLIENTS
362
363bin_PROGRAMS += weston-terminal weston-info
364
365libexec_PROGRAMS += \
366 weston-desktop-shell \
367 weston-screenshooter \
368 weston-keyboard \
369 weston-simple-im
370
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900371if ENABLE_IVI_SHELL
372libexec_PROGRAMS += \
373 weston-ivi-shell-user-interface
374endif
375
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800376demo_clients = \
377 weston-flower \
378 weston-image \
379 weston-cliptest \
380 weston-dnd \
381 weston-smoke \
382 weston-resizor \
383 weston-eventdemo \
384 weston-clickdot \
385 weston-transformed \
386 weston-fullscreen \
387 weston-stacking \
388 weston-calibrator \
389 weston-scaler
390
391if INSTALL_DEMO_CLIENTS
392bin_PROGRAMS += $(demo_clients)
393else
394noinst_PROGRAMS += $(demo_clients)
395endif
396
397
398if BUILD_SIMPLE_CLIENTS
399demo_clients += \
400 weston-simple-shm \
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500401 weston-simple-damage \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800402 weston-simple-touch \
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400403 weston-presentation-shm \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800404 weston-multi-resource
405
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800406weston_simple_shm_SOURCES = clients/simple-shm.c
407nodist_weston_simple_shm_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800408 protocol/xdg-shell-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500409 protocol/xdg-shell-client-protocol.h \
410 protocol/fullscreen-shell-protocol.c \
Nobuhiko Tanibatafba4ea32014-11-27 13:24:29 +0900411 protocol/fullscreen-shell-client-protocol.h \
412 protocol/ivi-application-protocol.c \
413 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800414weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800415weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800416
Jason Ekstrand549a53f2014-04-05 09:22:15 -0500417weston_simple_damage_SOURCES = clients/simple-damage.c
418nodist_weston_simple_damage_SOURCES = \
419 protocol/scaler-protocol.c \
420 protocol/scaler-client-protocol.h \
421 protocol/xdg-shell-protocol.c \
422 protocol/xdg-shell-client-protocol.h \
423 protocol/fullscreen-shell-protocol.c \
424 protocol/fullscreen-shell-client-protocol.h
425weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
426weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
427
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800428weston_simple_touch_SOURCES = clients/simple-touch.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800429weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800430weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800431
Pekka Paalanenef2b5922014-09-23 22:08:49 -0400432weston_presentation_shm_SOURCES = clients/presentation-shm.c
433nodist_weston_presentation_shm_SOURCES = \
434 protocol/presentation_timing-protocol.c \
435 protocol/presentation_timing-client-protocol.h
436weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
437weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm
438
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800439weston_multi_resource_SOURCES = clients/multi-resource.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800440weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS)
Javier Jardónc47931e2014-10-27 15:13:19 +0000441weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800442endif
443
444if BUILD_SIMPLE_EGL_CLIENTS
445demo_clients += weston-simple-egl
Kristian Høgsbergfe84a972014-02-11 14:23:19 -0800446weston_simple_egl_SOURCES = clients/simple-egl.c
447nodist_weston_simple_egl_SOURCES = \
Kristian Høgsbergdfaf65b2014-02-07 17:01:57 -0800448 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata4f01a0b2014-11-27 13:24:42 +0900449 protocol/xdg-shell-client-protocol.h \
450 protocol/ivi-application-protocol.c \
451 protocol/ivi-application-client-protocol.h
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800452weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800453weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
454endif
455
456noinst_LTLIBRARIES += libtoytoolkit.la
457
458libtoytoolkit_la_SOURCES = \
459 clients/window.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800460 clients/window.h
461
462nodist_libtoytoolkit_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100463 protocol/text-cursor-position-protocol.c \
464 protocol/text-cursor-position-client-protocol.h \
465 protocol/scaler-protocol.c \
466 protocol/scaler-client-protocol.h \
467 protocol/workspaces-protocol.c \
468 protocol/workspaces-client-protocol.h \
Pekka Paalanen7e62d252014-09-23 22:08:42 -0400469 protocol/presentation_timing-protocol.c \
470 protocol/presentation_timing-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100471 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +0900472 protocol/xdg-shell-client-protocol.h \
473 protocol/ivi-application-protocol.c \
474 protocol/ivi-application-client-protocol.h
Jasper St. Pierre0790e392013-12-09 14:58:00 -0500475
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800476BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES)
477
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800478
479libtoytoolkit_la_LIBADD = \
480 $(CLIENT_LIBS) \
481 $(CAIRO_EGL_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800482 libshared-cairo.la -lrt -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800483libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800484
485weston_flower_SOURCES = clients/flower.c
486weston_flower_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800487weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800488
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100489weston_screenshooter_SOURCES = \
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800490 clients/screenshot.c
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800491nodist_weston_screenshooter_SOURCES = \
492 protocol/screenshooter-protocol.c \
493 protocol/screenshooter-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800494weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800495weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800496
497weston_terminal_SOURCES = clients/terminal.c
498weston_terminal_LDADD = libtoytoolkit.la -lutil
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800499weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800500
501weston_image_SOURCES = clients/image.c
502weston_image_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800503weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800504
Pekka Paalanen461e93c2014-08-20 11:58:47 +0300505weston_cliptest_SOURCES = \
506 clients/cliptest.c \
507 src/vertex-clipping.c \
508 src/vertex-clipping.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -0800509weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800510weston_cliptest_LDADD = libtoytoolkit.la
511
512weston_dnd_SOURCES = clients/dnd.c
513weston_dnd_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800514weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800515
516weston_smoke_SOURCES = clients/smoke.c
517weston_smoke_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800518weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800519
520weston_resizor_SOURCES = clients/resizor.c
521weston_resizor_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800522weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800523
524weston_scaler_SOURCES = clients/scaler.c
525weston_scaler_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800526weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800527
528if HAVE_CAIRO_GLESV2
529demo_clients += weston-nested weston-nested-client
530
531weston_nested_SOURCES = clients/nested.c
532weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800533weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800534
535weston_nested_client_SOURCES = clients/nested-client.c
536weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800537weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800538endif
539
540weston_eventdemo_SOURCES = clients/eventdemo.c
541weston_eventdemo_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800542weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800543
544weston_clickdot_SOURCES = clients/clickdot.c
545weston_clickdot_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800546weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800547
548weston_transformed_SOURCES = clients/transformed.c
549weston_transformed_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800550weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800551
552weston_fullscreen_SOURCES = clients/fullscreen.c
Jason Ekstrand2bb72fe2014-04-02 19:53:52 -0500553nodist_weston_fullscreen_SOURCES = \
554 protocol/fullscreen-shell-protocol.c \
555 protocol/fullscreen-shell-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800556weston_fullscreen_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800557weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800558
559weston_stacking_SOURCES = clients/stacking.c
560weston_stacking_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800561weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800562
563weston_calibrator_SOURCES = clients/calibrator.c \
564 shared/matrix.c \
565 shared/matrix.h
566weston_calibrator_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800567weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800568
569if BUILD_SUBSURFACES_CLIENT
570demo_clients += weston-subsurfaces
571weston_subsurfaces_SOURCES = clients/subsurfaces.c
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800572weston_subsurfaces_CFLAGS = \
573 $(AM_CFLAGS) \
574 $(SIMPLE_EGL_CLIENT_CFLAGS) \
575 $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800576weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm
577endif
578
579if HAVE_PANGO
580demo_clients += weston-editor
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800581weston_editor_SOURCES = clients/editor.c
582nodist_weston_editor_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100583 protocol/text-protocol.c \
584 protocol/text-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800585weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800586weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800587endif
588
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800589weston_keyboard_SOURCES = clients/keyboard.c
590nodist_weston_keyboard_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100591 protocol/desktop-shell-client-protocol.h \
592 protocol/desktop-shell-protocol.c \
593 protocol/input-method-protocol.c \
594 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800595weston_keyboard_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800596weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800597
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800598weston_simple_im_SOURCES = clients/weston-simple-im.c
599nodist_weston_simple_im_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100600 protocol/input-method-protocol.c \
601 protocol/input-method-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800602weston_simple_im_LDADD = $(CLIENT_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800603weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800604
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800605weston_info_SOURCES = clients/weston-info.c
Pekka Paalanen93a6afd2014-09-23 22:08:44 -0400606nodist_weston_info_SOURCES = \
607 protocol/presentation_timing-protocol.c \
608 protocol/presentation_timing-client-protocol.h
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800609weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la
Pekka Paalanen5124b532014-02-03 13:12:34 +0200610weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800611
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800612weston_desktop_shell_SOURCES = clients/desktop-shell.c
613nodist_weston_desktop_shell_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100614 protocol/desktop-shell-client-protocol.h \
615 protocol/desktop-shell-protocol.c
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800616weston_desktop_shell_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800617weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800618
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900619if ENABLE_IVI_SHELL
620weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c
621nodist_weston_ivi_shell_user_interface_SOURCES = \
622 protocol/ivi-hmi-controller-client-protocol.h \
623 protocol/ivi-hmi-controller-protocol.c \
624 protocol/ivi-application-client-protocol.h \
625 protocol/ivi-application-protocol.c
626weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la
627weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
628endif
629
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800630if BUILD_FULL_GL_CLIENTS
631demo_clients += weston-gears
632weston_gears_SOURCES = clients/gears.c
633weston_gears_LDADD = libtoytoolkit.la
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800634weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800635
636if HAVE_GLU
637libexec_PROGRAMS += weston-screensaver
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100638weston_screensaver_SOURCES = \
639 clients/wscreensaver.c \
640 clients/wscreensaver.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100641 clients/wscreensaver-glue.c \
642 clients/wscreensaver-glue.h \
643 clients/glmatrix.c \
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800644 clients/matrix3.xpm
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800645nodist_weston_screensaver_SOURCES = \
646 protocol/desktop-shell-client-protocol.h \
647 protocol/desktop-shell-protocol.c
648
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800649weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS)
Kristian Høgsberge5b4dce2014-02-05 22:00:59 -0800650weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS)
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800651
652endif
653
654endif
655
656endif
657
658BUILT_SOURCES += \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100659 protocol/screenshooter-protocol.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800660 protocol/screenshooter-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100661 protocol/text-cursor-position-client-protocol.h \
662 protocol/text-cursor-position-protocol.c \
663 protocol/text-protocol.c \
664 protocol/text-client-protocol.h \
665 protocol/input-method-protocol.c \
666 protocol/input-method-client-protocol.h \
667 protocol/desktop-shell-client-protocol.h \
668 protocol/desktop-shell-protocol.c \
669 protocol/scaler-client-protocol.h \
670 protocol/scaler-protocol.c \
671 protocol/workspaces-client-protocol.h \
672 protocol/workspaces-protocol.c \
Jason Ekstrand428c24e2014-04-02 19:53:48 -0500673 protocol/fullscreen-shell-protocol.c \
674 protocol/fullscreen-shell-client-protocol.h \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100675 protocol/xdg-shell-protocol.c \
Nobuhiko Tanibata923bc142014-11-27 13:23:32 +0900676 protocol/xdg-shell-client-protocol.h \
677 protocol/ivi-hmi-controller-protocol.c \
678 protocol/ivi-hmi-controller-client-protocol.h \
679 protocol/ivi-application-protocol.c \
680 protocol/ivi-application-client-protocol.h
Kristian Høgsberge73eccd2014-01-31 16:15:11 -0800681
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -0800682westondatadir = $(datadir)/weston
683dist_westondata_DATA = \
684 data/wayland.svg \
685 data/wayland.png \
686 data/pattern.png \
687 data/terminal.png \
688 data/border.png \
689 data/icon_window.png \
690 data/sign_close.png \
691 data/sign_maximize.png \
Nobuhiko Tanibata001a5432014-03-11 11:54:45 +0900692 data/sign_minimize.png \
693 data/background.png \
694 data/tiling.png \
695 data/fullscreen.png \
696 data/panel.png \
697 data/random.png \
698 data/sidebyside.png \
699 data/home.png \
700 data/icon_ivi_clickdot.png \
701 data/icon_ivi_flower.png \
702 data/icon_ivi_simple-egl.png \
703 data/icon_ivi_simple-shm.png \
704 data/icon_ivi_smoke.png
Kristian Høgsberge895f142014-01-27 21:46:30 -0800705
706
707if BUILD_WCAP_TOOLS
708bin_PROGRAMS += wcap-decode
709
710wcap_decode_SOURCES = \
711 wcap/main.c \
712 wcap/wcap-decode.c \
713 wcap/wcap-decode.h
714
715wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
716wcap_decode_LDADD = $(WCAP_LIBS)
717endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800718
719
720if ENABLE_DESKTOP_SHELL
721
722module_LTLIBRARIES += desktop-shell.la
723
724desktop_shell_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100725 -I$(top_builddir)/protocol \
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800726 -I$(top_srcdir)/shared \
727 -I$(top_srcdir)/src \
728 -I$(top_builddir)/src \
729 -I$(top_builddir)/desktop-shell \
730 -DDATADIR='"$(datadir)"' \
731 -DMODULEDIR='"$(moduledir)"' \
732 -DLIBEXECDIR='"$(libexecdir)"' \
733 -DIN_WESTON
734
735desktop_shell_la_LDFLAGS = -module -avoid-version
Kristian Høgsberg4c1bfc92014-02-11 14:21:39 -0800736desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800737desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
738desktop_shell_la_SOURCES = \
739 desktop-shell/shell.h \
740 desktop-shell/shell.c \
741 desktop-shell/exposay.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800742 desktop-shell/input-panel.c
743nodist_desktop_shell_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100744 protocol/desktop-shell-protocol.c \
745 protocol/desktop-shell-server-protocol.h \
746 protocol/xdg-shell-protocol.c \
747 protocol/xdg-shell-server-protocol.h
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800748
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800749BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES)
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800750endif
751
Jason Ekstrand946a9482014-04-02 19:53:47 -0500752if ENABLE_FULLSCREEN_SHELL
753
754module_LTLIBRARIES += fullscreen-shell.la
755
756fullscreen_shell_la_CPPFLAGS = \
757 -I$(top_builddir)/protocol \
758 -I$(top_srcdir)/shared \
759 -I$(top_srcdir)/src \
760 -I$(top_builddir)/src \
761 -DIN_WESTON
762
763fullscreen_shell_la_LDFLAGS = -module -avoid-version
764fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS)
765fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
766fullscreen_shell_la_SOURCES = \
767 fullscreen-shell/fullscreen-shell.c
768nodist_fullscreen_shell_la_SOURCES = \
769 protocol/fullscreen-shell-protocol.c \
770 protocol/fullscreen-shell-server-protocol.h
771
772BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES)
773endif
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800774
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900775if ENABLE_IVI_SHELL
776
777module_LTLIBRARIES += \
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900778 $(ivi_shell) \
779 $(hmi_controller)
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900780
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900781ivi_shell = ivi-shell.la
782ivi_shell_la_LDFLAGS = -module -avoid-version
783ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
784ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
785ivi_shell_la_SOURCES = \
Nobuhiko Tanibata28dc18c2014-12-15 13:22:31 +0900786 ivi-shell/ivi-layout-export.h \
787 ivi-shell/ivi-layout-private.h \
788 ivi-shell/ivi-layout.c \
789 ivi-shell/ivi-layout-transition.c \
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900790 ivi-shell/ivi-shell.h \
791 ivi-shell/ivi-shell.c \
Nobuhiko Tanibata0038b732014-11-27 13:25:34 +0900792 ivi-shell/input-panel-ivi.c
Nobuhiko Tanibata487adc42014-11-27 13:22:37 +0900793nodist_ivi_shell_la_SOURCES = \
794 protocol/ivi-application-protocol.c \
795 protocol/ivi-application-server-protocol.h
796
797BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES)
798
Nobuhiko Tanibata4f6853b2014-11-27 13:23:12 +0900799hmi_controller = hmi-controller.la
800hmi_controller_la_LDFLAGS = -module -avoid-version
801hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
802hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
803hmi_controller_la_SOURCES = \
804 ivi-shell/ivi-layout-export.h \
805 ivi-shell/hmi-controller.c
806nodist_hmi_controller_la_SOURCES = \
807 protocol/ivi-hmi-controller-protocol.c \
808 protocol/ivi-hmi-controller-server-protocol.h
809
810BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES)
811
Nobuhiko Tanibata6f9df652014-11-27 13:22:00 +0900812endif
813
814
Jason Ekstrand47928d82014-04-02 19:54:01 -0500815if ENABLE_SCREEN_SHARING
816
817module_LTLIBRARIES += screen-share.la
818
819screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"'
820screen_share_la_LDFLAGS = -module -avoid-version
821screen_share_la_LIBADD = \
822 $(COMPOSITOR_LIBS) \
823 $(SCREEN_SHARE_LIBS) \
824 libshared-cairo.la
825screen_share_la_CFLAGS = \
826 $(COMPOSITOR_CFLAGS) \
827 $(SCREEN_SHARE_CFLAGS) \
828 $(GCC_CFLAGS)
829screen_share_la_SOURCES = \
830 src/screen-share.c
831nodist_screen_share_la_SOURCES = \
832 protocol/fullscreen-shell-protocol.c \
833 protocol/fullscreen-shell-client-protocol.h
834
835endif
836
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800837if ENABLE_XWAYLAND
838
839module_LTLIBRARIES += xwayland.la
840
841xwayland_la_CPPFLAGS = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100842 -I$(top_builddir)/protocol \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800843 -I$(top_srcdir)/shared \
844 -I$(top_srcdir)/src \
845 -I$(top_builddir)/src \
846 -I$(top_builddir)/xwayland \
847 -DDATADIR='"$(datadir)"' \
848 -DMODULEDIR='"$(moduledir)"' \
849 -DLIBEXECDIR='"$(libexecdir)"' \
850 -DXSERVER_PATH='"@XSERVER_PATH@"'
851
852xwayland_la_LDFLAGS = -module -avoid-version
853xwayland_la_LIBADD = \
854 $(XWAYLAND_LIBS) \
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800855 $(top_builddir)/libshared-cairo.la
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800856xwayland_la_CFLAGS = \
857 $(GCC_CFLAGS) \
858 $(COMPOSITOR_CFLAGS) \
859 $(PIXMAN_CFLAGS) \
860 $(CAIRO_CFLAGS)
861xwayland_la_SOURCES = \
862 xwayland/xwayland.h \
863 xwayland/window-manager.c \
864 xwayland/selection.c \
865 xwayland/dnd.c \
866 xwayland/launcher.c \
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800867 xwayland/hash.c \
868 xwayland/hash.h
Kristian Høgsberg058bd322014-01-27 21:59:55 -0800869endif
870
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800871
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800872#
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800873# Shared utilities
874#
875
876noinst_LTLIBRARIES += libshared.la libshared-cairo.la
877
878libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
879
880libshared_la_SOURCES = \
881 shared/config-parser.c \
882 shared/option-parser.c \
883 shared/config-parser.h \
884 shared/os-compatibility.c \
885 shared/os-compatibility.h
886
887libshared_cairo_la_CFLAGS = \
888 -DDATADIR='"$(datadir)"' \
889 $(GCC_CFLAGS) \
890 $(COMPOSITOR_CFLAGS) \
891 $(PIXMAN_CFLAGS) \
892 $(CAIRO_CFLAGS) \
893 $(PNG_CFLAGS) \
894 $(WEBP_CFLAGS)
895
896libshared_cairo_la_LIBADD = \
897 $(PIXMAN_LIBS) \
898 $(CAIRO_LIBS) \
899 $(PNG_LIBS) \
900 $(WEBP_LIBS) \
901 $(JPEG_LIBS)
902
903libshared_cairo_la_SOURCES = \
904 $(libshared_la_SOURCES) \
905 shared/image-loader.c \
906 shared/image-loader.h \
907 shared/cairo-util.c \
908 shared/frame.c \
909 shared/cairo-util.h
910
911
912#
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800913# tests subdirectory
914#
915
916TESTS = $(shared_tests) $(module_tests) $(weston_tests)
917
918shared_tests = \
919 config-parser.test \
920 vertex-clip.test
921
922module_tests = \
923 surface-test.la \
924 surface-global-test.la
925
926weston_tests = \
927 bad_buffer.weston \
928 keyboard.weston \
929 event.weston \
930 button.weston \
931 text.weston \
Pekka Paalanende7f5c82014-09-23 22:08:48 -0400932 presentation.weston \
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +0300933 roles.weston \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800934 subsurface.weston
935
936
937AM_TESTS_ENVIRONMENT = \
938 abs_builddir='$(abs_builddir)'; export abs_builddir;
939
940TEST_EXTENSIONS = .la .weston
941LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
942WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env
943
944clean-local:
Pekka Paalanen15f85632014-05-12 10:08:57 +0300945 -rm -rf logs
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800946
947# To remove when automake 1.11 support is dropped
948export abs_builddir
949
950noinst_LTLIBRARIES += \
951 weston-test.la \
952 $(module_tests) \
953 libtest-runner.la \
954 libtest-client.la
955
956noinst_PROGRAMS += \
957 $(setbacklight) \
958 $(shared_tests) \
959 $(weston_tests) \
960 matrix-test
961
962test_module_ldflags = \
963 -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS)
964
965surface_global_test_la_SOURCES = tests/surface-global-test.c
966surface_global_test_la_LDFLAGS = $(test_module_ldflags)
967surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
968
969surface_test_la_SOURCES = tests/surface-test.c
970surface_test_la_LDFLAGS = $(test_module_ldflags)
971surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
972
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800973weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800974weston_test_la_LDFLAGS = $(test_module_ldflags)
975weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -0800976weston_test_la_SOURCES = tests/weston-test.c
977nodist_weston_test_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +0100978 protocol/wayland-test-protocol.c \
979 protocol/wayland-test-server-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800980
981if ENABLE_EGL
982weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS)
983weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS)
984endif
985
986libtest_runner_la_SOURCES = \
987 tests/weston-test-runner.c \
988 tests/weston-test-runner.h
989libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
990
991config_parser_test_SOURCES = tests/config-parser-test.c
Kristian Høgsberg0987f812014-01-27 22:02:41 -0800992config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -0800993
994vertex_clip_test_SOURCES = \
995 tests/vertex-clip-test.c \
996 src/vertex-clipping.c \
997 src/vertex-clipping.h
998vertex_clip_test_LDADD = libtest-runner.la -lm -lrt
999
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001000libtest_client_la_SOURCES = \
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001001 tests/weston-test-client-helper.c \
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001002 tests/weston-test-client-helper.h
1003nodist_libtest_client_la_SOURCES = \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001004 protocol/wayland-test-protocol.c \
1005 protocol/wayland-test-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001006libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg0987f812014-01-27 22:02:41 -08001007libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001008
1009bad_buffer_weston_SOURCES = tests/bad-buffer-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001010bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001011bad_buffer_weston_LDADD = libtest-client.la
1012
1013keyboard_weston_SOURCES = tests/keyboard-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001014keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001015keyboard_weston_LDADD = libtest-client.la
1016
1017event_weston_SOURCES = tests/event-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001018event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001019event_weston_LDADD = libtest-client.la
1020
1021button_weston_SOURCES = tests/button-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001022button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001023button_weston_LDADD = libtest-client.la
1024
Kristian Høgsbergbece0ee2014-02-01 21:52:17 -08001025text_weston_SOURCES = tests/text-test.c
1026nodist_text_weston_SOURCES = \
1027 protocol/text-protocol.c \
1028 protocol/text-client-protocol.h
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001029text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001030text_weston_LDADD = libtest-client.la
1031
1032subsurface_weston_SOURCES = tests/subsurface-test.c
Kristian Høgsberg49fcd002014-02-03 11:05:41 -08001033subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001034subsurface_weston_LDADD = libtest-client.la
1035
Pekka Paalanende7f5c82014-09-23 22:08:48 -04001036presentation_weston_SOURCES = tests/presentation-test.c
1037nodist_presentation_weston_SOURCES = \
1038 protocol/presentation_timing-protocol.c \
1039 protocol/presentation_timing-client-protocol.h
1040presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1041presentation_weston_LDADD = libtest-client.la
1042
Pekka Paalanen3c5f1c72014-10-01 16:34:48 +03001043roles_weston_SOURCES = tests/roles-test.c
1044roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS)
1045roles_weston_LDADD = libtest-client.la
1046
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001047if ENABLE_EGL
1048weston_tests += buffer-count.weston
1049buffer_count_weston_SOURCES = tests/buffer-count-test.c
1050buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS)
1051buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS)
1052endif
1053
1054if ENABLE_XWAYLAND_TEST
Pekka Paalanenf9a26262014-05-07 16:26:29 +03001055weston_tests += xwayland-test.weston
1056xwayland_test_weston_SOURCES = tests/xwayland-test.c
1057xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS)
1058xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS)
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001059endif
1060
1061matrix_test_SOURCES = \
1062 tests/matrix-test.c \
1063 shared/matrix.c \
1064 shared/matrix.h
1065matrix_test_CPPFLAGS = -DUNIT_TEST
1066matrix_test_LDADD = -lm -lrt
1067
1068if BUILD_SETBACKLIGHT
1069noinst_PROGRAMS += setbacklight
1070setbacklight_SOURCES = \
1071 tests/setbacklight.c \
1072 src/libbacklight.c \
1073 src/libbacklight.h
1074setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS)
1075setbacklight_LDADD = $(SETBACKLIGHT_LIBS)
1076endif
1077
1078EXTRA_DIST += tests/weston-tests-env
1079
1080BUILT_SOURCES += \
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001081 protocol/wayland-test-protocol.c \
1082 protocol/wayland-test-server-protocol.h \
1083 protocol/wayland-test-client-protocol.h \
1084 protocol/text-protocol.c \
1085 protocol/text-client-protocol.h
Kristian Høgsberg1e80afa2014-01-31 14:03:09 -08001086
Kristian Høgsbergcd312752014-02-01 00:38:15 -08001087EXTRA_DIST += \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001088 protocol/desktop-shell.xml \
1089 protocol/screenshooter.xml \
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001090 protocol/text.xml \
1091 protocol/input-method.xml \
1092 protocol/workspaces.xml \
1093 protocol/text-cursor-position.xml \
1094 protocol/wayland-test.xml \
1095 protocol/xdg-shell.xml \
Jason Ekstrand27e11672014-04-02 19:53:44 -05001096 protocol/fullscreen-shell.xml \
Pekka Paalanen7e62d252014-09-23 22:08:42 -04001097 protocol/presentation_timing.xml \
Nobuhiko Tanibatabff1b4a2014-11-27 13:21:34 +09001098 protocol/scaler.xml \
Nobuhiko Tanibata68cfabb2014-11-27 13:22:53 +09001099 protocol/ivi-application.xml \
1100 protocol/ivi-hmi-controller.xml
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -08001101
Kristian Høgsberg68c5c102014-01-27 22:33:04 -08001102man_MANS = weston.1 weston.ini.5
1103
1104if ENABLE_DRM_COMPOSITOR
1105man_MANS += weston-drm.7
1106endif
1107
1108MAN_SUBSTS = \
1109 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
1110 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
1111 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
1112 -e 's|__version__|$(PACKAGE_VERSION)|g'
1113
1114SUFFIXES = .1 .5 .7 .man
1115
1116%.1 %.5 %.7 : man/%.man
1117 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
1118
1119EXTRA_DIST += \
1120 man/weston.man \
1121 man/weston-drm.man \
1122 man/weston.ini.man
1123
1124CLEANFILES += $(man_MANS)
1125
1126
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001127protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
1128 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001129
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001130protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
1131 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
Kristian Høgsberg08229422014-02-01 00:33:04 -08001132
Quentin Glidic088ba5e2014-02-01 21:39:12 +01001133protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
1134 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@