Set the Qt version to use on fedora.

The default Qt version on fedora is Qt 4. We must force the use of Qt 5.
This commit is contained in:
Matthieu Gautier 2020-07-01 11:32:43 +02:00
parent da62250d83
commit ef7843633e
1 changed files with 7 additions and 1 deletions

View File

@ -1,12 +1,18 @@
from .base import PlatformInfo
from kiwixbuild.utils import pj
from kiwixbuild._global import option
from kiwixbuild._global import option, neutralEnv
class NativePlatformInfo(PlatformInfo):
build = 'native'
def get_env(self):
env = super().get_env()
if neutralEnv('distname') == 'fedora':
env['QT_SELECT'] = "5-64"
return env
class NativeDyn(NativePlatformInfo):
name = 'native_dyn'