diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2018-08-09 16:06:55 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2019-01-02 16:22:47 -0500 |
commit | 2b22576fb6a8bb52434068d95eff188a201e6bc5 (patch) | |
tree | b169c0c8c5cf56f68cf8a1d75f35a0fb71ad295f /mesonbuild/dependencies/ui.py | |
parent | dbf080afe99a8bbb04a3bfb19a81363d3b78e7b4 (diff) | |
download | meson-2b22576fb6a8bb52434068d95eff188a201e6bc5.zip meson-2b22576fb6a8bb52434068d95eff188a201e6bc5.tar.gz meson-2b22576fb6a8bb52434068d95eff188a201e6bc5.tar.bz2 |
Remove cross_info; cross file is parsed up front and discarded
Diffstat (limited to 'mesonbuild/dependencies/ui.py')
-rw-r--r-- | mesonbuild/dependencies/ui.py | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py index 7b3d051..03c96f2 100644 --- a/mesonbuild/dependencies/ui.py +++ b/mesonbuild/dependencies/ui.py @@ -333,22 +333,18 @@ class QtBaseDependency(ExternalDependency): if prefix: self.bindir = os.path.join(prefix, 'bin') - def _find_qmake(self, qmake): - # Even when cross-compiling, if a cross-info qmake is not specified, we - # fallback to using the qmake in PATH because that's what we used to do - if self.env.is_cross_build(): - if 'qmake' in self.env.cross_info.config['binaries']: - return ExternalProgram.from_bin_list(self.env.cross_info.config['binaries'], 'qmake') - elif self.env.config_info: - # Prefer suffixed to unsuffixed version - p = ExternalProgram.from_bin_list(self.env.config_info.binaries, 'qmake') - if p.found(): - return p - return ExternalProgram(qmake, silent=True) - def _qmake_detect(self, mods, kwargs): for qmake in ('qmake-' + self.name, 'qmake'): - self.qmake = self._find_qmake(qmake) + self.qmake = ExternalProgram.from_bin_list( + self.env.binaries.host, qmake) + if not self.qmake.found(): + # Even when cross-compiling, if a cross-info qmake is not + # specified, we fallback to using the qmake in PATH because + # that's what we used to do + self.qmake = ExternalProgram.from_bin_list( + self.env.binaries.build, qmake) + if not self.qmake.found(): + self.qmake = ExternalProgram(qmake, silent=True) if not self.qmake.found(): continue # Check that the qmake is for qt5 |