aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Shpuntov <roman.shpuntov@gmail.com>2019-06-12 18:08:29 +0700
committerJussi Pakkanen <jpakkane@gmail.com>2019-06-13 21:31:03 +0300
commit3b17344b116d13b99b6436f3b9b09ca294079625 (patch)
tree89c36d1946e47e700ce6b43a221f4e38b8aa2ea3
parent4b73f5022262a2c8b2c1a4d234ea64d4714b343d (diff)
downloadmeson-3b17344b116d13b99b6436f3b9b09ca294079625.zip
meson-3b17344b116d13b99b6436f3b9b09ca294079625.tar.gz
meson-3b17344b116d13b99b6436f3b9b09ca294079625.tar.bz2
tvOS: added support AppleTVOS
-rw-r--r--mesonbuild/build.py2
-rw-r--r--mesonbuild/compilers/compilers.py6
-rw-r--r--mesonbuild/dependencies/ui.py4
-rw-r--r--mesonbuild/envconfig.py4
4 files changed, 8 insertions, 8 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 7856fbd..9d40944 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -1783,7 +1783,7 @@ class SharedLibrary(BuildTarget):
# We replicate what Autotools does here and take the first
# number of the version by default.
self.soversion = self.ltversion.split('.')[0]
- # macOS and iOS dylib compatibility_version and current_version
+ # macOS, iOS and tvOS dylib compatibility_version and current_version
if 'darwin_versions' in kwargs:
self.darwin_versions = self._validate_darwin_versions(kwargs['darwin_versions'])
elif self.soversion:
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index ec88794..379ec1f 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -402,7 +402,7 @@ base_options = {'b_pch': coredata.UserBooleanOption('Use precompiled headers', T
True),
'b_pie': coredata.UserBooleanOption('Build executables as position independent',
False),
- 'b_bitcode': coredata.UserBooleanOption('Generate and embed bitcode (only macOS and iOS)',
+ 'b_bitcode': coredata.UserBooleanOption('Generate and embed bitcode (only macOS/iOS/tvOS)',
False),
'b_vscrt': coredata.UserComboOption('VS run-time library type to use.',
['none', 'md', 'mdd', 'mt', 'mtd', 'from_buildtype'],
@@ -2166,8 +2166,8 @@ class ClangCompiler(GnuLikeCompiler):
if extra_args is None:
extra_args = []
# Starting with XCode 8, we need to pass this to force linker
- # visibility to obey OS X and iOS minimum version targets with
- # -mmacosx-version-min, -miphoneos-version-min, etc.
+ # visibility to obey OS X/iOS/tvOS minimum version targets with
+ # -mmacosx-version-min, -miphoneos-version-min, -mtvos-version-min etc.
# https://github.com/Homebrew/homebrew-core/issues/3727
if self.compiler_type.is_osx_compiler and version_compare(self.version, '>=8.0'):
extra_args.append('-Wl,-no_weak_imports')
diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py
index f96668b..6d784e6 100644
--- a/mesonbuild/dependencies/ui.py
+++ b/mesonbuild/dependencies/ui.py
@@ -372,8 +372,8 @@ class QtBaseDependency(ExternalDependency):
continue
(k, v) = tuple(line.split(':', 1))
qvars[k] = v
- # 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']:
+ # Qt on macOS uses a framework, but Qt for iOS/tvOS does not
+ if self.env.machines.host.is_darwin() and 'ios' not in qvars['QMAKE_XSPEC'] and 'tvos' not in qvars['QMAKE_XSPEC']:
mlog.debug("Building for macOS, looking for framework")
self._framework_detect(qvars, mods, kwargs)
return qmake
diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py
index 0cdb4c4..03c6346 100644
--- a/mesonbuild/envconfig.py
+++ b/mesonbuild/envconfig.py
@@ -214,9 +214,9 @@ class MachineInfo:
def is_darwin(self) -> bool:
"""
- Machine is Darwin (iOS/OS X)?
+ Machine is Darwin (iOS/tvOS/OS X)?
"""
- return self.system in {'darwin', 'ios'}
+ return self.system in {'darwin', 'ios', 'tvos'}
def is_android(self) -> bool:
"""