make the unittests binary at top_srcdir
[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 ### linux-explicit-synchronization (unstable v1)
336 protocol_LTLIBRARIES += \
337         liblinux-explicit-synchronization-unstable-v1-server.la \
338         liblinux-explicit-synchronization-unstable-v1-client.la
339 pkgconfig_DATA += \
340         src/linux-explicit-synchronization-unstable-v1-server.pc \
341         src/linux-explicit-synchronization-unstable-v1-client.pc
342 protocolinclude_HEADERS += \
343         protocol/unstable/linux-explicit-synchronization-unstable-v1-server-protocol.h \
344         protocol/unstable/linux-explicit-synchronization-unstable-v1-client-protocol.h
345 liblinux_explicit_synchronization_unstable_v1_server_la_SOURCES = protocol/unstable/linux-explicit-synchronization-unstable-v1-protocol.c
346 liblinux_explicit_synchronization_unstable_v1_server_la_CFLAGS  = @WAYLAND_SERVER_CFLAGS@
347 liblinux_explicit_synchronization_unstable_v1_server_la_LIBADD  = @WAYLAND_SERVER_LIBS@
348 liblinux_explicit_synchronization_unstable_v1_client_la_SOURCES = protocol/unstable/linux-explicit-synchronization-unstable-v1-protocol.c
349 liblinux_explicit_synchronization_unstable_v1_client_la_CFLAGS  = @WAYLAND_CLIENT_CFLAGS@
350 liblinux_explicit_synchronization_unstable_v1_client_la_LIBADD  = @WAYLAND_CLIENT_LIBS@
351
352 ### wayland-protocols
353 unstable_protocols = \
354         protocol/unstable/pointer-gestures/pointer-gestures-unstable-v1.xml \
355         protocol/unstable/fullscreen-shell/fullscreen-shell-unstable-v1.xml \
356         protocol/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml \
357         protocol/unstable/text-input/text-input-unstable-v1.xml \
358         protocol/unstable/text-input/text-input-unstable-v3.xml \
359         protocol/unstable/input-method/input-method-unstable-v1.xml \
360         protocol/unstable/xdg-shell/xdg-shell-unstable-v5.xml \
361         protocol/unstable/xdg-shell/xdg-shell-unstable-v6.xml \
362         protocol/unstable/relative-pointer/relative-pointer-unstable-v1.xml \
363         protocol/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml \
364         protocol/unstable/tablet/tablet-unstable-v1.xml \
365         protocol/unstable/tablet/tablet-unstable-v2.xml \
366         protocol/unstable/xdg-foreign/xdg-foreign-unstable-v1.xml \
367         protocol/unstable/xdg-foreign/xdg-foreign-unstable-v2.xml \
368         protocol/unstable/idle-inhibit/idle-inhibit-unstable-v1.xml \
369         protocol/unstable/xwayland-keyboard-grab/xwayland-keyboard-grab-unstable-v1.xml \
370         protocol/unstable/keyboard-shortcuts-inhibit/keyboard-shortcuts-inhibit-unstable-v1.xml \
371         protocol/unstable/xdg-output/xdg-output-unstable-v1.xml \
372         protocol/unstable/input-timestamps/input-timestamps-unstable-v1.xml \
373         protocol/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml \
374         protocol/unstable/linux-explicit-synchronization/linux-explicit-synchronization-unstable-v1.xml \
375         protocol/unstable/primary-selection/primary-selection-unstable-v1.xml \
376         $(NULL)
377
378 stable_protocols = \
379         protocol/stable/presentation-time/presentation-time.xml \
380         protocol/stable/viewporter/viewporter.xml \
381         protocol/stable/xdg-shell/xdg-shell.xml \
382         $(NULL)
383
384 nobase_dist_pkgdata_DATA = \
385         $(unstable_protocols) \
386         $(stable_protocols) \
387         $(NULL)
388
389 dist_noinst_DATA = \
390         $(sort $(foreach p,$(unstable_protocols),$(dir $p)README)) \
391         $(sort $(foreach p,$(stable_protocols),$(dir $p)README)) \
392         $(NULL)
393
394 pkgconfig_DATA += src/wayland-protocols.pc
395
396 dist_check_SCRIPTS = tests/scan.sh
397
398 TESTS = $(unstable_protocols) $(stable_protocols)
399 TEST_EXTENSIONS = .xml
400 AM_TESTS_ENVIRONMENT = SCANNER='$(wayland_scanner)'; export SCANNER;
401 XML_LOG_COMPILER = $(srcdir)/tests/scan.sh
402
403
404 if BUILD_EXAMPLES
405 AM_CPPFLAGS += \
406    -I$(top_srcdir)/protocol/tizen \
407    @WL_TBM_CFLAGS@ \
408    @ECORE_WL2_CFLAGS@ \
409    @ELEMENTARY_CFLAGS@
410
411 bin_PROGRAMS = \
412    tzrs-provider \
413    tzrs-consumer
414
415 tzrs_provider_SOURCES = src/examples/tzrs-provider.c
416 tzrs_provider_CFLAGS = $(AM_CFALGS)
417 tzrs_provider_LDADD = \
418    $(top_builddir)/libtizen-extension-client.la \
419    $(top_builddir)/libtizen-remote-surface-client.la \
420    $(top_builddir)/libtizen-launch-client.la \
421    @ECORE_WL2_LIBS@ \
422    @ELEMENTARY_LIBS@
423
424 tzrs_consumer_SOURCES = src/examples/tzrs-consumer.c
425 tzrs_consumer_CFLAGS = $(AM_CFALGS)
426 tzrs_consumer_LDADD = \
427    $(top_builddir)/libtizen-extension-client.la \
428    $(top_builddir)/libtizen-remote-surface-client.la \
429    $(top_builddir)/libtizen-launch-client.la \
430    @WL_TBM_LIBS@ \
431    @ECORE_WL2_LIBS@ \
432    @ELEMENTARY_LIBS@
433 endif
434
435 bin_PROGRAMS = libwayland-extension-unittests
436
437 libwayland_extension_unittests_SOURCES = \
438         unittests/tc-main.cpp \
439         unittests/mockcompositor.cpp \
440         unittests/mockclient.cpp \
441         unittests/tc-mockcompositor.cpp
442
443 libwayland_extension_unittests_CXXFLAGS = \
444         -I$(top_srcdir)/protocol/tizen \
445         ${CXXFLAGS} \
446         @GMOCK_CFLAGS@ \
447         @WAYLAND_SERVER_CFLAGS@ \
448         @WAYLAND_CLIENT_CFLAGS@
449
450 libwayland_extension_unittests_LDFLAGS = \
451         ${LDFLAGS} \
452         @GMOCK_LIBS@ \
453         @WAYLAND_SERVER_LIBS@ \
454         @WAYLAND_CLIENT_LIBS@
455
456 check:
457         ./libwayland-extension-unitests
458