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