1 bin_PROGRAMS = weston \
5 -DDATADIR='"$(datadir)"' \
6 -DMODULEDIR='"$(moduledir)"' \
7 -DLIBEXECDIR='"$(libexecdir)"'
9 weston_LDFLAGS = -export-dynamic
10 weston_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
11 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 \
42 git-version.h : .FORCE
43 $(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; \
44 cmp -s $@ $@-new || cp $@-new $@; \
53 DIST_SUBDIRS = xwayland
56 if BUILD_WESTON_LAUNCH
57 weston_launch = weston-launch
58 weston_launch_SOURCES = weston-launch.c weston-launch.h
59 weston_launch_CFLAGS= $(GCC_CFLAGS)
60 weston_launch_CPPFLAGS = $(WESTON_LAUNCH_CFLAGS) $(SYSTEMD_LOGIN_CFLAGS) \
61 -DBINDIR='"$(bindir)"'
62 weston_launch_LDADD = $(WESTON_LAUNCH_LIBS) $(SYSTEMD_LOGIN_LIBS)
64 if ENABLE_SETUID_INSTALL
66 chown root $(DESTDIR)$(bindir)/weston-launch
67 chmod u+s $(DESTDIR)$(bindir)/weston-launch
70 endif # BUILD_WESTON_LAUNCH
72 moduledir = @libdir@/weston
73 module_LTLIBRARIES = \
80 # Do not install, since the binary produced via autotools is unusable.
81 # The real backend is built by the Android build system.
82 noinst_LTLIBRARIES = $(android_backend)
84 if ENABLE_X11_COMPOSITOR
85 x11_backend = x11-backend.la
86 x11_backend_la_LDFLAGS = -module -avoid-version
87 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
88 ../shared/libshared.la
89 x11_backend_la_CFLAGS = \
90 $(COMPOSITOR_CFLAGS) \
91 $(X11_COMPOSITOR_CFLAGS) \
93 x11_backend_la_SOURCES = compositor-x11.c
96 if ENABLE_DRM_COMPOSITOR
97 drm_backend = drm-backend.la
98 drm_backend_la_LDFLAGS = -module -avoid-version
99 drm_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(DRM_COMPOSITOR_LIBS) \
100 ../shared/libshared.la
101 drm_backend_la_CFLAGS = \
102 $(COMPOSITOR_CFLAGS) \
103 $(DRM_COMPOSITOR_CFLAGS) \
105 drm_backend_la_SOURCES = \
117 if ENABLE_WAYLAND_COMPOSITOR
118 wayland_backend = wayland-backend.la
119 wayland_backend_la_LDFLAGS = -module -avoid-version
120 wayland_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(WAYLAND_COMPOSITOR_LIBS) \
121 ../shared/libshared.la
122 wayland_backend_la_CFLAGS = \
123 $(COMPOSITOR_CFLAGS) \
124 $(WAYLAND_COMPOSITOR_CFLAGS) \
126 wayland_backend_la_SOURCES = compositor-wayland.c
129 if ENABLE_ANDROID_COMPOSITOR
130 android_backend = android-backend.la
131 android_backend_la_LDFLAGS = -module -avoid-version
132 android_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(ANDROID_COMPOSITOR_LIBS)
133 android_backend_la_CFLAGS = \
135 $(COMPOSITOR_CFLAGS) \
136 $(ANDROID_COMPOSITOR_CFLAGS)
137 android_backend_la_CXXFLAGS = $(GCC_CXXFLAGS) $(COMPOSITOR_CFLAGS)
138 android_backend_la_SOURCES = \
139 compositor-android.c \
143 android-framebuffer.cpp \
144 android-framebuffer.h
147 if ENABLE_DESKTOP_SHELL
148 desktop_shell = desktop-shell.la
149 desktop_shell_la_LDFLAGS = -module -avoid-version
150 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) \
151 ../shared/libshared.la
152 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
153 desktop_shell_la_SOURCES = \
155 desktop-shell-protocol.c \
156 desktop-shell-server-protocol.h
159 if ENABLE_TABLET_SHELL
160 tablet_shell = tablet-shell.la
161 tablet_shell_la_LDFLAGS = -module -avoid-version
162 tablet_shell_la_LIBADD = $(COMPOSITOR_LIBS)
163 tablet_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
164 tablet_shell_la_SOURCES = \
166 tablet-shell-protocol.c \
167 tablet-shell-server-protocol.h
171 screenshooter-server-protocol.h \
172 screenshooter-protocol.c \
173 text-cursor-position-server-protocol.h \
174 text-cursor-position-protocol.c \
175 tablet-shell-protocol.c \
176 tablet-shell-server-protocol.h \
177 desktop-shell-protocol.c \
178 desktop-shell-server-protocol.h \
180 text-server-protocol.h \
181 input-method-protocol.c \
182 input-method-server-protocol.h \
183 workspaces-server-protocol.h \
184 workspaces-protocol.c \
187 CLEANFILES = $(BUILT_SOURCES)
189 @wayland_scanner_rules@