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