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