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