diff options
author | Giuseppe D'Angelo <dangelog@gmail.com> | 2012-01-23 22:31:13 +0000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-26 23:10:52 +0100 |
commit | d6fccc69f39def255ec5d1ea36c37c49273c23b1 (patch) | |
tree | 3f17ce54a4177f3e33a081ce3092c5c271b90dcd /config.tests/unix | |
parent | 3f91558d400be62be96fc3c6da36ad846ccddc9c (diff) |
QRegularExpression: configure support for PCRE
Added PCRE config.tests, and logic and command line options
(-qt-pcre and -system-pcre) for configure and configure.exe.
Change-Id: I5da2658191198dbcf48c07d7c5de1be1b884a7a5
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'config.tests/unix')
-rw-r--r-- | config.tests/unix/pcre/pcre.cpp | 51 | ||||
-rw-r--r-- | config.tests/unix/pcre/pcre.pro | 3 |
2 files changed, 54 insertions, 0 deletions
diff --git a/config.tests/unix/pcre/pcre.cpp b/config.tests/unix/pcre/pcre.cpp new file mode 100644 index 0000000000..9bdef6da5c --- /dev/null +++ b/config.tests/unix/pcre/pcre.cpp @@ -0,0 +1,51 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Giuseppe D'Angelo <dangelog@gmail.com>. +** Contact: http://www.qt-project.org/ +** +** This file is part of the config.tests of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** GNU Lesser General Public License Usage +** 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, Nokia gives you certain additional +** rights. These rights are described in the Nokia 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. +** +** Other Usage +** Alternatively, this file may be used in accordance with the terms and +** conditions contained in a signed written agreement between you and Nokia. +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include <pcre.h> + +#if (PCRE_MAJOR < 8) || ((PCRE_MAJOR == 8) && (PCRE_MINOR < 30)) +#error This PCRE version is not supported +#endif + +int main(int, char **) +{ + return 0; +} + diff --git a/config.tests/unix/pcre/pcre.pro b/config.tests/unix/pcre/pcre.pro new file mode 100644 index 0000000000..b29c55da47 --- /dev/null +++ b/config.tests/unix/pcre/pcre.pro @@ -0,0 +1,3 @@ +SOURCES = pcre.cpp +CONFIG -= qt dylib app_bundle +LIBS += -lpcre16 |