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