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