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