Fix Windows builds

This commit is contained in:
kramo
2024-04-16 20:16:48 +02:00
parent 4a530ce92e
commit 8244b16c17
3 changed files with 65 additions and 37 deletions

View File

@@ -4,7 +4,12 @@ project('cartridges',
default_options: [ 'warning_level=2', 'werror=false', ],
)
i18n = import('i18n')
# Translations are broken on Windows for multiple reasons
# gresources don't work and MSYS2 seems to have also broken the gettext package
if host_machine.system() != 'windows'
i18n = import('i18n')
endif
gnome = import('gnome')
python = import('python')
@@ -42,8 +47,6 @@ if host_machine.system() == 'windows'
subdir('windows')
else
subdir('search-provider')
# Translations are broken on Windows for multiple reasons
# gresources don't work and MSYS2 seems to have also broken the gettext package
subdir('po')
endif