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