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