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