diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2019-01-02 21:45:45 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2019-01-02 21:54:58 +0100 |
commit | 95aa2eaf344775cd73102fad0c4544d3b282dfe6 (patch) | |
tree | b42d1f0756bb4032473735de4b612570bdf6b822 /tests/scanner | |
parent | a5af67755ce9aaaf8ab0461899e68fd7a55dbc52 (diff) | |
download | gobject-introspection-95aa2eaf344775cd73102fad0c4544d3b282dfe6.tar.gz |
tests: try building Bar-1.0 again
This time pass the libgirepository build dir
Diffstat (limited to 'tests/scanner')
-rw-r--r-- | tests/scanner/meson.build | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/tests/scanner/meson.build b/tests/scanner/meson.build index 08e2f116..d5415f78 100644 --- a/tests/scanner/meson.build +++ b/tests/scanner/meson.build @@ -142,7 +142,42 @@ if glib_dep.type_name() == 'pkgconfig' command: gircompiler_command, ) - # FIXME: Bar-1.0.gir + bar_gir = custom_target('gir-bar', + input: ['barapp.c', 'barapp.h'], + output: 'Bar-1.0.gir', + depends: [barapp_lib] + typelibs, + command: [ + python, + girscanner, + '--output=@OUTPUT@', + '--no-libtool', + '--reparse-validate', + '--add-include-path', join_paths(meson.source_root(), 'gir'), + '--add-include-path', join_paths(meson.build_root(), 'gir'), + '--warn-all', + '--warn-error', + '--namespace=Bar', + '--nsversion=1.0', + '--include=GObject-2.0', + '--pkg=gobject-2.0', + '--library=barapp-1.0', + '--accept-unprefixed', + '-L', meson.current_build_dir(), + '-L', join_paths(meson.build_root(), 'girepository'), + '-I', meson.current_source_dir(), + '-I', join_paths(meson.current_source_dir(), '..'), + '@INPUT@', + ] + ) + test_girs += bar_gir + + test_typelibs += custom_target( + 'generate-typelib-bar', + input: bar_gir, + output: '@BASENAME@.typelib', + depends: [gobject_gir], + command: gircompiler_command, + ) sletter_gir = custom_target('gir-sletter', input: ['sletter.c', 'sletter.h'], |