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