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