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