diff options
Diffstat (limited to 'src/qml')
-rw-r--r-- | src/qml/jsruntime/jsruntime.pri | 2 | ||||
-rw-r--r-- | src/qml/jsruntime/qv4global_p.h | 2 | ||||
-rw-r--r-- | src/qml/qml/qqmlengine.cpp | 1 | ||||
-rw-r--r-- | src/qml/qml/qqmlplatform.cpp | 2 |
4 files changed, 5 insertions, 2 deletions
diff --git a/src/qml/jsruntime/jsruntime.pri b/src/qml/jsruntime/jsruntime.pri index 503b40e8ae..57ad85485a 100644 --- a/src/qml/jsruntime/jsruntime.pri +++ b/src/qml/jsruntime/jsruntime.pri @@ -111,4 +111,4 @@ valgrind { DEFINES += V4_USE_VALGRIND } -ios: DEFINES += ENABLE_ASSEMBLER_WX_EXCLUSIVE=1 +ios|tvos: DEFINES += ENABLE_ASSEMBLER_WX_EXCLUSIVE=1 diff --git a/src/qml/jsruntime/qv4global_p.h b/src/qml/jsruntime/qv4global_p.h index 01a21ea06d..0fc5af8380 100644 --- a/src/qml/jsruntime/qv4global_p.h +++ b/src/qml/jsruntime/qv4global_p.h @@ -105,7 +105,7 @@ inline double trunc(double d) { return d > 0 ? floor(d) : ceil(d); } // Black list some platforms #if defined(V4_ENABLE_JIT) -#if defined(Q_OS_IOS) || defined(Q_OS_WINRT) +#if defined(Q_OS_IOS) || defined(Q_OS_WINRT) || defined(Q_OS_TVOS) # undef V4_ENABLE_JIT #endif #endif diff --git a/src/qml/qml/qqmlengine.cpp b/src/qml/qml/qqmlengine.cpp index b3636d1fa6..e02bc1350c 100644 --- a/src/qml/qml/qqmlengine.cpp +++ b/src/qml/qml/qqmlengine.cpp @@ -398,6 +398,7 @@ The following functions are also on the Qt object. \li \c "android" - Android \li \c "blackberry" - BlackBerry OS \li \c "ios" - iOS + \li \c "tvos" - tvOS \li \c "linux" - Linux \li \c "osx" - OS X \li \c "unix" - Other Unix-based OS diff --git a/src/qml/qml/qqmlplatform.cpp b/src/qml/qml/qqmlplatform.cpp index a453746da3..92e9096077 100644 --- a/src/qml/qml/qqmlplatform.cpp +++ b/src/qml/qml/qqmlplatform.cpp @@ -57,6 +57,8 @@ QString QQmlPlatform::os() return QStringLiteral("blackberry"); #elif defined(Q_OS_IOS) return QStringLiteral("ios"); +#elif defined(Q_OS_TVOS) + return QStringLiteral("tvos"); #elif defined(Q_OS_MAC) return QStringLiteral("osx"); #elif defined(Q_OS_WINCE) |