Thierry Reding | 0e6d9a7 | 2014-05-27 09:07:54 +0200 | [diff] [blame] | 1 | ACLOCAL_AMFLAGS = -I m4 |
| 2 | |
Kristian Høgsberg | e895f14 | 2014-01-27 21:46:30 -0800 | [diff] [blame] | 3 | bin_PROGRAMS = |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 4 | noinst_PROGRAMS = |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 5 | libexec_PROGRAMS = |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 6 | moduledir = $(libdir)/weston |
| 7 | module_LTLIBRARIES = |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 8 | noinst_LTLIBRARIES = |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 9 | BUILT_SOURCES = |
Kristian Høgsberg | e895f14 | 2014-01-27 21:46:30 -0800 | [diff] [blame] | 10 | |
Pekka Paalanen | 3d3f485 | 2014-08-20 12:11:04 +0300 | [diff] [blame] | 11 | # Do not run xwayland test while it is known broken. |
| 12 | AM_DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install --disable-xwayland-test |
Kristian Høgsberg | 24639cc | 2013-02-25 13:03:15 -0500 | [diff] [blame] | 13 | |
Kristian Høgsberg | 0822942 | 2014-02-01 00:33:04 -0800 | [diff] [blame] | 14 | EXTRA_DIST = weston.ini.in |
Neil Roberts | e3de16e | 2013-11-22 16:46:00 +0000 | [diff] [blame] | 15 | |
| 16 | weston.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 | |
Kristian Høgsberg | cd31275 | 2014-02-01 00:38:15 -0800 | [diff] [blame] | 23 | all-local : weston.ini |
Kristian Høgsberg | 9846374 | 2013-12-16 23:12:46 -0800 | [diff] [blame] | 24 | |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 25 | AM_CFLAGS = $(GCC_CFLAGS) |
| 26 | |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 27 | AM_CPPFLAGS = \ |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 28 | -I$(top_srcdir)/src \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 29 | -I$(top_builddir)/src \ |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 30 | -I$(top_builddir)/clients \ |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 31 | -I$(top_builddir)/tests \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 32 | -I$(top_srcdir)/shared \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 33 | -I$(top_builddir)/protocol \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 34 | -DDATADIR='"$(datadir)"' \ |
| 35 | -DMODULEDIR='"$(moduledir)"' \ |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 36 | -DLIBEXECDIR='"$(libexecdir)"' \ |
| 37 | -DBINDIR='"$(bindir)"' |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 38 | |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 39 | CLEANFILES = weston.ini $(BUILT_SOURCES) |
Kristian Høgsberg | 5b9f9f8 | 2014-01-27 21:40:28 -0800 | [diff] [blame] | 40 | |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 41 | bin_PROGRAMS += weston |
| 42 | |
| 43 | weston_LDFLAGS = -export-dynamic |
| 44 | weston_CPPFLAGS = $(AM_CPPFLAGS) -DIN_WESTON |
| 45 | weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LIBUNWIND_CFLAGS) |
| 46 | weston_LDADD = $(COMPOSITOR_LIBS) $(LIBUNWIND_LIBS) \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 47 | $(DLOPEN_LIBS) -lm libshared.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 48 | |
| 49 | weston_SOURCES = \ |
| 50 | src/git-version.h \ |
| 51 | src/log.c \ |
| 52 | src/compositor.c \ |
| 53 | src/compositor.h \ |
| 54 | src/input.c \ |
| 55 | src/data-device.c \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 56 | src/screenshooter.c \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 57 | src/clipboard.c \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 58 | src/zoom.c \ |
| 59 | src/text-backend.c \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 60 | src/bindings.c \ |
| 61 | src/animation.c \ |
| 62 | src/noop-renderer.c \ |
| 63 | src/pixman-renderer.c \ |
| 64 | src/pixman-renderer.h \ |
| 65 | shared/matrix.c \ |
| 66 | shared/matrix.h \ |
| 67 | shared/zalloc.h \ |
| 68 | src/weston-egl-ext.h |
| 69 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 70 | nodist_weston_SOURCES = \ |
| 71 | protocol/screenshooter-protocol.c \ |
| 72 | protocol/screenshooter-server-protocol.h \ |
| 73 | protocol/text-cursor-position-protocol.c \ |
| 74 | protocol/text-cursor-position-server-protocol.h \ |
| 75 | protocol/text-protocol.c \ |
| 76 | protocol/text-server-protocol.h \ |
| 77 | protocol/input-method-protocol.c \ |
| 78 | protocol/input-method-server-protocol.h \ |
| 79 | protocol/workspaces-protocol.c \ |
| 80 | protocol/workspaces-server-protocol.h \ |
Pekka Paalanen | 7e62d25 | 2014-09-23 22:08:42 -0400 | [diff] [blame] | 81 | protocol/presentation_timing-protocol.c \ |
| 82 | protocol/presentation_timing-server-protocol.h \ |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 83 | protocol/scaler-protocol.c \ |
| 84 | protocol/scaler-server-protocol.h |
| 85 | |
| 86 | BUILT_SOURCES += $(nodist_weston_SOURCES) |
| 87 | |
Kristian Høgsberg | 0aa19e9 | 2014-01-31 16:33:48 -0800 | [diff] [blame] | 88 | # Track this dependency explicitly instead of using BUILT_SOURCES. We |
| 89 | # add BUILT_SOURCES to CLEANFILES, but we want to keep git-version.h |
| 90 | # in case we're building from tarballs. |
| 91 | |
| 92 | src/compositor.c : $(top_builddir)/src/git-version.h |
| 93 | |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 94 | noinst_LTLIBRARIES += \ |
| 95 | libsession-helper.la |
| 96 | |
| 97 | libsession_helper_la_SOURCES = \ |
| 98 | src/weston-launch.h \ |
| 99 | src/launcher-util.c \ |
| 100 | src/launcher-util.h |
| 101 | libsession_helper_la_CFLAGS = $(GCC_CFLAGS) $(LIBDRM_CFLAGS) $(PIXMAN_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 102 | libsession_helper_la_LIBADD = $(LIBDRM_LIBS) |
| 103 | |
| 104 | if ENABLE_DBUS |
| 105 | if HAVE_SYSTEMD_LOGIN |
| 106 | libsession_helper_la_SOURCES += \ |
| 107 | src/dbus.h \ |
| 108 | src/dbus.c \ |
| 109 | src/logind-util.h \ |
| 110 | src/logind-util.c |
| 111 | libsession_helper_la_CFLAGS += $(SYSTEMD_LOGIN_CFLAGS) $(DBUS_CFLAGS) |
| 112 | libsession_helper_la_LIBADD += $(SYSTEMD_LOGIN_LIBS) $(DBUS_LIBS) |
| 113 | endif |
| 114 | endif |
| 115 | |
Kristian Høgsberg | 0aa19e9 | 2014-01-31 16:33:48 -0800 | [diff] [blame] | 116 | if HAVE_GIT_REPO |
| 117 | src/git-version.h : $(top_srcdir)/.git/logs/HEAD |
| 118 | $(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øgsberg | 1d2dd07 | 2014-02-03 10:55:51 -0800 | [diff] [blame] | 119 | else |
| 120 | src/git-version.h : |
| 121 | $(AM_V_GEN)echo "#define BUILD_ID \"unknown (not built from git or tarball)\"" > $@ |
| 122 | |
Kristian Høgsberg | 0aa19e9 | 2014-01-31 16:33:48 -0800 | [diff] [blame] | 123 | endif |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 124 | |
| 125 | .FORCE : |
| 126 | |
| 127 | if BUILD_WESTON_LAUNCH |
| 128 | bin_PROGRAMS += weston-launch |
| 129 | weston_launch_SOURCES = src/weston-launch.c src/weston-launch.h |
| 130 | weston_launch_CPPFLAGS = -DBINDIR='"$(bindir)"' |
| 131 | weston_launch_CFLAGS= \ |
| 132 | $(GCC_CFLAGS) \ |
| 133 | $(PAM_CFLAGS) \ |
| 134 | $(SYSTEMD_LOGIN_CFLAGS) \ |
| 135 | $(LIBDRM_CFLAGS) |
| 136 | weston_launch_LDADD = $(PAM_LIBS) $(SYSTEMD_LOGIN_LIBS) $(LIBDRM_LIBS) |
| 137 | |
| 138 | if ENABLE_SETUID_INSTALL |
| 139 | install-exec-hook: |
| 140 | chown root $(DESTDIR)$(bindir)/weston-launch |
| 141 | chmod u+s $(DESTDIR)$(bindir)/weston-launch |
| 142 | endif |
| 143 | |
| 144 | endif # BUILD_WESTON_LAUNCH |
| 145 | |
| 146 | pkgconfigdir = $(libdir)/pkgconfig |
| 147 | pkgconfig_DATA = src/weston.pc |
| 148 | |
| 149 | westonincludedir = $(includedir)/weston |
| 150 | westoninclude_HEADERS = \ |
| 151 | src/version.h \ |
| 152 | src/compositor.h \ |
| 153 | shared/matrix.h \ |
| 154 | shared/config-parser.h \ |
| 155 | shared/zalloc.h |
| 156 | |
| 157 | if ENABLE_EGL |
| 158 | module_LTLIBRARIES += gl-renderer.la |
| 159 | gl_renderer_la_LDFLAGS = -module -avoid-version |
| 160 | gl_renderer_la_LIBADD = $(COMPOSITOR_LIBS) $(EGL_LIBS) |
| 161 | gl_renderer_la_CFLAGS = \ |
| 162 | $(COMPOSITOR_CFLAGS) \ |
| 163 | $(EGL_CFLAGS) \ |
| 164 | $(GCC_CFLAGS) |
| 165 | gl_renderer_la_SOURCES = \ |
| 166 | src/gl-renderer.h \ |
| 167 | src/gl-renderer.c \ |
| 168 | src/vertex-clipping.c \ |
| 169 | src/vertex-clipping.h |
| 170 | endif |
| 171 | |
| 172 | if ENABLE_X11_COMPOSITOR |
| 173 | module_LTLIBRARIES += x11-backend.la |
| 174 | x11_backend_la_LDFLAGS = -module -avoid-version |
| 175 | x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 176 | libshared-cairo.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 177 | x11_backend_la_CFLAGS = \ |
| 178 | $(COMPOSITOR_CFLAGS) \ |
| 179 | $(EGL_CFLAGS) \ |
| 180 | $(PIXMAN_CFLAGS) \ |
| 181 | $(CAIRO_CFLAGS) \ |
| 182 | $(X11_COMPOSITOR_CFLAGS) \ |
| 183 | $(GCC_CFLAGS) |
| 184 | x11_backend_la_SOURCES = src/compositor-x11.c |
| 185 | endif |
| 186 | |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 187 | INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS) |
Peter Hutterer | 823ad33 | 2014-11-26 07:06:31 +1000 | [diff] [blame] | 188 | INPUT_BACKEND_SOURCES = \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 189 | src/libinput-seat.c \ |
| 190 | src/libinput-seat.h \ |
| 191 | src/libinput-device.c \ |
| 192 | src/libinput-device.h |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 193 | |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 194 | if ENABLE_DRM_COMPOSITOR |
| 195 | module_LTLIBRARIES += drm-backend.la |
| 196 | drm_backend_la_LDFLAGS = -module -avoid-version |
| 197 | drm_backend_la_LIBADD = \ |
| 198 | $(COMPOSITOR_LIBS) \ |
| 199 | $(DRM_COMPOSITOR_LIBS) \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 200 | $(INPUT_BACKEND_LIBS) \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 201 | libshared.la -lrt \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 202 | libsession-helper.la |
| 203 | drm_backend_la_CFLAGS = \ |
| 204 | $(COMPOSITOR_CFLAGS) \ |
| 205 | $(EGL_CFLAGS) \ |
| 206 | $(DRM_COMPOSITOR_CFLAGS) \ |
| 207 | $(GCC_CFLAGS) |
| 208 | drm_backend_la_SOURCES = \ |
| 209 | src/compositor-drm.c \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 210 | $(INPUT_BACKEND_SOURCES) \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 211 | src/libbacklight.c \ |
| 212 | src/libbacklight.h |
| 213 | |
| 214 | if ENABLE_VAAPI_RECORDER |
| 215 | drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h |
| 216 | drm_backend_la_LIBADD += $(LIBVA_LIBS) |
| 217 | drm_backend_la_CFLAGS += $(LIBVA_CFLAGS) |
| 218 | endif |
| 219 | endif |
| 220 | |
| 221 | if ENABLE_WAYLAND_COMPOSITOR |
| 222 | module_LTLIBRARIES += wayland-backend.la |
| 223 | wayland_backend_la_LDFLAGS = -module -avoid-version |
| 224 | wayland_backend_la_LIBADD = \ |
| 225 | $(COMPOSITOR_LIBS) \ |
| 226 | $(WAYLAND_COMPOSITOR_LIBS) \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 227 | libshared-cairo.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 228 | wayland_backend_la_CFLAGS = \ |
| 229 | $(COMPOSITOR_CFLAGS) \ |
| 230 | $(EGL_CFLAGS) \ |
| 231 | $(PIXMAN_CFLAGS) \ |
| 232 | $(CAIRO_CFLAGS) \ |
| 233 | $(WAYLAND_COMPOSITOR_CFLAGS) \ |
| 234 | $(GCC_CFLAGS) |
| 235 | wayland_backend_la_SOURCES = src/compositor-wayland.c |
Jason Ekstrand | 53ee0dc | 2014-04-02 19:53:54 -0500 | [diff] [blame] | 236 | nodist_wayland_backend_la_SOURCES = \ |
| 237 | protocol/fullscreen-shell-protocol.c \ |
| 238 | protocol/fullscreen-shell-client-protocol.h |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 239 | endif |
| 240 | |
| 241 | if ENABLE_RPI_COMPOSITOR |
| 242 | if INSTALL_RPI_COMPOSITOR |
| 243 | module_LTLIBRARIES += rpi-backend.la |
| 244 | else |
| 245 | noinst_LTLIBRARIES += rpi-backend.la |
| 246 | endif |
| 247 | |
| 248 | rpi_backend_la_LDFLAGS = -module -avoid-version |
| 249 | rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \ |
| 250 | $(RPI_COMPOSITOR_LIBS) \ |
| 251 | $(RPI_BCM_HOST_LIBS) \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 252 | $(INPUT_BACKEND_LIBS) \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 253 | libsession-helper.la \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 254 | libshared.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 255 | rpi_backend_la_CFLAGS = \ |
| 256 | $(GCC_CFLAGS) \ |
| 257 | $(COMPOSITOR_CFLAGS) \ |
| 258 | $(RPI_COMPOSITOR_CFLAGS) \ |
| 259 | $(RPI_BCM_HOST_CFLAGS) |
| 260 | rpi_backend_la_SOURCES = \ |
| 261 | src/compositor-rpi.c \ |
| 262 | src/rpi-renderer.c \ |
| 263 | src/rpi-renderer.h \ |
| 264 | src/rpi-bcm-stubs.h \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 265 | $(INPUT_BACKEND_SOURCES) |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 266 | |
| 267 | if ENABLE_EGL |
| 268 | rpi_backend_la_LIBADD += $(EGL_LIBS) |
| 269 | rpi_backend_la_CFLAGS += $(EGL_CFLAGS) |
| 270 | endif |
| 271 | |
| 272 | endif |
| 273 | |
| 274 | if ENABLE_HEADLESS_COMPOSITOR |
| 275 | module_LTLIBRARIES += headless-backend.la |
| 276 | headless_backend_la_LDFLAGS = -module -avoid-version |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 277 | headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la |
| 278 | headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS) |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 279 | headless_backend_la_SOURCES = src/compositor-headless.c |
| 280 | endif |
| 281 | |
| 282 | if ENABLE_FBDEV_COMPOSITOR |
| 283 | module_LTLIBRARIES += fbdev-backend.la |
| 284 | fbdev_backend_la_LDFLAGS = -module -avoid-version |
| 285 | fbdev_backend_la_LIBADD = \ |
| 286 | $(COMPOSITOR_LIBS) \ |
| 287 | $(FBDEV_COMPOSITOR_LIBS) \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 288 | $(INPUT_BACKEND_LIBS) \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 289 | libsession-helper.la \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 290 | libshared.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 291 | fbdev_backend_la_CFLAGS = \ |
| 292 | $(COMPOSITOR_CFLAGS) \ |
| 293 | $(EGL_CFLAGS) \ |
| 294 | $(FBDEV_COMPOSITOR_CFLAGS) \ |
| 295 | $(PIXMAN_CFLAGS) \ |
| 296 | $(GCC_CFLAGS) |
| 297 | fbdev_backend_la_SOURCES = \ |
| 298 | src/compositor-fbdev.c \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 299 | $(INPUT_BACKEND_SOURCES) |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 300 | endif |
| 301 | |
| 302 | if ENABLE_RDP_COMPOSITOR |
| 303 | module_LTLIBRARIES += rdp-backend.la |
| 304 | rdp_backend_la_LDFLAGS = -module -avoid-version |
| 305 | rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \ |
| 306 | $(RDP_COMPOSITOR_LIBS) \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 307 | libshared.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 308 | rdp_backend_la_CFLAGS = \ |
| 309 | $(COMPOSITOR_CFLAGS) \ |
| 310 | $(RDP_COMPOSITOR_CFLAGS) \ |
| 311 | $(GCC_CFLAGS) |
| 312 | rdp_backend_la_SOURCES = src/compositor-rdp.c |
| 313 | endif |
| 314 | |
| 315 | if HAVE_LCMS |
| 316 | module_LTLIBRARIES += cms-static.la |
| 317 | cms_static_la_LDFLAGS = -module -avoid-version |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 318 | cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 319 | cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS) |
| 320 | cms_static_la_SOURCES = \ |
| 321 | src/cms-static.c \ |
| 322 | src/cms-helper.c \ |
| 323 | src/cms-helper.h |
| 324 | if ENABLE_COLORD |
| 325 | module_LTLIBRARIES += cms-colord.la |
| 326 | cms_colord_la_LDFLAGS = -module -avoid-version |
| 327 | cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS) |
| 328 | cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS) |
| 329 | cms_colord_la_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 330 | src/cms-colord.c \ |
| 331 | src/cms-helper.c \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 332 | src/cms-helper.h |
| 333 | endif |
| 334 | endif |
| 335 | |
| 336 | noinst_PROGRAMS += spring-tool |
| 337 | spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 338 | spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm |
| 339 | spring_tool_SOURCES = \ |
| 340 | src/spring-tool.c \ |
| 341 | src/animation.c \ |
| 342 | shared/matrix.c \ |
| 343 | shared/matrix.h \ |
| 344 | src/compositor.h |
| 345 | |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 346 | if BUILD_CLIENTS |
| 347 | |
| 348 | bin_PROGRAMS += weston-terminal weston-info |
| 349 | |
| 350 | libexec_PROGRAMS += \ |
| 351 | weston-desktop-shell \ |
| 352 | weston-screenshooter \ |
| 353 | weston-keyboard \ |
| 354 | weston-simple-im |
| 355 | |
Nobuhiko Tanibata | 923bc14 | 2014-11-27 13:23:32 +0900 | [diff] [blame^] | 356 | if ENABLE_IVI_SHELL |
| 357 | libexec_PROGRAMS += \ |
| 358 | weston-ivi-shell-user-interface |
| 359 | endif |
| 360 | |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 361 | demo_clients = \ |
| 362 | weston-flower \ |
| 363 | weston-image \ |
| 364 | weston-cliptest \ |
| 365 | weston-dnd \ |
| 366 | weston-smoke \ |
| 367 | weston-resizor \ |
| 368 | weston-eventdemo \ |
| 369 | weston-clickdot \ |
| 370 | weston-transformed \ |
| 371 | weston-fullscreen \ |
| 372 | weston-stacking \ |
| 373 | weston-calibrator \ |
| 374 | weston-scaler |
| 375 | |
| 376 | if INSTALL_DEMO_CLIENTS |
| 377 | bin_PROGRAMS += $(demo_clients) |
| 378 | else |
| 379 | noinst_PROGRAMS += $(demo_clients) |
| 380 | endif |
| 381 | |
| 382 | |
| 383 | if BUILD_SIMPLE_CLIENTS |
| 384 | demo_clients += \ |
| 385 | weston-simple-shm \ |
Jason Ekstrand | 549a53f | 2014-04-05 09:22:15 -0500 | [diff] [blame] | 386 | weston-simple-damage \ |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 387 | weston-simple-touch \ |
Pekka Paalanen | ef2b592 | 2014-09-23 22:08:49 -0400 | [diff] [blame] | 388 | weston-presentation-shm \ |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 389 | weston-multi-resource |
| 390 | |
Kristian Høgsberg | fe84a97 | 2014-02-11 14:23:19 -0800 | [diff] [blame] | 391 | weston_simple_shm_SOURCES = clients/simple-shm.c |
| 392 | nodist_weston_simple_shm_SOURCES = \ |
Kristian Høgsberg | dfaf65b | 2014-02-07 17:01:57 -0800 | [diff] [blame] | 393 | protocol/xdg-shell-protocol.c \ |
Jason Ekstrand | 428c24e | 2014-04-02 19:53:48 -0500 | [diff] [blame] | 394 | protocol/xdg-shell-client-protocol.h \ |
| 395 | protocol/fullscreen-shell-protocol.c \ |
| 396 | protocol/fullscreen-shell-client-protocol.h |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 397 | weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS) |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 398 | weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 399 | |
Jason Ekstrand | 549a53f | 2014-04-05 09:22:15 -0500 | [diff] [blame] | 400 | weston_simple_damage_SOURCES = clients/simple-damage.c |
| 401 | nodist_weston_simple_damage_SOURCES = \ |
| 402 | protocol/scaler-protocol.c \ |
| 403 | protocol/scaler-client-protocol.h \ |
| 404 | protocol/xdg-shell-protocol.c \ |
| 405 | protocol/xdg-shell-client-protocol.h \ |
| 406 | protocol/fullscreen-shell-protocol.c \ |
| 407 | protocol/fullscreen-shell-client-protocol.h |
| 408 | weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS) |
| 409 | weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la |
| 410 | |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 411 | weston_simple_touch_SOURCES = clients/simple-touch.c |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 412 | weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS) |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 413 | weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 414 | |
Pekka Paalanen | ef2b592 | 2014-09-23 22:08:49 -0400 | [diff] [blame] | 415 | weston_presentation_shm_SOURCES = clients/presentation-shm.c |
| 416 | nodist_weston_presentation_shm_SOURCES = \ |
| 417 | protocol/presentation_timing-protocol.c \ |
| 418 | protocol/presentation_timing-client-protocol.h |
| 419 | weston_presentation_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS) |
| 420 | weston_presentation_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lm |
| 421 | |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 422 | weston_multi_resource_SOURCES = clients/multi-resource.c |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 423 | weston_multi_resource_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS) |
Javier Jardón | c47931e | 2014-10-27 15:13:19 +0000 | [diff] [blame] | 424 | weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -lrt -lm |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 425 | endif |
| 426 | |
| 427 | if BUILD_SIMPLE_EGL_CLIENTS |
| 428 | demo_clients += weston-simple-egl |
Kristian Høgsberg | fe84a97 | 2014-02-11 14:23:19 -0800 | [diff] [blame] | 429 | weston_simple_egl_SOURCES = clients/simple-egl.c |
| 430 | nodist_weston_simple_egl_SOURCES = \ |
Kristian Høgsberg | dfaf65b | 2014-02-07 17:01:57 -0800 | [diff] [blame] | 431 | protocol/xdg-shell-protocol.c \ |
| 432 | protocol/xdg-shell-client-protocol.h |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 433 | weston_simple_egl_CFLAGS = $(AM_CFLAGS) $(SIMPLE_EGL_CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 434 | weston_simple_egl_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm |
| 435 | endif |
| 436 | |
| 437 | noinst_LTLIBRARIES += libtoytoolkit.la |
| 438 | |
| 439 | libtoytoolkit_la_SOURCES = \ |
| 440 | clients/window.c \ |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 441 | clients/window.h |
| 442 | |
| 443 | nodist_libtoytoolkit_la_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 444 | protocol/text-cursor-position-protocol.c \ |
| 445 | protocol/text-cursor-position-client-protocol.h \ |
| 446 | protocol/scaler-protocol.c \ |
| 447 | protocol/scaler-client-protocol.h \ |
| 448 | protocol/workspaces-protocol.c \ |
| 449 | protocol/workspaces-client-protocol.h \ |
Pekka Paalanen | 7e62d25 | 2014-09-23 22:08:42 -0400 | [diff] [blame] | 450 | protocol/presentation_timing-protocol.c \ |
| 451 | protocol/presentation_timing-client-protocol.h \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 452 | protocol/xdg-shell-protocol.c \ |
Nobuhiko Tanibata | bff1b4a | 2014-11-27 13:21:34 +0900 | [diff] [blame] | 453 | protocol/xdg-shell-client-protocol.h \ |
| 454 | protocol/ivi-application-protocol.c \ |
| 455 | protocol/ivi-application-client-protocol.h |
Jasper St. Pierre | 0790e39 | 2013-12-09 14:58:00 -0500 | [diff] [blame] | 456 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 457 | BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES) |
| 458 | |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 459 | |
| 460 | libtoytoolkit_la_LIBADD = \ |
| 461 | $(CLIENT_LIBS) \ |
| 462 | $(CAIRO_EGL_LIBS) \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 463 | libshared-cairo.la -lrt -lm |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 464 | libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 465 | |
| 466 | weston_flower_SOURCES = clients/flower.c |
| 467 | weston_flower_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 468 | weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 469 | |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 470 | weston_screenshooter_SOURCES = \ |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 471 | clients/screenshot.c |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 472 | nodist_weston_screenshooter_SOURCES = \ |
| 473 | protocol/screenshooter-protocol.c \ |
| 474 | protocol/screenshooter-client-protocol.h |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 475 | weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 476 | weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 477 | |
| 478 | weston_terminal_SOURCES = clients/terminal.c |
| 479 | weston_terminal_LDADD = libtoytoolkit.la -lutil |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 480 | weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 481 | |
| 482 | weston_image_SOURCES = clients/image.c |
| 483 | weston_image_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 484 | weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 485 | |
Pekka Paalanen | 461e93c | 2014-08-20 11:58:47 +0300 | [diff] [blame] | 486 | weston_cliptest_SOURCES = \ |
| 487 | clients/cliptest.c \ |
| 488 | src/vertex-clipping.c \ |
| 489 | src/vertex-clipping.h |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 490 | weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 491 | weston_cliptest_LDADD = libtoytoolkit.la |
| 492 | |
| 493 | weston_dnd_SOURCES = clients/dnd.c |
| 494 | weston_dnd_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 495 | weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 496 | |
| 497 | weston_smoke_SOURCES = clients/smoke.c |
| 498 | weston_smoke_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 499 | weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 500 | |
| 501 | weston_resizor_SOURCES = clients/resizor.c |
| 502 | weston_resizor_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 503 | weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 504 | |
| 505 | weston_scaler_SOURCES = clients/scaler.c |
| 506 | weston_scaler_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 507 | weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 508 | |
| 509 | if HAVE_CAIRO_GLESV2 |
| 510 | demo_clients += weston-nested weston-nested-client |
| 511 | |
| 512 | weston_nested_SOURCES = clients/nested.c |
| 513 | weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS) |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 514 | weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 515 | |
| 516 | weston_nested_client_SOURCES = clients/nested-client.c |
| 517 | weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 518 | weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 519 | endif |
| 520 | |
| 521 | weston_eventdemo_SOURCES = clients/eventdemo.c |
| 522 | weston_eventdemo_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 523 | weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 524 | |
| 525 | weston_clickdot_SOURCES = clients/clickdot.c |
| 526 | weston_clickdot_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 527 | weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 528 | |
| 529 | weston_transformed_SOURCES = clients/transformed.c |
| 530 | weston_transformed_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 531 | weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 532 | |
| 533 | weston_fullscreen_SOURCES = clients/fullscreen.c |
Jason Ekstrand | 2bb72fe | 2014-04-02 19:53:52 -0500 | [diff] [blame] | 534 | nodist_weston_fullscreen_SOURCES = \ |
| 535 | protocol/fullscreen-shell-protocol.c \ |
| 536 | protocol/fullscreen-shell-client-protocol.h |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 537 | weston_fullscreen_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 538 | weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 539 | |
| 540 | weston_stacking_SOURCES = clients/stacking.c |
| 541 | weston_stacking_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 542 | weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 543 | |
| 544 | weston_calibrator_SOURCES = clients/calibrator.c \ |
| 545 | shared/matrix.c \ |
| 546 | shared/matrix.h |
| 547 | weston_calibrator_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 548 | weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 549 | |
| 550 | if BUILD_SUBSURFACES_CLIENT |
| 551 | demo_clients += weston-subsurfaces |
| 552 | weston_subsurfaces_SOURCES = clients/subsurfaces.c |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 553 | weston_subsurfaces_CFLAGS = \ |
| 554 | $(AM_CFLAGS) \ |
| 555 | $(SIMPLE_EGL_CLIENT_CFLAGS) \ |
| 556 | $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 557 | weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm |
| 558 | endif |
| 559 | |
| 560 | if HAVE_PANGO |
| 561 | demo_clients += weston-editor |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 562 | weston_editor_SOURCES = clients/editor.c |
| 563 | nodist_weston_editor_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 564 | protocol/text-protocol.c \ |
| 565 | protocol/text-client-protocol.h |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 566 | weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS) |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 567 | weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 568 | endif |
| 569 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 570 | weston_keyboard_SOURCES = clients/keyboard.c |
| 571 | nodist_weston_keyboard_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 572 | protocol/desktop-shell-client-protocol.h \ |
| 573 | protocol/desktop-shell-protocol.c \ |
| 574 | protocol/input-method-protocol.c \ |
| 575 | protocol/input-method-client-protocol.h |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 576 | weston_keyboard_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 577 | weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 578 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 579 | weston_simple_im_SOURCES = clients/weston-simple-im.c |
| 580 | nodist_weston_simple_im_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 581 | protocol/input-method-protocol.c \ |
| 582 | protocol/input-method-client-protocol.h |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 583 | weston_simple_im_LDADD = $(CLIENT_LIBS) |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 584 | weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 585 | |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 586 | weston_info_SOURCES = clients/weston-info.c |
Pekka Paalanen | 93a6afd | 2014-09-23 22:08:44 -0400 | [diff] [blame] | 587 | nodist_weston_info_SOURCES = \ |
| 588 | protocol/presentation_timing-protocol.c \ |
| 589 | protocol/presentation_timing-client-protocol.h |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 590 | weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la |
Pekka Paalanen | 5124b53 | 2014-02-03 13:12:34 +0200 | [diff] [blame] | 591 | weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 592 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 593 | weston_desktop_shell_SOURCES = clients/desktop-shell.c |
| 594 | nodist_weston_desktop_shell_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 595 | protocol/desktop-shell-client-protocol.h \ |
| 596 | protocol/desktop-shell-protocol.c |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 597 | weston_desktop_shell_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 598 | weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 599 | |
Nobuhiko Tanibata | 923bc14 | 2014-11-27 13:23:32 +0900 | [diff] [blame^] | 600 | if ENABLE_IVI_SHELL |
| 601 | weston_ivi_shell_user_interface_SOURCES = clients/ivi-shell-user-interface.c |
| 602 | nodist_weston_ivi_shell_user_interface_SOURCES = \ |
| 603 | protocol/ivi-hmi-controller-client-protocol.h \ |
| 604 | protocol/ivi-hmi-controller-protocol.c \ |
| 605 | protocol/ivi-application-client-protocol.h \ |
| 606 | protocol/ivi-application-protocol.c |
| 607 | weston_ivi_shell_user_interface_LDADD = libtoytoolkit.la |
| 608 | weston_ivi_shell_user_interface_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
| 609 | endif |
| 610 | |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 611 | if BUILD_FULL_GL_CLIENTS |
| 612 | demo_clients += weston-gears |
| 613 | weston_gears_SOURCES = clients/gears.c |
| 614 | weston_gears_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 615 | weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 616 | |
| 617 | if HAVE_GLU |
| 618 | libexec_PROGRAMS += weston-screensaver |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 619 | weston_screensaver_SOURCES = \ |
| 620 | clients/wscreensaver.c \ |
| 621 | clients/wscreensaver.h \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 622 | clients/wscreensaver-glue.c \ |
| 623 | clients/wscreensaver-glue.h \ |
| 624 | clients/glmatrix.c \ |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 625 | clients/matrix3.xpm |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 626 | nodist_weston_screensaver_SOURCES = \ |
| 627 | protocol/desktop-shell-client-protocol.h \ |
| 628 | protocol/desktop-shell-protocol.c |
| 629 | |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 630 | weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS) |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 631 | weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 632 | |
| 633 | endif |
| 634 | |
| 635 | endif |
| 636 | |
| 637 | endif |
| 638 | |
| 639 | BUILT_SOURCES += \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 640 | protocol/screenshooter-protocol.c \ |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 641 | protocol/screenshooter-client-protocol.h \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 642 | protocol/text-cursor-position-client-protocol.h \ |
| 643 | protocol/text-cursor-position-protocol.c \ |
| 644 | protocol/text-protocol.c \ |
| 645 | protocol/text-client-protocol.h \ |
| 646 | protocol/input-method-protocol.c \ |
| 647 | protocol/input-method-client-protocol.h \ |
| 648 | protocol/desktop-shell-client-protocol.h \ |
| 649 | protocol/desktop-shell-protocol.c \ |
| 650 | protocol/scaler-client-protocol.h \ |
| 651 | protocol/scaler-protocol.c \ |
| 652 | protocol/workspaces-client-protocol.h \ |
| 653 | protocol/workspaces-protocol.c \ |
Jason Ekstrand | 428c24e | 2014-04-02 19:53:48 -0500 | [diff] [blame] | 654 | protocol/fullscreen-shell-protocol.c \ |
| 655 | protocol/fullscreen-shell-client-protocol.h \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 656 | protocol/xdg-shell-protocol.c \ |
Nobuhiko Tanibata | 923bc14 | 2014-11-27 13:23:32 +0900 | [diff] [blame^] | 657 | protocol/xdg-shell-client-protocol.h \ |
| 658 | protocol/ivi-hmi-controller-protocol.c \ |
| 659 | protocol/ivi-hmi-controller-client-protocol.h \ |
| 660 | protocol/ivi-application-protocol.c \ |
| 661 | protocol/ivi-application-client-protocol.h |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 662 | |
Kristian Høgsberg | 5b9f9f8 | 2014-01-27 21:40:28 -0800 | [diff] [blame] | 663 | westondatadir = $(datadir)/weston |
| 664 | dist_westondata_DATA = \ |
| 665 | data/wayland.svg \ |
| 666 | data/wayland.png \ |
| 667 | data/pattern.png \ |
| 668 | data/terminal.png \ |
| 669 | data/border.png \ |
| 670 | data/icon_window.png \ |
| 671 | data/sign_close.png \ |
| 672 | data/sign_maximize.png \ |
| 673 | data/sign_minimize.png |
Kristian Høgsberg | e895f14 | 2014-01-27 21:46:30 -0800 | [diff] [blame] | 674 | |
| 675 | |
| 676 | if BUILD_WCAP_TOOLS |
| 677 | bin_PROGRAMS += wcap-decode |
| 678 | |
| 679 | wcap_decode_SOURCES = \ |
| 680 | wcap/main.c \ |
| 681 | wcap/wcap-decode.c \ |
| 682 | wcap/wcap-decode.h |
| 683 | |
| 684 | wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS) |
| 685 | wcap_decode_LDADD = $(WCAP_LIBS) |
| 686 | endif |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 687 | |
| 688 | |
| 689 | if ENABLE_DESKTOP_SHELL |
| 690 | |
| 691 | module_LTLIBRARIES += desktop-shell.la |
| 692 | |
| 693 | desktop_shell_la_CPPFLAGS = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 694 | -I$(top_builddir)/protocol \ |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 695 | -I$(top_srcdir)/shared \ |
| 696 | -I$(top_srcdir)/src \ |
| 697 | -I$(top_builddir)/src \ |
| 698 | -I$(top_builddir)/desktop-shell \ |
| 699 | -DDATADIR='"$(datadir)"' \ |
| 700 | -DMODULEDIR='"$(moduledir)"' \ |
| 701 | -DLIBEXECDIR='"$(libexecdir)"' \ |
| 702 | -DIN_WESTON |
| 703 | |
| 704 | desktop_shell_la_LDFLAGS = -module -avoid-version |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 705 | desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 706 | desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 707 | desktop_shell_la_SOURCES = \ |
| 708 | desktop-shell/shell.h \ |
| 709 | desktop-shell/shell.c \ |
| 710 | desktop-shell/exposay.c \ |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 711 | desktop-shell/input-panel.c |
| 712 | nodist_desktop_shell_la_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 713 | protocol/desktop-shell-protocol.c \ |
| 714 | protocol/desktop-shell-server-protocol.h \ |
| 715 | protocol/xdg-shell-protocol.c \ |
| 716 | protocol/xdg-shell-server-protocol.h |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 717 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 718 | BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES) |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 719 | endif |
| 720 | |
Jason Ekstrand | 946a948 | 2014-04-02 19:53:47 -0500 | [diff] [blame] | 721 | if ENABLE_FULLSCREEN_SHELL |
| 722 | |
| 723 | module_LTLIBRARIES += fullscreen-shell.la |
| 724 | |
| 725 | fullscreen_shell_la_CPPFLAGS = \ |
| 726 | -I$(top_builddir)/protocol \ |
| 727 | -I$(top_srcdir)/shared \ |
| 728 | -I$(top_srcdir)/src \ |
| 729 | -I$(top_builddir)/src \ |
| 730 | -DIN_WESTON |
| 731 | |
| 732 | fullscreen_shell_la_LDFLAGS = -module -avoid-version |
| 733 | fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS) |
| 734 | fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 735 | fullscreen_shell_la_SOURCES = \ |
| 736 | fullscreen-shell/fullscreen-shell.c |
| 737 | nodist_fullscreen_shell_la_SOURCES = \ |
| 738 | protocol/fullscreen-shell-protocol.c \ |
| 739 | protocol/fullscreen-shell-server-protocol.h |
| 740 | |
| 741 | BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES) |
| 742 | endif |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 743 | |
Nobuhiko Tanibata | 6f9df65 | 2014-11-27 13:22:00 +0900 | [diff] [blame] | 744 | if ENABLE_IVI_SHELL |
| 745 | |
| 746 | module_LTLIBRARIES += \ |
Nobuhiko Tanibata | 487adc4 | 2014-11-27 13:22:37 +0900 | [diff] [blame] | 747 | $(ivi_layout) \ |
Nobuhiko Tanibata | 4f6853b | 2014-11-27 13:23:12 +0900 | [diff] [blame] | 748 | $(ivi_shell) \ |
| 749 | $(hmi_controller) |
Nobuhiko Tanibata | 6f9df65 | 2014-11-27 13:22:00 +0900 | [diff] [blame] | 750 | |
| 751 | ivi_layout = ivi-layout.la |
| 752 | ivi_layout_la_LDFLAGS = -module -avoid-version |
| 753 | ivi_layout_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la |
| 754 | ivi_layout_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 755 | ivi_layout_la_SOURCES = \ |
| 756 | ivi-shell/ivi-layout-export.h \ |
| 757 | ivi-shell/ivi-layout-private.h \ |
| 758 | ivi-shell/ivi-layout.c \ |
| 759 | ivi-shell/ivi-layout-transition.c |
| 760 | |
Nobuhiko Tanibata | 487adc4 | 2014-11-27 13:22:37 +0900 | [diff] [blame] | 761 | ivi_shell = ivi-shell.la |
| 762 | ivi_shell_la_LDFLAGS = -module -avoid-version |
| 763 | ivi_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la |
| 764 | ivi_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 765 | ivi_shell_la_SOURCES = \ |
| 766 | ivi-shell/ivi-shell.h \ |
| 767 | ivi-shell/ivi-shell.c \ |
| 768 | ivi-shell/ivi-layout-private.h |
| 769 | nodist_ivi_shell_la_SOURCES = \ |
| 770 | protocol/ivi-application-protocol.c \ |
| 771 | protocol/ivi-application-server-protocol.h |
| 772 | |
| 773 | BUILT_SOURCES += $(nodist_ivi_shell_la_SOURCES) |
| 774 | |
Nobuhiko Tanibata | 4f6853b | 2014-11-27 13:23:12 +0900 | [diff] [blame] | 775 | hmi_controller = hmi-controller.la |
| 776 | hmi_controller_la_LDFLAGS = -module -avoid-version |
| 777 | hmi_controller_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la |
| 778 | hmi_controller_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 779 | hmi_controller_la_SOURCES = \ |
| 780 | ivi-shell/ivi-layout-export.h \ |
| 781 | ivi-shell/hmi-controller.c |
| 782 | nodist_hmi_controller_la_SOURCES = \ |
| 783 | protocol/ivi-hmi-controller-protocol.c \ |
| 784 | protocol/ivi-hmi-controller-server-protocol.h |
| 785 | |
| 786 | BUILT_SOURCES += $(nodist_hmi_controller_la_SOURCES) |
| 787 | |
Nobuhiko Tanibata | 6f9df65 | 2014-11-27 13:22:00 +0900 | [diff] [blame] | 788 | endif |
| 789 | |
| 790 | |
Jason Ekstrand | 47928d8 | 2014-04-02 19:54:01 -0500 | [diff] [blame] | 791 | if ENABLE_SCREEN_SHARING |
| 792 | |
| 793 | module_LTLIBRARIES += screen-share.la |
| 794 | |
| 795 | screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"' |
| 796 | screen_share_la_LDFLAGS = -module -avoid-version |
| 797 | screen_share_la_LIBADD = \ |
| 798 | $(COMPOSITOR_LIBS) \ |
| 799 | $(SCREEN_SHARE_LIBS) \ |
| 800 | libshared-cairo.la |
| 801 | screen_share_la_CFLAGS = \ |
| 802 | $(COMPOSITOR_CFLAGS) \ |
| 803 | $(SCREEN_SHARE_CFLAGS) \ |
| 804 | $(GCC_CFLAGS) |
| 805 | screen_share_la_SOURCES = \ |
| 806 | src/screen-share.c |
| 807 | nodist_screen_share_la_SOURCES = \ |
| 808 | protocol/fullscreen-shell-protocol.c \ |
| 809 | protocol/fullscreen-shell-client-protocol.h |
| 810 | |
| 811 | endif |
| 812 | |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 813 | if ENABLE_XWAYLAND |
| 814 | |
| 815 | module_LTLIBRARIES += xwayland.la |
| 816 | |
| 817 | xwayland_la_CPPFLAGS = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 818 | -I$(top_builddir)/protocol \ |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 819 | -I$(top_srcdir)/shared \ |
| 820 | -I$(top_srcdir)/src \ |
| 821 | -I$(top_builddir)/src \ |
| 822 | -I$(top_builddir)/xwayland \ |
| 823 | -DDATADIR='"$(datadir)"' \ |
| 824 | -DMODULEDIR='"$(moduledir)"' \ |
| 825 | -DLIBEXECDIR='"$(libexecdir)"' \ |
| 826 | -DXSERVER_PATH='"@XSERVER_PATH@"' |
| 827 | |
| 828 | xwayland_la_LDFLAGS = -module -avoid-version |
| 829 | xwayland_la_LIBADD = \ |
| 830 | $(XWAYLAND_LIBS) \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 831 | $(top_builddir)/libshared-cairo.la |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 832 | xwayland_la_CFLAGS = \ |
| 833 | $(GCC_CFLAGS) \ |
| 834 | $(COMPOSITOR_CFLAGS) \ |
| 835 | $(PIXMAN_CFLAGS) \ |
| 836 | $(CAIRO_CFLAGS) |
| 837 | xwayland_la_SOURCES = \ |
| 838 | xwayland/xwayland.h \ |
| 839 | xwayland/window-manager.c \ |
| 840 | xwayland/selection.c \ |
| 841 | xwayland/dnd.c \ |
| 842 | xwayland/launcher.c \ |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 843 | xwayland/hash.c \ |
| 844 | xwayland/hash.h |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 845 | endif |
| 846 | |
Kristian Høgsberg | f9bc6f6 | 2014-01-27 22:26:29 -0800 | [diff] [blame] | 847 | |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 848 | # |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 849 | # Shared utilities |
| 850 | # |
| 851 | |
| 852 | noinst_LTLIBRARIES += libshared.la libshared-cairo.la |
| 853 | |
| 854 | libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 855 | |
| 856 | libshared_la_SOURCES = \ |
| 857 | shared/config-parser.c \ |
| 858 | shared/option-parser.c \ |
| 859 | shared/config-parser.h \ |
| 860 | shared/os-compatibility.c \ |
| 861 | shared/os-compatibility.h |
| 862 | |
| 863 | libshared_cairo_la_CFLAGS = \ |
| 864 | -DDATADIR='"$(datadir)"' \ |
| 865 | $(GCC_CFLAGS) \ |
| 866 | $(COMPOSITOR_CFLAGS) \ |
| 867 | $(PIXMAN_CFLAGS) \ |
| 868 | $(CAIRO_CFLAGS) \ |
| 869 | $(PNG_CFLAGS) \ |
| 870 | $(WEBP_CFLAGS) |
| 871 | |
| 872 | libshared_cairo_la_LIBADD = \ |
| 873 | $(PIXMAN_LIBS) \ |
| 874 | $(CAIRO_LIBS) \ |
| 875 | $(PNG_LIBS) \ |
| 876 | $(WEBP_LIBS) \ |
| 877 | $(JPEG_LIBS) |
| 878 | |
| 879 | libshared_cairo_la_SOURCES = \ |
| 880 | $(libshared_la_SOURCES) \ |
| 881 | shared/image-loader.c \ |
| 882 | shared/image-loader.h \ |
| 883 | shared/cairo-util.c \ |
| 884 | shared/frame.c \ |
| 885 | shared/cairo-util.h |
| 886 | |
| 887 | |
| 888 | # |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 889 | # tests subdirectory |
| 890 | # |
| 891 | |
| 892 | TESTS = $(shared_tests) $(module_tests) $(weston_tests) |
| 893 | |
| 894 | shared_tests = \ |
| 895 | config-parser.test \ |
| 896 | vertex-clip.test |
| 897 | |
| 898 | module_tests = \ |
| 899 | surface-test.la \ |
| 900 | surface-global-test.la |
| 901 | |
| 902 | weston_tests = \ |
| 903 | bad_buffer.weston \ |
| 904 | keyboard.weston \ |
| 905 | event.weston \ |
| 906 | button.weston \ |
| 907 | text.weston \ |
Pekka Paalanen | de7f5c8 | 2014-09-23 22:08:48 -0400 | [diff] [blame] | 908 | presentation.weston \ |
Pekka Paalanen | 3c5f1c7 | 2014-10-01 16:34:48 +0300 | [diff] [blame] | 909 | roles.weston \ |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 910 | subsurface.weston |
| 911 | |
| 912 | |
| 913 | AM_TESTS_ENVIRONMENT = \ |
| 914 | abs_builddir='$(abs_builddir)'; export abs_builddir; |
| 915 | |
| 916 | TEST_EXTENSIONS = .la .weston |
| 917 | LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env |
| 918 | WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env |
| 919 | |
| 920 | clean-local: |
Pekka Paalanen | 15f8563 | 2014-05-12 10:08:57 +0300 | [diff] [blame] | 921 | -rm -rf logs |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 922 | |
| 923 | # To remove when automake 1.11 support is dropped |
| 924 | export abs_builddir |
| 925 | |
| 926 | noinst_LTLIBRARIES += \ |
| 927 | weston-test.la \ |
| 928 | $(module_tests) \ |
| 929 | libtest-runner.la \ |
| 930 | libtest-client.la |
| 931 | |
| 932 | noinst_PROGRAMS += \ |
| 933 | $(setbacklight) \ |
| 934 | $(shared_tests) \ |
| 935 | $(weston_tests) \ |
| 936 | matrix-test |
| 937 | |
| 938 | test_module_ldflags = \ |
| 939 | -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS) |
| 940 | |
| 941 | surface_global_test_la_SOURCES = tests/surface-global-test.c |
| 942 | surface_global_test_la_LDFLAGS = $(test_module_ldflags) |
| 943 | surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 944 | |
| 945 | surface_test_la_SOURCES = tests/surface-test.c |
| 946 | surface_test_la_LDFLAGS = $(test_module_ldflags) |
| 947 | surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 948 | |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 949 | weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 950 | weston_test_la_LDFLAGS = $(test_module_ldflags) |
| 951 | weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 952 | weston_test_la_SOURCES = tests/weston-test.c |
| 953 | nodist_weston_test_la_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 954 | protocol/wayland-test-protocol.c \ |
| 955 | protocol/wayland-test-server-protocol.h |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 956 | |
| 957 | if ENABLE_EGL |
| 958 | weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS) |
| 959 | weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS) |
| 960 | endif |
| 961 | |
| 962 | libtest_runner_la_SOURCES = \ |
| 963 | tests/weston-test-runner.c \ |
| 964 | tests/weston-test-runner.h |
| 965 | libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 966 | |
| 967 | config_parser_test_SOURCES = tests/config-parser-test.c |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 968 | config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 969 | |
| 970 | vertex_clip_test_SOURCES = \ |
| 971 | tests/vertex-clip-test.c \ |
| 972 | src/vertex-clipping.c \ |
| 973 | src/vertex-clipping.h |
| 974 | vertex_clip_test_LDADD = libtest-runner.la -lm -lrt |
| 975 | |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 976 | libtest_client_la_SOURCES = \ |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 977 | tests/weston-test-client-helper.c \ |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 978 | tests/weston-test-client-helper.h |
| 979 | nodist_libtest_client_la_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 980 | protocol/wayland-test-protocol.c \ |
| 981 | protocol/wayland-test-client-protocol.h |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 982 | libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 983 | libtest_client_la_LIBADD = $(TEST_CLIENT_LIBS) libshared.la libtest-runner.la |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 984 | |
| 985 | bad_buffer_weston_SOURCES = tests/bad-buffer-test.c |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 986 | bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 987 | bad_buffer_weston_LDADD = libtest-client.la |
| 988 | |
| 989 | keyboard_weston_SOURCES = tests/keyboard-test.c |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 990 | keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 991 | keyboard_weston_LDADD = libtest-client.la |
| 992 | |
| 993 | event_weston_SOURCES = tests/event-test.c |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 994 | event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 995 | event_weston_LDADD = libtest-client.la |
| 996 | |
| 997 | button_weston_SOURCES = tests/button-test.c |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 998 | button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 999 | button_weston_LDADD = libtest-client.la |
| 1000 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 1001 | text_weston_SOURCES = tests/text-test.c |
| 1002 | nodist_text_weston_SOURCES = \ |
| 1003 | protocol/text-protocol.c \ |
| 1004 | protocol/text-client-protocol.h |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 1005 | text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1006 | text_weston_LDADD = libtest-client.la |
| 1007 | |
| 1008 | subsurface_weston_SOURCES = tests/subsurface-test.c |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 1009 | subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1010 | subsurface_weston_LDADD = libtest-client.la |
| 1011 | |
Pekka Paalanen | de7f5c8 | 2014-09-23 22:08:48 -0400 | [diff] [blame] | 1012 | presentation_weston_SOURCES = tests/presentation-test.c |
| 1013 | nodist_presentation_weston_SOURCES = \ |
| 1014 | protocol/presentation_timing-protocol.c \ |
| 1015 | protocol/presentation_timing-client-protocol.h |
| 1016 | presentation_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
| 1017 | presentation_weston_LDADD = libtest-client.la |
| 1018 | |
Pekka Paalanen | 3c5f1c7 | 2014-10-01 16:34:48 +0300 | [diff] [blame] | 1019 | roles_weston_SOURCES = tests/roles-test.c |
| 1020 | roles_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
| 1021 | roles_weston_LDADD = libtest-client.la |
| 1022 | |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1023 | if ENABLE_EGL |
| 1024 | weston_tests += buffer-count.weston |
| 1025 | buffer_count_weston_SOURCES = tests/buffer-count-test.c |
| 1026 | buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS) |
| 1027 | buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS) |
| 1028 | endif |
| 1029 | |
| 1030 | if ENABLE_XWAYLAND_TEST |
Pekka Paalanen | f9a2626 | 2014-05-07 16:26:29 +0300 | [diff] [blame] | 1031 | weston_tests += xwayland-test.weston |
| 1032 | xwayland_test_weston_SOURCES = tests/xwayland-test.c |
| 1033 | xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS) |
| 1034 | xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1035 | endif |
| 1036 | |
| 1037 | matrix_test_SOURCES = \ |
| 1038 | tests/matrix-test.c \ |
| 1039 | shared/matrix.c \ |
| 1040 | shared/matrix.h |
| 1041 | matrix_test_CPPFLAGS = -DUNIT_TEST |
| 1042 | matrix_test_LDADD = -lm -lrt |
| 1043 | |
| 1044 | if BUILD_SETBACKLIGHT |
| 1045 | noinst_PROGRAMS += setbacklight |
| 1046 | setbacklight_SOURCES = \ |
| 1047 | tests/setbacklight.c \ |
| 1048 | src/libbacklight.c \ |
| 1049 | src/libbacklight.h |
| 1050 | setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS) |
| 1051 | setbacklight_LDADD = $(SETBACKLIGHT_LIBS) |
| 1052 | endif |
| 1053 | |
| 1054 | EXTRA_DIST += tests/weston-tests-env |
| 1055 | |
| 1056 | BUILT_SOURCES += \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 1057 | protocol/wayland-test-protocol.c \ |
| 1058 | protocol/wayland-test-server-protocol.h \ |
| 1059 | protocol/wayland-test-client-protocol.h \ |
| 1060 | protocol/text-protocol.c \ |
| 1061 | protocol/text-client-protocol.h |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 1062 | |
Kristian Høgsberg | cd31275 | 2014-02-01 00:38:15 -0800 | [diff] [blame] | 1063 | EXTRA_DIST += \ |
Kristian Høgsberg | f9bc6f6 | 2014-01-27 22:26:29 -0800 | [diff] [blame] | 1064 | protocol/desktop-shell.xml \ |
| 1065 | protocol/screenshooter.xml \ |
Kristian Høgsberg | f9bc6f6 | 2014-01-27 22:26:29 -0800 | [diff] [blame] | 1066 | protocol/text.xml \ |
| 1067 | protocol/input-method.xml \ |
| 1068 | protocol/workspaces.xml \ |
| 1069 | protocol/text-cursor-position.xml \ |
| 1070 | protocol/wayland-test.xml \ |
| 1071 | protocol/xdg-shell.xml \ |
Jason Ekstrand | 27e1167 | 2014-04-02 19:53:44 -0500 | [diff] [blame] | 1072 | protocol/fullscreen-shell.xml \ |
Pekka Paalanen | 7e62d25 | 2014-09-23 22:08:42 -0400 | [diff] [blame] | 1073 | protocol/presentation_timing.xml \ |
Nobuhiko Tanibata | bff1b4a | 2014-11-27 13:21:34 +0900 | [diff] [blame] | 1074 | protocol/scaler.xml \ |
Nobuhiko Tanibata | 68cfabb | 2014-11-27 13:22:53 +0900 | [diff] [blame] | 1075 | protocol/ivi-application.xml \ |
| 1076 | protocol/ivi-hmi-controller.xml |
Kristian Høgsberg | f9bc6f6 | 2014-01-27 22:26:29 -0800 | [diff] [blame] | 1077 | |
Kristian Høgsberg | 68c5c10 | 2014-01-27 22:33:04 -0800 | [diff] [blame] | 1078 | man_MANS = weston.1 weston.ini.5 |
| 1079 | |
| 1080 | if ENABLE_DRM_COMPOSITOR |
| 1081 | man_MANS += weston-drm.7 |
| 1082 | endif |
| 1083 | |
| 1084 | MAN_SUBSTS = \ |
| 1085 | -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \ |
| 1086 | -e 's|__weston_modules_dir__|$(pkglibdir)|g' \ |
| 1087 | -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \ |
| 1088 | -e 's|__version__|$(PACKAGE_VERSION)|g' |
| 1089 | |
| 1090 | SUFFIXES = .1 .5 .7 .man |
| 1091 | |
| 1092 | %.1 %.5 %.7 : man/%.man |
| 1093 | $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ |
| 1094 | |
| 1095 | EXTRA_DIST += \ |
| 1096 | man/weston.man \ |
| 1097 | man/weston-drm.man \ |
| 1098 | man/weston.ini.man |
| 1099 | |
| 1100 | CLEANFILES += $(man_MANS) |
| 1101 | |
| 1102 | |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 1103 | protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml |
| 1104 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@ |
Kristian Høgsberg | 0822942 | 2014-02-01 00:33:04 -0800 | [diff] [blame] | 1105 | |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 1106 | protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml |
| 1107 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@ |
Kristian Høgsberg | 0822942 | 2014-02-01 00:33:04 -0800 | [diff] [blame] | 1108 | |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 1109 | protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml |
| 1110 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@ |