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