Fix make install with --disable-installed-tests
[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         unix-fd                                 \
245         unix-streams                            \
246         $(NULL)
247
248 test_extra_programs += \
249         basic-application                       \
250         $(NULL)
251
252 # Uninstalled because of the check-for-executable logic in DesktopAppInfo unable to find the installed executable
253 uninstalled_test_programs += \
254         appinfo                                 \
255         desktop-app-info                        \
256         $(NULL)
257
258 home_desktop_files = \
259         epiphany-weather-for-toronto-island-9c6a4e022b17686306243dada811d550d25eb1fb.desktop    \
260         eog.desktop
261
262 usr_desktop_files = \
263         baobab.desktop                          \
264         cheese.desktop                          \
265         dconf-editor.desktop                    \
266         eog.desktop                             \
267         evince-previewer.desktop                \
268         evince.desktop                          \
269         file-roller.desktop                     \
270         gcr-prompter.desktop                    \
271         gcr-viewer.desktop                      \
272         gedit.desktop                           \
273         glade.desktop                           \
274         gnome-clocks.desktop                    \
275         gnome-contacts.desktop                  \
276         gnome-font-viewer.desktop               \
277         gnome-music.desktop                     \
278         gnome-terminal.desktop                  \
279         gucharmap.desktop                       \
280         kde4/dolphin.desktop                    \
281         kde4/kate.desktop                       \
282         kde4/konqbrowser.desktop                \
283         kde4/okular.desktop                     \
284         mimeinfo.cache                          \
285         nautilus-autorun-software.desktop       \
286         nautilus-classic.desktop                \
287         nautilus-connect-server.desktop         \
288         nautilus.desktop                        \
289         totem.desktop                           \
290         yelp.desktop
291
292 dist_test_data += \
293         $(addprefix desktop-files/usr/applications/,$(usr_desktop_files))       \
294         $(addprefix desktop-files/home/applications/,$(home_desktop_files))
295
296 dist_test_data += \
297         appinfo-test-actions.desktop            \
298         appinfo-test-gnome.desktop              \
299         appinfo-test-notgnome.desktop           \
300         appinfo-test.desktop                    \
301         appinfo-test2.desktop                   \
302         file.c                                  \
303         org.gtk.test.dbusappinfo.desktop        \
304         x-content/image-dcf/DCIM/Camera/20130831_203925.jpg \
305         x-content/image-dcf/DCIM/Camera/20130831_203928.jpg \
306         x-content/unix-software/autorun.sh      \
307         x-content/win32-software/autorun.exe    \
308         $(NULL)
309
310 test_extra_programs += \
311         appinfo-test                            \
312         apps                                    \
313         $(NULL)
314
315 uninstalled_test_extra_programs += \
316         gdbus-example-unix-fd-client            \
317         $(NULL)
318
319 test_programs += mimeapps
320 clean-local: clean-mimeapps
321 clean-mimeapps:
322         rm -rf xdgdatadir xdgdatahome
323
324 uninstalled_test_programs += gsettings gschema-compile
325 gsettings_DEPENDENCIES = test.mo
326 CLEANFILES += test.mo de/LC_MESSAGES/test.mo
327 gsettings_CFLAGS = $(AM_CFLAGS) -DSRCDIR=\"$(abs_srcdir)\"
328 test.mo: de.po
329         $(AM_V_GEN) $(MSGFMT) -o test.mo $(srcdir)/de.po; \
330         $(MKDIR_P) de/LC_MESSAGES; \
331         cp -f test.mo de/LC_MESSAGES
332 EXTRA_DIST += de.po
333 dist_uninstalled_test_data += \
334         org.gtk.test.gschema.xml.orig           \
335         org.gtk.schemasourcecheck.gschema.xml   \
336         testenum.h                              \
337         enums.xml.template
338 # Generated while running the testcase itself...
339 CLEANFILES += \
340         org.gtk.test.gschema.xml        \
341         org.gtk.test.enums.xml          \
342         gsettings.store                 \
343         gschemas.compiled               \
344         schema-source/gschemas.compiled
345
346 test_programs += gdbus-connection-flush
347 gdbus_connection_flush_SOURCES = \
348         gdbus-connection-flush.c                \
349         test-io-stream.c                        \
350         test-io-stream.h                        \
351         test-pipe-unix.c                        \
352         test-pipe-unix.h
353
354 test_programs += gdbus-non-socket
355 gdbus_non_socket_SOURCES = \
356         gdbus-non-socket.c                      \
357         gdbus-tests.c                           \
358         gdbus-tests.h                           \
359         test-io-stream.c                        \
360         test-io-stream.h                        \
361         test-pipe-unix.c                        \
362         test-pipe-unix.h
363
364 # These three are manual-run tests because they need a session bus but don't bring one up themselves
365 uninstalled_test_extra_programs += gdbus-example-objectmanager-client
366 gdbus_example_objectmanager_client_LDADD = gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD)
367
368 test_extra_programs += gsubprocess-testprog
369
370 uninstalled_test_extra_programs += gdbus-test-fixture
371 gdbus_test_fixture_LDADD = gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD)
372
373 # This is peer to peer so it doesn't need a session bus (so we can run it normally)
374 test_programs += gdbus-peer
375 gdbus_peer_LDADD = gdbus-object-manager-example/libgdbus-example-objectmanager.la $(LDADD)
376
377 # This test is currently unreliable
378 test_extra_programs += gdbus-overflow
379
380 # -----------------------------------------------------------------------------
381 #  Test programs that need to bring up a session bus (requires dbus-daemon)
382
383 if HAVE_DBUS_DAEMON
384 gdbus_sessionbus_sources = gdbus-sessionbus.c gdbus-sessionbus.h gdbus-tests.h gdbus-tests.c
385
386 test_programs += \
387         actions                                 \
388         dbus-appinfo                            \
389         gapplication                            \
390         gdbus-auth                              \
391         gdbus-bz627724                          \
392         gdbus-close-pending                     \
393         gdbus-connection                        \
394         gdbus-connection-loss                   \
395         gdbus-connection-slow                   \
396         gdbus-error                             \
397         gdbus-exit-on-close                     \
398         gdbus-export                            \
399         gdbus-introspection                     \
400         gdbus-names                             \
401         gdbus-proxy                             \
402         gdbus-proxy-threads                     \
403         gdbus-proxy-well-known-name             \
404         gdbus-test-codegen                      \
405         gdbus-test-codegen-old                  \
406         gdbus-threading                         \
407         gmenumodel                              \
408         gnotification                           \
409         $(NULL)
410
411 gdbus_proxy_threads_CFLAGS = $(AM_CFLAGS) $(DBUS1_CFLAGS)
412 actions_SOURCES                          = $(gdbus_sessionbus_sources) actions.c
413 dbus_appinfo_SOURCES                     = $(gdbus_sessionbus_sources) dbus-appinfo.c
414 gapplication_SOURCES                     = $(gdbus_sessionbus_sources) gapplication.c
415 gdbus_auth_SOURCES                       = $(gdbus_sessionbus_sources) gdbus-auth.c
416 gdbus_bz627724_SOURCES                   = $(gdbus_sessionbus_sources) gdbus-bz627724.c
417 gdbus_close_pending_SOURCES              = $(gdbus_sessionbus_sources) gdbus-close-pending.c
418 gdbus_connection_SOURCES                 = $(gdbus_sessionbus_sources) gdbus-connection.c
419 gdbus_connection_loss_SOURCES            = $(gdbus_sessionbus_sources) gdbus-connection-loss.c
420 gdbus_connection_slow_SOURCES            = $(gdbus_sessionbus_sources) gdbus-connection-slow.c
421 gdbus_error_SOURCES                      = $(gdbus_sessionbus_sources) gdbus-error.c
422 gdbus_exit_on_close_SOURCES              = $(gdbus_sessionbus_sources) gdbus-exit-on-close.c
423 gdbus_export_SOURCES                     = $(gdbus_sessionbus_sources) gdbus-export.c
424 gdbus_introspection_SOURCES              = $(gdbus_sessionbus_sources) gdbus-introspection.c
425 gdbus_names_SOURCES                      = $(gdbus_sessionbus_sources) gdbus-names.c
426 gdbus_proxy_SOURCES                      = $(gdbus_sessionbus_sources) gdbus-proxy.c
427 gdbus_proxy_threads_SOURCES              = $(gdbus_sessionbus_sources) gdbus-proxy-threads.c
428 gdbus_proxy_well_known_name_SOURCES      = $(gdbus_sessionbus_sources) gdbus-proxy-well-known-name.c
429 gdbus_test_codegen_SOURCES               = $(gdbus_sessionbus_sources) gdbus-test-codegen.c
430 nodist_gdbus_test_codegen_SOURCES        = gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h
431 gdbus_test_codegen_old_SOURCES           = $(gdbus_sessionbus_sources) gdbus-test-codegen.c
432 nodist_gdbus_test_codegen_old_SOURCES    = gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h
433 gdbus_test_codegen_old_CPPFLAGS          = $(AM_CPPFLAGS) -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_36 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_36
434 gdbus_threading_SOURCES                  = $(gdbus_sessionbus_sources) gdbus-threading.c
435 gmenumodel_SOURCES                       = $(gdbus_sessionbus_sources) gmenumodel.c
436 gnotification_SOURCES                    = $(gdbus_sessionbus_sources) gnotification.c gnotification-server.h gnotification-server.c
437
438 gdbus-test-codegen.o: gdbus-test-codegen-generated.h
439 gdbus-test-codegen-generated.h gdbus-test-codegen-generated.c: test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen
440         $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
441                 UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
442                 $(PYTHON) $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen \
443                 --interface-prefix org.project. \
444                 --generate-c-code gdbus-test-codegen-generated \
445                 --c-generate-object-manager \
446                 --c-namespace Foo_iGen \
447                 --generate-docbook gdbus-test-codegen-generated-doc \
448                 --annotate "org.project.Bar" Key1 Value1 \
449                 --annotate "org.project.Bar" org.gtk.GDBus.Internal Value2 \
450                 --annotate "org.project.Bar.HelloWorld()" Key3 Value3 \
451                 --annotate "org.project.Bar::TestSignal" Key4 Value4 \
452                 --annotate "org.project.Bar:ay" Key5 Value5 \
453                 --annotate "org.project.Bar.TestPrimitiveTypes()[val_int32]" Key6 Value6 \
454                 --annotate "org.project.Bar.TestPrimitiveTypes()[ret_uint32]" Key7 Value7 \
455                 --annotate "org.project.Bar::TestSignal[array_of_strings]" Key8 Value8 \
456                 $(srcdir)/test-codegen.xml \
457                 $(NULL)
458
459 EXTRA_DIST += test-codegen.xml
460 CLEANFILES += gdbus-test-codegen-generated.[ch] gdbus-test-codegen-generated-doc-*.xml
461 endif # OS_UNIX
462 endif # HAVE_DBUS_DAEMON
463
464 tls_interaction_SOURCES = tls-interaction.c gtesttlsbackend.c gtesttlsbackend.h
465
466 # -----------------------------------------------------------------------------
467
468 if OS_WIN32
469 test_programs += win32-streams
470 endif
471
472 if PLATFORM_WIN32
473 no_undefined = -no-undefined
474 endif
475
476 if HAVE_DBUS1
477 test_programs += gdbus-serialization
478 gdbus_serialization_CFLAGS = $(AM_CFLAGS) $(DBUS1_CFLAGS)
479 gdbus_serialization_LDADD = $(LDADD) $(DBUS1_LIBS)
480 gdbus_serialization_SOURCES = \
481         gdbus-serialization.c                   \
482         gdbus-tests.h                           \
483         gdbus-tests.c
484 endif
485
486 # -----------------------------------------------------------------------------
487 #  The resources test is a bit more complicated...
488
489 test_programs += resources
490 resources_SOURCES = resources.c
491 nodist_resources_SOURCES = test_resources.c test_resources2.c test_resources2.h
492 resources_DEPENDENCIES = test.gresource
493
494 test_ltlibraries += libresourceplugin.la
495 libresourceplugin_la_SOURCES = resourceplugin.c plugin_resources.c
496 libresourceplugin_la_LDFLAGS = -avoid-version -module -export-dynamic $(no_undefined)
497 libresourceplugin_la_LIBADD = $(LDADD)
498
499 # libtool contains a bug whereby the created .la file doesn't contain the correct dlname='' in the case that
500 # you're building a library but not installing it.  This is apparently because the only considered use for an
501 # uninstalled library is as a convenience library for linking (despite the fact that we give -module).  The lack
502 # of dlname='' in the .la trips up libltdl and GModule as well.  We can trick libtool into believing that we
503 # will install the module by giving it a bogus -rpath for the uninstalled cases.
504 #
505 # See http://lists.gnu.org/archive/html/bug-libtool/2013-05/msg00009.html
506 if !ENABLE_INSTALLED_TESTS
507 libresourceplugin_la_LDFLAGS += -rpath /
508 endif
509
510 if CROSS_COMPILING
511   glib_compile_resources=$(GLIB_COMPILE_RESOURCES)
512 else
513   glib_compile_resources=$(top_builddir)/gio/glib-compile-resources
514 endif
515
516 resources.o: test_resources2.h
517 test_resources.c: test2.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test2.gresource.xml)
518         $(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) --generate-source --c-name _g_test1 $<
519
520 test_resources2.h test_resources2.c: test3.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test3.gresource.xml)
521         $(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) --generate --c-name _g_test2 --manual-register $<
522
523 plugin_resources.c: test4.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test4.gresource.xml)
524         $(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) --generate-source --c-name _g_plugin $<
525
526 test.gresource: test.gresource.xml Makefile $(shell $(glib_compile_resources) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/test.gresource.xml)
527         $(AM_V_GEN) $(glib_compile_resources) --target=$@ --sourcedir=$(srcdir) $<
528
529 EXTRA_DIST += test.gresource.xml test1.txt test2.gresource.xml test2.txt test3.gresource.xml test3.txt test4.gresource.xml
530
531 CLEANFILES += test_resources.c test_resources2.[ch] plugin_resources.c test.gresource
532
533 BUILT_SOURCES += giotypefuncs.c
534
535 giotypefuncs.c: Makefile
536         $(AM_V_GEN) echo '#include <gio/gio.h>' > xgen-giosrc.c && \
537           echo "G_GNUC_BEGIN_IGNORE_DEPRECATIONS" > xgen-gio && \
538           ${CPP} $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-giosrc.c | \
539           $(GREP) -o '\bg_.*_get_type\b' | \
540           $(GREP) -v 'g_io_extension_get_type\|g_variant_get_type' | \
541           sort | uniq | \
542           $(SED) -e 's/^/*tp++ = /' -e 's/$$/ ();/' >> xgen-gio && \
543           cp xgen-gio $@ # && rm -f xgen-gio xgen-giosrc.c
544
545 if ENABLE_INSTALLED_TESTS
546 install-data-hook:
547         $(AM_V_at) chmod a+x $(DESTDIR)$(installed_testdir)/x-content/win32-software/autorun.exe
548 endif