diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-10-29 00:57:09 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-10-29 00:57:09 +0200 |
commit | 751f03c55767d7d9f99f13253a653bb095e798a8 (patch) | |
tree | 172391e06e5020c1c606ee4058753712440acf42 /dependencies.py | |
parent | 174db67471d58266c693e7247922317febf372ff (diff) | |
download | meson-751f03c55767d7d9f99f13253a653bb095e798a8.zip meson-751f03c55767d7d9f99f13253a653bb095e798a8.tar.gz meson-751f03c55767d7d9f99f13253a653bb095e798a8.tar.bz2 |
Pass -qt5 command line argument to qt5 tools because otherwise they fail on Debian systems where qt5-default is not installed (e.g. pbuilder).
Diffstat (limited to 'dependencies.py')
-rw-r--r-- | dependencies.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/dependencies.py b/dependencies.py index 448e6fe..77922d8 100644 --- a/dependencies.py +++ b/dependencies.py @@ -132,7 +132,10 @@ class ExternalProgram(): def __init__(self, name, fullpath=None, silent=False, search_dir=None): self.name = name if fullpath is not None: - self.fullpath = [fullpath] + if not isinstance(fullpath, list): + self.fullpath = [fullpath] + else: + self.fullpath = fullpath else: self.fullpath = [shutil.which(name)] if self.fullpath[0] is None and search_dir is not None: @@ -448,13 +451,13 @@ class Qt5Dependency(Dependency): # The binaries have different names on different # distros. Joy. global qt5toolinfo_printed - self.moc = ExternalProgram('moc', silent=True) + self.moc = ExternalProgram('moc', ['moc', '-qt5'], silent=True) if not self.moc.found(): self.moc = ExternalProgram('moc-qt5', silent=True) - self.uic = ExternalProgram('uic', silent=True) + self.uic = ExternalProgram('uic', ['uic', '-qt5'], silent=True) if not self.uic.found(): self.uic = ExternalProgram('uic-qt5', silent=True) - self.rcc = ExternalProgram('rcc', silent=True) + self.rcc = ExternalProgram('rcc', ['rcc', '-qt5'], silent=True) if not self.rcc.found(): self.rcc = ExternalProgram('rcc-qt5', silent=True) |