summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build9
1 files changed, 9 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 031af630..1c232750 100644
--- a/meson.build
+++ b/meson.build
@@ -66,12 +66,21 @@ if cc.get_id() != 'msvc'
else
project_c_args += [
'-FImsvc_recommended_pragmas.h',
+ '-utf-8',
]
endif
project_c_args = cc.get_supported_arguments(project_c_args)
add_project_arguments(project_c_args, language: 'c')
+if cc.get_id() == 'msvc' and project_c_args.contains('-utf-8')
+ extra_giscanner_cflags = ['-utf-8']
+ extra_giscanner_args = ['--cflags-begin'] + extra_giscanner_cflags + ['--cflags-end']
+else
+ extra_giscanner_cflags = []
+ extra_giscanner_args = []
+endif
+
config = configuration_data()
config.set('GI_MAJOR_VERSION', gi_versions[0])