2 moduledir = $(libdir)/weston
12 DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
14 EXTRA_DIST = weston.ini.in wayland-scanner.mk
16 weston.ini : $(srcdir)/weston.ini.in
18 -e 's|@bindir[@]|$(bindir)|g' \
19 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
20 -e 's|@libexecdir[@]|$(libexecdir)|g' \
23 all-local : weston.ini validate-protocol-xml
25 CLEANFILES = weston.ini $(BUILT_SOURCES)
28 westondatadir = $(datadir)/weston
29 dist_westondata_DATA = \
35 data/icon_window.png \
37 data/sign_maximize.png \
38 data/sign_minimize.png
42 bin_PROGRAMS += wcap-decode
44 wcap_decode_SOURCES = \
49 wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
50 wcap_decode_LDADD = $(WCAP_LIBS)
54 if ENABLE_DESKTOP_SHELL
56 module_LTLIBRARIES += desktop-shell.la
58 desktop_shell_la_CPPFLAGS = \
59 -I$(top_srcdir)/shared \
61 -I$(top_builddir)/src \
62 -I$(top_builddir)/desktop-shell \
63 -DDATADIR='"$(datadir)"' \
64 -DMODULEDIR='"$(moduledir)"' \
65 -DLIBEXECDIR='"$(libexecdir)"' \
68 desktop_shell_la_LDFLAGS = -module -avoid-version
69 desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) \
71 desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
72 desktop_shell_la_SOURCES = \
73 desktop-shell/shell.h \
74 desktop-shell/shell.c \
75 desktop-shell/exposay.c \
76 desktop-shell/input-panel.c \
77 desktop-shell/desktop-shell-protocol.c \
78 desktop-shell/desktop-shell-server-protocol.h \
79 desktop-shell/xdg-shell-protocol.c \
80 desktop-shell/xdg-shell-server-protocol.h
83 desktop-shell/desktop-shell-protocol.c \
84 desktop-shell/desktop-shell-server-protocol.h \
85 desktop-shell/xdg-shell-protocol.c \
86 desktop-shell/xdg-shell-server-protocol.h
92 module_LTLIBRARIES += xwayland.la
94 xwayland_la_CPPFLAGS = \
95 -I$(top_srcdir)/shared \
97 -I$(top_builddir)/src \
98 -I$(top_builddir)/xwayland \
99 -DDATADIR='"$(datadir)"' \
100 -DMODULEDIR='"$(moduledir)"' \
101 -DLIBEXECDIR='"$(libexecdir)"' \
102 -DXSERVER_PATH='"@XSERVER_PATH@"'
104 xwayland_la_LDFLAGS = -module -avoid-version
105 xwayland_la_LIBADD = \
107 $(top_builddir)/shared/libshared-cairo.la
108 xwayland_la_CFLAGS = \
110 $(COMPOSITOR_CFLAGS) \
113 xwayland_la_SOURCES = \
114 xwayland/xwayland.h \
115 xwayland/window-manager.c \
116 xwayland/selection.c \
118 xwayland/launcher.c \
119 xwayland/xserver-protocol.c \
120 xwayland/xserver-server-protocol.h \
125 xwayland/xserver-protocol.c \
126 xwayland/xserver-server-protocol.h
131 protocol/desktop-shell.xml \
132 protocol/screenshooter.xml \
133 protocol/xserver.xml \
135 protocol/input-method.xml \
136 protocol/workspaces.xml \
137 protocol/text-cursor-position.xml \
138 protocol/wayland-test.xml \
139 protocol/xdg-shell.xml \
143 .PHONY : validate-protocol-xml
145 .%.xml.valid : $(top_srcdir)/protocol/%.xml
146 $(AM_V_GEN)$(XMLLINT) --noout --dtdvalid $(dtddir)/wayland.dtd $^ > $@
148 validate-protocol-xml : $(protocol_sources:protocol/%.xml=.%.xml.valid)
150 CLEANFILES += $(protocol_sources:protocol/%.xml=.%.xml.valid)
151 EXTRA_DIST += $(protocol_sources)
156 man_MANS = weston.1 weston.ini.5
158 if ENABLE_DRM_COMPOSITOR
159 man_MANS += weston-drm.7
163 -e 's|__weston_native_backend__|$(WESTON_NATIVE_BACKEND)|g' \
164 -e 's|__weston_modules_dir__|$(pkglibdir)|g' \
165 -e 's|__weston_shell_client__|$(WESTON_SHELL_CLIENT)|g' \
166 -e 's|__version__|$(PACKAGE_VERSION)|g'
168 SUFFIXES = .1 .5 .7 .man
170 %.1 %.5 %.7 : man/%.man
171 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
178 CLEANFILES += $(man_MANS)
181 wayland_protocoldir = $(top_srcdir)/protocol
182 include $(top_srcdir)/wayland-scanner.mk