diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-01-14 16:59:45 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2020-01-15 11:02:48 +0800 |
commit | ad937bca10be979cc468b8da0d31f40f86ce0851 (patch) | |
tree | 32039d6ea9b00ff35ffe20ab10c837b7dfbde7ce /tests | |
parent | fbc3657b769bfa156927a6a116d5967d58b5e75e (diff) | |
download | gobject-introspection-ad937bca10be979cc468b8da0d31f40f86ce0851.tar.gz |
Visual Studio builds: Use -utf-8 where available
This avoids compilation erroring out on C4819 (Unicode handling issue in the
Visual Studio compiler), notably when running on Chinese, Japanese and Korean
(CJK) locales.
This also applies -utf-8 into the cflags passed into the various g-ir-scanner
command lines that are used to generate the *.gir files, where -utf-8 is
available, so that we don't get flooded with C4819 warnings during the
build, and therefore avoid potential mishaps, as C4819 is a real warning that
warngs us the code may be incorrectly built.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/meson.build | 2 | ||||
-rw-r--r-- | tests/offsets/meson.build | 1 | ||||
-rw-r--r-- | tests/scanner/meson.build | 11 |
3 files changed, 14 insertions, 0 deletions
diff --git a/tests/meson.build b/tests/meson.build index 369abac8..f4c57ed7 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -125,6 +125,7 @@ if glib_dep.type_name() == 'pkgconfig' '--library=everything-1.0', '-L', meson.current_build_dir(), '-I', meson.current_source_dir(), + extra_giscanner_args, '@INPUT@', ] ) @@ -151,6 +152,7 @@ if glib_dep.type_name() == 'pkgconfig' '--library=gimarshallingtests-1.0', '-L' + meson.current_build_dir(), '--c-include="tests/gimarshallingtests.h"', + extra_giscanner_args, '@INPUT@', ] ) diff --git a/tests/offsets/meson.build b/tests/offsets/meson.build index 6670f21a..71f4c8a4 100644 --- a/tests/offsets/meson.build +++ b/tests/offsets/meson.build @@ -35,6 +35,7 @@ if glib_dep.type_name() == 'pkgconfig' '-L', meson.current_build_dir(), '-I', meson.current_source_dir(), '-I', join_paths(meson.source_root(), 'tests'), + extra_giscanner_args, '@INPUT@', ] ) diff --git a/tests/scanner/meson.build b/tests/scanner/meson.build index a82a6135..50ca5a2b 100644 --- a/tests/scanner/meson.build +++ b/tests/scanner/meson.build @@ -137,6 +137,7 @@ if glib_dep.type_name() == 'pkgconfig' '-L', meson.current_build_dir(), '-I', meson.current_source_dir(), '-I', join_paths(meson.current_source_dir(), '..'), + extra_giscanner_args, '@INPUT@', ] ) @@ -175,6 +176,7 @@ if glib_dep.type_name() == 'pkgconfig' '-L', join_paths(meson.build_root(), 'girepository'), '-I', meson.current_source_dir(), '-I', join_paths(meson.current_source_dir(), '..'), + extra_giscanner_args, '@INPUT@', ] ) @@ -212,6 +214,7 @@ if glib_dep.type_name() == 'pkgconfig' '-L', meson.current_build_dir(), '-I', meson.current_source_dir(), '-I', join_paths(meson.current_source_dir(), '..'), + extra_giscanner_args, '@INPUT@', ] ) @@ -247,6 +250,7 @@ if glib_dep.type_name() == 'pkgconfig' '-L', meson.current_build_dir(), '-I', meson.current_source_dir(), '-I', join_paths(meson.current_source_dir(), '..'), + extra_giscanner_args, '@INPUT@', ] ) @@ -284,6 +288,7 @@ if glib_dep.type_name() == 'pkgconfig' '-L', meson.current_build_dir(), '-I', meson.current_source_dir(), '-I', join_paths(meson.current_source_dir(), '..'), + extra_giscanner_args, '@INPUT@', ] ) @@ -322,6 +327,7 @@ if glib_dep.type_name() == 'pkgconfig' '-L', meson.current_build_dir(), '-I', meson.current_source_dir(), '-I', join_paths(meson.current_source_dir(), '..'), + extra_giscanner_args, '@INPUT@', ] ) @@ -359,6 +365,7 @@ if glib_dep.type_name() == 'pkgconfig' '-L', meson.current_build_dir(), '-I', meson.current_source_dir(), '-I', join_paths(meson.current_source_dir(), '..'), + extra_giscanner_args, '@INPUT@', ] ) @@ -387,6 +394,7 @@ if glib_dep.type_name() == 'pkgconfig' '--nsversion=1.0', '--header-only', '--symbol-filter-cmd=' + python_path + ' ' + join_paths(meson.current_source_dir(), 'symbolfilter.py'), + extra_giscanner_args, '@INPUT@', ] ) @@ -415,6 +423,7 @@ if glib_dep.type_name() == 'pkgconfig' '--nsversion=1.0', '--header-only', '--identifier-filter-cmd=' + python_path + ' ' + join_paths(meson.current_source_dir(), 'identfilter.py'), + extra_giscanner_args, '@INPUT@', ] ) @@ -443,6 +452,7 @@ if glib_dep.type_name() == 'pkgconfig' '--namespace=Headeronly', '--nsversion=1.0', '--header-only', + extra_giscanner_args, '@INPUT@', ] ) @@ -485,6 +495,7 @@ if glib_dep.type_name() == 'pkgconfig' '-L', meson.current_build_dir(), '-I', meson.current_source_dir(), '-I', join_paths(meson.current_source_dir(), '..'), + extra_giscanner_args, ] + regress_scanner_cairo_args + [ '@INPUT@', ] |