diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-02-23 13:11:22 -0500 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2021-05-23 12:56:21 -0400 |
commit | f9c1b6f65bec623d593835c400d2d55d981715c8 (patch) | |
tree | 2fbcc56bc165ba6d15268eb2e22588027e2a26d0 /tests/scanner/meson.build | |
parent | 00bce5569b5e7fd0f6e373857a89996e07bf0725 (diff) | |
download | gobject-introspection-f9c1b6f65bec623d593835c400d2d55d981715c8.tar.gz |
Make test suite work with cross-related options
Because of skepticism I received in #224, I made this PR which keeps the
testsuite and CI improvements but doesn't add any new build options. I
hope this would be less controversial:
- no new knobs
- tests for those using existing build options
- CI tests `build_introspection_data = false`
Diffstat (limited to 'tests/scanner/meson.build')
-rw-r--r-- | tests/scanner/meson.build | 40 |
1 files changed, 16 insertions, 24 deletions
diff --git a/tests/scanner/meson.build b/tests/scanner/meson.build index fa7f7eca..5176b957 100644 --- a/tests/scanner/meson.build +++ b/tests/scanner/meson.build @@ -105,19 +105,19 @@ regress_lib = shared_library('regress-1.0', python_path = run_command(python, ['-c', 'import sys; sys.stdout.write(sys.executable)']).stdout() gircompiler_command = [ - gircompiler, '-o', '@OUTPUT@', '@INPUT@', + test_gircompiler, '-o', '@OUTPUT@', '@INPUT@', '--includedir', join_paths(build_root, 'gir'), '--includedir', meson.current_build_dir(), ] -if glib_dep.type_name() == 'pkgconfig' +if (glib_dep.type_name() == 'pkgconfig' and + get_option('build_introspection_data') == true) typedef_gir = custom_target('gir-typedef', input: ['typedefs.c', 'typedefs.h'], output: 'Typedefs-1.0.gir', depends: [typedef_lib] + typelibs, command: [ - python, - girscanner, + test_girscanner, '--quiet', '--output=@OUTPUT@', '--no-libtool', @@ -156,8 +156,7 @@ if glib_dep.type_name() == 'pkgconfig' output: 'Bar-1.0.gir', depends: [barapp_lib] + typelibs, command: [ - python, - girscanner, + test_girscanner, '--quiet', '--output=@OUTPUT@', '--no-libtool', @@ -195,8 +194,7 @@ if glib_dep.type_name() == 'pkgconfig' output: 'SLetter-1.0.gir', depends: [sletter_lib] + typelibs, command: [ - python, - girscanner, + test_girscanner, '--quiet', '--output=@OUTPUT@', '--no-libtool', @@ -233,8 +231,7 @@ if glib_dep.type_name() == 'pkgconfig' output: 'WarnLib-1.0.gir', depends: [warnlib_lib] + typelibs, command: [ - python, - girscanner, + test_girscanner, '--quiet', '--output=@OUTPUT@', '--no-libtool', @@ -269,8 +266,7 @@ if glib_dep.type_name() == 'pkgconfig' output: 'Utility-1.0.gir', depends: [utility_lib] + typelibs, command: [ - python, - girscanner, + test_girscanner, '--quiet', '--output=@OUTPUT@', '--no-libtool', @@ -307,8 +303,7 @@ if glib_dep.type_name() == 'pkgconfig' output: 'GtkFrob-1.0.gir', depends: [gtkfrob_lib] + typelibs, command: [ - python, - girscanner, + test_girscanner, '--quiet', '--output=@OUTPUT@', '--no-libtool', @@ -346,8 +341,7 @@ if glib_dep.type_name() == 'pkgconfig' output: 'GetType-1.0.gir', depends: [gettype_lib] + typelibs, command: [ - python, - girscanner, + test_girscanner, '--quiet', '--output=@OUTPUT@', '--no-libtool', @@ -384,8 +378,7 @@ if glib_dep.type_name() == 'pkgconfig' output: 'Symbolfilter-1.0.gir', depends: typelibs, command: [ - python, - girscanner, + test_girscanner, '--quiet', '--output=@OUTPUT@', '--no-libtool', @@ -412,8 +405,7 @@ if glib_dep.type_name() == 'pkgconfig' output: 'Identfilter-1.0.gir', depends: typelibs, command: [ - python, - girscanner, + test_girscanner, '--quiet', '--output=@OUTPUT@', '--no-libtool', @@ -441,8 +433,7 @@ if glib_dep.type_name() == 'pkgconfig' output: 'Headeronly-1.0.gir', depends: typelibs, command: [ - python, - girscanner, + test_girscanner, '--quiet', '--output=@OUTPUT@', '--no-libtool', @@ -477,8 +468,7 @@ if glib_dep.type_name() == 'pkgconfig' output: 'Regress-1.0.gir', depends: [regress_lib] + typelibs + [utility_gir], command: [ - python, - girscanner, + test_girscanner, '--quiet', '--output=@OUTPUT@', '--no-libtool', @@ -514,6 +504,8 @@ if glib_dep.type_name() == 'pkgconfig' command: gircompiler_command, ) test_typelibs += regress_typelib +else + regress_gir = disabler() endif gi_tester = files(join_paths('..', 'gi-tester')) |