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