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 workspaces-protocol.c \
32 workspaces-server-protocol.h \
40 git-version.h : .FORCE
41 $(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; \
42 cmp -s $@ $@-new || cp $@-new $@; \
51 DIST_SUBDIRS = xwayland
54 if BUILD_WESTON_LAUNCH
55 weston_launch = weston-launch
56 weston_launch_SOURCES = weston-launch.c weston-launch.h
57 weston_launch_CFLAGS= $(GCC_CFLAGS)
58 weston_launch_CPPFLAGS = $(WESTON_LAUNCH_CFLAGS) $(SYSTEMD_LOGIN_CFLAGS) \
59 -DBINDIR='"$(bindir)"'
60 weston_launch_LDADD = $(WESTON_LAUNCH_LIBS) $(SYSTEMD_LOGIN_LIBS)
62 if ENABLE_SETUID_INSTALL
64 chown root $(DESTDIR)$(bindir)/weston-launch
65 chmod u+s $(DESTDIR)$(bindir)/weston-launch
68 endif # BUILD_WESTON_LAUNCH
70 moduledir = @libdir@/weston
71 module_LTLIBRARIES = \
78 # Do not install, since the binary produced via autotools is unusable.
79 # The real backend is built by the Android build system.
80 noinst_LTLIBRARIES = $(android_backend)
82 if ENABLE_X11_COMPOSITOR
83 x11_backend = x11-backend.la
84 x11_backend_la_LDFLAGS = -module -avoid-version
85 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
86 ../shared/libshared.la
87 x11_backend_la_CFLAGS = \
88 $(COMPOSITOR_CFLAGS) \
89 $(X11_COMPOSITOR_CFLAGS) \
91 x11_backend_la_SOURCES = compositor-x11.c
94 if ENABLE_DRM_COMPOSITOR
95 drm_backend = drm-backend.la
96 drm_backend_la_LDFLAGS = -module -avoid-version
97 drm_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(DRM_COMPOSITOR_LIBS) \
98 ../shared/libshared.la
99 drm_backend_la_CFLAGS = \
100 $(COMPOSITOR_CFLAGS) \
101 $(DRM_COMPOSITOR_CFLAGS) \
103 drm_backend_la_SOURCES = \
115 if ENABLE_WAYLAND_COMPOSITOR
116 wayland_backend = wayland-backend.la
117 wayland_backend_la_LDFLAGS = -module -avoid-version
118 wayland_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(WAYLAND_COMPOSITOR_LIBS) \
119 ../shared/libshared.la
120 wayland_backend_la_CFLAGS = \
121 $(COMPOSITOR_CFLAGS) \
122 $(WAYLAND_COMPOSITOR_CFLAGS) \
124 wayland_backend_la_SOURCES = compositor-wayland.c
127 if ENABLE_ANDROID_COMPOSITOR
128 android_backend = android-backend.la
129 android_backend_la_LDFLAGS = -module -avoid-version
130 android_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(ANDROID_COMPOSITOR_LIBS)
131 android_backend_la_CFLAGS = \
133 $(COMPOSITOR_CFLAGS) \
134 $(ANDROID_COMPOSITOR_CFLAGS)
135 android_backend_la_CXXFLAGS = $(GCC_CXXFLAGS) $(COMPOSITOR_CFLAGS)
136 android_backend_la_SOURCES = \
137 compositor-android.c \
141 android-framebuffer.cpp \
142 android-framebuffer.h
145 if ENABLE_DESKTOP_SHELL
146 desktop_shell = desktop-shell.la
147 desktop_shell_la_LDFLAGS = -module -avoid-version
148 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) \
149 ../shared/libshared.la
150 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
151 desktop_shell_la_SOURCES = \
153 desktop-shell-protocol.c \
154 desktop-shell-server-protocol.h
157 if ENABLE_TABLET_SHELL
158 tablet_shell = tablet-shell.la
159 tablet_shell_la_LDFLAGS = -module -avoid-version
160 tablet_shell_la_LIBADD = $(COMPOSITOR_LIBS)
161 tablet_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
162 tablet_shell_la_SOURCES = \
164 tablet-shell-protocol.c \
165 tablet-shell-server-protocol.h
169 screenshooter-server-protocol.h \
170 screenshooter-protocol.c \
171 text-cursor-position-server-protocol.h \
172 text-cursor-position-protocol.c \
173 tablet-shell-protocol.c \
174 tablet-shell-server-protocol.h \
175 desktop-shell-protocol.c \
176 desktop-shell-server-protocol.h \
178 text-server-protocol.h \
179 workspaces-server-protocol.h \
180 workspaces-protocol.c \
183 CLEANFILES = $(BUILT_SOURCES)
185 @wayland_scanner_rules@