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