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