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