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