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