2 -I$(top_builddir)/protocol/tizen \
3 -I$(top_builddir)/protocol/unstable \
4 -I$(top_builddir)/protocol/stable \
8 pkgconfigdir = $(libdir)/pkgconfig
9 protocoldir = $(libdir)
10 protocolincludedir = $(includedir)/wayland-extension
13 protocolinclude_HEADERS = src/wayland-extension-version.h
14 protocol_LTLIBRARIES =
16 ### protocol/tizen/protocol.[ch]
17 protocol/tizen/%-protocol.c : $(top_srcdir)/protocol/tizen/%.xml
18 $(wayland_scanner) code < $< > $@
19 protocol/tizen/%-server-protocol.h : $(top_srcdir)/protocol/tizen/%.xml
20 $(wayland_scanner) server-header < $< > $@
21 protocol/tizen/%-client-protocol.h : $(top_srcdir)/protocol/tizen/%.xml
22 $(wayland_scanner) client-header < $< > $@
24 ### protocol/unstable/protocol.[ch]
25 protocol/unstable/%-protocol.c : $(top_srcdir)/protocol/unstable/*/%.xml
26 $(wayland_scanner) code < $< > $@
27 protocol/unstable/%-server-protocol.h : $(top_srcdir)/protocol/unstable/*/%.xml
28 $(wayland_scanner) server-header < $< > $@
29 protocol/unstable/%-client-protocol.h : $(top_srcdir)/protocol/unstable/*/%.xml
30 $(wayland_scanner) client-header < $< > $@
32 ### protocol/stable/protocol.[ch]
33 protocol/stable/%-protocol.c : $(top_srcdir)/protocol/stable/*/%.xml
34 $(wayland_scanner) code < $< > $@
35 protocol/stable/%-server-protocol.h : $(top_srcdir)/protocol/stable/*/%.xml
36 $(wayland_scanner) server-header < $< > $@
37 protocol/stable/%-client-protocol.h : $(top_srcdir)/protocol/stable/*/%.xml
38 $(wayland_scanner) client-header < $< > $@
41 src/%-server.pc : $(top_srcdir)/src/template-server.pc
42 $(cp) $< $@ && $(perl) -pi -e 's|template|$*|g' $@
43 src/%-client.pc : $(top_srcdir)/src/template-client.pc
44 $(cp) $< $@ && $(perl) -pi -e 's|template|$*|g' $@
46 ### xdg-shell (unstable v5)
47 protocol_LTLIBRARIES += \
48 libxdg-shell-unstable-v5-server.la \
49 libxdg-shell-unstable-v5-client.la
51 src/xdg-shell-unstable-v5-server.pc \
52 src/xdg-shell-unstable-v5-client.pc
53 protocolinclude_HEADERS += \
54 protocol/unstable/xdg-shell-unstable-v5-server-protocol.h \
55 protocol/unstable/xdg-shell-unstable-v5-client-protocol.h
56 libxdg_shell_unstable_v5_server_la_SOURCES = protocol/unstable/xdg-shell-unstable-v5-protocol.c
57 libxdg_shell_unstable_v5_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@
58 libxdg_shell_unstable_v5_server_la_LIBADD = @WAYLAND_SERVER_LIBS@
59 libxdg_shell_unstable_v5_client_la_SOURCES = protocol/unstable/xdg-shell-unstable-v5-protocol.c
60 libxdg_shell_unstable_v5_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
61 libxdg_shell_unstable_v5_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@
63 ### xdg-shell (unstable v6)
64 protocol_LTLIBRARIES += \
65 libxdg-shell-unstable-v6-server.la \
66 libxdg-shell-unstable-v6-client.la
68 src/xdg-shell-unstable-v6-server.pc \
69 src/xdg-shell-unstable-v6-client.pc
70 protocolinclude_HEADERS += \
71 protocol/unstable/xdg-shell-unstable-v6-server-protocol.h \
72 protocol/unstable/xdg-shell-unstable-v6-client-protocol.h
73 libxdg_shell_unstable_v6_server_la_SOURCES = protocol/unstable/xdg-shell-unstable-v6-protocol.c
74 libxdg_shell_unstable_v6_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@
75 libxdg_shell_unstable_v6_server_la_LIBADD = @WAYLAND_SERVER_LIBS@
76 libxdg_shell_unstable_v6_client_la_SOURCES = protocol/unstable/xdg-shell-unstable-v6-protocol.c
77 libxdg_shell_unstable_v6_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
78 libxdg_shell_unstable_v6_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@
80 ### xdg-shell (stable v1)
81 protocol_LTLIBRARIES += \
82 libxdg-shell-server.la \
83 libxdg-shell-client.la
85 src/xdg-shell-server.pc \
86 src/xdg-shell-client.pc
87 protocolinclude_HEADERS += \
88 protocol/stable/xdg-shell-server-protocol.h \
89 protocol/stable/xdg-shell-client-protocol.h
90 libxdg_shell_server_la_SOURCES = protocol/stable/xdg-shell-protocol.c
91 libxdg_shell_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@
92 libxdg_shell_server_la_LIBADD = @WAYLAND_SERVER_LIBS@
93 libxdg_shell_client_la_SOURCES = protocol/stable/xdg-shell-protocol.c
94 libxdg_shell_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
95 libxdg_shell_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@
98 protocol_LTLIBRARIES += \
99 libinput-method-server.la \
100 libinput-method-client.la
102 src/input-method-server.pc \
103 src/input-method-client.pc
104 protocolinclude_HEADERS += \
105 protocol/tizen/input-method-server-protocol.h \
106 protocol/tizen/input-method-client-protocol.h
107 libinput_method_server_la_SOURCES = protocol/tizen/input-method-protocol.c
108 libinput_method_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@
109 libinput_method_server_la_LIBADD = @WAYLAND_SERVER_LIBS@
110 libinput_method_client_la_SOURCES = protocol/tizen/input-method-protocol.c
111 libinput_method_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
112 libinput_method_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@
115 protocol_LTLIBRARIES += \
116 libfullscreen-shell-server.la \
117 libfullscreen-shell-client.la
119 src/fullscreen-shell-server.pc \
120 src/fullscreen-shell-client.pc
121 protocolinclude_HEADERS += \
122 protocol/tizen/fullscreen-shell-server-protocol.h \
123 protocol/tizen/fullscreen-shell-client-protocol.h
124 libfullscreen_shell_server_la_SOURCES = protocol/tizen/fullscreen-shell-protocol.c
125 libfullscreen_shell_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@
126 libfullscreen_shell_server_la_LIBADD = @WAYLAND_SERVER_LIBS@
127 libfullscreen_shell_client_la_SOURCES = protocol/tizen/fullscreen-shell-protocol.c
128 libfullscreen_shell_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
129 libfullscreen_shell_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@
132 protocol_LTLIBRARIES += \
133 libscaler-server.la \
136 src/scaler-server.pc \
138 protocolinclude_HEADERS += \
139 protocol/tizen/scaler-server-protocol.h \
140 protocol/tizen/scaler-client-protocol.h
141 libscaler_server_la_SOURCES = protocol/tizen/scaler-protocol.c
142 libscaler_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@
143 libscaler_server_la_LIBADD = @WAYLAND_SERVER_LIBS@
144 libscaler_client_la_SOURCES = protocol/tizen/scaler-protocol.c
145 libscaler_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
146 libscaler_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@
149 protocol_LTLIBRARIES += \
150 libtransform-server.la \
151 libtransform-client.la
153 src/transform-server.pc \
154 src/transform-client.pc
155 protocolinclude_HEADERS += \
156 protocol/tizen/transform-server-protocol.h \
157 protocol/tizen/transform-client-protocol.h
158 libtransform_server_la_SOURCES = protocol/tizen/transform-protocol.c
159 libtransform_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@
160 libtransform_server_la_LIBADD = @WAYLAND_SERVER_LIBS@
161 libtransform_client_la_SOURCES = protocol/tizen/transform-protocol.c
162 libtransform_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
163 libtransform_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@
166 protocol_LTLIBRARIES += \
167 libscreenshooter-server.la \
168 libscreenshooter-client.la
170 src/screenshooter-server.pc \
171 src/screenshooter-client.pc
172 protocolinclude_HEADERS += \
173 protocol/tizen/screenshooter-server-protocol.h \
174 protocol/tizen/screenshooter-client-protocol.h
175 libscreenshooter_server_la_SOURCES = protocol/tizen/screenshooter-protocol.c
176 libscreenshooter_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@
177 libscreenshooter_server_la_LIBADD = @WAYLAND_SERVER_LIBS@
178 libscreenshooter_client_la_SOURCES = protocol/tizen/screenshooter-protocol.c
179 libscreenshooter_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
180 libscreenshooter_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@
182 ### text-cursor-position
183 protocol_LTLIBRARIES += \
184 libtext-cursor-position-server.la \
185 libtext-cursor-position-client.la
187 src/text-cursor-position-server.pc \
188 src/text-cursor-position-client.pc
189 protocolinclude_HEADERS += \
190 protocol/tizen/text-cursor-position-server-protocol.h \
191 protocol/tizen/text-cursor-position-client-protocol.h
192 libtext_cursor_position_server_la_SOURCES = protocol/tizen/text-cursor-position-protocol.c
193 libtext_cursor_position_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@
194 libtext_cursor_position_server_la_LIBADD = @WAYLAND_SERVER_LIBS@
195 libtext_cursor_position_client_la_SOURCES = protocol/tizen/text-cursor-position-protocol.c
196 libtext_cursor_position_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
197 libtext_cursor_position_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@
200 protocol_LTLIBRARIES += \
206 protocolinclude_HEADERS += \
207 protocol/tizen/text-server-protocol.h \
208 protocol/tizen/text-client-protocol.h
209 libtext_server_la_SOURCES = protocol/tizen/text-protocol.c
210 libtext_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@
211 libtext_server_la_LIBADD = @WAYLAND_SERVER_LIBS@
212 libtext_client_la_SOURCES = protocol/tizen/text-protocol.c
213 libtext_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
214 libtext_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@
217 protocol_LTLIBRARIES += \
218 libtizen-extension-server.la \
219 libtizen-extension-client.la
221 src/tizen-extension-server.pc \
222 src/tizen-extension-client.pc
223 protocolinclude_HEADERS += \
224 protocol/tizen/tizen-extension-server-protocol.h \
225 protocol/tizen/tizen-extension-client-protocol.h
226 libtizen_extension_server_la_SOURCES = protocol/tizen/tizen-extension-protocol.c
227 libtizen_extension_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@
228 libtizen_extension_server_la_LIBADD = @WAYLAND_SERVER_LIBS@
229 libtizen_extension_client_la_SOURCES = protocol/tizen/tizen-extension-protocol.c
230 libtizen_extension_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
231 libtizen_extension_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@
233 ### tizen-remote-surface
234 protocol_LTLIBRARIES += \
235 libtizen-remote-surface-server.la \
236 libtizen-remote-surface-client.la
238 src/tizen-remote-surface-server.pc \
239 src/tizen-remote-surface-client.pc
240 protocolinclude_HEADERS += \
241 protocol/tizen/tizen-remote-surface-server-protocol.h \
242 protocol/tizen/tizen-remote-surface-client-protocol.h
243 libtizen_remote_surface_server_la_SOURCES = protocol/tizen/tizen-remote-surface-protocol.c
244 libtizen_remote_surface_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@
245 libtizen_remote_surface_server_la_LIBADD = @WAYLAND_SERVER_LIBS@
246 libtizen_remote_surface_client_la_SOURCES = protocol/tizen/tizen-remote-surface-protocol.c
247 libtizen_remote_surface_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
248 libtizen_remote_surface_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@
251 protocol_LTLIBRARIES += \
252 libtizen-launch-server.la \
253 libtizen-launch-client.la
255 src/tizen-launch-server.pc \
256 src/tizen-launch-client.pc
257 protocolinclude_HEADERS += \
258 protocol/tizen/tizen-launch-server-protocol.h \
259 protocol/tizen/tizen-launch-client-protocol.h
260 libtizen_launch_server_la_SOURCES = protocol/tizen/tizen-launch-protocol.c
261 libtizen_launch_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@
262 libtizen_launch_server_la_LIBADD = @WAYLAND_SERVER_LIBS@
263 libtizen_launch_client_la_SOURCES = protocol/tizen/tizen-launch-protocol.c
264 libtizen_launch_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
265 libtizen_launch_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@
268 protocol_LTLIBRARIES += \
269 libtizen-surface-server.la \
270 libtizen-surface-client.la
272 src/tizen-surface-server.pc \
273 src/tizen-surface-client.pc
274 protocolinclude_HEADERS += \
275 protocol/tizen/tizen-surface-server-protocol.h \
276 protocol/tizen/tizen-surface-client-protocol.h
277 libtizen_surface_server_la_SOURCES = protocol/tizen/tizen-surface-protocol.c
278 libtizen_surface_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@
279 libtizen_surface_server_la_LIBADD = @WAYLAND_SERVER_LIBS@
280 libtizen_surface_client_la_SOURCES = protocol/tizen/tizen-surface-protocol.c
281 libtizen_surface_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
282 libtizen_surface_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@
285 protocol_LTLIBRARIES += \
286 libtizen-dpms-server.la \
287 libtizen-dpms-client.la
289 src/tizen-dpms-server.pc \
290 src/tizen-dpms-client.pc
291 protocolinclude_HEADERS += \
292 protocol/tizen/tizen-dpms-server-protocol.h \
293 protocol/tizen/tizen-dpms-client-protocol.h
294 libtizen_dpms_server_la_SOURCES = protocol/tizen/tizen-dpms-protocol.c
295 libtizen_dpms_server_la_CFLAGS = @WAYLAND_SERVER_CFLAGS@
296 libtizen_dpms_server_la_LIBADD = @WAYLAND_SERVER_LIBS@
297 libtizen_dpms_client_la_SOURCES = protocol/tizen/tizen-dpms-protocol.c
298 libtizen_dpms_client_la_CFLAGS = @WAYLAND_CLIENT_CFLAGS@
299 libtizen_dpms_client_la_LIBADD = @WAYLAND_CLIENT_LIBS@
301 ### wayland-protocols
302 unstable_protocols = \
303 protocol/unstable/pointer-gestures/pointer-gestures-unstable-v1.xml \
304 protocol/unstable/fullscreen-shell/fullscreen-shell-unstable-v1.xml \
305 protocol/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml \
306 protocol/unstable/text-input/text-input-unstable-v1.xml \
307 protocol/unstable/text-input/text-input-unstable-v3.xml \
308 protocol/unstable/input-method/input-method-unstable-v1.xml \
309 protocol/unstable/xdg-shell/xdg-shell-unstable-v5.xml \
310 protocol/unstable/xdg-shell/xdg-shell-unstable-v6.xml \
311 protocol/unstable/relative-pointer/relative-pointer-unstable-v1.xml \
312 protocol/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml \
313 protocol/unstable/tablet/tablet-unstable-v1.xml \
314 protocol/unstable/tablet/tablet-unstable-v2.xml \
315 protocol/unstable/xdg-foreign/xdg-foreign-unstable-v1.xml \
316 protocol/unstable/xdg-foreign/xdg-foreign-unstable-v2.xml \
317 protocol/unstable/idle-inhibit/idle-inhibit-unstable-v1.xml \
318 protocol/unstable/xwayland-keyboard-grab/xwayland-keyboard-grab-unstable-v1.xml \
319 protocol/unstable/keyboard-shortcuts-inhibit/keyboard-shortcuts-inhibit-unstable-v1.xml \
320 protocol/unstable/xdg-output/xdg-output-unstable-v1.xml \
321 protocol/unstable/input-timestamps/input-timestamps-unstable-v1.xml \
322 protocol/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml \
326 protocol/stable/presentation-time/presentation-time.xml \
327 protocol/stable/viewporter/viewporter.xml \
328 protocol/stable/xdg-shell/xdg-shell.xml \
331 nobase_dist_pkgdata_DATA = \
332 $(unstable_protocols) \
333 $(stable_protocols) \
337 $(sort $(foreach p,$(unstable_protocols),$(dir $p)README)) \
338 $(sort $(foreach p,$(stable_protocols),$(dir $p)README)) \
341 pkgconfig_DATA += src/wayland-protocols.pc
343 dist_check_SCRIPTS = tests/scan.sh
345 TESTS = $(unstable_protocols) $(stable_protocols)
346 TEST_EXTENSIONS = .xml
347 AM_TESTS_ENVIRONMENT = SCANNER='$(wayland_scanner)'; export SCANNER;
348 XML_LOG_COMPILER = $(srcdir)/tests/scan.sh
353 -I$(top_srcdir)/protocol/tizen \
362 tzrs_provider_SOURCES = src/examples/tzrs-provider.c
363 tzrs_provider_CFLAGS = $(AM_CFALGS)
364 tzrs_provider_LDADD = \
365 $(top_builddir)/libtizen-extension-client.la \
366 $(top_builddir)/libtizen-remote-surface-client.la \
367 $(top_builddir)/libtizen-launch-client.la \
371 tzrs_consumer_SOURCES = src/examples/tzrs-consumer.c
372 tzrs_consumer_CFLAGS = $(AM_CFALGS)
373 tzrs_consumer_LDADD = \
374 $(top_builddir)/libtizen-extension-client.la \
375 $(top_builddir)/libtizen-remote-surface-client.la \
376 $(top_builddir)/libtizen-launch-client.la \