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