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