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