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