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