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