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