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