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