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
19 screenshooter-protocol.c \
20 screenshooter-server-protocol.h \
21 text-cursor-position.c \
22 text-cursor-position-protocol.c \
23 text-cursor-position-server-protocol.h \
34 DIST_SUBDIRS = xwayland
37 if BUILD_WESTON_LAUNCH
38 weston_launch = weston-launch
39 weston_launch_SOURCES = weston-launch.c weston-launch.h
40 weston_launch_CFLAGS= $(GCC_CFLAGS)
41 weston_launch_CPPFLAGS = $(WESTON_LAUNCH_CFLAGS) $(SYSTEMD_LOGIN_CFLAGS) \
42 -DBINDIR='"$(bindir)"'
43 weston_launch_LDADD = $(WESTON_LAUNCH_LIBS) $(SYSTEMD_LOGIN_LIBS)
45 if ENABLE_SETUID_INSTALL
47 chown root $(DESTDIR)$(bindir)/weston-launch
48 chmod u+s $(DESTDIR)$(bindir)/weston-launch
51 else # BUILD_WESTON_LAUNCH
53 if ENABLE_SETUID_INSTALL
55 chown root $(DESTDIR)$(bindir)/weston
56 chmod u+s $(DESTDIR)$(bindir)/weston
59 endif # BUILD_WESTON_LAUNCH
61 moduledir = @libdir@/weston
62 module_LTLIBRARIES = \
70 # Do not install, since the binary produced via autotools is unusable.
71 # The real backend is built by the Android build system.
72 noinst_LTLIBRARIES = $(android_backend)
74 if ENABLE_X11_COMPOSITOR
75 x11_backend = x11-backend.la
76 x11_backend_la_LDFLAGS = -module -avoid-version
77 x11_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(X11_COMPOSITOR_LIBS) \
78 ../shared/libshared.la
79 x11_backend_la_CFLAGS = \
80 $(COMPOSITOR_CFLAGS) \
81 $(X11_COMPOSITOR_CFLAGS) \
83 x11_backend_la_SOURCES = compositor-x11.c
86 if ENABLE_DRM_COMPOSITOR
87 drm_backend = drm-backend.la
88 drm_backend_la_LDFLAGS = -module -avoid-version
89 drm_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(DRM_COMPOSITOR_LIBS) \
90 ../shared/libshared.la
91 drm_backend_la_CFLAGS = \
92 $(COMPOSITOR_CFLAGS) \
93 $(DRM_COMPOSITOR_CFLAGS) \
95 drm_backend_la_SOURCES = \
108 if ENABLE_WAYLAND_COMPOSITOR
109 wayland_backend = wayland-backend.la
110 wayland_backend_la_LDFLAGS = -module -avoid-version
111 wayland_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(WAYLAND_COMPOSITOR_LIBS) \
112 ../shared/libshared.la
113 wayland_backend_la_CFLAGS = \
114 $(COMPOSITOR_CFLAGS) \
115 $(WAYLAND_COMPOSITOR_CFLAGS) \
117 wayland_backend_la_SOURCES = compositor-wayland.c
120 if ENABLE_OPENWFD_COMPOSITOR
121 openwfd_backend = openwfd-backend.la
122 openwfd_backend_la_LDFLAGS = -module -avoid-version
123 openwfd_backend_la_LIBADD = $(COMPOSITOR_LIBS) $(OPENWFD_COMPOSITOR_LIBS)
124 openwfd_backend_la_CFLAGS = $(OPENWFD_COMPOSITOR_CFLAGS) $(GCC_CFLAGS)
125 openwfd_backend_la_SOURCES = compositor-openwfd.c tty.c evdev.c evdev.h
128 if ENABLE_ANDROID_COMPOSITOR
129 android_backend = android-backend.la
130 android_backend_la_LDFLAGS = -module -avoid-version
131 android_backend_la_LIBADD = $(COMPOSITOR_LIBS)
132 android_backend_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
133 android_backend_la_CXXFLAGS = $(GCC_CXXFLAGS) $(COMPOSITOR_CFLAGS)
134 android_backend_la_SOURCES = \
135 compositor-android.c \
136 android-framebuffer.cpp \
137 android-framebuffer.h
140 if ENABLE_DESKTOP_SHELL
141 desktop_shell = desktop-shell.la
142 desktop_shell_la_LDFLAGS = -module -avoid-version
143 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) \
144 ../shared/libshared.la
145 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
146 desktop_shell_la_SOURCES = \
148 desktop-shell-protocol.c \
149 desktop-shell-server-protocol.h
152 if ENABLE_TABLET_SHELL
153 tablet_shell = tablet-shell.la
154 tablet_shell_la_LDFLAGS = -module -avoid-version
155 tablet_shell_la_LIBADD = $(COMPOSITOR_LIBS)
156 tablet_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
157 tablet_shell_la_SOURCES = \
159 tablet-shell-protocol.c \
160 tablet-shell-server-protocol.h
164 screenshooter-server-protocol.h \
165 screenshooter-protocol.c \
166 text-cursor-position-server-protocol.h \
167 text-cursor-position-protocol.c \
168 tablet-shell-protocol.c \
169 tablet-shell-server-protocol.h \
170 desktop-shell-protocol.c \
171 desktop-shell-server-protocol.h
173 CLEANFILES = $(BUILT_SOURCES)
175 @wayland_scanner_rules@