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