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