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