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