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