blob: 3cc4deb397f466ed206972507d14d2bd97048ae9 [file] [log] [blame]
Kristian Høgsberge895f142014-01-27 21:46:30 -08001bin_PROGRAMS =
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -08002moduledir = $(libdir)/weston
3module_LTLIBRARIES =
4BUILT_SOURCES =
Kristian Høgsberge895f142014-01-27 21:46:30 -08005
Kristian Høgsberg2ba10df2013-12-03 16:38:15 -08006SUBDIRS = \
7 shared \
8 src \
Kristian Høgsberg2ba10df2013-12-03 16:38:15 -08009 clients \
Kristian Høgsberg68c5c102014-01-27 22:33:04 -080010 tests
Kristian Høgsberg61cfa662012-05-26 13:19:22 -040011
Kristian Høgsberg850f24c2012-02-09 09:20:44 -050012DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
Kristian Høgsberg24639cc2013-02-25 13:03:15 -050013
Neil Robertse3de16e2013-11-22 16:46:00 +000014EXTRA_DIST = weston.ini.in wayland-scanner.mk
15
16weston.ini : $(srcdir)/weston.ini.in
17 $(AM_V_GEN)$(SED) \
18 -e 's|@bindir[@]|$(bindir)|g' \
19 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
20 -e 's|@libexecdir[@]|$(libexecdir)|g' \
21 $< > $@
22
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -080023all-local : weston.ini validate-protocol-xml
Kristian Høgsberg98463742013-12-16 23:12:46 -080024
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -080025CLEANFILES = weston.ini $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080026
27
28westondatadir = $(datadir)/weston
29dist_westondata_DATA = \
30 data/wayland.svg \
31 data/wayland.png \
32 data/pattern.png \
33 data/terminal.png \
34 data/border.png \
35 data/icon_window.png \
36 data/sign_close.png \
37 data/sign_maximize.png \
38 data/sign_minimize.png
Kristian Høgsberge895f142014-01-27 21:46:30 -080039
40
41if BUILD_WCAP_TOOLS
42bin_PROGRAMS += wcap-decode
43
44wcap_decode_SOURCES = \
45 wcap/main.c \
46 wcap/wcap-decode.c \
47 wcap/wcap-decode.h
48
49wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
50wcap_decode_LDADD = $(WCAP_LIBS)
51endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -080052
53
54if ENABLE_DESKTOP_SHELL
55
56module_LTLIBRARIES += desktop-shell.la
57
58desktop_shell_la_CPPFLAGS = \
59 -I$(top_srcdir)/shared \
60 -I$(top_srcdir)/src \
61 -I$(top_builddir)/src \
62 -I$(top_builddir)/desktop-shell \
63 -DDATADIR='"$(datadir)"' \
64 -DMODULEDIR='"$(moduledir)"' \
65 -DLIBEXECDIR='"$(libexecdir)"' \
66 -DIN_WESTON
67
68desktop_shell_la_LDFLAGS = -module -avoid-version
69desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) \
70 shared/libshared.la
71desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
72desktop_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
81
82BUILT_SOURCES += \
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
87endif
88
Kristian Høgsberg058bd322014-01-27 21:59:55 -080089
90if ENABLE_XWAYLAND
91
92module_LTLIBRARIES += xwayland.la
93
94xwayland_la_CPPFLAGS = \
95 -I$(top_srcdir)/shared \
96 -I$(top_srcdir)/src \
97 -I$(top_builddir)/src \
98 -I$(top_builddir)/xwayland \
99 -DDATADIR='"$(datadir)"' \
100 -DMODULEDIR='"$(moduledir)"' \
101 -DLIBEXECDIR='"$(libexecdir)"' \
102 -DXSERVER_PATH='"@XSERVER_PATH@"'
103
104xwayland_la_LDFLAGS = -module -avoid-version
105xwayland_la_LIBADD = \
106 $(XWAYLAND_LIBS) \
107 $(top_builddir)/shared/libshared-cairo.la
108xwayland_la_CFLAGS = \
109 $(GCC_CFLAGS) \
110 $(COMPOSITOR_CFLAGS) \
111 $(PIXMAN_CFLAGS) \
112 $(CAIRO_CFLAGS)
113xwayland_la_SOURCES = \
114 xwayland/xwayland.h \
115 xwayland/window-manager.c \
116 xwayland/selection.c \
117 xwayland/dnd.c \
118 xwayland/launcher.c \
119 xwayland/xserver-protocol.c \
120 xwayland/xserver-server-protocol.h \
121 xwayland/hash.c \
122 xwayland/hash.h
123
124BUILT_SOURCES += \
125 xwayland/xserver-protocol.c \
126 xwayland/xserver-server-protocol.h
127endif
128
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800129
130protocol_sources = \
131 protocol/desktop-shell.xml \
132 protocol/screenshooter.xml \
133 protocol/xserver.xml \
134 protocol/text.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 \
140 protocol/scaler.xml
141
142if HAVE_XMLLINT
143.PHONY : validate-protocol-xml
144
145.%.xml.valid : $(top_srcdir)/protocol/%.xml
146 $(AM_V_GEN)$(XMLLINT) --noout --dtdvalid $(dtddir)/wayland.dtd $^ > $@
147
148validate-protocol-xml : $(protocol_sources:protocol/%.xml=.%.xml.valid)
149
150CLEANFILES += $(protocol_sources:protocol/%.xml=.%.xml.valid)
151EXTRA_DIST += $(protocol_sources)
152
153endif
154
155
Kristian Høgsberg68c5c102014-01-27 22:33:04 -0800156man_MANS = weston.1 weston.ini.5
157
158if ENABLE_DRM_COMPOSITOR
159man_MANS += weston-drm.7
160endif
161
162MAN_SUBSTS = \
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'
167
168SUFFIXES = .1 .5 .7 .man
169
170%.1 %.5 %.7 : man/%.man
171 $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
172
173EXTRA_DIST += \
174 man/weston.man \
175 man/weston-drm.man \
176 man/weston.ini.man
177
178CLEANFILES += $(man_MANS)
179
180
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800181wayland_protocoldir = $(top_srcdir)/protocol
182include $(top_srcdir)/wayland-scanner.mk