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