input-method: Fix issue wayland proxy is not generated
[platform/core/uifw/wayland-extension.git] / Makefile.am
1 AM_CPPFLAGS = \
2                         -I$(top_builddir)/protocol/tizen \
3                         -I$(top_builddir)/protocol/unstable \
4                         -I$(top_builddir)/protocol/stable \
5                         -I$(top_srcdir)/src \
6                         $(NULL)
7
8 pkgconfigdir = $(libdir)/pkgconfig
9 protocoldir = $(libdir)
10 protocolincludedir = $(includedir)/wayland-extension
11
12 pkgconfig_DATA =
13 protocolinclude_HEADERS = src/wayland-extension-version.h
14 protocol_LTLIBRARIES =
15
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 < $< > $@
23
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 < $< > $@
31
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 < $< > $@
39
40 ### protocol.pc
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' $@
45
46 ### xdg-shell (unstable v5)
47 protocol_LTLIBRARIES += \
48         libxdg-shell-unstable-v5-server.la \
49         libxdg-shell-unstable-v5-client.la
50 pkgconfig_DATA += \
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@
62
63 ### xdg-shell (unstable v6)
64 protocol_LTLIBRARIES += \
65         libxdg-shell-unstable-v6-server.la \
66         libxdg-shell-unstable-v6-client.la
67 pkgconfig_DATA += \
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@
79
80 ### xdg-shell (stable v1)
81 protocol_LTLIBRARIES += \
82         libxdg-shell-server.la \
83         libxdg-shell-client.la
84 pkgconfig_DATA += \
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@
96
97 ### input-method
98 protocol_LTLIBRARIES += \
99         libinput-method-server.la \
100         libinput-method-client.la
101 pkgconfig_DATA += \
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@
113
114 ### fullscreen-shell
115 protocol_LTLIBRARIES += \
116         libfullscreen-shell-server.la \
117         libfullscreen-shell-client.la
118 pkgconfig_DATA += \
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@
130
131 ### scaler
132 protocol_LTLIBRARIES += \
133         libscaler-server.la \
134         libscaler-client.la
135 pkgconfig_DATA += \
136         src/scaler-server.pc \
137         src/scaler-client.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@
147
148 ### transformer
149 protocol_LTLIBRARIES += \
150         libtransform-server.la \
151         libtransform-client.la
152 pkgconfig_DATA += \
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@
164
165 ### screenshooter
166 protocol_LTLIBRARIES += \
167         libscreenshooter-server.la \
168         libscreenshooter-client.la
169 pkgconfig_DATA += \
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@
181
182 ### text-cursor-position
183 protocol_LTLIBRARIES += \
184         libtext-cursor-position-server.la \
185         libtext-cursor-position-client.la
186 pkgconfig_DATA += \
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@
198
199 ### text
200 protocol_LTLIBRARIES += \
201         libtext-server.la \
202         libtext-client.la
203 pkgconfig_DATA += \
204         src/text-server.pc \
205         src/text-client.pc
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@
215
216 ### tizen-extension
217 protocol_LTLIBRARIES += \
218         libtizen-extension-server.la \
219         libtizen-extension-client.la
220 pkgconfig_DATA += \
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@
232
233 ### tizen-remote-surface
234 protocol_LTLIBRARIES += \
235         libtizen-remote-surface-server.la \
236         libtizen-remote-surface-client.la
237 pkgconfig_DATA += \
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@
249
250 ### tizen-launch
251 protocol_LTLIBRARIES += \
252         libtizen-launch-server.la \
253         libtizen-launch-client.la
254 pkgconfig_DATA += \
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@
266
267 ### tizen-surface
268 protocol_LTLIBRARIES += \
269         libtizen-surface-server.la \
270         libtizen-surface-client.la
271 pkgconfig_DATA += \
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@
283
284 ### tizen-dpms
285 protocol_LTLIBRARIES += \
286         libtizen-dpms-server.la \
287         libtizen-dpms-client.la
288 pkgconfig_DATA += \
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@
300
301 ### tizen-hwc
302 protocol_LTLIBRARIES += \
303         libtizen-hwc-server.la \
304         libtizen-hwc-client.la
305 pkgconfig_DATA += \
306         src/tizen-hwc-server.pc \
307         src/tizen-hwc-client.pc
308 protocolinclude_HEADERS += \
309         protocol/tizen/tizen-hwc-server-protocol.h \
310         protocol/tizen/tizen-hwc-client-protocol.h
311 libtizen_hwc_server_la_SOURCES = protocol/tizen/tizen-hwc-protocol.c
312 libtizen_hwc_server_la_CFLAGS  = @WAYLAND_SERVER_CFLAGS@
313 libtizen_hwc_server_la_LIBADD  = @WAYLAND_SERVER_LIBS@
314 libtizen_hwc_client_la_SOURCES = protocol/tizen/tizen-hwc-protocol.c
315 libtizen_hwc_client_la_CFLAGS  = @WAYLAND_CLIENT_CFLAGS@
316 libtizen_hwc_client_la_LIBADD  = @WAYLAND_CLIENT_LIBS@
317
318 ### presentation_time
319 protocol_LTLIBRARIES += \
320         libpresentation-time-server.la \
321         libpresentation-time-client.la
322 pkgconfig_DATA += \
323         src/presentation-time-server.pc \
324         src/presentation-time-client.pc
325 protocolinclude_HEADERS += \
326         protocol/stable/presentation-time-server-protocol.h \
327         protocol/stable/presentation-time-client-protocol.h
328 libpresentation_time_server_la_SOURCES = protocol/stable/presentation-time-protocol.c
329 libpresentation_time_server_la_CFLAGS  = @WAYLAND_SERVER_CFLAGS@
330 libpresentation_time_server_la_LIBADD  = @WAYLAND_SERVER_LIBS@
331 libpresentation_time_client_la_SOURCES = protocol/stable/presentation-time-protocol.c
332 libpresentation_time_client_la_CFLAGS  = @WAYLAND_CLIENT_CFLAGS@
333 libpresentation_time_client_la_LIBADD  = @WAYLAND_CLIENT_LIBS@
334
335 ### tizen-policy-ext
336 protocol_LTLIBRARIES += \
337         libtizen-policy-ext-server.la \
338         libtizen-policy-ext-client.la
339 pkgconfig_DATA += \
340         src/tizen-policy-ext-server.pc \
341         src/tizen-policy-ext-client.pc
342 protocolinclude_HEADERS += \
343         protocol/tizen/tizen-policy-ext-server-protocol.h \
344         protocol/tizen/tizen-policy-ext-client-protocol.h
345 libtizen_policy_ext_server_la_SOURCES = protocol/tizen/tizen-policy-ext-protocol.c
346 libtizen_policy_ext_server_la_CFLAGS  = @WAYLAND_SERVER_CFLAGS@
347 libtizen_policy_ext_server_la_LIBADD  = @WAYLAND_SERVER_LIBS@
348 libtizen_policy_ext_client_la_SOURCES = protocol/tizen/tizen-policy-ext-protocol.c
349 libtizen_policy_ext_client_la_CFLAGS  = @WAYLAND_CLIENT_CFLAGS@
350 libtizen_policy_ext_client_la_LIBADD  = @WAYLAND_CLIENT_LIBS@
351
352 ### linux-explicit-synchronization (unstable v1)
353 protocol_LTLIBRARIES += \
354         liblinux-explicit-synchronization-unstable-v1-server.la \
355         liblinux-explicit-synchronization-unstable-v1-client.la
356 pkgconfig_DATA += \
357         src/linux-explicit-synchronization-unstable-v1-server.pc \
358         src/linux-explicit-synchronization-unstable-v1-client.pc
359 protocolinclude_HEADERS += \
360         protocol/unstable/linux-explicit-synchronization-unstable-v1-server-protocol.h \
361         protocol/unstable/linux-explicit-synchronization-unstable-v1-client-protocol.h
362 liblinux_explicit_synchronization_unstable_v1_server_la_SOURCES = protocol/unstable/linux-explicit-synchronization-unstable-v1-protocol.c
363 liblinux_explicit_synchronization_unstable_v1_server_la_CFLAGS  = @WAYLAND_SERVER_CFLAGS@
364 liblinux_explicit_synchronization_unstable_v1_server_la_LIBADD  = @WAYLAND_SERVER_LIBS@
365 liblinux_explicit_synchronization_unstable_v1_client_la_SOURCES = protocol/unstable/linux-explicit-synchronization-unstable-v1-protocol.c
366 liblinux_explicit_synchronization_unstable_v1_client_la_CFLAGS  = @WAYLAND_CLIENT_CFLAGS@
367 liblinux_explicit_synchronization_unstable_v1_client_la_LIBADD  = @WAYLAND_CLIENT_LIBS@
368
369 ### wtz_foreign
370 protocol_LTLIBRARIES += \
371                 libwtz-foreign-server.la \
372                 libwtz-foreign-client.la
373 pkgconfig_DATA += \
374         src/wtz-foreign-server.pc \
375         src/wtz-foreign-client.pc
376 protocolinclude_HEADERS += \
377                 protocol/tizen/wtz-foreign-server-protocol.h \
378                 protocol/tizen/wtz-foreign-client-protocol.h
379 libwtz_foreign_server_la_SOURCES = protocol/tizen/wtz-foreign-protocol.c
380 libwtz_foreign_server_la_CFLAGS  = @WAYLAND_SERVER_CFLAGS@
381 libwtz_foreign_server_la_LIBADD  = @WAYLAND_SERVER_LIBS@
382 libwtz_foreign_client_la_SOURCES = protocol/tizen/wtz-foreign-protocol.c
383 libwtz_foreign_client_la_CFLAGS  = @WAYLAND_CLIENT_CFLAGS@
384 libwtz_foreign_client_la_LIBADD  = @WAYLAND_CLIENT_LIBS@
385
386 ### wayland-protocols
387 unstable_protocols = \
388         protocol/unstable/pointer-gestures/pointer-gestures-unstable-v1.xml \
389         protocol/unstable/fullscreen-shell/fullscreen-shell-unstable-v1.xml \
390         protocol/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml \
391         protocol/unstable/text-input/text-input-unstable-v1.xml \
392         protocol/unstable/text-input/text-input-unstable-v3.xml \
393         protocol/unstable/input-method/input-method-unstable-v1.xml \
394         protocol/unstable/xdg-shell/xdg-shell-unstable-v5.xml \
395         protocol/unstable/xdg-shell/xdg-shell-unstable-v6.xml \
396         protocol/unstable/relative-pointer/relative-pointer-unstable-v1.xml \
397         protocol/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml \
398         protocol/unstable/tablet/tablet-unstable-v1.xml \
399         protocol/unstable/tablet/tablet-unstable-v2.xml \
400         protocol/unstable/xdg-foreign/xdg-foreign-unstable-v1.xml \
401         protocol/unstable/xdg-foreign/xdg-foreign-unstable-v2.xml \
402         protocol/unstable/idle-inhibit/idle-inhibit-unstable-v1.xml \
403         protocol/unstable/xwayland-keyboard-grab/xwayland-keyboard-grab-unstable-v1.xml \
404         protocol/unstable/keyboard-shortcuts-inhibit/keyboard-shortcuts-inhibit-unstable-v1.xml \
405         protocol/unstable/xdg-output/xdg-output-unstable-v1.xml \
406         protocol/unstable/input-timestamps/input-timestamps-unstable-v1.xml \
407         protocol/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml \
408         protocol/unstable/linux-explicit-synchronization/linux-explicit-synchronization-unstable-v1.xml \
409         protocol/unstable/primary-selection/primary-selection-unstable-v1.xml \
410         $(NULL)
411
412 stable_protocols = \
413         protocol/stable/presentation-time/presentation-time.xml \
414         protocol/stable/viewporter/viewporter.xml \
415         protocol/stable/xdg-shell/xdg-shell.xml \
416         $(NULL)
417
418 tizen_protocols = \
419         protocol/tizen/tizen-launch.xml \
420         protocol/tizen/text-cursor-position.xml \
421         protocol/tizen/tizen-dpms.xml \
422         protocol/tizen/tizen-hwc.xml \
423         protocol/tizen/scaler.xml \
424         protocol/tizen/tizen-remote-surface.xml \
425         protocol/tizen/transform.xml \
426         protocol/tizen/tizen-surface.xml \
427         protocol/tizen/text.xml \
428         protocol/tizen/input-method.xml \
429         protocol/tizen/screenshooter.xml \
430         protocol/tizen/tizen-extension.xml \
431         protocol/tizen/fullscreen-shell.xml \
432         protocol/tizen/tizen-policy-ext.xml \
433                 protocol/tizen/wtz-foreign.xml \
434         $(NULL)
435
436 nobase_dist_pkgdata_DATA = \
437         $(unstable_protocols) \
438         $(stable_protocols) \
439         $(tizen_protocols) \
440         $(NULL)
441
442 dist_noinst_DATA = \
443         $(sort $(foreach p,$(unstable_protocols),$(dir $p)README)) \
444         $(sort $(foreach p,$(stable_protocols),$(dir $p)README)) \
445         $(NULL)
446
447 pkgconfig_DATA += src/wayland-protocols.pc
448
449 dist_check_SCRIPTS = tests/scan.sh
450
451 TESTS = $(unstable_protocols) $(stable_protocols) $(tizen_protocols)
452 TEST_EXTENSIONS = .xml
453 AM_TESTS_ENVIRONMENT = SCANNER='$(wayland_scanner)'; export SCANNER;
454 XML_LOG_COMPILER = $(srcdir)/tests/scan.sh
455
456
457 if BUILD_EXAMPLES
458 AM_CPPFLAGS += \
459    -I$(top_srcdir)/protocol/tizen \
460    @WL_TBM_CFLAGS@ \
461    @ECORE_WL2_CFLAGS@ \
462    @ELEMENTARY_CFLAGS@
463
464 bin_PROGRAMS = \
465    tzrs-provider \
466    tzrs-consumer
467
468 tzrs_provider_SOURCES = src/examples/tzrs-provider.c
469 tzrs_provider_CFLAGS = $(AM_CFALGS)
470 tzrs_provider_LDADD = \
471    $(top_builddir)/libtizen-extension-client.la \
472    $(top_builddir)/libtizen-remote-surface-client.la \
473    $(top_builddir)/libtizen-launch-client.la \
474    @ECORE_WL2_LIBS@ \
475    @ELEMENTARY_LIBS@
476
477 tzrs_consumer_SOURCES = src/examples/tzrs-consumer.c
478 tzrs_consumer_CFLAGS = $(AM_CFALGS)
479 tzrs_consumer_LDADD = \
480    $(top_builddir)/libtizen-extension-client.la \
481    $(top_builddir)/libtizen-remote-surface-client.la \
482    $(top_builddir)/libtizen-launch-client.la \
483    @WL_TBM_LIBS@ \
484    @ECORE_WL2_LIBS@ \
485    @ELEMENTARY_LIBS@
486 endif
487
488 bin_PROGRAMS = libwayland-extension-unittests
489
490 libwayland_extension_unittests_SOURCES = \
491         unittests/tc-main.cpp \
492         unittests/mockcompositor.cpp \
493         unittests/mockclient.cpp \
494         unittests/tc-mockcompositor.cpp \
495         unittests/tc-tizen-hwc.cpp
496
497 libwayland_extension_unittests_SOURCES += \
498         protocol/tizen/tizen-hwc-protocol.c
499
500 libwayland_extension_unittests_CXXFLAGS = \
501         -I$(top_srcdir)/protocol/tizen \
502         ${CXXFLAGS} \
503         @GMOCK_CFLAGS@ \
504         @WAYLAND_SERVER_CFLAGS@ \
505         @WAYLAND_CLIENT_CFLAGS@
506
507 libwayland_extension_unittests_LDFLAGS = \
508         ${LDFLAGS} \
509         @GMOCK_LIBS@ \
510         @WAYLAND_SERVER_LIBS@ \
511         @WAYLAND_CLIENT_LIBS@
512
513 check:
514         ./libwayland-extension-unitests
515