Add tests for {read,write}_all_async()
[platform/upstream/glib.git] / gio / tests / Makefile.am
1 include $(top_srcdir)/glib-tap.mk
2
3 dist_uninstalled_test_data =
4 test_ltlibraries =
5
6 SUBDIRS = gdbus-object-manager-example services modules
7
8 LDADD = \
9         $(top_builddir)/gio/libgio-2.0.la               \
10         $(top_builddir)/gobject/libgobject-2.0.la       \
11         $(top_builddir)/gmodule/libgmodule-2.0.la       \
12         $(top_builddir)/glib/libglib-2.0.la             \
13         $(NULL)
14
15 AM_CPPFLAGS = $(gio_INCLUDES) $(GLIB_DEBUG_FLAGS) -I$(top_builddir)/gio -I$(top_srcdir)/gio
16 DEFS = -DG_LOG_DOMAIN=\"GLib-GIO\" -DTEST_SERVICES=\""$(abs_top_builddir)/gio/tests/services"\"
17 AM_CFLAGS = $(GLIB_WARN_CFLAGS)
18
19 # -----------------------------------------------------------------------------
20 #  Test programs buildable on all platforms
21
22 test_programs = \
23         appmonitor                              \
24         async-close-output-stream               \
25         async-splice-output-stream              \
26         buffered-input-stream                   \
27         buffered-output-stream                  \
28         cancellable                             \
29         contexts                                \
30         converter-stream                        \
31         credentials                             \
32         data-input-stream                       \
33         data-output-stream                      \
34         defaultvalue                            \
35         fileattributematcher                    \
36         filter-streams                          \
37         giomodule                               \
38         gsubprocess                             \
39         g-file                                  \
40         g-file-info                             \
41         g-icon                                  \
42         gdbus-addresses                         \
43         gdbus-message                           \
44         inet-address                            \
45         io-stream                               \
46         memory-input-stream                     \
47         memory-output-stream                    \
48         monitor                                 \
49         network-address                         \
50         network-monitor                         \
51         permission                              \
52         pollable                                \
53         proxy-test                              \
54         readwrite                               \
55         simple-async-result                     \
56         simple-proxy                            \
57         sleepy-stream                           \
58         socket                                  \
59         srvtarget                               \
60         task                                    \
61         tls-interaction                         \
62         vfs                                     \
63         volumemonitor                           \
64         $(NULL)
65
66 uninstalled_test_programs = \
67         $(NULL)
68
69 dist_test_data = \
70         contexts.c                              \
71         g-icon.c                                \
72         $(NULL)
73
74 test_data = \
75         test.gresource                          \
76         $(NULL)
77
78 uninstalled_test_extra_programs = \
79         gio-du                                  \
80         echo-server                             \
81         filter-cat                              \
82         gapplication-example-actions            \
83         gapplication-example-cmdline            \
84         gapplication-example-cmdline2           \
85         gapplication-example-cmdline3           \
86         gapplication-example-dbushooks          \
87         gapplication-example-open               \
88         gdbus-example-export                    \
89         gdbus-example-own-name                  \
90         gdbus-example-peer                      \
91         gdbus-example-proxy-subclass            \
92         gdbus-example-server                    \
93         gdbus-example-subtree                   \
94         gdbus-example-watch-name                \
95         gdbus-example-watch-proxy               \
96         gsubprocess-testprog                    \
97         httpd                                   \
98         proxy                                   \
99         resolver                                \
100         send-data                               \
101         socket-server                           \
102         $(NULL)
103
104 test_extra_programs = \
105         gdbus-connection-flush-helper           \
106         gdbus-testserver                        \
107         $(NULL)
108
109 dist_uninstalled_test_data += $(addprefix schema-tests/,$(schema_tests))
110 schema_tests = \
111         array-default-not-in-choices.gschema.xml        \
112         bad-choice.gschema.xml                          \
113         bad-key.gschema.xml                             \
114         bad-key2.gschema.xml                            \
115         bad-key3.gschema.xml                            \
116         bad-key4.gschema.xml                            \
117         bad-type.gschema.xml                            \
118         bare-alias.gschema.xml                          \
119         choice-alias.gschema.xml                        \
120         choice-bad.gschema.xml                          \
121         choice-badtype.gschema.xml                      \
122         choice-invalid-alias.gschema.xml                \
123         choice-missing-value.gschema.xml                \
124         choice-shadowed-alias.gschema.xml               \
125         choice-upside-down.gschema.xml                  \
126         choice.gschema.xml                              \
127         choices-wrong-type.gschema.xml                  \
128         default-in-aliases.gschema.xml                  \
129         default-not-in-choices.gschema.xml              \
130         default-out-of-range.gschema.xml                \
131         empty-key.gschema.xml                           \
132         enum-with-aliases.gschema.xml                   \
133         enum-with-bad-default.gschema.xml               \
134         enum-with-chained-alias.gschema.xml             \
135         enum-with-choice.gschema.xml                    \
136         enum-with-invalid-alias.gschema.xml             \
137         enum-with-repeated-alias.gschema.xml            \
138         enum-with-repeated-nick.gschema.xml             \
139         enum-with-repeated-value.gschema.xml            \
140         enum-with-shadow-alias.gschema.xml              \
141         enum.gschema.xml                                \
142         extend-and-shadow-indirect.gschema.xml          \
143         extend-and-shadow.gschema.xml                   \
144         extend-missing.gschema.xml                      \
145         extend-nonlist.gschema.xml                      \
146         extend-self.gschema.xml                         \
147         extend-wrong-list-indirect.gschema.xml          \
148         extend-wrong-list.gschema.xml                   \
149         extending.gschema.xml                           \
150         flags-aliased-default.gschema.xml               \
151         flags-bad-default.gschema.xml                   \
152         flags-more-than-one-bit.gschema.xml             \
153         flags-with-enum-attr.gschema.xml                \
154         flags-with-enum-tag.gschema.xml                 \
155         from-docs.gschema.xml                           \
156         incomplete-list.gschema.xml                     \
157         inherit-gettext-domain.gschema.xml              \
158         invalid-path.gschema.xml                        \
159         key-in-list-indirect.gschema.xml                \
160         key-in-list.gschema.xml                         \
161         list-of-missing.gschema.xml                     \
162         missing-quotes.gschema.xml                      \
163         no-default.gschema.xml                          \
164         overflow.gschema.xml                            \
165         override-missing.gschema.xml                    \
166         override-range-error.gschema.xml                \
167         override-then-key.gschema.xml                   \
168         override-twice.gschema.xml                      \
169         override-type-error.gschema.xml                 \
170         override.gschema.xml                            \
171         range-badtype.gschema.xml                       \
172         range-default-high.gschema.xml                  \
173         range-default-low.gschema.xml                   \
174         range-high-default.gschema.xml                  \
175         range-low-default.gschema.xml                   \
176         range-missing-max.gschema.xml                   \
177         range-missing-min.gschema.xml                   \
178         range-parse-error.gschema.xml                   \
179         range-wrong-type.gschema.xml                    \
180         range.gschema.xml                               \
181         wrong-category.gschema.xml                      \
182         $(NULL)
183
184 test_programs += thumbnail-verification
185 dist_test_data += $(thumbnail_data_files)
186 thumbnail_data_files = $(addprefix thumbnails/,$(thumbnail_tests))
187 thumbnail_tests = \
188         bad-header.png \
189         empty-key.png \
190         header-and-chunk-size.png \
191         header-only.png \
192         huge-chunk-size.png \
193         mtime-zero.png \
194         no-text-data.png \
195         overlong-value.png \
196         uri-mismatch.png \
197         valid.png \
198         valid-no-size.png \
199         $(NULL)
200
201 test_programs += tls-certificate
202 tls_certificate_SOURCES = \
203         tls-certificate.c                       \
204         gtesttlsbackend.c                       \
205         gtesttlsbackend.h
206 dist_test_data += $(cert_data_files)
207 cert_data_files = $(addprefix cert-tests/,$(cert_tests))
208 cert_tests = \
209         cert1.pem       \
210         cert2.pem       \
211         cert3.pem       \
212         cert-key.pem    \
213         cert-list.pem   \
214         key8.pem        \
215         key-cert.pem    \
216         key.pem         \
217         nothing.pem     \
218         $(NULL)
219
220 uninstalled_test_extra_programs += socket-client
221 socket_client_SOURCES = \
222         socket-client.c                         \
223         gtlsconsoleinteraction.c                \
224         gtlsconsoleinteraction.h
225 EXTRA_DIST += socket-common.c
226
227 uninstalled_test_extra_programs += gdbus-daemon
228 nodist_gdbus_daemon_SOURCES = \
229         $(top_builddir)/gio/gdbus-daemon-generated.c
230 gdbus_daemon_SOURCES = \
231         gdbus-daemon.c                          \
232         $(top_srcdir)/gio/gdbusdaemon.c
233
234 # -----------------------------------------------------------------------------
235 #  Test programs buildable on UNIX only
236
237 if OS_UNIX
238 test_programs += \
239         contenttype                             \
240         file                                    \
241         gdbus-peer-object-manager               \
242         live-g-file                             \
243         socket-address                          \
244         stream-rw_all                           \
245         unix-fd                                 \
246         unix-streams                            \
247         $(NULL)
248
249 test_extra_programs += \
250         basic-application                       \
251         $(NULL)
252
253 # Uninstalled because of the check-for-executable logic in DesktopAppInfo unable to find the installed executable
254 uninstalled_test_programs += \
255         appinfo                                 \
256         desktop-app-info                        \
257         $(NULL)
258
259 home_desktop_files = \
260         epiphany-weather-for-toronto-island-9c6a4e022b17686306243dada811d550d25eb1fb.desktop    \
261         eog.desktop
262
263 usr_desktop_files = \
264         baobab.desktop                          \
265         cheese.desktop                          \
266         dconf-editor.desktop                    \
267         eog.desktop                             \
268         evince-previewer.desktop                \
269         evince.desktop                          \
270         file-roller.desktop                     \
271         gcr-prompter.desktop                    \
272         gcr-viewer.desktop                      \
273         gedit.desktop                           \
274         glade.desktop                           \
275         gnome-clocks.desktop                    \
276         gnome-contacts.desktop                  \
277         gnome-font-viewer.desktop               \
278         gnome-music.desktop                     \
279         gnome-terminal.desktop                  \
280         gucharmap.desktop                       \
281         kde4/dolphin.desktop                    \
282         kde4/kate.desktop                       \
283         kde4/konqbrowser.desktop                \
284         kde4/okular.desktop                     \
285         mimeinfo.cache                          \
286         nautilus-autorun-software.desktop       \
287         nautilus-classic.desktop                \
288         nautilus-connect-server.desktop         \
289         nautilus.desktop                        \
290         totem.desktop                           \
291         yelp.desktop
292
293 dist_test_data += \
294         $(addprefix desktop-files/usr/applications/,$(usr_desktop_files))       \
295         $(addprefix desktop-files/home/applications/,$(home_desktop_files))
296
297 dist_test_data += \
298         appinfo-test-actions.desktop            \
299         appinfo-test-gnome.desktop              \
300         appinfo-test-notgnome.desktop           \
301         appinfo-test.desktop                    \
302         appinfo-test2.desktop                   \
303         file.c                                  \
304         org.gtk.test.dbusappinfo.desktop        \
305         x-content/image-dcf/DCIM/Camera/20130831_203925.jpg \
306         x-content/image-dcf/DCIM/Camera/20130831_203928.jpg \
307         x-content/unix-software/autorun.sh      \
308         x-content/win32-software/autorun.exe    \
309         $(NULL)
310
311 test_extra_programs += \
312         appinfo-test                            \
313         apps                                    \
314         $(NULL)
315
316 uninstalled_test_extra_programs += \
317         gdbus-example-unix-fd-client            \
318         $(NULL)
319
320 test_programs += mimeapps
321 clean-local: clean-mimeapps
322 clean-mimeapps:
323         rm -rf xdgdatadir xdgdatahome xdgconfighome
324
325 uninstalled_test_programs += gsettings gschema-compile
326 gsettings_DEPENDENCIES = test.mo
327 CLEANFILES += test.mo de/LC_MESSAGES/test.mo keyfile/gsettings.store
328 gsettings_CFLAGS = $(AM_CFLAGS) -DSRCDIR=\"$(abs_srcdir)\"
329 test.mo: de.po
330         $(AM_V_GEN) $(MSGFMT) -o test.mo $(srcdir)/de.po; \
331         $(MKDIR_P) de/LC_MESSAGES; \
332         cp -f test.mo de/LC_MESSAGES
333 EXTRA_DIST += de.po
334 dist_uninstalled_test_data += \
335         org.gtk.test.gschema.xml.orig           \
336         org.gtk.schemasourcecheck.gschema.xml   \
337         testenum.h                              \
338         enums.xml.template
339 # Generated while running the testcase itself...
340 CLEANFILES += \
341         org.gtk.test.gschema.xml        \
342         org.gtk.test.enums.xml          \
343         gsettings.store                 \
344         gschemas.compiled               \
345         schema-source/gschemas.compiled
346
347 test_programs += gdbus-connection-flush
348 gdbus_connection_flush_SOURCES = \
349         gdbus-connection-flush.c                \
350         test-io-stream.c                        \
351         test-io-stream.h                        \
352         test-pipe-unix.c                        \
353         test-pipe-unix.h
354
355 test_programs += gdbus-non-socket
356 gdbus_non_socket_SOURCES = \
357         gdbus-non-socket.c                      \
358         gdbus-tests.c                           \
359         gdbus-tests.h                           \
360         test-io-stream.c                        \
361         test-io-stream.h                        \
362         test-pipe-unix.c                        \
363         test-pipe-unix.h
364
365 # These three are manual-run tests because they need a session bus but don't bring one up themselves
366 uninstalled_test_extra_programs += gdbus-example-objectmanager-client
367 gdbus_example_objectmanager_client_LDADD = gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD)
368
369 test_extra_programs += gsubprocess-testprog
370
371 uninstalled_test_extra_programs += gdbus-test-fixture
372 gdbus_test_fixture_LDADD = gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD)
373
374 # This is peer to peer so it doesn't need a session bus (so we can run it normally)
375 test_programs += gdbus-peer
376 gdbus_peer_LDADD = gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD)
377
378 # This test is currently unreliable
379 test_extra_programs += gdbus-overflow
380
381 # -----------------------------------------------------------------------------
382 #  Test programs that need to bring up a session bus (requires dbus-daemon)
383
384 if HAVE_DBUS_DAEMON
385 gdbus_sessionbus_sources = gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
386
387 test_programs += \
388         actions                                 \
389         dbus-appinfo                            \
390         gapplication                            \
391         gdbus-auth                              \
392         gdbus-bz627724                          \
393         gdbus-close-pending                     \
394         gdbus-connection                        \
395         gdbus-connection-loss                   \
396         gdbus-connection-slow                   \
397         gdbus-error                             \
398         gdbus-exit-on-close                     \
399         gdbus-export                            \
400         gdbus-introspection                     \
401         gdbus-names                             \
402         gdbus-proxy                             \
403         gdbus-proxy-threads                     \
404         gdbus-proxy-well-known-name             \
405         gdbus-test-codegen                      \
406         gdbus-test-codegen-old                  \
407         gdbus-threading                         \
408         gmenumodel                              \
409         gnotification                           \
410         $(NULL)
411
412 gdbus_proxy_threads_CFLAGS = $(AM_CFLAGS) $(DBUS1_CFLAGS)
413 actions_SOURCES                          = $(gdbus_sessionbus_sources) actions.c
414 dbus_appinfo_SOURCES                     = $(gdbus_sessionbus_sources) dbus-appinfo.c
415 gapplication_SOURCES                     = $(gdbus_sessionbus_sources) gapplication.c
416 gdbus_auth_SOURCES                       = $(gdbus_sessionbus_sources) gdbus-auth.c
417 gdbus_bz627724_SOURCES                   = $(gdbus_sessionbus_sources) gdbus-bz627724.c
418 gdbus_close_pending_SOURCES              = $(gdbus_sessionbus_sources) gdbus-close-pending.c
419 gdbus_connection_SOURCES                 = $(gdbus_sessionbus_sources) gdbus-connection.c
420 gdbus_connection_loss_SOURCES            = $(gdbus_sessionbus_sources) gdbus-connection-loss.c
421 gdbus_connection_slow_SOURCES            = $(gdbus_sessionbus_sources) gdbus-connection-slow.c
422 gdbus_error_SOURCES                      = $(gdbus_sessionbus_sources) gdbus-error.c
423 gdbus_exit_on_close_SOURCES              = $(gdbus_sessionbus_sources) gdbus-exit-on-close.c
424 gdbus_export_SOURCES                     = $(gdbus_sessionbus_sources) gdbus-export.c
425 gdbus_introspection_SOURCES              = $(gdbus_sessionbus_sources) gdbus-introspection.c
426 gdbus_names_SOURCES                      = $(gdbus_sessionbus_sources) gdbus-names.c
427 gdbus_proxy_SOURCES                      = $(gdbus_sessionbus_sources) gdbus-proxy.c
428 gdbus_proxy_threads_SOURCES              = $(gdbus_sessionbus_sources) gdbus-proxy-threads.c
429 gdbus_proxy_well_known_name_SOURCES      = $(gdbus_sessionbus_sources) gdbus-proxy-well-known-name.c
430 gdbus_test_codegen_SOURCES               = $(gdbus_sessionbus_sources) gdbus-test-codegen.c
431 nodist_gdbus_test_codegen_SOURCES        = gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h
432 gdbus_test_codegen_old_SOURCES           = $(gdbus_sessionbus_sources) gdbus-test-codegen.c
433 nodist_gdbus_test_codegen_old_SOURCES    = gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h
434 gdbus_test_codegen_old_CPPFLAGS          = $(AM_CPPFLAGS) -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_36 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_36
435 gdbus_threading_SOURCES                  = $(gdbus_sessionbus_sources) gdbus-threading.c
436 gmenumodel_SOURCES                       = $(gdbus_sessionbus_sources) gmenumodel.c
437 gnotification_SOURCES                    = $(gdbus_sessionbus_sources) gnotification.c gnotification-server.h gnotification-server.c
438
439 BUILT_SOURCES += gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h
440 gdbus-test-codegen.o: gdbus-test-codegen-generated.h
441 gdbus-test-codegen-generated.h: test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen
442         $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
443                 UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
444                 $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \
445                 --interface-prefix org.project. \
446                 --generate-c-code gdbus-test-codegen-generated \
447                 --c-generate-object-manager \
448                 --c-namespace Foo_iGen \
449                 --generate-docbook gdbus-test-codegen-generated-doc \
450                 --annotate "org.project.Bar" Key1 Value1 \
451                 --annotate "org.project.Bar" org.gtk.GDBus.Internal Value2 \
452                 --annotate "org.project.Bar.HelloWorld()" Key3 Value3 \
453                 --annotate "org.project.Bar::TestSignal" Key4 Value4 \
454                 --annotate "org.project.Bar:ay" Key5 Value5 \
455                 --annotate "org.project.Bar.TestPrimitiveTypes()[val_int32]" Key6 Value6 \
456                 --annotate "org.project.Bar.TestPrimitiveTypes()[ret_uint32]" Key7 Value7 \
457                 --annotate "org.project.Bar::TestSignal[array_of_strings]" Key8 Value8 \
458                 $(srcdir)/test-codegen.xml \
459                 $(NULL)
460 gdbus-test-codegen-generated.c: gdbus-test-codegen-generated.h
461         @: # Generated as side-effect of .h
462
463 EXTRA_DIST += test-codegen.xml
464 CLEANFILES += gdbus-test-codegen-generated.[ch] gdbus-test-codegen-generated-doc-*.xml
465 endif # OS_UNIX
466 endif # HAVE_DBUS_DAEMON
467
468 tls_interaction_SOURCES = tls-interaction.c gtesttlsbackend.c gtesttlsbackend.h
469
470 # -----------------------------------------------------------------------------
471
472 if OS_WIN32
473 test_programs += win32-streams
474 endif
475
476 if PLATFORM_WIN32
477 no_undefined = -no-undefined
478 endif
479
480 if HAVE_DBUS1
481 test_programs += gdbus-serialization
482 gdbus_serialization_CFLAGS = $(AM_CFLAGS) $(DBUS1_CFLAGS)
483 gdbus_serialization_LDADD = $(LDADD) $(DBUS1_LIBS)
484 gdbus_serialization_SOURCES = \
485         gdbus-serialization.c                   \
486         gdbus-tests.h                           \
487         gdbus-tests.c
488 endif
489
490 # -----------------------------------------------------------------------------
491 #  The resources test is a bit more complicated...
492
493 test_programs += resources
494 resources_SOURCES = resources.c
495 nodist_resources_SOURCES = test_resources.c test_resources2.c test_resources2.h
496 resources_DEPENDENCIES = test.gresource
497
498 test_ltlibraries += libresourceplugin.la
499 libresourceplugin_la_SOURCES = resourceplugin.c plugin_resources.c
500 libresourceplugin_la_LDFLAGS = -avoid-version -module -export-dynamic $(no_undefined)
501 libresourceplugin_la_LIBADD = $(LDADD)
502
503 # libtool contains a bug whereby the created .la file doesn't contain the correct dlname='' in the case that
504 # you're building a library but not installing it.  This is apparently because the only considered use for an
505 # uninstalled library is as a convenience library for linking (despite the fact that we give -module).  The lack
506 # of dlname='' in the .la trips up libltdl and GModule as well.  We can trick libtool into believing that we
507 # will install the module by giving it a bogus -rpath for the uninstalled cases.
508 #
509 # See http://lists.gnu.org/archive/html/bug-libtool/2013-05/msg00009.html
510 if !ENABLE_INSTALLED_TESTS
511 libresourceplugin_la_LDFLAGS += -rpath /
512 endif
513
514 if CROSS_COMPILING
515   glib_compile_resources=$(GLIB_COMPILE_RESOURCES)
516 else
517   glib_compile_resources=$(top_builddir)/gio/glib-compile-resources
518 endif
519
520 resources.o: test_resources2.h
521 test_resources.c: test2.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test2.gresource.xml)
522         $(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) --generate-source --c-name _g_test1 $<
523
524 test_resources2.h test_resources2.c: test3.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test3.gresource.xml)
525         $(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) --generate --c-name _g_test2 --manual-register $<
526
527 plugin_resources.c: test4.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test4.gresource.xml)
528         $(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) --generate-source --c-name _g_plugin $<
529
530 test.gresource: test.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test.gresource.xml)
531         $(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) $<
532
533 EXTRA_DIST += test.gresource.xml test1.txt test2.gresource.xml test2.txt test3.gresource.xml test3.txt test4.gresource.xml
534
535 CLEANFILES += test_resources.c test_resources2.[ch] plugin_resources.c test.gresource
536
537 BUILT_SOURCES += giotypefuncs.c
538
539 giotypefuncs.c: Makefile
540         $(AM_V_GEN) echo '#include <gio/gio.h>' > xgen-giosrc.c && \
541           echo "G_GNUC_BEGIN_IGNORE_DEPRECATIONS" > xgen-gio && \
542           ${CPP} $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-giosrc.c | \
543           $(GREP) -o '\bg_.*_get_type\b' | \
544           $(GREP) -v 'g_io_extension_get_type\|g_variant_get_type' | \
545           sort | uniq | \
546           $(SED) -e 's/^/*tp++ = /' -e 's/$$/ ();/' >> xgen-gio && \
547           cp xgen-gio $@ # && rm -f xgen-gio xgen-giosrc.c
548
549 CLEANFILES += xgen-giosrc.c xgen-gio giotypefuncs.c
550
551 if ENABLE_INSTALLED_TESTS
552 install-data-hook:
553         $(AM_V_at) chmod a+x $(DESTDIR)$(installed_testdir)/x-content/win32-software/autorun.exe
554 endif