Add PPS configure check
Plain QNX 6.5.0 does not have a libpps, the new QNX has a libpps and BlackBerry has it as well. So we need a configure check to not open another mkspec for this platform. This fixes the plain QNX 6.5.0 build. Change-Id: Id4b3876f2385bcb5f3df426945532e7e26133f24 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
This commit is contained in:
parent
a18daa8793
commit
ca2440e2b1
50
config.tests/unix/pps/pps.cpp
Normal file
50
config.tests/unix/pps/pps.cpp
Normal file
@ -0,0 +1,50 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2013 BlackBerry Limited. All rights reserved.
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** This file is part of the config.tests of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and Digia. For licensing terms and
|
||||
** conditions see http://qt.digia.com/licensing. For further information
|
||||
** use the contact form at http://qt.digia.com/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Digia gives you certain additional
|
||||
** rights. These rights are described in the Digia Qt LGPL Exception
|
||||
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3.0 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 3.0 requirements will be
|
||||
** met: http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <sys/pps.h>
|
||||
|
||||
int main(int, char **)
|
||||
{
|
||||
pps_decoder_t decoder;
|
||||
|
||||
pps_decoder_initialize(&decoder, NULL);
|
||||
return 0;
|
||||
}
|
3
config.tests/unix/pps/pps.pro
Normal file
3
config.tests/unix/pps/pps.pro
Normal file
@ -0,0 +1,3 @@
|
||||
SOURCES = pps.cpp
|
||||
CONFIG -= qt
|
||||
LIBS += -lpps
|
24
configure
vendored
24
configure
vendored
@ -629,6 +629,7 @@ CFG_JAVASCRIPTCORE_JIT=auto
|
||||
CFG_PKGCONFIG=auto
|
||||
CFG_STACK_PROTECTOR_STRONG=auto
|
||||
CFG_SLOG2=auto
|
||||
CFG_PPS=auto
|
||||
CFG_SYSTEM_PROXIES=no
|
||||
|
||||
# Target architecture
|
||||
@ -1770,6 +1771,13 @@ while [ "$#" -gt 0 ]; do
|
||||
UNKNOWN_OPT=yes
|
||||
fi
|
||||
;;
|
||||
pps)
|
||||
if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
|
||||
CFG_PPS="$VAL"
|
||||
else
|
||||
UNKNOWN_OPT=yes
|
||||
fi
|
||||
;;
|
||||
gtkstyle)
|
||||
if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
|
||||
CFG_QGTKSTYLE="$VAL"
|
||||
@ -2456,6 +2464,9 @@ QNX/Blackberry options:
|
||||
-no-slog2 .......... Do not compile with slog2 support.
|
||||
-slog2 ............. Compile with slog2 support.
|
||||
|
||||
-no-pps ............ Do not compile with pps support.
|
||||
-pps ............... Compile with pps support.
|
||||
|
||||
MacOS/iOS options:
|
||||
|
||||
-Fstring ........... Add an explicit framework path.
|
||||
@ -4343,6 +4354,15 @@ if [ "$XPLATFORM_QNX" = "yes" ]; then
|
||||
CFG_SLOG2=no
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$CFG_PPS" != "no" ]; then
|
||||
if compileTest unix/pps "pps"; then
|
||||
CFG_PPS=yes
|
||||
QMAKE_CONFIG="$QMAKE_CONFIG qqnx_pps"
|
||||
else
|
||||
CFG_PPS=no
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$CFG_ZLIB" = "auto" ]; then
|
||||
@ -6703,8 +6723,10 @@ if [ "$CFG_XCB" != "no" ]; then
|
||||
report_support " XVideo ............." "$CFG_XVIDEO"
|
||||
fi
|
||||
report_support " Session management ....." "$CFG_SM"
|
||||
[ "$XPLATFORM_QNX" = "yes" ] && \
|
||||
if [ "$XPLATFORM_QNX" = "yes" ]; then
|
||||
report_support " SLOG2 .................." "$CFG_SLOG2"
|
||||
report_support " PPS ...................." "$CFG_PPS"
|
||||
fi
|
||||
report_support " SQL drivers:"
|
||||
report_support " DB2 .................." "$CFG_SQL_db2" plugin "plugin" yes "built into QtSql"
|
||||
report_support " InterBase ............" "$CFG_SQL_ibase" plugin "plugin" yes "built into QtSql"
|
||||
|
@ -2,9 +2,6 @@ TARGET = qqnx
|
||||
|
||||
QT += platformsupport-private core-private gui-private
|
||||
|
||||
# The PPS based platform integration is currently used for both BB10 and plain QNX
|
||||
CONFIG += qqnx_pps
|
||||
|
||||
# Uncomment this to build with support for IMF once it becomes available in the BBNDK
|
||||
#CONFIG += qqnx_imf
|
||||
|
||||
|
@ -194,6 +194,7 @@ Configure::Configure(int& argc, char** argv)
|
||||
dictionary[ "QT_CUPS" ] = "auto";
|
||||
dictionary[ "CFG_GCC_SYSROOT" ] = "yes";
|
||||
dictionary[ "SLOG2" ] = "no";
|
||||
dictionary[ "PPS" ] = "no";
|
||||
dictionary[ "SYSTEM_PROXIES" ] = "no";
|
||||
dictionary[ "WERROR" ] = "auto";
|
||||
dictionary[ "QREAL" ] = "double";
|
||||
@ -879,6 +880,10 @@ void Configure::parseCmdLine()
|
||||
dictionary[ "SLOG2" ] = "no";
|
||||
} else if (configCmdLine.at(i) == "-slog2") {
|
||||
dictionary[ "SLOG2" ] = "yes";
|
||||
} else if (configCmdLine.at(i) == "-no-pps") {
|
||||
dictionary[ "PPS" ] = "no";
|
||||
} else if (configCmdLine.at(i) == "-pps") {
|
||||
dictionary[ "PPS" ] = "yes";
|
||||
} else if (configCmdLine.at(i) == "-no-system-proxies") {
|
||||
dictionary[ "SYSTEM_PROXIES" ] = "no";
|
||||
} else if (configCmdLine.at(i) == "-system-proxies") {
|
||||
@ -1648,6 +1653,7 @@ void Configure::applySpecSpecifics()
|
||||
} else if ((platform() == QNX) || (platform() == BLACKBERRY)) {
|
||||
dictionary["STACK_PROTECTOR_STRONG"] = "auto";
|
||||
dictionary["SLOG2"] = "auto";
|
||||
dictionary["PPS"] = "auto";
|
||||
dictionary["QT_XKBCOMMON"] = "no";
|
||||
dictionary[ "ANGLE" ] = "no";
|
||||
dictionary[ "FONT_CONFIG" ] = "auto";
|
||||
@ -1864,6 +1870,9 @@ bool Configure::displayHelp()
|
||||
if ((platform() == QNX) || (platform() == BLACKBERRY)) {
|
||||
desc("SLOG2", "yes", "-slog2", "Compile with slog2 support.");
|
||||
desc("SLOG2", "no", "-no-slog2", "Do not compile with slog2 support.");
|
||||
|
||||
desc("PPS", "yes", "-pps", "Compile with PPS support.");
|
||||
desc("PPS", "no", "-no-pps", "Do not compile with PPS support.");
|
||||
}
|
||||
|
||||
desc("ANGLE", "yes", "-angle", "Use the ANGLE implementation of OpenGL ES 2.0.");
|
||||
@ -2203,6 +2212,8 @@ bool Configure::checkAvailability(const QString &part)
|
||||
available = (platform() == QNX || platform() == BLACKBERRY) && compilerSupportsFlag("qcc -fstack-protector-strong");
|
||||
} else if (part == "SLOG2") {
|
||||
available = tryCompileProject("unix/slog2");
|
||||
} else if (part == "PPS") {
|
||||
available = (platform() == QNX || platform() == BLACKBERRY) && tryCompileProject("unix/pps");
|
||||
} else if (part == "NEON") {
|
||||
available = (dictionary["QT_ARCH"] == "arm") && tryCompileProject("unix/neon");
|
||||
} else if (part == "FONT_CONFIG") {
|
||||
@ -2348,6 +2359,10 @@ void Configure::autoDetection()
|
||||
dictionary["SLOG2"] = checkAvailability("SLOG2") ? "yes" : "no";
|
||||
}
|
||||
|
||||
if (dictionary["PPS"] == "auto") {
|
||||
dictionary["PPS"] = checkAvailability("PPS") ? "yes" : "no";
|
||||
}
|
||||
|
||||
if (dictionary["QT_EVENTFD"] == "auto")
|
||||
dictionary["QT_EVENTFD"] = checkAvailability("QT_EVENTFD") ? "yes" : "no";
|
||||
|
||||
@ -3174,6 +3189,9 @@ void Configure::generateQConfigPri()
|
||||
if (dictionary[ "SLOG2" ] == "yes")
|
||||
configStream << " slog2";
|
||||
|
||||
if (dictionary[ "PPS" ] == "yes")
|
||||
configStream << " qqnx_pps";
|
||||
|
||||
if (dictionary["DIRECTWRITE"] == "yes")
|
||||
configStream << " directwrite";
|
||||
|
||||
@ -3540,8 +3558,10 @@ void Configure::displayConfig()
|
||||
sout << " HarfBuzz-NG support....." << dictionary[ "HARFBUZZ" ] << endl;
|
||||
sout << " PCRE support............" << dictionary[ "PCRE" ] << endl;
|
||||
sout << " ICU support............." << dictionary[ "ICU" ] << endl;
|
||||
if ((platform() == QNX) || (platform() == BLACKBERRY))
|
||||
if ((platform() == QNX) || (platform() == BLACKBERRY)) {
|
||||
sout << " SLOG2 support..........." << dictionary[ "SLOG2" ] << endl;
|
||||
sout << " PPS support............." << dictionary[ "PPS" ] << endl;
|
||||
}
|
||||
sout << " ANGLE..................." << dictionary[ "ANGLE" ] << endl;
|
||||
sout << endl;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user