blob: 526e196b98dbef7e1f150ca889ee822716f89619 [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øgsberg2ba10df2013-12-03 16:38:15 -080010 tests \
Kristian Høgsberg2ba10df2013-12-03 16:38:15 -080011 man
Kristian Høgsberg61cfa662012-05-26 13:19:22 -040012
Kristian Høgsberg850f24c2012-02-09 09:20:44 -050013DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install
Kristian Høgsberg24639cc2013-02-25 13:03:15 -050014
Neil Robertse3de16e2013-11-22 16:46:00 +000015EXTRA_DIST = weston.ini.in wayland-scanner.mk
16
17weston.ini : $(srcdir)/weston.ini.in
18 $(AM_V_GEN)$(SED) \
19 -e 's|@bindir[@]|$(bindir)|g' \
20 -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g' \
21 -e 's|@libexecdir[@]|$(libexecdir)|g' \
22 $< > $@
23
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -080024all-local : weston.ini validate-protocol-xml
Kristian Høgsberg98463742013-12-16 23:12:46 -080025
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -080026CLEANFILES = weston.ini $(BUILT_SOURCES)
Kristian Høgsberg5b9f9f82014-01-27 21:40:28 -080027
28
29westondatadir = $(datadir)/weston
30dist_westondata_DATA = \
31 data/wayland.svg \
32 data/wayland.png \
33 data/pattern.png \
34 data/terminal.png \
35 data/border.png \
36 data/icon_window.png \
37 data/sign_close.png \
38 data/sign_maximize.png \
39 data/sign_minimize.png
Kristian Høgsberge895f142014-01-27 21:46:30 -080040
41
42if BUILD_WCAP_TOOLS
43bin_PROGRAMS += wcap-decode
44
45wcap_decode_SOURCES = \
46 wcap/main.c \
47 wcap/wcap-decode.c \
48 wcap/wcap-decode.h
49
50wcap_decode_CFLAGS = $(GCC_CFLAGS) $(WCAP_CFLAGS)
51wcap_decode_LDADD = $(WCAP_LIBS)
52endif
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -080053
54
55if ENABLE_DESKTOP_SHELL
56
57module_LTLIBRARIES += desktop-shell.la
58
59desktop_shell_la_CPPFLAGS = \
60 -I$(top_srcdir)/shared \
61 -I$(top_srcdir)/src \
62 -I$(top_builddir)/src \
63 -I$(top_builddir)/desktop-shell \
64 -DDATADIR='"$(datadir)"' \
65 -DMODULEDIR='"$(moduledir)"' \
66 -DLIBEXECDIR='"$(libexecdir)"' \
67 -DIN_WESTON
68
69desktop_shell_la_LDFLAGS = -module -avoid-version
70desktop_shell_la_LIBADD = $(COMPOSITOR_LIBS) \
71 shared/libshared.la
72desktop_shell_la_CFLAGS = $(GCC_CFLAGS) $(COMPOSITOR_CFLAGS)
73desktop_shell_la_SOURCES = \
74 desktop-shell/shell.h \
75 desktop-shell/shell.c \
76 desktop-shell/exposay.c \
77 desktop-shell/input-panel.c \
78 desktop-shell/desktop-shell-protocol.c \
79 desktop-shell/desktop-shell-server-protocol.h \
80 desktop-shell/xdg-shell-protocol.c \
81 desktop-shell/xdg-shell-server-protocol.h
82
83BUILT_SOURCES += \
84 desktop-shell/desktop-shell-protocol.c \
85 desktop-shell/desktop-shell-server-protocol.h \
86 desktop-shell/xdg-shell-protocol.c \
87 desktop-shell/xdg-shell-server-protocol.h
88endif
89
Kristian Høgsberg058bd322014-01-27 21:59:55 -080090
91if ENABLE_XWAYLAND
92
93module_LTLIBRARIES += xwayland.la
94
95xwayland_la_CPPFLAGS = \
96 -I$(top_srcdir)/shared \
97 -I$(top_srcdir)/src \
98 -I$(top_builddir)/src \
99 -I$(top_builddir)/xwayland \
100 -DDATADIR='"$(datadir)"' \
101 -DMODULEDIR='"$(moduledir)"' \
102 -DLIBEXECDIR='"$(libexecdir)"' \
103 -DXSERVER_PATH='"@XSERVER_PATH@"'
104
105xwayland_la_LDFLAGS = -module -avoid-version
106xwayland_la_LIBADD = \
107 $(XWAYLAND_LIBS) \
108 $(top_builddir)/shared/libshared-cairo.la
109xwayland_la_CFLAGS = \
110 $(GCC_CFLAGS) \
111 $(COMPOSITOR_CFLAGS) \
112 $(PIXMAN_CFLAGS) \
113 $(CAIRO_CFLAGS)
114xwayland_la_SOURCES = \
115 xwayland/xwayland.h \
116 xwayland/window-manager.c \
117 xwayland/selection.c \
118 xwayland/dnd.c \
119 xwayland/launcher.c \
120 xwayland/xserver-protocol.c \
121 xwayland/xserver-server-protocol.h \
122 xwayland/hash.c \
123 xwayland/hash.h
124
125BUILT_SOURCES += \
126 xwayland/xserver-protocol.c \
127 xwayland/xserver-server-protocol.h
128endif
129
Kristian Høgsbergf9bc6f62014-01-27 22:26:29 -0800130
131protocol_sources = \
132 protocol/desktop-shell.xml \
133 protocol/screenshooter.xml \
134 protocol/xserver.xml \
135 protocol/text.xml \
136 protocol/input-method.xml \
137 protocol/workspaces.xml \
138 protocol/text-cursor-position.xml \
139 protocol/wayland-test.xml \
140 protocol/xdg-shell.xml \
141 protocol/scaler.xml
142
143if HAVE_XMLLINT
144.PHONY : validate-protocol-xml
145
146.%.xml.valid : $(top_srcdir)/protocol/%.xml
147 $(AM_V_GEN)$(XMLLINT) --noout --dtdvalid $(dtddir)/wayland.dtd $^ > $@
148
149validate-protocol-xml : $(protocol_sources:protocol/%.xml=.%.xml.valid)
150
151CLEANFILES += $(protocol_sources:protocol/%.xml=.%.xml.valid)
152EXTRA_DIST += $(protocol_sources)
153
154endif
155
156
Kristian Høgsbergbc00dbe2014-01-27 21:56:12 -0800157wayland_protocoldir = $(top_srcdir)/protocol
158include $(top_srcdir)/wayland-scanner.mk