diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-01-29 16:16:45 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-02-01 13:03:40 +0530 |
commit | 80801e0b3fa1de3007354ffea2609a5d5b5d6bec (patch) | |
tree | 4f1ebf6dfc59d12e1f81b6eed2b8eb2e53794146 | |
parent | a49fb66728ba435c989561416eebd7d959c6bcdc (diff) | |
download | meson-80801e0b3fa1de3007354ffea2609a5d5b5d6bec.zip meson-80801e0b3fa1de3007354ffea2609a5d5b5d6bec.tar.gz meson-80801e0b3fa1de3007354ffea2609a5d5b5d6bec.tar.bz2 |
qt: Only look for a framework on macOS if building for macOS
When building for iOS, the Qt binaries only contain static libraries
and headers. No framework.
With this, Meson can successfully compile and link to Qt on iOS
-rw-r--r-- | mesonbuild/dependencies/ui.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py index c2345e5..8708554 100644 --- a/mesonbuild/dependencies/ui.py +++ b/mesonbuild/dependencies/ui.py @@ -375,7 +375,9 @@ class QtBaseDependency(ExternalDependency): continue (k, v) = tuple(line.split(':', 1)) qvars[k] = v - if mesonlib.is_osx(): + # Qt on macOS uses a framework, but Qt for iOS does not + if self.env.machines.host.is_darwin() and 'ios' not in qvars['QMAKE_XSPEC']: + mlog.debug("Building for macOS, looking for framework") self._framework_detect(qvars, mods, kwargs) return qmake incdir = qvars['QT_INSTALL_HEADERS'] |