gdbus-codegen: Include docs for generated code in the GIO docs
[platform/upstream/glib.git] / gio / tests / Makefile.am
1 NULL =
2 BUILT_SOURCES =
3
4 include $(top_srcdir)/Makefile.decl
5
6 INCLUDES =                      \
7         -g                      \
8         $(gio_INCLUDES)         \
9         $(GLIB_DEBUG_FLAGS)     \
10         -DSRCDIR=\""$(srcdir)"\"
11
12 noinst_PROGRAMS = $(TEST_PROGS) $(SAMPLE_PROGS)
13 noinst_DATA = $(MISC_STUFF)
14
15 progs_ldadd     =                                       \
16         $(top_builddir)/glib/libglib-2.0.la             \
17         $(top_builddir)/gthread/libgthread-2.0.la       \
18         $(top_builddir)/gobject/libgobject-2.0.la       \
19         $(top_builddir)/gio/libgio-2.0.la
20
21 TEST_PROGS +=                   \
22         io-stream               \
23         actions                 \
24         memory-input-stream     \
25         memory-output-stream    \
26         readwrite               \
27         g-file                  \
28         g-file-info             \
29         converter-stream        \
30         data-input-stream       \
31         data-output-stream      \
32         g-icon                  \
33         buffered-input-stream   \
34         buffered-output-stream  \
35         sleepy-stream           \
36         filter-streams          \
37         volumemonitor           \
38         simple-async-result     \
39         srvtarget               \
40         contexts                \
41         gsettings               \
42         gschema-compile         \
43         async-close-output-stream \
44         gdbus-addresses         \
45         network-address         \
46         gdbus-message           \
47         socket                  \
48         pollable                \
49         $(NULL)
50
51 if OS_UNIX
52 TEST_PROGS +=                   \
53         gdbus-connection        \
54         gdbus-connection-slow   \
55         gdbus-names             \
56         gdbus-proxy             \
57         gdbus-proxy-well-known-name \
58         gdbus-introspection     \
59         gdbus-threading         \
60         gdbus-export            \
61         gdbus-error             \
62         gdbus-peer              \
63         gdbus-exit-on-close     \
64         gdbus-non-socket        \
65         gdbus-bz627724          \
66         gdbus-test-codegen      \
67         appinfo                 \
68         contenttype             \
69         file                    \
70         $(NULL)
71 endif
72
73 SAMPLE_PROGS =                          \
74         resolver                        \
75         socket-server                   \
76         socket-client                   \
77         echo-server                     \
78         httpd                           \
79         send-data                       \
80         filter-cat                      \
81         gdbus-example-export            \
82         gdbus-example-own-name          \
83         gdbus-example-watch-name        \
84         gdbus-example-watch-proxy       \
85         gdbus-example-server            \
86         gdbus-example-subtree           \
87         gdbus-example-peer              \
88         gdbus-example-proxy-subclass    \
89         gdbus-connection-flush-helper   \
90         appinfo-test                    \
91         proxy                           \
92         gapplication-example-open       \
93         gapplication-example-cmdline    \
94         gapplication-example-cmdline2   \
95         gapplication-example-cmdline3   \
96         gapplication-example-actions    \
97         gdbus-example-objectmanager-server \
98         gdbus-example-objectmanager-client \
99         $(NULL)
100
101
102 if OS_UNIX
103 TEST_PROGS += live-g-file desktop-app-info unix-fd unix-streams gapplication
104 SAMPLE_PROGS += gdbus-example-unix-fd-client
105 endif
106
107 if OS_WIN32
108 TEST_PROGS += win32-streams
109 endif
110
111 io_stream_SOURCES = io-stream.c
112 io_stream_LDADD   = $(progs_ldadd)
113
114 actions_LDADD     = $(progs_ldadd)
115
116 memory_input_stream_SOURCES       = memory-input-stream.c
117 memory_input_stream_LDADD         = $(progs_ldadd)
118
119 memory_output_stream_SOURCES      = memory-output-stream.c
120 memory_output_stream_LDADD        = $(progs_ldadd)
121
122 g_file_SOURCES    = g-file.c
123 g_file_LDADD      = $(progs_ldadd)
124
125 readwrite_SOURCES         = readwrite.c
126 readwrite_LDADD   = $(progs_ldadd)
127
128 g_file_info_SOURCES     = g-file-info.c
129 g_file_info_LDADD       = $(progs_ldadd)
130
131 converter_stream_SOURCES        = converter-stream.c
132 converter_stream_LDADD          = $(progs_ldadd)
133
134 data_input_stream_SOURCES       = data-input-stream.c
135 data_input_stream_LDADD         = $(progs_ldadd)
136
137 data_output_stream_SOURCES      = data-output-stream.c
138 data_output_stream_LDADD        = $(progs_ldadd)
139
140 async_close_output_stream_SOURCES       = async-close-output-stream.c
141 async_close_output_stream_LDADD         = $(progs_ldadd)
142
143 filter_cat_SOURCES      = filter-cat.c
144 filter_cat_LDADD        = $(progs_ldadd)
145
146 g_icon_SOURCES  = g-icon.c
147 g_icon_LDADD    = $(progs_ldadd)
148
149 buffered_input_stream_SOURCES   = buffered-input-stream.c
150 buffered_input_stream_LDADD     = $(progs_ldadd)
151
152 buffered_output_stream_SOURCES  = buffered-output-stream.c
153 buffered_output_stream_LDADD    = $(progs_ldadd)
154
155 live_g_file_SOURCES       = live-g-file.c
156 live_g_file_LDADD         = $(progs_ldadd)
157
158 desktop_app_info_SOURCES  = desktop-app-info.c
159 desktop_app_info_LDADD    = $(progs_ldadd)
160
161 unix_streams_SOURCES      = unix-streams.c
162 unix_streams_LDADD        = $(progs_ldadd) \
163         $(top_builddir)/gthread/libgthread-2.0.la
164
165 win32_streams_SOURCES     = win32-streams.c
166 win32_streams_LDADD       = $(progs_ldadd) \
167         $(top_builddir)/gthread/libgthread-2.0.la
168
169 unix_fd_SOURCES   = unix-fd.c
170 unix_fd_LDADD     = $(progs_ldadd)
171
172 simple_async_result_SOURCES     = simple-async-result.c
173 simple_async_result_LDADD       = $(progs_ldadd)
174
175 sleepy_stream_SOURCES           = sleepy-stream.c
176 sleepy_stream_LDADD             = $(progs_ldadd)
177
178 filter_streams_SOURCES          = filter-streams.c
179 filter_streams_LDADD            = $(progs_ldadd)
180
181 volumemonitor_SOURCES           = volumemonitor.c
182 volumemonitor_LDADD             = $(progs_ldadd)
183
184 resolver_SOURCES          = resolver.c
185 resolver_LDADD            = $(progs_ldadd) \
186         $(top_builddir)/gthread/libgthread-2.0.la
187
188 socket_server_SOURCES     = socket-server.c
189 socket_server_LDADD       = $(progs_ldadd) \
190         $(top_builddir)/gthread/libgthread-2.0.la
191
192 socket_client_SOURCES     = socket-client.c
193 socket_client_LDADD       = $(progs_ldadd) \
194         $(top_builddir)/gthread/libgthread-2.0.la
195
196 echo_server_SOURCES       = echo-server.c
197 echo_server_LDADD         = $(progs_ldadd) \
198         $(top_builddir)/gthread/libgthread-2.0.la
199
200 httpd_SOURCES             = httpd.c
201 httpd_LDADD               = $(progs_ldadd) \
202         $(top_builddir)/gthread/libgthread-2.0.la
203
204 send_data_SOURCES         = send-data.c
205 send_data_LDADD           = $(progs_ldadd) \
206         $(top_builddir)/gthread/libgthread-2.0.la
207
208 srvtarget_SOURCES         = srvtarget.c
209 srvtarget_LDADD           = $(progs_ldadd)
210
211 network_address_SOURCE    = network-address.c
212 network_address_LDADD     = $(progs_ldadd)
213
214 socket_SOURCE             = socket.c
215 socket_LDADD              = $(progs_ldadd)
216
217 pollable_SOURCE           = pollable.c
218 pollable_LDADD            = $(progs_ldadd)
219
220 contexts_SOURCES          = contexts.c
221 contexts_LDADD            = $(progs_ldadd) \
222         $(top_builddir)/gthread/libgthread-2.0.la
223
224 gsettings_SOURCES         = gsettings.c
225 gsettings_LDADD           = $(progs_ldadd)
226
227 gschema_compile_SOURCES   = gschema-compile.c
228 gschema_compile_LDADD     = $(progs_ldadd)
229
230 if HAVE_DBUS1
231 TEST_PROGS += gdbus-serialization
232 gdbus_serialization_SOURCES = gdbus-serialization.c gdbus-tests.h gdbus-tests.c
233 gdbus_serialization_CFLAGS = $(DBUS1_CFLAGS)
234 gdbus_serialization_LDADD = $(progs_ldadd) $(DBUS1_LIBS)
235 endif
236
237 gdbus_addresses_SOURCES = gdbus-addresses.c
238 gdbus_addresses_LDADD = $(progs_ldadd)
239
240 gdbus_bz627724_SOURCES = gdbus-bz627724.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
241 gdbus_bz627724_LDADD = $(progs_ldadd)
242
243 gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c : test-codegen.xml
244         $(PYTHON) $(top_srcdir)/gio/gdbus-codegen/codegen_main.py                                       \
245                 --interface-prefix org.project.                                                         \
246                 --generate-c-code gdbus-test-codegen-generated                                          \
247                 --c-generate-object-manager                                                             \
248                 --c-namespace Foo                                                                       \
249                 --generate-docbook gdbus-test-codegen-generated-doc                                     \
250                 --annotate "org.project.Bar" Key1 Value1                                                \
251                 --annotate "org.project.Bar" org.gtk.GDBus.Internal Value2                              \
252                 --annotate "org.project.Bar.HelloWorld()" Key3 Value3                                   \
253                 --annotate "org.project.Bar::TestSignal" Key4 Value4                                    \
254                 --annotate "org.project.Bar:ay" Key5 Value5                                             \
255                 --annotate "org.project.Bar.TestPrimitiveTypes()[val_int32]" Key6 Value6                \
256                 --annotate "org.project.Bar.TestPrimitiveTypes()[ret_uint32]" Key7 Value7               \
257                 --annotate "org.project.Bar::TestSignal[array_of_strings]" Key8 Value8                  \
258                 test-codegen.xml                                                                        \
259                 $(NULL)
260
261 BUILT_SOURCES += gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h
262
263 gdbus_test_codegen_SOURCES  = gdbus-test-codegen.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
264 gdbus_test_codegen_SOURCES += gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h
265 gdbus_test_codegen_LDADD = $(progs_ldadd)
266
267 gdbus_connection_SOURCES = gdbus-connection.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
268 gdbus_connection_LDADD = $(progs_ldadd)
269
270 gdbus_connection_slow_SOURCES = gdbus-connection-slow.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
271 gdbus_connection_slow_LDADD = $(progs_ldadd)
272
273 gdbus_message_SOURCES = gdbus-message.c
274 gdbus_message_LDADD = $(progs_ldadd)
275
276 gdbus_names_SOURCES = gdbus-names.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
277 gdbus_names_LDADD = $(progs_ldadd)
278
279 gdbus_proxy_SOURCES = gdbus-proxy.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
280 gdbus_proxy_LDADD = $(progs_ldadd)
281
282 gdbus_proxy_well_known_name_SOURCES = gdbus-proxy-well-known-name.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
283 gdbus_proxy_well_known_name_LDADD = $(progs_ldadd)
284
285 gdbus_introspection_SOURCES = gdbus-introspection.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
286 gdbus_introspection_LDADD = $(progs_ldadd)
287
288 gdbus_threading_SOURCES = gdbus-threading.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
289 gdbus_threading_LDADD = $(progs_ldadd)
290
291 gdbus_export_SOURCES = gdbus-export.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
292 gdbus_export_LDADD = $(progs_ldadd)
293
294 gdbus_error_SOURCES = gdbus-error.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
295 gdbus_error_LDADD = $(progs_ldadd)
296
297 gdbus_peer_SOURCES = gdbus-peer.c gdbus-tests.h gdbus-tests.c
298 gdbus_peer_LDADD = $(progs_ldadd)
299
300 gdbus_non_socket_SOURCES = gdbus-non-socket.c gdbus-tests.h gdbus-tests.c
301 gdbus_non_socket_LDADD = $(progs_ldadd)
302
303 gdbus_exit_on_close_SOURCES = gdbus-exit-on-close.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
304 gdbus_exit_on_close_LDADD = $(progs_ldadd)
305
306 gdbus_example_watch_name_SOURCES = gdbus-example-watch-name.c
307 gdbus_example_watch_name_LDADD   = $(progs_ldadd)
308
309 gdbus_example_watch_proxy_SOURCES = gdbus-example-watch-proxy.c
310 gdbus_example_watch_proxy_LDADD   = $(progs_ldadd)
311
312 gdbus_example_own_name_SOURCES = gdbus-example-own-name.c
313 gdbus_example_own_name_LDADD   = $(progs_ldadd)
314
315 gdbus_example_server_SOURCES = gdbus-example-server.c
316 gdbus_example_server_LDADD   = $(progs_ldadd)
317
318 gdbus_example_unix_fd_client_SOURCES = gdbus-example-unix-fd-client.c
319 gdbus_example_unix_fd_client_LDADD   = $(progs_ldadd)
320
321 gdbus_example_subtree_SOURCES = gdbus-example-subtree.c
322 gdbus_example_subtree_LDADD   = $(progs_ldadd)
323
324 gdbus_example_peer_SOURCES = gdbus-example-peer.c
325 gdbus_example_peer_LDADD   = $(progs_ldadd)
326
327 gdbus_example_proxy_subclass_SOURCES = gdbus-example-proxy-subclass.c
328 gdbus_example_proxy_subclass_LDADD   = $(progs_ldadd)
329
330 gdbus_example_export_SOURCES = gdbus-example-export.c
331 gdbus_example_export_LDADD   = $(progs_ldadd)
332
333 gdbus_connection_flush_helper_SOURCES = gdbus-connection-flush-helper.c
334 gdbus_connection_flush_helper_LDADD = $(progs_ldadd)
335
336 appinfo_SOURCES = appinfo.c
337 appinfo_LDADD   = $(progs_ldadd)
338
339 appinfo_test_SOURCES = appinfo-test.c
340 appinfo_test_LDADD   = $(progs_ldadd)
341
342 contenttype_SOURCES = contenttype.c
343 contenttype_LDADD   = $(progs_ldadd)
344
345 file_SOURCES = file.c
346 file_LDADD   = $(progs_ldadd)
347
348 gapplication_SOURCES = gapplication.c gdbus-sessionbus.c
349 gapplication_LDADD = $(progs_ldadd)
350
351 gapplication_example_open_SOURCES = gapplication-example-open.c
352 gapplication_example_open_LDADD   = $(progs_ldadd)
353
354 gapplication_example_cmdline_SOURCES = gapplication-example-cmdline.c
355 gapplication_example_cmdline_LDADD   = $(progs_ldadd)
356
357 gapplication_example_cmdline2_SOURCES = gapplication-example-cmdline2.c
358 gapplication_example_cmdline2_LDADD   = $(progs_ldadd)
359
360 gapplication_example_cmdline3_SOURCES = gapplication-example-cmdline3.c
361 gapplication_example_cmdline3_LDADD   = $(progs_ldadd)
362
363 gapplication_example_actions_SOURCES = gapplication-example-actions.c
364 gapplication_example_actions_LDADD   = $(progs_ldadd)
365
366 schema_tests = \
367         schema-tests/array-default-not-in-choices.gschema.xml           \
368         schema-tests/bad-choice.gschema.xml                             \
369         schema-tests/bad-key.gschema.xml                                \
370         schema-tests/bad-key2.gschema.xml                               \
371         schema-tests/bad-key3.gschema.xml                               \
372         schema-tests/bad-key4.gschema.xml                               \
373         schema-tests/bad-type.gschema.xml                               \
374         schema-tests/bare-alias.gschema.xml                             \
375         schema-tests/choice-alias.gschema.xml                           \
376         schema-tests/choice-bad.gschema.xml                             \
377         schema-tests/choice-badtype.gschema.xml                         \
378         schema-tests/choice-invalid-alias.gschema.xml                   \
379         schema-tests/choice-missing-value.gschema.xml                   \
380         schema-tests/choice-shadowed-alias.gschema.xml                  \
381         schema-tests/choice-upside-down.gschema.xml                     \
382         schema-tests/choice.gschema.xml                                 \
383         schema-tests/choices-wrong-type.gschema.xml                     \
384         schema-tests/default-in-aliases.gschema.xml                     \
385         schema-tests/default-not-in-choices.gschema.xml                 \
386         schema-tests/default-out-of-range.gschema.xml                   \
387         schema-tests/empty-key.gschema.xml                              \
388         schema-tests/enum-with-aliases.gschema.xml                      \
389         schema-tests/enum-with-bad-default.gschema.xml                  \
390         schema-tests/enum-with-chained-alias.gschema.xml                \
391         schema-tests/enum-with-choice.gschema.xml                       \
392         schema-tests/enum-with-invalid-alias.gschema.xml                \
393         schema-tests/enum-with-repeated-alias.gschema.xml               \
394         schema-tests/enum-with-repeated-nick.gschema.xml                \
395         schema-tests/enum-with-repeated-value.gschema.xml               \
396         schema-tests/enum-with-shadow-alias.gschema.xml                 \
397         schema-tests/enum.gschema.xml                                   \
398         schema-tests/flags-aliased-default.gschema.xml                  \
399         schema-tests/flags-bad-default.gschema.xml                      \
400         schema-tests/flags-more-than-one-bit.gschema.xml                \
401         schema-tests/flags-with-enum-attr.gschema.xml                   \
402         schema-tests/flags-with-enum-tag.gschema.xml                    \
403         schema-tests/extend-and-shadow-indirect.gschema.xml             \
404         schema-tests/extend-and-shadow.gschema.xml                      \
405         schema-tests/extend-missing.gschema.xml                         \
406         schema-tests/extend-nonlist.gschema.xml                         \
407         schema-tests/extend-self.gschema.xml                            \
408         schema-tests/extend-wrong-list-indirect.gschema.xml             \
409         schema-tests/extend-wrong-list.gschema.xml                      \
410         schema-tests/extending.gschema.xml                              \
411         schema-tests/from-docs.gschema.xml                              \
412         schema-tests/incomplete-list.gschema.xml                        \
413         schema-tests/inherit-gettext-domain.gschema.xml                 \
414         schema-tests/invalid-path.gschema.xml                           \
415         schema-tests/key-in-list-indirect.gschema.xml                   \
416         schema-tests/key-in-list.gschema.xml                            \
417         schema-tests/list-of-missing.gschema.xml                        \
418         schema-tests/missing-quotes.gschema.xml                         \
419         schema-tests/no-default.gschema.xml                             \
420         schema-tests/overflow.gschema.xml                               \
421         schema-tests/override-missing.gschema.xml                       \
422         schema-tests/override-range-error.gschema.xml                   \
423         schema-tests/override-then-key.gschema.xml                      \
424         schema-tests/override-twice.gschema.xml                         \
425         schema-tests/override-type-error.gschema.xml                    \
426         schema-tests/override.gschema.xml                               \
427         schema-tests/range-badtype.gschema.xml                          \
428         schema-tests/range-default-high.gschema.xml                     \
429         schema-tests/range-default-low.gschema.xml                      \
430         schema-tests/range-high-default.gschema.xml                     \
431         schema-tests/range-low-default.gschema.xml                      \
432         schema-tests/range-missing-max.gschema.xml                      \
433         schema-tests/range-missing-min.gschema.xml                      \
434         schema-tests/range-parse-error.gschema.xml                      \
435         schema-tests/range-wrong-type.gschema.xml                       \
436         schema-tests/range.gschema.xml                                  \
437         schema-tests/wrong-category.gschema.xml
438
439 proxy_SOURCES = proxy.c
440 proxy_LDADD   = $(progs_ldadd) \
441         $(top_builddir)/gthread/libgthread-2.0.la
442
443 # ----------------------------------------------------------------------------------------------------
444
445 gdbus_example_objectmanager_server_SOURCES  = gdbus-example-objectmanager-server.c
446 gdbus_example_objectmanager_server_LDADD    = $(top_builddir)/gio/libgdbus-example-objectmanager.la $(progs_ldadd)
447
448 gdbus_example_objectmanager_client_SOURCES  = gdbus-example-objectmanager-client.c
449 gdbus_example_objectmanager_client_LDADD    = $(top_builddir)/gio/libgdbus-example-objectmanager.la $(progs_ldadd)
450
451 # ----------------------------------------------------------------------------------------------------
452
453 EXTRA_DIST += \
454         socket-common.c                 \
455         org.gtk.test.gschema            \
456         org.gtk.test.gschema.xml        \
457         testenum.h                      \
458         enums.xml.template              \
459         de.po                           \
460         $(schema_tests)                 \
461         appinfo-test.desktop            \
462         appinfo-test2.desktop           \
463         appinfo-test-gnome.desktop      \
464         appinfo-test-notgnome.desktop   \
465         gdbus-testserver.py             \
466         test-codegen.xml                \
467         $(NULL)
468
469 MISC_STUFF = test.mo
470
471 test.mo: de.po
472         $(MSGFMT) -o test.mo $(srcdir)/de.po; \
473         $(MKDIR_P) de/LC_MESSAGES; \
474         cp -f test.mo de/LC_MESSAGES
475
476 CLEANFILES = gdbus-test-codegen-generated.[ch] gdbus-test-codegen-generated-doc-*.xml
477
478 DISTCLEANFILES = \
479         applications/mimeinfo.cache     \
480         org.gtk.test.enums.xml          \
481         de/LC_MESSAGES/test.mo          \
482         test.mo                         \
483         gsettings.store                 \
484         gschemas.compiled