1 bin_PROGRAMS = weston \
5 -DDATADIR='"$(datadir)"' \
6 -DMODULEDIR='"$(moduledir)"' \
7 -DLIBEXECDIR='"$(libexecdir)"' \
10 weston_LDFLAGS = -export-dynamic
11 weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
12 weston_LDADD = $(COMPOSITOR_LIBS) $(DLOPEN_LIBS) -lm ../shared/libshared.la
22 screenshooter-protocol.c \
23 screenshooter-server-protocol.h \
25 text-cursor-position-protocol.c \
26 text-cursor-position-server-protocol.h \
30 text-server-protocol.h \
31 input-method-protocol.c \
32 input-method-server-protocol.h \
33 workspaces-protocol.c \
34 workspaces-server-protocol.h \
50 git-version.h : .FORCE
51 $(AM_V_GEN)(echo "#define BUILD_ID \"$(shell git --work-tree=$(top_srcdir) describe --always --dirty) $(shell git --work-tree=$(top_srcdir) log -1 --format='%s (%ci)')\"" > $@-new; \
52 cmp -s $@ $@-new || cp $@-new $@; \
61 DIST_SUBDIRS = xwayland
64 if BUILD_WESTON_LAUNCH
65 weston_launch = weston-launch
66 weston_launch_SOURCES = weston-launch.c weston-launch.h
67 weston_launch_CFLAGS= $(GCC_CFLAGS)
68 weston_launch_CPPFLAGS = $(WESTON_LAUNCH_CFLAGS) $(SYSTEMD_LOGIN_CFLAGS) \
69 -DBINDIR='"$(bindir)"'
70 weston_launch_LDADD = $(WESTON_LAUNCH_LIBS) $(SYSTEMD_LOGIN_LIBS)
72 if ENABLE_SETUID_INSTALL
74 chown root $(DESTDIR)$(bindir)/weston-launch
75 chmod u+s $(DESTDIR)$(bindir)/weston-launch
78 endif # BUILD_WESTON_LAUNCH
80 moduledir = @libdir@/weston
81 module_LTLIBRARIES = \
92 if INSTALL_RPI_COMPOSITOR
93 module_LTLIBRARIES += $(rpi_backend)
95 noinst_LTLIBRARIES += $(rpi_backend)
98 if ENABLE_X11_COMPOSITOR
99 x11_backend = x11-backend.la
100 x11_backend_la_LDFLAGS = -module -avoid-version
101 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
102 ../shared/libshared-cairo.la
103 x11_backend_la_CFLAGS = \
104 $(COMPOSITOR_CFLAGS) \
107 $(X11_COMPOSITOR_CFLAGS) \
109 x11_backend_la_SOURCES = compositor-x11.c
112 if ENABLE_DRM_COMPOSITOR
113 drm_backend = drm-backend.la
114 drm_backend_la_LDFLAGS = -module -avoid-version
115 drm_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(DRM_COMPOSITOR_LIBS) \
116 ../shared/libshared.la
117 drm_backend_la_CFLAGS = \
118 $(COMPOSITOR_CFLAGS) \
119 $(DRM_COMPOSITOR_CFLAGS) \
121 drm_backend_la_SOURCES = \
133 if ENABLE_WAYLAND_COMPOSITOR
134 wayland_backend = wayland-backend.la
135 wayland_backend_la_LDFLAGS = -module -avoid-version
136 wayland_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(WAYLAND_COMPOSITOR_LIBS) \
137 ../shared/libshared-cairo.la
138 wayland_backend_la_CFLAGS = \
139 $(COMPOSITOR_CFLAGS) \
142 $(WAYLAND_COMPOSITOR_CFLAGS) \
144 wayland_backend_la_SOURCES = compositor-wayland.c
147 if ENABLE_RPI_COMPOSITOR
148 rpi_backend = rpi-backend.la
149 rpi_backend_la_LDFLAGS = -module -avoid-version
150 rpi_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
151 $(RPI_COMPOSITOR_LIBS) \
152 $(RPI_BCM_HOST_LIBS) \
153 ../shared/libshared.la
154 rpi_backend_la_CFLAGS = \
156 $(COMPOSITOR_CFLAGS) \
157 $(RPI_COMPOSITOR_CFLAGS) \
158 $(RPI_BCM_HOST_CFLAGS)
159 rpi_backend_la_SOURCES = \
168 if ENABLE_HEADLESS_COMPOSITOR
169 headless_backend = headless-backend.la
170 headless_backend_la_LDFLAGS = -module -avoid-version
171 headless_backend_la_LIBADD = $(COMPOSITOR_LIBS) \
172 ../shared/libshared.la
173 headless_backend_la_CFLAGS = \
174 $(COMPOSITOR_CFLAGS) \
176 headless_backend_la_SOURCES = compositor-headless.c
179 if ENABLE_FBDEV_COMPOSITOR
180 fbdev_backend = fbdev-backend.la
181 fbdev_backend_la_LDFLAGS = -module -avoid-version
182 fbdev_backend_la_LIBADD = \
184 $(FBDEV_COMPOSITOR_LIBS) \
185 ../shared/libshared.la
186 fbdev_backend_la_CFLAGS = \
187 $(COMPOSITOR_CFLAGS) \
188 $(FBDEV_COMPOSITOR_CFLAGS) \
191 fbdev_backend_la_SOURCES = \
200 if ENABLE_DESKTOP_SHELL
201 desktop_shell = desktop-shell.la
202 desktop_shell_la_LDFLAGS = -module -avoid-version
203 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) \
204 ../shared/libshared.la
205 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
206 desktop_shell_la_SOURCES = \
208 desktop-shell-protocol.c \
209 desktop-shell-server-protocol.h
212 if ENABLE_TABLET_SHELL
213 tablet_shell = tablet-shell.la
214 tablet_shell_la_LDFLAGS = -module -avoid-version
215 tablet_shell_la_LIBADD = $(COMPOSITOR_LIBS)
216 tablet_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
217 tablet_shell_la_SOURCES = \
219 tablet-shell-protocol.c \
220 tablet-shell-server-protocol.h
224 screenshooter-server-protocol.h \
225 screenshooter-protocol.c \
226 text-cursor-position-server-protocol.h \
227 text-cursor-position-protocol.c \
228 tablet-shell-protocol.c \
229 tablet-shell-server-protocol.h \
230 desktop-shell-protocol.c \
231 desktop-shell-server-protocol.h \
233 text-server-protocol.h \
234 input-method-protocol.c \
235 input-method-server-protocol.h \
236 workspaces-server-protocol.h \
237 workspaces-protocol.c \
240 CLEANFILES = $(BUILT_SOURCES)
242 @wayland_scanner_rules@