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