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_SOURCES = src/udev-input.h |
| 188 | |
| 189 | if ENABLE_LIBINPUT_BACKEND |
| 190 | INPUT_BACKEND_LIBS = $(LIBINPUT_BACKEND_LIBS) |
| 191 | INPUT_BACKEND_SOURCES += \ |
| 192 | src/libinput-seat.c \ |
| 193 | src/libinput-seat.h \ |
| 194 | src/libinput-device.c \ |
| 195 | src/libinput-device.h |
| 196 | else |
| 197 | INPUT_BACKEND_SOURCES += \ |
| 198 | src/filter.c \ |
| 199 | src/filter.h \ |
| 200 | src/udev-seat.c \ |
| 201 | src/udev-seat.h \ |
| 202 | src/evdev.c \ |
| 203 | src/evdev.h \ |
| 204 | src/evdev-touchpad.c |
| 205 | endif |
| 206 | |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 207 | if ENABLE_DRM_COMPOSITOR |
| 208 | module_LTLIBRARIES += drm-backend.la |
| 209 | drm_backend_la_LDFLAGS = -module -avoid-version |
| 210 | drm_backend_la_LIBADD = \ |
| 211 | $(COMPOSITOR_LIBS) \ |
| 212 | $(DRM_COMPOSITOR_LIBS) \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 213 | $(INPUT_BACKEND_LIBS) \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 214 | libshared.la -lrt \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 215 | libsession-helper.la |
| 216 | drm_backend_la_CFLAGS = \ |
| 217 | $(COMPOSITOR_CFLAGS) \ |
| 218 | $(EGL_CFLAGS) \ |
| 219 | $(DRM_COMPOSITOR_CFLAGS) \ |
| 220 | $(GCC_CFLAGS) |
| 221 | drm_backend_la_SOURCES = \ |
| 222 | src/compositor-drm.c \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 223 | $(INPUT_BACKEND_SOURCES) \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 224 | src/libbacklight.c \ |
| 225 | src/libbacklight.h |
| 226 | |
| 227 | if ENABLE_VAAPI_RECORDER |
| 228 | drm_backend_la_SOURCES += src/vaapi-recorder.c src/vaapi-recorder.h |
| 229 | drm_backend_la_LIBADD += $(LIBVA_LIBS) |
| 230 | drm_backend_la_CFLAGS += $(LIBVA_CFLAGS) |
| 231 | endif |
| 232 | endif |
| 233 | |
| 234 | if ENABLE_WAYLAND_COMPOSITOR |
| 235 | module_LTLIBRARIES += wayland-backend.la |
| 236 | wayland_backend_la_LDFLAGS = -module -avoid-version |
| 237 | wayland_backend_la_LIBADD = \ |
| 238 | $(COMPOSITOR_LIBS) \ |
| 239 | $(WAYLAND_COMPOSITOR_LIBS) \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 240 | libshared-cairo.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 241 | wayland_backend_la_CFLAGS = \ |
| 242 | $(COMPOSITOR_CFLAGS) \ |
| 243 | $(EGL_CFLAGS) \ |
| 244 | $(PIXMAN_CFLAGS) \ |
| 245 | $(CAIRO_CFLAGS) \ |
| 246 | $(WAYLAND_COMPOSITOR_CFLAGS) \ |
| 247 | $(GCC_CFLAGS) |
| 248 | wayland_backend_la_SOURCES = src/compositor-wayland.c |
Jason Ekstrand | 53ee0dc | 2014-04-02 19:53:54 -0500 | [diff] [blame] | 249 | nodist_wayland_backend_la_SOURCES = \ |
| 250 | protocol/fullscreen-shell-protocol.c \ |
| 251 | protocol/fullscreen-shell-client-protocol.h |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 252 | endif |
| 253 | |
| 254 | if ENABLE_RPI_COMPOSITOR |
| 255 | if INSTALL_RPI_COMPOSITOR |
| 256 | module_LTLIBRARIES += rpi-backend.la |
| 257 | else |
| 258 | noinst_LTLIBRARIES += rpi-backend.la |
| 259 | endif |
| 260 | |
| 261 | rpi_backend_la_LDFLAGS = -module -avoid-version |
| 262 | rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \ |
| 263 | $(RPI_COMPOSITOR_LIBS) \ |
| 264 | $(RPI_BCM_HOST_LIBS) \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 265 | $(INPUT_BACKEND_LIBS) \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 266 | libsession-helper.la \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 267 | libshared.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 268 | rpi_backend_la_CFLAGS = \ |
| 269 | $(GCC_CFLAGS) \ |
| 270 | $(COMPOSITOR_CFLAGS) \ |
| 271 | $(RPI_COMPOSITOR_CFLAGS) \ |
| 272 | $(RPI_BCM_HOST_CFLAGS) |
| 273 | rpi_backend_la_SOURCES = \ |
| 274 | src/compositor-rpi.c \ |
| 275 | src/rpi-renderer.c \ |
| 276 | src/rpi-renderer.h \ |
| 277 | src/rpi-bcm-stubs.h \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 278 | $(INPUT_BACKEND_SOURCES) |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 279 | |
| 280 | if ENABLE_EGL |
| 281 | rpi_backend_la_LIBADD += $(EGL_LIBS) |
| 282 | rpi_backend_la_CFLAGS += $(EGL_CFLAGS) |
| 283 | endif |
| 284 | |
| 285 | endif |
| 286 | |
| 287 | if ENABLE_HEADLESS_COMPOSITOR |
| 288 | module_LTLIBRARIES += headless-backend.la |
| 289 | headless_backend_la_LDFLAGS = -module -avoid-version |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 290 | headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la |
| 291 | headless_backend_la_CFLAGS = $(COMPOSITOR_CFLAGS) $(GCC_CFLAGS) |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 292 | headless_backend_la_SOURCES = src/compositor-headless.c |
| 293 | endif |
| 294 | |
| 295 | if ENABLE_FBDEV_COMPOSITOR |
| 296 | module_LTLIBRARIES += fbdev-backend.la |
| 297 | fbdev_backend_la_LDFLAGS = -module -avoid-version |
| 298 | fbdev_backend_la_LIBADD = \ |
| 299 | $(COMPOSITOR_LIBS) \ |
| 300 | $(FBDEV_COMPOSITOR_LIBS) \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 301 | $(INPUT_BACKEND_LIBS) \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 302 | libsession-helper.la \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 303 | libshared.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 304 | fbdev_backend_la_CFLAGS = \ |
| 305 | $(COMPOSITOR_CFLAGS) \ |
| 306 | $(EGL_CFLAGS) \ |
| 307 | $(FBDEV_COMPOSITOR_CFLAGS) \ |
| 308 | $(PIXMAN_CFLAGS) \ |
| 309 | $(GCC_CFLAGS) |
| 310 | fbdev_backend_la_SOURCES = \ |
| 311 | src/compositor-fbdev.c \ |
Jonas Ådahl | e0de3c2 | 2014-03-12 22:08:42 +0100 | [diff] [blame] | 312 | $(INPUT_BACKEND_SOURCES) |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 313 | endif |
| 314 | |
| 315 | if ENABLE_RDP_COMPOSITOR |
| 316 | module_LTLIBRARIES += rdp-backend.la |
| 317 | rdp_backend_la_LDFLAGS = -module -avoid-version |
| 318 | rdp_backend_la_LIBADD = $(COMPOSITOR_LIBS) \ |
| 319 | $(RDP_COMPOSITOR_LIBS) \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 320 | libshared.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 321 | rdp_backend_la_CFLAGS = \ |
| 322 | $(COMPOSITOR_CFLAGS) \ |
| 323 | $(RDP_COMPOSITOR_CFLAGS) \ |
| 324 | $(GCC_CFLAGS) |
| 325 | rdp_backend_la_SOURCES = src/compositor-rdp.c |
| 326 | endif |
| 327 | |
| 328 | if HAVE_LCMS |
| 329 | module_LTLIBRARIES += cms-static.la |
| 330 | cms_static_la_LDFLAGS = -module -avoid-version |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 331 | cms_static_la_LIBADD = $(COMPOSITOR_LIBS) $(LCMS_LIBS) libshared.la |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 332 | cms_static_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(LCMS_CFLAGS) |
| 333 | cms_static_la_SOURCES = \ |
| 334 | src/cms-static.c \ |
| 335 | src/cms-helper.c \ |
| 336 | src/cms-helper.h |
| 337 | if ENABLE_COLORD |
| 338 | module_LTLIBRARIES += cms-colord.la |
| 339 | cms_colord_la_LDFLAGS = -module -avoid-version |
| 340 | cms_colord_la_LIBADD = $(COMPOSITOR_LIBS) $(COLORD_LIBS) |
| 341 | cms_colord_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) $(COLORD_CFLAGS) |
| 342 | cms_colord_la_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 343 | src/cms-colord.c \ |
| 344 | src/cms-helper.c \ |
Kristian Høgsberg | b7e3ef4 | 2014-01-27 23:05:52 -0800 | [diff] [blame] | 345 | src/cms-helper.h |
| 346 | endif |
| 347 | endif |
| 348 | |
| 349 | noinst_PROGRAMS += spring-tool |
| 350 | spring_tool_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 351 | spring_tool_LDADD = $(COMPOSITOR_LIBS) -lm |
| 352 | spring_tool_SOURCES = \ |
| 353 | src/spring-tool.c \ |
| 354 | src/animation.c \ |
| 355 | shared/matrix.c \ |
| 356 | shared/matrix.h \ |
| 357 | src/compositor.h |
| 358 | |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 359 | if BUILD_CLIENTS |
| 360 | |
| 361 | bin_PROGRAMS += weston-terminal weston-info |
| 362 | |
| 363 | libexec_PROGRAMS += \ |
| 364 | weston-desktop-shell \ |
| 365 | weston-screenshooter \ |
| 366 | weston-keyboard \ |
| 367 | weston-simple-im |
| 368 | |
| 369 | demo_clients = \ |
| 370 | weston-flower \ |
| 371 | weston-image \ |
| 372 | weston-cliptest \ |
| 373 | weston-dnd \ |
| 374 | weston-smoke \ |
| 375 | weston-resizor \ |
| 376 | weston-eventdemo \ |
| 377 | weston-clickdot \ |
| 378 | weston-transformed \ |
| 379 | weston-fullscreen \ |
| 380 | weston-stacking \ |
| 381 | weston-calibrator \ |
| 382 | weston-scaler |
| 383 | |
| 384 | if INSTALL_DEMO_CLIENTS |
| 385 | bin_PROGRAMS += $(demo_clients) |
| 386 | else |
| 387 | noinst_PROGRAMS += $(demo_clients) |
| 388 | endif |
| 389 | |
| 390 | |
| 391 | if BUILD_SIMPLE_CLIENTS |
| 392 | demo_clients += \ |
| 393 | weston-simple-shm \ |
Jason Ekstrand | 549a53f | 2014-04-05 09:22:15 -0500 | [diff] [blame] | 394 | weston-simple-damage \ |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 395 | weston-simple-touch \ |
| 396 | weston-multi-resource |
| 397 | |
Kristian Høgsberg | fe84a97 | 2014-02-11 14:23:19 -0800 | [diff] [blame] | 398 | weston_simple_shm_SOURCES = clients/simple-shm.c |
| 399 | nodist_weston_simple_shm_SOURCES = \ |
Kristian Høgsberg | dfaf65b | 2014-02-07 17:01:57 -0800 | [diff] [blame] | 400 | protocol/xdg-shell-protocol.c \ |
Jason Ekstrand | 428c24e | 2014-04-02 19:53:48 -0500 | [diff] [blame] | 401 | protocol/xdg-shell-client-protocol.h \ |
| 402 | protocol/fullscreen-shell-protocol.c \ |
| 403 | protocol/fullscreen-shell-client-protocol.h |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 404 | weston_simple_shm_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS) |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 405 | weston_simple_shm_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 406 | |
Jason Ekstrand | 549a53f | 2014-04-05 09:22:15 -0500 | [diff] [blame] | 407 | weston_simple_damage_SOURCES = clients/simple-damage.c |
| 408 | nodist_weston_simple_damage_SOURCES = \ |
| 409 | protocol/scaler-protocol.c \ |
| 410 | protocol/scaler-client-protocol.h \ |
| 411 | protocol/xdg-shell-protocol.c \ |
| 412 | protocol/xdg-shell-client-protocol.h \ |
| 413 | protocol/fullscreen-shell-protocol.c \ |
| 414 | protocol/fullscreen-shell-client-protocol.h |
| 415 | weston_simple_damage_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS) |
| 416 | weston_simple_damage_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la |
| 417 | |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 418 | weston_simple_touch_SOURCES = clients/simple-touch.c |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 419 | weston_simple_touch_CFLAGS = $(AM_CFLAGS) $(SIMPLE_CLIENT_CFLAGS) |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 420 | weston_simple_touch_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 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) |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 424 | weston_multi_resource_LDADD = $(SIMPLE_CLIENT_LIBS) libshared.la -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 \ |
| 453 | protocol/xdg-shell-client-protocol.h |
Jasper St. Pierre | 0790e39 | 2013-12-09 14:58:00 -0500 | [diff] [blame] | 454 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 455 | BUILT_SOURCES += $(nodist_libtoytoolkit_la_SOURCES) |
| 456 | |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 457 | |
| 458 | libtoytoolkit_la_LIBADD = \ |
| 459 | $(CLIENT_LIBS) \ |
| 460 | $(CAIRO_EGL_LIBS) \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 461 | libshared-cairo.la -lrt -lm |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 462 | libtoytoolkit_la_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(CAIRO_EGL_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 463 | |
| 464 | weston_flower_SOURCES = clients/flower.c |
| 465 | weston_flower_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 466 | weston_flower_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 467 | |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 468 | weston_screenshooter_SOURCES = \ |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 469 | clients/screenshot.c |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 470 | nodist_weston_screenshooter_SOURCES = \ |
| 471 | protocol/screenshooter-protocol.c \ |
| 472 | protocol/screenshooter-client-protocol.h |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 473 | weston_screenshooter_LDADD = $(CLIENT_LIBS) libshared.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 474 | weston_screenshooter_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 475 | |
| 476 | weston_terminal_SOURCES = clients/terminal.c |
| 477 | weston_terminal_LDADD = libtoytoolkit.la -lutil |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 478 | weston_terminal_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 479 | |
| 480 | weston_image_SOURCES = clients/image.c |
| 481 | weston_image_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 482 | weston_image_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 483 | |
Pekka Paalanen | 461e93c | 2014-08-20 11:58:47 +0300 | [diff] [blame] | 484 | weston_cliptest_SOURCES = \ |
| 485 | clients/cliptest.c \ |
| 486 | src/vertex-clipping.c \ |
| 487 | src/vertex-clipping.h |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 488 | weston_cliptest_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 489 | weston_cliptest_LDADD = libtoytoolkit.la |
| 490 | |
| 491 | weston_dnd_SOURCES = clients/dnd.c |
| 492 | weston_dnd_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 493 | weston_dnd_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 494 | |
| 495 | weston_smoke_SOURCES = clients/smoke.c |
| 496 | weston_smoke_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 497 | weston_smoke_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 498 | |
| 499 | weston_resizor_SOURCES = clients/resizor.c |
| 500 | weston_resizor_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 501 | weston_resizor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 502 | |
| 503 | weston_scaler_SOURCES = clients/scaler.c |
| 504 | weston_scaler_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 505 | weston_scaler_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 506 | |
| 507 | if HAVE_CAIRO_GLESV2 |
| 508 | demo_clients += weston-nested weston-nested-client |
| 509 | |
| 510 | weston_nested_SOURCES = clients/nested.c |
| 511 | weston_nested_LDADD = libtoytoolkit.la $(SERVER_LIBS) |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 512 | weston_nested_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 513 | |
| 514 | weston_nested_client_SOURCES = clients/nested-client.c |
| 515 | weston_nested_client_LDADD = $(SIMPLE_EGL_CLIENT_LIBS) -lm |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 516 | weston_nested_client_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 517 | endif |
| 518 | |
| 519 | weston_eventdemo_SOURCES = clients/eventdemo.c |
| 520 | weston_eventdemo_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 521 | weston_eventdemo_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 522 | |
| 523 | weston_clickdot_SOURCES = clients/clickdot.c |
| 524 | weston_clickdot_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 525 | weston_clickdot_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 526 | |
| 527 | weston_transformed_SOURCES = clients/transformed.c |
| 528 | weston_transformed_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 529 | weston_transformed_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 530 | |
| 531 | weston_fullscreen_SOURCES = clients/fullscreen.c |
Jason Ekstrand | 2bb72fe | 2014-04-02 19:53:52 -0500 | [diff] [blame] | 532 | nodist_weston_fullscreen_SOURCES = \ |
| 533 | protocol/fullscreen-shell-protocol.c \ |
| 534 | protocol/fullscreen-shell-client-protocol.h |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 535 | weston_fullscreen_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 536 | weston_fullscreen_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 537 | |
| 538 | weston_stacking_SOURCES = clients/stacking.c |
| 539 | weston_stacking_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 540 | weston_stacking_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 541 | |
| 542 | weston_calibrator_SOURCES = clients/calibrator.c \ |
| 543 | shared/matrix.c \ |
| 544 | shared/matrix.h |
| 545 | weston_calibrator_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 546 | weston_calibrator_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 547 | |
| 548 | if BUILD_SUBSURFACES_CLIENT |
| 549 | demo_clients += weston-subsurfaces |
| 550 | weston_subsurfaces_SOURCES = clients/subsurfaces.c |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 551 | weston_subsurfaces_CFLAGS = \ |
| 552 | $(AM_CFLAGS) \ |
| 553 | $(SIMPLE_EGL_CLIENT_CFLAGS) \ |
| 554 | $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 555 | weston_subsurfaces_LDADD = libtoytoolkit.la $(SIMPLE_EGL_CLIENT_LIBS) -lm |
| 556 | endif |
| 557 | |
| 558 | if HAVE_PANGO |
| 559 | demo_clients += weston-editor |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 560 | weston_editor_SOURCES = clients/editor.c |
| 561 | nodist_weston_editor_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 562 | protocol/text-protocol.c \ |
| 563 | protocol/text-client-protocol.h |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 564 | weston_editor_LDADD = libtoytoolkit.la $(PANGO_LIBS) |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 565 | weston_editor_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) $(PANGO_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 566 | endif |
| 567 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 568 | weston_keyboard_SOURCES = clients/keyboard.c |
| 569 | nodist_weston_keyboard_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 570 | protocol/desktop-shell-client-protocol.h \ |
| 571 | protocol/desktop-shell-protocol.c \ |
| 572 | protocol/input-method-protocol.c \ |
| 573 | protocol/input-method-client-protocol.h |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 574 | weston_keyboard_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 575 | weston_keyboard_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 576 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 577 | weston_simple_im_SOURCES = clients/weston-simple-im.c |
| 578 | nodist_weston_simple_im_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 579 | protocol/input-method-protocol.c \ |
| 580 | protocol/input-method-client-protocol.h |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 581 | weston_simple_im_LDADD = $(CLIENT_LIBS) |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 582 | weston_simple_im_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 583 | |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 584 | weston_info_SOURCES = clients/weston-info.c |
Pekka Paalanen | 93a6afd | 2014-09-23 22:08:44 -0400 | [diff] [blame^] | 585 | nodist_weston_info_SOURCES = \ |
| 586 | protocol/presentation_timing-protocol.c \ |
| 587 | protocol/presentation_timing-client-protocol.h |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 588 | weston_info_LDADD = $(WESTON_INFO_LIBS) libshared.la |
Pekka Paalanen | 5124b53 | 2014-02-03 13:12:34 +0200 | [diff] [blame] | 589 | weston_info_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 590 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 591 | weston_desktop_shell_SOURCES = clients/desktop-shell.c |
| 592 | nodist_weston_desktop_shell_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 593 | protocol/desktop-shell-client-protocol.h \ |
| 594 | protocol/desktop-shell-protocol.c |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 595 | weston_desktop_shell_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 596 | weston_desktop_shell_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 597 | |
| 598 | if BUILD_FULL_GL_CLIENTS |
| 599 | demo_clients += weston-gears |
| 600 | weston_gears_SOURCES = clients/gears.c |
| 601 | weston_gears_LDADD = libtoytoolkit.la |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 602 | weston_gears_CFLAGS = $(AM_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 603 | |
| 604 | if HAVE_GLU |
| 605 | libexec_PROGRAMS += weston-screensaver |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 606 | weston_screensaver_SOURCES = \ |
| 607 | clients/wscreensaver.c \ |
| 608 | clients/wscreensaver.h \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 609 | clients/wscreensaver-glue.c \ |
| 610 | clients/wscreensaver-glue.h \ |
| 611 | clients/glmatrix.c \ |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 612 | clients/matrix3.xpm |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 613 | nodist_weston_screensaver_SOURCES = \ |
| 614 | protocol/desktop-shell-client-protocol.h \ |
| 615 | protocol/desktop-shell-protocol.c |
| 616 | |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 617 | weston_screensaver_LDADD = libtoytoolkit.la $(GLU_LIBS) |
Kristian Høgsberg | e5b4dce | 2014-02-05 22:00:59 -0800 | [diff] [blame] | 618 | weston_screensaver_CFLAGS = $(AM_CFLAGS) $(GLU_CFLAGS) $(CLIENT_CFLAGS) |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 619 | |
| 620 | endif |
| 621 | |
| 622 | endif |
| 623 | |
| 624 | endif |
| 625 | |
| 626 | BUILT_SOURCES += \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 627 | protocol/screenshooter-protocol.c \ |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 628 | protocol/screenshooter-client-protocol.h \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 629 | protocol/text-cursor-position-client-protocol.h \ |
| 630 | protocol/text-cursor-position-protocol.c \ |
| 631 | protocol/text-protocol.c \ |
| 632 | protocol/text-client-protocol.h \ |
| 633 | protocol/input-method-protocol.c \ |
| 634 | protocol/input-method-client-protocol.h \ |
| 635 | protocol/desktop-shell-client-protocol.h \ |
| 636 | protocol/desktop-shell-protocol.c \ |
| 637 | protocol/scaler-client-protocol.h \ |
| 638 | protocol/scaler-protocol.c \ |
| 639 | protocol/workspaces-client-protocol.h \ |
| 640 | protocol/workspaces-protocol.c \ |
Jason Ekstrand | 428c24e | 2014-04-02 19:53:48 -0500 | [diff] [blame] | 641 | protocol/fullscreen-shell-protocol.c \ |
| 642 | protocol/fullscreen-shell-client-protocol.h \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 643 | protocol/xdg-shell-protocol.c \ |
| 644 | protocol/xdg-shell-client-protocol.h |
Kristian Høgsberg | e73eccd | 2014-01-31 16:15:11 -0800 | [diff] [blame] | 645 | |
| 646 | |
Kristian Høgsberg | 5b9f9f8 | 2014-01-27 21:40:28 -0800 | [diff] [blame] | 647 | westondatadir = $(datadir)/weston |
| 648 | dist_westondata_DATA = \ |
| 649 | data/wayland.svg \ |
| 650 | data/wayland.png \ |
| 651 | data/pattern.png \ |
| 652 | data/terminal.png \ |
| 653 | data/border.png \ |
| 654 | data/icon_window.png \ |
| 655 | data/sign_close.png \ |
| 656 | data/sign_maximize.png \ |
| 657 | data/sign_minimize.png |
Kristian Høgsberg | e895f14 | 2014-01-27 21:46:30 -0800 | [diff] [blame] | 658 | |
| 659 | |
| 660 | if BUILD_WCAP_TOOLS |
| 661 | bin_PROGRAMS += wcap-decode |
| 662 | |
| 663 | wcap_decode_SOURCES = \ |
| 664 | wcap/main.c \ |
| 665 | wcap/wcap-decode.c \ |
| 666 | wcap/wcap-decode.h |
| 667 | |
| 668 | wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS) |
| 669 | wcap_decode_LDADD = $(WCAP_LIBS) |
| 670 | endif |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 671 | |
| 672 | |
| 673 | if ENABLE_DESKTOP_SHELL |
| 674 | |
| 675 | module_LTLIBRARIES += desktop-shell.la |
| 676 | |
| 677 | desktop_shell_la_CPPFLAGS = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 678 | -I$(top_builddir)/protocol \ |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 679 | -I$(top_srcdir)/shared \ |
| 680 | -I$(top_srcdir)/src \ |
| 681 | -I$(top_builddir)/src \ |
| 682 | -I$(top_builddir)/desktop-shell \ |
| 683 | -DDATADIR='"$(datadir)"' \ |
| 684 | -DMODULEDIR='"$(moduledir)"' \ |
| 685 | -DLIBEXECDIR='"$(libexecdir)"' \ |
| 686 | -DIN_WESTON |
| 687 | |
| 688 | desktop_shell_la_LDFLAGS = -module -avoid-version |
Kristian Høgsberg | 4c1bfc9 | 2014-02-11 14:21:39 -0800 | [diff] [blame] | 689 | desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 690 | desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 691 | desktop_shell_la_SOURCES = \ |
| 692 | desktop-shell/shell.h \ |
| 693 | desktop-shell/shell.c \ |
| 694 | desktop-shell/exposay.c \ |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 695 | desktop-shell/input-panel.c |
| 696 | nodist_desktop_shell_la_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 697 | protocol/desktop-shell-protocol.c \ |
| 698 | protocol/desktop-shell-server-protocol.h \ |
| 699 | protocol/xdg-shell-protocol.c \ |
| 700 | protocol/xdg-shell-server-protocol.h |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 701 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 702 | BUILT_SOURCES += $(nodist_desktop_shell_la_SOURCES) |
Kristian Høgsberg | bc00dbe | 2014-01-27 21:56:12 -0800 | [diff] [blame] | 703 | endif |
| 704 | |
Jason Ekstrand | 946a948 | 2014-04-02 19:53:47 -0500 | [diff] [blame] | 705 | if ENABLE_FULLSCREEN_SHELL |
| 706 | |
| 707 | module_LTLIBRARIES += fullscreen-shell.la |
| 708 | |
| 709 | fullscreen_shell_la_CPPFLAGS = \ |
| 710 | -I$(top_builddir)/protocol \ |
| 711 | -I$(top_srcdir)/shared \ |
| 712 | -I$(top_srcdir)/src \ |
| 713 | -I$(top_builddir)/src \ |
| 714 | -DIN_WESTON |
| 715 | |
| 716 | fullscreen_shell_la_LDFLAGS = -module -avoid-version |
| 717 | fullscreen_shell_la_LIBADD = $(COMPOSITOR_LIBS) |
| 718 | fullscreen_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 719 | fullscreen_shell_la_SOURCES = \ |
| 720 | fullscreen-shell/fullscreen-shell.c |
| 721 | nodist_fullscreen_shell_la_SOURCES = \ |
| 722 | protocol/fullscreen-shell-protocol.c \ |
| 723 | protocol/fullscreen-shell-server-protocol.h |
| 724 | |
| 725 | BUILT_SOURCES += $(nodist_fullscreen_shell_la_SOURCES) |
| 726 | endif |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 727 | |
Jason Ekstrand | 47928d8 | 2014-04-02 19:54:01 -0500 | [diff] [blame] | 728 | if ENABLE_SCREEN_SHARING |
| 729 | |
| 730 | module_LTLIBRARIES += screen-share.la |
| 731 | |
| 732 | screen_share_la_CPPFLAGS = $(AM_CPPFLAGS) -DBINDIR='"$(bindir)"' |
| 733 | screen_share_la_LDFLAGS = -module -avoid-version |
| 734 | screen_share_la_LIBADD = \ |
| 735 | $(COMPOSITOR_LIBS) \ |
| 736 | $(SCREEN_SHARE_LIBS) \ |
| 737 | libshared-cairo.la |
| 738 | screen_share_la_CFLAGS = \ |
| 739 | $(COMPOSITOR_CFLAGS) \ |
| 740 | $(SCREEN_SHARE_CFLAGS) \ |
| 741 | $(GCC_CFLAGS) |
| 742 | screen_share_la_SOURCES = \ |
| 743 | src/screen-share.c |
| 744 | nodist_screen_share_la_SOURCES = \ |
| 745 | protocol/fullscreen-shell-protocol.c \ |
| 746 | protocol/fullscreen-shell-client-protocol.h |
| 747 | |
| 748 | endif |
| 749 | |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 750 | if ENABLE_XWAYLAND |
| 751 | |
| 752 | module_LTLIBRARIES += xwayland.la |
| 753 | |
| 754 | xwayland_la_CPPFLAGS = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 755 | -I$(top_builddir)/protocol \ |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 756 | -I$(top_srcdir)/shared \ |
| 757 | -I$(top_srcdir)/src \ |
| 758 | -I$(top_builddir)/src \ |
| 759 | -I$(top_builddir)/xwayland \ |
| 760 | -DDATADIR='"$(datadir)"' \ |
| 761 | -DMODULEDIR='"$(moduledir)"' \ |
| 762 | -DLIBEXECDIR='"$(libexecdir)"' \ |
| 763 | -DXSERVER_PATH='"@XSERVER_PATH@"' |
| 764 | |
| 765 | xwayland_la_LDFLAGS = -module -avoid-version |
| 766 | xwayland_la_LIBADD = \ |
| 767 | $(XWAYLAND_LIBS) \ |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 768 | $(top_builddir)/libshared-cairo.la |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 769 | xwayland_la_CFLAGS = \ |
| 770 | $(GCC_CFLAGS) \ |
| 771 | $(COMPOSITOR_CFLAGS) \ |
| 772 | $(PIXMAN_CFLAGS) \ |
| 773 | $(CAIRO_CFLAGS) |
| 774 | xwayland_la_SOURCES = \ |
| 775 | xwayland/xwayland.h \ |
| 776 | xwayland/window-manager.c \ |
| 777 | xwayland/selection.c \ |
| 778 | xwayland/dnd.c \ |
| 779 | xwayland/launcher.c \ |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 780 | xwayland/hash.c \ |
| 781 | xwayland/hash.h |
Kristian Høgsberg | 058bd32 | 2014-01-27 21:59:55 -0800 | [diff] [blame] | 782 | endif |
| 783 | |
Kristian Høgsberg | f9bc6f6 | 2014-01-27 22:26:29 -0800 | [diff] [blame] | 784 | |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 785 | # |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 786 | # Shared utilities |
| 787 | # |
| 788 | |
| 789 | noinst_LTLIBRARIES += libshared.la libshared-cairo.la |
| 790 | |
| 791 | libshared_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 792 | |
| 793 | libshared_la_SOURCES = \ |
| 794 | shared/config-parser.c \ |
| 795 | shared/option-parser.c \ |
| 796 | shared/config-parser.h \ |
| 797 | shared/os-compatibility.c \ |
| 798 | shared/os-compatibility.h |
| 799 | |
| 800 | libshared_cairo_la_CFLAGS = \ |
| 801 | -DDATADIR='"$(datadir)"' \ |
| 802 | $(GCC_CFLAGS) \ |
| 803 | $(COMPOSITOR_CFLAGS) \ |
| 804 | $(PIXMAN_CFLAGS) \ |
| 805 | $(CAIRO_CFLAGS) \ |
| 806 | $(PNG_CFLAGS) \ |
| 807 | $(WEBP_CFLAGS) |
| 808 | |
| 809 | libshared_cairo_la_LIBADD = \ |
| 810 | $(PIXMAN_LIBS) \ |
| 811 | $(CAIRO_LIBS) \ |
| 812 | $(PNG_LIBS) \ |
| 813 | $(WEBP_LIBS) \ |
| 814 | $(JPEG_LIBS) |
| 815 | |
| 816 | libshared_cairo_la_SOURCES = \ |
| 817 | $(libshared_la_SOURCES) \ |
| 818 | shared/image-loader.c \ |
| 819 | shared/image-loader.h \ |
| 820 | shared/cairo-util.c \ |
| 821 | shared/frame.c \ |
| 822 | shared/cairo-util.h |
| 823 | |
| 824 | |
| 825 | # |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 826 | # tests subdirectory |
| 827 | # |
| 828 | |
| 829 | TESTS = $(shared_tests) $(module_tests) $(weston_tests) |
| 830 | |
| 831 | shared_tests = \ |
| 832 | config-parser.test \ |
| 833 | vertex-clip.test |
| 834 | |
| 835 | module_tests = \ |
| 836 | surface-test.la \ |
| 837 | surface-global-test.la |
| 838 | |
| 839 | weston_tests = \ |
| 840 | bad_buffer.weston \ |
| 841 | keyboard.weston \ |
| 842 | event.weston \ |
| 843 | button.weston \ |
| 844 | text.weston \ |
| 845 | subsurface.weston |
| 846 | |
| 847 | |
| 848 | AM_TESTS_ENVIRONMENT = \ |
| 849 | abs_builddir='$(abs_builddir)'; export abs_builddir; |
| 850 | |
| 851 | TEST_EXTENSIONS = .la .weston |
| 852 | LA_LOG_COMPILER = $(srcdir)/tests/weston-tests-env |
| 853 | WESTON_LOG_COMPILER = $(srcdir)/tests/weston-tests-env |
| 854 | |
| 855 | clean-local: |
Pekka Paalanen | 15f8563 | 2014-05-12 10:08:57 +0300 | [diff] [blame] | 856 | -rm -rf logs |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 857 | |
| 858 | # To remove when automake 1.11 support is dropped |
| 859 | export abs_builddir |
| 860 | |
| 861 | noinst_LTLIBRARIES += \ |
| 862 | weston-test.la \ |
| 863 | $(module_tests) \ |
| 864 | libtest-runner.la \ |
| 865 | libtest-client.la |
| 866 | |
| 867 | noinst_PROGRAMS += \ |
| 868 | $(setbacklight) \ |
| 869 | $(shared_tests) \ |
| 870 | $(weston_tests) \ |
| 871 | matrix-test |
| 872 | |
| 873 | test_module_ldflags = \ |
| 874 | -module -avoid-version -rpath $(libdir) $(COMPOSITOR_LIBS) |
| 875 | |
| 876 | surface_global_test_la_SOURCES = tests/surface-global-test.c |
| 877 | surface_global_test_la_LDFLAGS = $(test_module_ldflags) |
| 878 | surface_global_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 879 | |
| 880 | surface_test_la_SOURCES = tests/surface-test.c |
| 881 | surface_test_la_LDFLAGS = $(test_module_ldflags) |
| 882 | surface_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 883 | |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 884 | weston_test_la_LIBADD = $(COMPOSITOR_LIBS) libshared.la |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 885 | weston_test_la_LDFLAGS = $(test_module_ldflags) |
| 886 | weston_test_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 887 | weston_test_la_SOURCES = tests/weston-test.c |
| 888 | nodist_weston_test_la_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 889 | protocol/wayland-test-protocol.c \ |
| 890 | protocol/wayland-test-server-protocol.h |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 891 | |
| 892 | if ENABLE_EGL |
| 893 | weston_test_la_CFLAGS += $(EGL_TESTS_CFLAGS) |
| 894 | weston_test_la_LDFLAGS += $(EGL_TESTS_LIBS) |
| 895 | endif |
| 896 | |
| 897 | libtest_runner_la_SOURCES = \ |
| 898 | tests/weston-test-runner.c \ |
| 899 | tests/weston-test-runner.h |
| 900 | libtest_runner_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS) |
| 901 | |
| 902 | config_parser_test_SOURCES = tests/config-parser-test.c |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 903 | config_parser_test_LDADD = libshared.la libtest-runner.la $(COMPOSITOR_LIBS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 904 | |
| 905 | vertex_clip_test_SOURCES = \ |
| 906 | tests/vertex-clip-test.c \ |
| 907 | src/vertex-clipping.c \ |
| 908 | src/vertex-clipping.h |
| 909 | vertex_clip_test_LDADD = libtest-runner.la -lm -lrt |
| 910 | |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 911 | libtest_client_la_SOURCES = \ |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 912 | tests/weston-test-client-helper.c \ |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 913 | tests/weston-test-client-helper.h |
| 914 | nodist_libtest_client_la_SOURCES = \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 915 | protocol/wayland-test-protocol.c \ |
| 916 | protocol/wayland-test-client-protocol.h |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 917 | libtest_client_la_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 0987f81 | 2014-01-27 22:02:41 -0800 | [diff] [blame] | 918 | 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] | 919 | |
| 920 | bad_buffer_weston_SOURCES = tests/bad-buffer-test.c |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 921 | bad_buffer_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 922 | bad_buffer_weston_LDADD = libtest-client.la |
| 923 | |
| 924 | keyboard_weston_SOURCES = tests/keyboard-test.c |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 925 | keyboard_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 926 | keyboard_weston_LDADD = libtest-client.la |
| 927 | |
| 928 | event_weston_SOURCES = tests/event-test.c |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 929 | event_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 930 | event_weston_LDADD = libtest-client.la |
| 931 | |
| 932 | button_weston_SOURCES = tests/button-test.c |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 933 | button_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 934 | button_weston_LDADD = libtest-client.la |
| 935 | |
Kristian Høgsberg | bece0ee | 2014-02-01 21:52:17 -0800 | [diff] [blame] | 936 | text_weston_SOURCES = tests/text-test.c |
| 937 | nodist_text_weston_SOURCES = \ |
| 938 | protocol/text-protocol.c \ |
| 939 | protocol/text-client-protocol.h |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 940 | text_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 941 | text_weston_LDADD = libtest-client.la |
| 942 | |
| 943 | subsurface_weston_SOURCES = tests/subsurface-test.c |
Kristian Høgsberg | 49fcd00 | 2014-02-03 11:05:41 -0800 | [diff] [blame] | 944 | subsurface_weston_CFLAGS = $(AM_CFLAGS) $(TEST_CLIENT_CFLAGS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 945 | subsurface_weston_LDADD = libtest-client.la |
| 946 | |
| 947 | if ENABLE_EGL |
| 948 | weston_tests += buffer-count.weston |
| 949 | buffer_count_weston_SOURCES = tests/buffer-count-test.c |
| 950 | buffer_count_weston_CFLAGS = $(GCC_CFLAGS) $(EGL_TESTS_CFLAGS) |
| 951 | buffer_count_weston_LDADD = libtest-client.la $(EGL_TESTS_LIBS) |
| 952 | endif |
| 953 | |
| 954 | if ENABLE_XWAYLAND_TEST |
Pekka Paalanen | f9a2626 | 2014-05-07 16:26:29 +0300 | [diff] [blame] | 955 | weston_tests += xwayland-test.weston |
| 956 | xwayland_test_weston_SOURCES = tests/xwayland-test.c |
| 957 | xwayland_test_weston_CFLAGS = $(GCC_CFLAGS) $(XWAYLAND_TEST_CFLAGS) |
| 958 | xwayland_test_weston_LDADD = libtest-client.la $(XWAYLAND_TEST_LIBS) |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 959 | endif |
| 960 | |
| 961 | matrix_test_SOURCES = \ |
| 962 | tests/matrix-test.c \ |
| 963 | shared/matrix.c \ |
| 964 | shared/matrix.h |
| 965 | matrix_test_CPPFLAGS = -DUNIT_TEST |
| 966 | matrix_test_LDADD = -lm -lrt |
| 967 | |
| 968 | if BUILD_SETBACKLIGHT |
| 969 | noinst_PROGRAMS += setbacklight |
| 970 | setbacklight_SOURCES = \ |
| 971 | tests/setbacklight.c \ |
| 972 | src/libbacklight.c \ |
| 973 | src/libbacklight.h |
| 974 | setbacklight_CFLAGS = $(AM_CFLAGS) $(SETBACKLIGHT_CFLAGS) |
| 975 | setbacklight_LDADD = $(SETBACKLIGHT_LIBS) |
| 976 | endif |
| 977 | |
| 978 | EXTRA_DIST += tests/weston-tests-env |
| 979 | |
| 980 | BUILT_SOURCES += \ |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 981 | protocol/wayland-test-protocol.c \ |
| 982 | protocol/wayland-test-server-protocol.h \ |
| 983 | protocol/wayland-test-client-protocol.h \ |
| 984 | protocol/text-protocol.c \ |
| 985 | protocol/text-client-protocol.h |
Kristian Høgsberg | 1e80afa | 2014-01-31 14:03:09 -0800 | [diff] [blame] | 986 | |
Kristian Høgsberg | cd31275 | 2014-02-01 00:38:15 -0800 | [diff] [blame] | 987 | EXTRA_DIST += \ |
Kristian Høgsberg | f9bc6f6 | 2014-01-27 22:26:29 -0800 | [diff] [blame] | 988 | protocol/desktop-shell.xml \ |
| 989 | protocol/screenshooter.xml \ |
Kristian Høgsberg | f9bc6f6 | 2014-01-27 22:26:29 -0800 | [diff] [blame] | 990 | protocol/text.xml \ |
| 991 | protocol/input-method.xml \ |
| 992 | protocol/workspaces.xml \ |
| 993 | protocol/text-cursor-position.xml \ |
| 994 | protocol/wayland-test.xml \ |
| 995 | protocol/xdg-shell.xml \ |
Jason Ekstrand | 27e1167 | 2014-04-02 19:53:44 -0500 | [diff] [blame] | 996 | protocol/fullscreen-shell.xml \ |
Pekka Paalanen | 7e62d25 | 2014-09-23 22:08:42 -0400 | [diff] [blame] | 997 | protocol/presentation_timing.xml \ |
Kristian Høgsberg | f9bc6f6 | 2014-01-27 22:26:29 -0800 | [diff] [blame] | 998 | protocol/scaler.xml |
| 999 | |
Kristian Høgsberg | 68c5c10 | 2014-01-27 22:33:04 -0800 | [diff] [blame] | 1000 | man_MANS = weston.1 weston.ini.5 |
| 1001 | |
| 1002 | if ENABLE_DRM_COMPOSITOR |
| 1003 | man_MANS += weston-drm.7 |
| 1004 | endif |
| 1005 | |
| 1006 | MAN_SUBSTS = \ |
| 1007 | -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \ |
| 1008 | -e 's|__weston_modules_dir__|$(pkglibdir)|g' \ |
| 1009 | -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \ |
| 1010 | -e 's|__version__|$(PACKAGE_VERSION)|g' |
| 1011 | |
| 1012 | SUFFIXES = .1 .5 .7 .man |
| 1013 | |
| 1014 | %.1 %.5 %.7 : man/%.man |
| 1015 | $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ |
| 1016 | |
| 1017 | EXTRA_DIST += \ |
| 1018 | man/weston.man \ |
| 1019 | man/weston-drm.man \ |
| 1020 | man/weston.ini.man |
| 1021 | |
| 1022 | CLEANFILES += $(man_MANS) |
| 1023 | |
| 1024 | |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 1025 | protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml |
| 1026 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@ |
Kristian Høgsberg | 0822942 | 2014-02-01 00:33:04 -0800 | [diff] [blame] | 1027 | |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 1028 | protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml |
| 1029 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@ |
Kristian Høgsberg | 0822942 | 2014-02-01 00:33:04 -0800 | [diff] [blame] | 1030 | |
Quentin Glidic | 088ba5e | 2014-02-01 21:39:12 +0100 | [diff] [blame] | 1031 | protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml |
| 1032 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@ |