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