GTask: new GAsyncResult implementation / threaded task manager
[platform/upstream/glib.git] / gio / tests / Makefile.am
1
2 NULL =
3 BUILT_SOURCES =
4
5 include $(top_srcdir)/Makefile.decl
6
7 SUBDIRS = gdbus-object-manager-example
8
9 INCLUDES =                      \
10         -DG_LOG_DOMAIN=\"GLib-GIO\" \
11         $(gio_INCLUDES)         \
12         $(GLIB_DEBUG_FLAGS)     \
13         -I$(top_builddir)/gio   \
14         -I$(top_srcdir)/gio     \
15         $(DBUS1_CFLAGS)         \
16         -DSRCDIR=\""$(srcdir)"\"
17
18 noinst_PROGRAMS = $(TEST_PROGS) $(SAMPLE_PROGS)
19 noinst_DATA = $(MISC_STUFF)
20
21 progs_ldadd     =                                       \
22         $(top_builddir)/glib/libglib-2.0.la             \
23         $(top_builddir)/gthread/libgthread-2.0.la       \
24         $(top_builddir)/gobject/libgobject-2.0.la       \
25         $(top_builddir)/gmodule/libgmodule-2.0.la       \
26         $(top_builddir)/gio/libgio-2.0.la
27
28 TEST_PROGS +=                   \
29         io-stream               \
30         memory-input-stream     \
31         memory-output-stream    \
32         readwrite               \
33         g-file                  \
34         g-file-info             \
35         converter-stream        \
36         data-input-stream       \
37         data-output-stream      \
38         g-icon                  \
39         buffered-input-stream   \
40         buffered-output-stream  \
41         sleepy-stream           \
42         filter-streams          \
43         volumemonitor           \
44         simple-async-result     \
45         srvtarget               \
46         contexts                \
47         gsettings               \
48         gschema-compile         \
49         async-close-output-stream \
50         gdbus-addresses         \
51         network-address         \
52         gdbus-message           \
53         socket                  \
54         pollable                \
55         tls-certificate         \
56         tls-interaction         \
57         cancellable             \
58         vfs                     \
59         network-monitor         \
60         fileattributematcher    \
61         resources               \
62         proxy-test              \
63         inet-address            \
64         permission              \
65         task                    \
66         $(NULL)
67
68 if HAVE_DBUS_DAEMON
69 TEST_PROGS +=                   \
70         actions                 \
71         gdbus-connection        \
72         gdbus-connection-loss   \
73         gdbus-connection-slow   \
74         gdbus-names             \
75         gdbus-proxy             \
76         gdbus-proxy-threads     \
77         gdbus-proxy-well-known-name \
78         gdbus-introspection     \
79         gdbus-threading         \
80         gdbus-export            \
81         gdbus-error             \
82         gdbus-bz627724          \
83         gmenumodel              \
84         $(NULL)
85 endif
86
87
88 if OS_UNIX
89 TEST_PROGS +=                   \
90         gdbus-close-pending     \
91         gdbus-connection-flush  \
92         gdbus-peer              \
93         gdbus-exit-on-close     \
94         gdbus-non-socket        \
95         appinfo                 \
96         contenttype             \
97         mimeapps                \
98         file                    \
99         $(NULL)
100 endif
101
102 SAMPLE_PROGS =                          \
103         resolver                        \
104         socket-server                   \
105         socket-client                   \
106         echo-server                     \
107         httpd                           \
108         send-data                       \
109         filter-cat                      \
110         gdbus-example-export            \
111         gdbus-example-own-name          \
112         gdbus-example-watch-name        \
113         gdbus-example-watch-proxy       \
114         gdbus-example-server            \
115         gdbus-example-subtree           \
116         gdbus-example-peer              \
117         gdbus-example-proxy-subclass    \
118         gdbus-connection-flush-helper   \
119         appinfo-test                    \
120         proxy                           \
121         gapplication-example-open       \
122         gapplication-example-cmdline    \
123         gapplication-example-cmdline2   \
124         gapplication-example-cmdline3   \
125         gapplication-example-actions    \
126         gapplication-example-dbushooks  \
127         gdbus-daemon                    \
128         $(NULL)
129
130 if OS_UNIX
131 TEST_PROGS +=                   \
132         live-g-file             \
133         desktop-app-info        \
134         unix-fd                 \
135         unix-streams            \
136         gapplication            \
137         basic-application       \
138         gdbus-test-codegen      \
139         $(NULL)
140 SAMPLE_PROGS +=                                 \
141         gdbus-example-unix-fd-client            \
142         gdbus-example-objectmanager-server      \
143         gdbus-example-objectmanager-client      \
144         $(NULL)
145 endif
146
147 if OS_WIN32
148 TEST_PROGS += win32-streams
149 endif
150
151 io_stream_SOURCES = io-stream.c
152 io_stream_LDADD   = $(progs_ldadd)
153
154 actions_SOURCES   = actions.c gdbus-sessionbus.c gdbus-sessionbus.h
155 actions_LDADD     = $(progs_ldadd)
156
157 memory_input_stream_SOURCES       = memory-input-stream.c
158 memory_input_stream_LDADD         = $(progs_ldadd)
159
160 memory_output_stream_SOURCES      = memory-output-stream.c
161 memory_output_stream_LDADD        = $(progs_ldadd)
162
163 g_file_SOURCES    = g-file.c
164 g_file_LDADD      = $(progs_ldadd)
165
166 readwrite_SOURCES         = readwrite.c
167 readwrite_LDADD   = $(progs_ldadd)
168
169 g_file_info_SOURCES     = g-file-info.c
170 g_file_info_LDADD       = $(progs_ldadd)
171
172 converter_stream_SOURCES        = converter-stream.c
173 converter_stream_LDADD          = $(progs_ldadd)
174
175 data_input_stream_SOURCES       = data-input-stream.c
176 data_input_stream_LDADD         = $(progs_ldadd)
177
178 data_output_stream_SOURCES      = data-output-stream.c
179 data_output_stream_LDADD        = $(progs_ldadd)
180
181 async_close_output_stream_SOURCES       = async-close-output-stream.c
182 async_close_output_stream_LDADD         = $(progs_ldadd)
183
184 filter_cat_SOURCES      = filter-cat.c
185 filter_cat_LDADD        = $(progs_ldadd)
186
187 g_icon_SOURCES  = g-icon.c
188 g_icon_LDADD    = $(progs_ldadd)
189
190 buffered_input_stream_SOURCES   = buffered-input-stream.c
191 buffered_input_stream_LDADD     = $(progs_ldadd)
192
193 buffered_output_stream_SOURCES  = buffered-output-stream.c
194 buffered_output_stream_LDADD    = $(progs_ldadd)
195
196 live_g_file_SOURCES       = live-g-file.c
197 live_g_file_LDADD         = $(progs_ldadd)
198
199 desktop_app_info_SOURCES  = desktop-app-info.c
200 desktop_app_info_LDADD    = $(progs_ldadd)
201
202 unix_streams_SOURCES      = unix-streams.c
203 unix_streams_LDADD        = $(progs_ldadd) \
204         $(top_builddir)/gthread/libgthread-2.0.la
205
206 win32_streams_SOURCES     = win32-streams.c
207 win32_streams_LDADD       = $(progs_ldadd) \
208         $(top_builddir)/gthread/libgthread-2.0.la
209
210 unix_fd_SOURCES   = unix-fd.c
211 unix_fd_LDADD     = $(progs_ldadd)
212
213 simple_async_result_SOURCES     = simple-async-result.c
214 simple_async_result_LDADD       = $(progs_ldadd)
215
216 sleepy_stream_SOURCES           = sleepy-stream.c
217 sleepy_stream_LDADD             = $(progs_ldadd)
218
219 filter_streams_SOURCES          = filter-streams.c
220 filter_streams_LDADD            = $(progs_ldadd)
221
222 volumemonitor_SOURCES           = volumemonitor.c
223 volumemonitor_LDADD             = $(progs_ldadd)
224
225 resolver_SOURCES          = resolver.c
226 resolver_LDADD            = $(progs_ldadd) \
227         $(top_builddir)/gthread/libgthread-2.0.la
228
229 socket_server_SOURCES     = socket-server.c
230 socket_server_LDADD       = $(progs_ldadd) \
231         $(top_builddir)/gthread/libgthread-2.0.la
232
233 socket_client_SOURCES     = socket-client.c \
234                             gtlsconsoleinteraction.c \
235                             gtlsconsoleinteraction.h
236 socket_client_LDADD       = $(progs_ldadd) \
237         $(top_builddir)/gthread/libgthread-2.0.la
238
239 echo_server_SOURCES       = echo-server.c
240 echo_server_LDADD         = $(progs_ldadd) \
241         $(top_builddir)/gthread/libgthread-2.0.la
242
243 httpd_SOURCES             = httpd.c
244 httpd_LDADD               = $(progs_ldadd) \
245         $(top_builddir)/gthread/libgthread-2.0.la
246
247 send_data_SOURCES         = send-data.c
248 send_data_LDADD           = $(progs_ldadd) \
249         $(top_builddir)/gthread/libgthread-2.0.la
250
251 srvtarget_SOURCES         = srvtarget.c
252 srvtarget_LDADD           = $(progs_ldadd)
253
254 network_address_SOURCE    = network-address.c
255 network_address_LDADD     = $(progs_ldadd)
256
257 socket_SOURCE             = socket.c
258 socket_LDADD              = $(progs_ldadd)
259
260 pollable_SOURCE           = pollable.c
261 pollable_LDADD            = $(progs_ldadd)
262
263 contexts_SOURCES          = contexts.c
264 contexts_LDADD            = $(progs_ldadd) \
265         $(top_builddir)/gthread/libgthread-2.0.la
266
267 gsettings_SOURCES         = gsettings.c
268 gsettings_LDADD           = $(progs_ldadd)
269
270 gschema_compile_SOURCES   = gschema-compile.c
271 gschema_compile_LDADD     = $(progs_ldadd)
272
273 gdbus_daemon_SOURCES = gdbus-daemon.c $(top_srcdir)/gio/gdbusdaemon.c $(top_builddir)/gio/gdbus-daemon-generated.c
274 gdbus_daemon_LDADD = $(progs_ldadd)
275
276 if HAVE_DBUS1
277 TEST_PROGS += gdbus-serialization
278 gdbus_serialization_SOURCES = gdbus-serialization.c gdbus-tests.h gdbus-tests.c
279 gdbus_serialization_CFLAGS = $(DBUS1_CFLAGS)
280 gdbus_serialization_LDADD = $(progs_ldadd) $(DBUS1_LIBS)
281 endif
282
283 if HAVE_DBUS1
284 TEST_PROGS += gdbus-auth
285 gdbus_auth_SOURCES = gdbus-auth.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
286 gdbus_auth_CFLAGS = $(DBUS1_CFLAGS)
287 gdbus_auth_LDADD = $(progs_ldadd) $(DBUS1_LIBS)
288 endif
289
290 gdbus_addresses_SOURCES = gdbus-addresses.c
291 gdbus_addresses_LDADD = $(progs_ldadd)
292
293 gdbus_bz627724_SOURCES = gdbus-bz627724.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
294 gdbus_bz627724_LDADD = $(progs_ldadd)
295
296 gdbus_close_pending_SOURCES = gdbus-close-pending.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
297 gdbus_close_pending_LDADD = $(progs_ldadd)
298
299 if OS_UNIX
300 gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c : test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen
301         $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
302                 UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
303                 $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \
304                 --interface-prefix org.project. \
305                 --generate-c-code gdbus-test-codegen-generated \
306                 --c-generate-object-manager \
307                 --c-namespace Foo_iGen \
308                 --generate-docbook gdbus-test-codegen-generated-doc \
309                 --annotate "org.project.Bar" Key1 Value1 \
310                 --annotate "org.project.Bar" org.gtk.GDBus.Internal Value2 \
311                 --annotate "org.project.Bar.HelloWorld()" Key3 Value3 \
312                 --annotate "org.project.Bar::TestSignal" Key4 Value4 \
313                 --annotate "org.project.Bar:ay" Key5 Value5 \
314                 --annotate "org.project.Bar.TestPrimitiveTypes()[val_int32]" Key6 Value6 \
315                 --annotate "org.project.Bar.TestPrimitiveTypes()[ret_uint32]" Key7 Value7 \
316                 --annotate "org.project.Bar::TestSignal[array_of_strings]" Key8 Value8 \
317                 $(srcdir)/test-codegen.xml \
318                 $(NULL)
319
320 BUILT_SOURCES += gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h
321
322 gdbus_test_codegen_SOURCES  = gdbus-test-codegen.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
323 gdbus_test_codegen_SOURCES += gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h
324 gdbus_test_codegen_LDADD = $(progs_ldadd)
325 endif # OS_UNIX
326
327 gdbus_connection_SOURCES = gdbus-connection.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
328 gdbus_connection_LDADD = $(progs_ldadd)
329
330 gdbus_connection_flush_SOURCES = \
331         gdbus-connection-flush.c \
332         test-io-stream.c \
333         test-io-stream.h \
334         test-pipe-unix.c \
335         test-pipe-unix.h \
336         $(NULL)
337 gdbus_connection_flush_LDADD = $(progs_ldadd)
338
339 gdbus_connection_loss_SOURCES = gdbus-connection-loss.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
340 gdbus_connection_loss_LDADD = $(progs_ldadd)
341
342 gdbus_connection_slow_SOURCES = gdbus-connection-slow.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
343 gdbus_connection_slow_LDADD = $(progs_ldadd)
344
345 gdbus_message_SOURCES = gdbus-message.c
346 gdbus_message_LDADD = $(progs_ldadd)
347
348 gdbus_names_SOURCES = gdbus-names.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
349 gdbus_names_LDADD = $(progs_ldadd)
350
351 gdbus_proxy_SOURCES = gdbus-proxy.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
352 gdbus_proxy_LDADD = $(progs_ldadd)
353
354 gdbus_proxy_threads_SOURCES = gdbus-proxy-threads.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
355 gdbus_proxy_threads_LDADD = $(progs_ldadd)
356
357 gdbus_proxy_well_known_name_SOURCES = gdbus-proxy-well-known-name.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
358 gdbus_proxy_well_known_name_LDADD = $(progs_ldadd)
359
360 gdbus_introspection_SOURCES = gdbus-introspection.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
361 gdbus_introspection_LDADD = $(progs_ldadd)
362
363 gdbus_threading_SOURCES = gdbus-threading.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
364 gdbus_threading_LDADD = $(progs_ldadd)
365
366 gdbus_export_SOURCES = gdbus-export.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
367 gdbus_export_LDADD = $(progs_ldadd)
368
369 gdbus_error_SOURCES = gdbus-error.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
370 gdbus_error_LDADD = $(progs_ldadd)
371
372 gdbus_non_socket_SOURCES = \
373         gdbus-non-socket.c \
374         gdbus-tests.c \
375         gdbus-tests.h \
376         test-io-stream.c \
377         test-io-stream.h \
378         test-pipe-unix.c \
379         test-pipe-unix.h \
380         $(NULL)
381 gdbus_non_socket_LDADD = $(progs_ldadd)
382
383 gdbus_exit_on_close_SOURCES = gdbus-exit-on-close.c gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
384 gdbus_exit_on_close_LDADD = $(progs_ldadd)
385
386 gdbus_example_watch_name_SOURCES = gdbus-example-watch-name.c
387 gdbus_example_watch_name_LDADD   = $(progs_ldadd)
388
389 gdbus_example_watch_proxy_SOURCES = gdbus-example-watch-proxy.c
390 gdbus_example_watch_proxy_LDADD   = $(progs_ldadd)
391
392 gdbus_example_own_name_SOURCES = gdbus-example-own-name.c
393 gdbus_example_own_name_LDADD   = $(progs_ldadd)
394
395 gdbus_example_server_SOURCES = gdbus-example-server.c
396 gdbus_example_server_LDADD   = $(progs_ldadd)
397
398 gdbus_example_unix_fd_client_SOURCES = gdbus-example-unix-fd-client.c
399 gdbus_example_unix_fd_client_LDADD   = $(progs_ldadd)
400
401 gdbus_example_subtree_SOURCES = gdbus-example-subtree.c
402 gdbus_example_subtree_LDADD   = $(progs_ldadd)
403
404 gdbus_example_peer_SOURCES = gdbus-example-peer.c
405 gdbus_example_peer_LDADD   = $(progs_ldadd)
406
407 gdbus_example_proxy_subclass_SOURCES = gdbus-example-proxy-subclass.c
408 gdbus_example_proxy_subclass_LDADD   = $(progs_ldadd)
409
410 gdbus_example_export_SOURCES = gdbus-example-export.c
411 gdbus_example_export_LDADD   = $(progs_ldadd)
412
413 gdbus_connection_flush_helper_SOURCES = gdbus-connection-flush-helper.c
414 gdbus_connection_flush_helper_LDADD = $(progs_ldadd)
415
416 appinfo_SOURCES = appinfo.c
417 appinfo_LDADD   = $(progs_ldadd)
418
419 resources_SOURCES = resources.c test_resources.c test_resources2.c test_resources2.h
420 resources_DEPENDENCIES = test.gresource
421 resources_LDADD   = $(progs_ldadd)
422
423 appinfo_test_SOURCES = appinfo-test.c
424 appinfo_test_LDADD   = $(progs_ldadd)
425
426 contenttype_SOURCES = contenttype.c
427 contenttype_LDADD   = $(progs_ldadd)
428
429 mimeapps_SOURCES = mimeapps.c
430 mimeapps_LDADD   = $(progs_ldadd)
431
432 file_SOURCES = file.c
433 file_LDADD   = $(progs_ldadd)
434
435 fileattributematcher_SOURCES = fileattributematcher.c
436 fileattributematcher_LDADD   = $(progs_ldadd)
437
438 gapplication_SOURCES = gapplication.c gdbus-sessionbus.h gdbus-sessionbus.c gdbus-tests.h gdbus-tests.c
439 gapplication_LDADD = $(progs_ldadd)
440
441 basic_application_LDADD = $(progs_ldadd)
442
443 gapplication_example_open_SOURCES = gapplication-example-open.c
444 gapplication_example_open_LDADD   = $(progs_ldadd)
445
446 gapplication_example_cmdline_SOURCES = gapplication-example-cmdline.c
447 gapplication_example_cmdline_LDADD   = $(progs_ldadd)
448
449 gapplication_example_cmdline2_SOURCES = gapplication-example-cmdline2.c
450 gapplication_example_cmdline2_LDADD   = $(progs_ldadd)
451
452 gapplication_example_cmdline3_SOURCES = gapplication-example-cmdline3.c
453 gapplication_example_cmdline3_LDADD   = $(progs_ldadd)
454
455 gapplication_example_actions_SOURCES = gapplication-example-actions.c
456 gapplication_example_actions_LDADD   = $(progs_ldadd)
457
458 gapplication_example_dbushooks_SOURCES = gapplication-example-dbushooks.c
459 gapplication_example_dbushooks_LDADD   = $(progs_ldadd)
460
461 gmenumodel_SOURCES = gmenumodel.c gdbus-sessionbus.h gdbus-sessionbus.c
462 gmenumodel_LDADD = $(progs_ldadd)
463
464 proxy_test_SOURCES = proxy-test.c
465 proxy_test_LDADD   = $(progs_ldadd)
466
467 inet_address_SOURCES = inet-address.c
468 inet_address_LDADD   = $(progs_ldadd)
469
470 permission_SOURCES = permission.c
471 permission_LDADD   = $(progs_ldadd)
472
473 task_SOURCES = task.c
474 task_LDADD   = $(progs_ldadd)
475
476 schema_tests = \
477         schema-tests/array-default-not-in-choices.gschema.xml           \
478         schema-tests/bad-choice.gschema.xml                             \
479         schema-tests/bad-key.gschema.xml                                \
480         schema-tests/bad-key2.gschema.xml                               \
481         schema-tests/bad-key3.gschema.xml                               \
482         schema-tests/bad-key4.gschema.xml                               \
483         schema-tests/bad-type.gschema.xml                               \
484         schema-tests/bare-alias.gschema.xml                             \
485         schema-tests/choice-alias.gschema.xml                           \
486         schema-tests/choice-bad.gschema.xml                             \
487         schema-tests/choice-badtype.gschema.xml                         \
488         schema-tests/choice-invalid-alias.gschema.xml                   \
489         schema-tests/choice-missing-value.gschema.xml                   \
490         schema-tests/choice-shadowed-alias.gschema.xml                  \
491         schema-tests/choice-upside-down.gschema.xml                     \
492         schema-tests/choice.gschema.xml                                 \
493         schema-tests/choices-wrong-type.gschema.xml                     \
494         schema-tests/default-in-aliases.gschema.xml                     \
495         schema-tests/default-not-in-choices.gschema.xml                 \
496         schema-tests/default-out-of-range.gschema.xml                   \
497         schema-tests/empty-key.gschema.xml                              \
498         schema-tests/enum-with-aliases.gschema.xml                      \
499         schema-tests/enum-with-bad-default.gschema.xml                  \
500         schema-tests/enum-with-chained-alias.gschema.xml                \
501         schema-tests/enum-with-choice.gschema.xml                       \
502         schema-tests/enum-with-invalid-alias.gschema.xml                \
503         schema-tests/enum-with-repeated-alias.gschema.xml               \
504         schema-tests/enum-with-repeated-nick.gschema.xml                \
505         schema-tests/enum-with-repeated-value.gschema.xml               \
506         schema-tests/enum-with-shadow-alias.gschema.xml                 \
507         schema-tests/enum.gschema.xml                                   \
508         schema-tests/flags-aliased-default.gschema.xml                  \
509         schema-tests/flags-bad-default.gschema.xml                      \
510         schema-tests/flags-more-than-one-bit.gschema.xml                \
511         schema-tests/flags-with-enum-attr.gschema.xml                   \
512         schema-tests/flags-with-enum-tag.gschema.xml                    \
513         schema-tests/extend-and-shadow-indirect.gschema.xml             \
514         schema-tests/extend-and-shadow.gschema.xml                      \
515         schema-tests/extend-missing.gschema.xml                         \
516         schema-tests/extend-nonlist.gschema.xml                         \
517         schema-tests/extend-self.gschema.xml                            \
518         schema-tests/extend-wrong-list-indirect.gschema.xml             \
519         schema-tests/extend-wrong-list.gschema.xml                      \
520         schema-tests/extending.gschema.xml                              \
521         schema-tests/from-docs.gschema.xml                              \
522         schema-tests/incomplete-list.gschema.xml                        \
523         schema-tests/inherit-gettext-domain.gschema.xml                 \
524         schema-tests/invalid-path.gschema.xml                           \
525         schema-tests/key-in-list-indirect.gschema.xml                   \
526         schema-tests/key-in-list.gschema.xml                            \
527         schema-tests/list-of-missing.gschema.xml                        \
528         schema-tests/missing-quotes.gschema.xml                         \
529         schema-tests/no-default.gschema.xml                             \
530         schema-tests/overflow.gschema.xml                               \
531         schema-tests/override-missing.gschema.xml                       \
532         schema-tests/override-range-error.gschema.xml                   \
533         schema-tests/override-then-key.gschema.xml                      \
534         schema-tests/override-twice.gschema.xml                         \
535         schema-tests/override-type-error.gschema.xml                    \
536         schema-tests/override.gschema.xml                               \
537         schema-tests/range-badtype.gschema.xml                          \
538         schema-tests/range-default-high.gschema.xml                     \
539         schema-tests/range-default-low.gschema.xml                      \
540         schema-tests/range-high-default.gschema.xml                     \
541         schema-tests/range-low-default.gschema.xml                      \
542         schema-tests/range-missing-max.gschema.xml                      \
543         schema-tests/range-missing-min.gschema.xml                      \
544         schema-tests/range-parse-error.gschema.xml                      \
545         schema-tests/range-wrong-type.gschema.xml                       \
546         schema-tests/range.gschema.xml                                  \
547         schema-tests/wrong-category.gschema.xml
548
549 proxy_SOURCES = proxy.c
550 proxy_LDADD   = $(progs_ldadd) \
551         $(top_builddir)/gthread/libgthread-2.0.la
552
553 tls_certificate_SOURCES = tls-certificate.c gtesttlsbackend.c gtesttlsbackend.h
554 tls_certificate_LDADD   = $(progs_ldadd)
555
556 tls_interaction_LDADD = $(progs_ldadd)
557
558 cancellable_LDADD = $(progs_ldadd)
559
560 vfs_LDADD = $(progs_ldadd)
561
562 network_monitor_LDADD = $(progs_ldadd)
563
564 # -----------------------------------------------------------------------------
565
566 if OS_UNIX
567 gdbus_example_objectmanager_server_SOURCES  = gdbus-example-objectmanager-server.c
568 gdbus_example_objectmanager_server_CFLAGS   = -I$(top_builddir)/gio/tests/gdbus-object-manager-example
569 gdbus_example_objectmanager_server_LDADD    = $(top_builddir)/gio/tests/gdbus-object-manager-example/libgdbus-example-objectmanager.la $(progs_ldadd)
570
571 gdbus_example_objectmanager_client_SOURCES  = gdbus-example-objectmanager-client.c
572 gdbus_example_objectmanager_client_CFLAGS   = -I$(top_builddir)/gio/tests/gdbus-object-manager-example
573 gdbus_example_objectmanager_client_LDADD    = $(top_builddir)/gio/tests/gdbus-object-manager-example/libgdbus-example-objectmanager.la $(progs_ldadd)
574
575 gdbus_peer_SOURCES = gdbus-peer.c gdbus-tests.h gdbus-tests.c
576 gdbus_peer_CFLAGS  = -I$(top_builddir)/gio/tests/gdbus-object-manager-example
577 gdbus_peer_LDADD   = $(top_builddir)/gio/tests/gdbus-object-manager-example/libgdbus-example-objectmanager.la $(progs_ldadd)
578
579 endif OS_UNIX
580
581 # -----------------------------------------------------------------------------
582
583 EXTRA_DIST += \
584         socket-common.c                 \
585         org.gtk.test.gschema            \
586         org.gtk.test.gschema.xml        \
587         testenum.h                      \
588         enums.xml.template              \
589         de.po                           \
590         $(schema_tests)                 \
591         org.gtk.schemasourcecheck.gschema.xml \
592         appinfo-test.desktop            \
593         appinfo-test2.desktop           \
594         appinfo-test-gnome.desktop      \
595         appinfo-test-notgnome.desktop   \
596         gdbus-testserver.py             \
597         test-codegen.xml                \
598         cert1.pem                       \
599         cert2.pem                       \
600         cert3.pem                       \
601         key.pem                         \
602         key8.pem                        \
603         key-cert.pem                    \
604         cert-key.pem                    \
605         cert-list.pem                   \
606         nothing.pem                     \
607         test.gresource.xml              \
608         test1.txt                       \
609         test2.gresource.xml             \
610         test2.txt                       \
611         test3.gresource.xml             \
612         test3.txt                       \
613         test4.gresource.xml             \
614         $(NULL)
615
616 MISC_STUFF = test.mo test.gresource
617
618 test.mo: de.po
619         $(MSGFMT) -o test.mo $(srcdir)/de.po; \
620         $(MKDIR_P) de/LC_MESSAGES; \
621         cp -f test.mo de/LC_MESSAGES
622
623 if CROSS_COMPILING
624   glib_compile_resources=$(GLIB_COMPILE_RESOURCES)
625 else
626   glib_compile_resources=$(top_builddir)/gio/glib-compile-resources
627 endif
628
629 BUILT_SOURCES += test_resources.c test_resources2.c test_resources2.h
630 test_resources.c: test2.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test2.gresource.xml)
631         $(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) --generate-source --c-name _g_test1 $<
632
633 test_resources2.h test_resources2.c: test3.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test3.gresource.xml)
634         $(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) --generate --c-name _g_test2 --manual-register $<
635
636 plugin_resources.c: test4.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test4.gresource.xml)
637         $(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) --generate-source --c-name _g_plugin $<
638
639 test.gresource: test.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test.gresource.xml)
640         $(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) $<
641
642 noinst_LTLIBRARIES = libresourceplugin.la
643
644 libresourceplugin_la_SOURCES = resourceplugin.c plugin_resources.c
645 libresourceplugin_la_LDFLAGS = -avoid-version -module $(no_undefined) -rpath $(libdir)
646 libresourceplugin_la_LIBADD = $(progs_ldadd)
647
648 CLEANFILES = gdbus-test-codegen-generated.[ch] gdbus-test-codegen-generated-doc-*.xml test_resources2.[ch] plugin_resources.c
649
650 DISTCLEANFILES = \
651         applications/mimeinfo.cache     \
652         org.gtk.test.enums.xml          \
653         de/LC_MESSAGES/test.mo          \
654         test.mo                         \
655         test.gresource                  \
656         test_resources.c                \
657         gsettings.store                 \
658         gschemas.compiled               \
659         schema-source/gschemas.compiled
660
661 distclean-local:
662         rm -rf xdgdatahome xdgdatadir