summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/pcre.pri
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <dangelog@gmail.com>2012-01-23 23:04:02 +0000
committerQt by Nokia <qt-info@nokia.com>2012-01-27 11:35:07 +0100
commite7d0d54084aa04387ebfb8cee292248df5355021 (patch)
tree57c09930a89935924b9d3c406a16c053f769a705 /src/3rdparty/pcre.pri
parent7f9b624e12731afc21f332c081b9c9a9e2a8c55e (diff)
QRegularExpression: infrastructure for importing PCRE in 3rdparty/
Added the necessary files for importing and compiling PCRE under 3rdparty/, including a small shell script to ease the import and the update of PCRE from its dist tarball. PCRE's config.h is used, but it is assumed that a global s/HAVE_CONFIG_H/PCRE_HAVE_CONFIG_H/g was run on PCRE source files to avoid polluting QtCore compilation with -DHAVE_CONFIG_H (the aforementioned shell script performs this substitution; therefore, -DPCRE_HAVE_CONFIG_H is added instead to the compiler's command line). Change-Id: Ic0f23526ebf5f770aefdffc8f688e5816c28fd8c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'src/3rdparty/pcre.pri')
-rw-r--r--src/3rdparty/pcre.pri38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/3rdparty/pcre.pri b/src/3rdparty/pcre.pri
new file mode 100644
index 0000000000..92066e1aee
--- /dev/null
+++ b/src/3rdparty/pcre.pri
@@ -0,0 +1,38 @@
+DEFINES += PCRE_HAVE_CONFIG_H
+
+# man 3 pcrejit for a list of supported platforms;
+# as PCRE 8.30, stable JIT support is available for:
+# - ARM v5, v7, and Thumb2
+# - x86/x86-64
+# - MIPS 32bit
+equals(QT_ARCH, "i386")|equals(QT_ARCH, "x86_64")|equals(QT_ARCH, "arm")|if(equals(QT_ARCH, "mips"):!*-64) {
+ DEFINES += SUPPORT_JIT
+}
+
+win32:DEFINES += PCRE_STATIC
+
+INCLUDEPATH += $$PWD/pcre
+SOURCES += \
+ $$PWD/pcre/pcre16_byte_order.c \
+ $$PWD/pcre/pcre16_chartables.c \
+ $$PWD/pcre/pcre16_compile.c \
+ $$PWD/pcre/pcre16_config.c \
+ $$PWD/pcre/pcre16_dfa_exec.c \
+ $$PWD/pcre/pcre16_exec.c \
+ $$PWD/pcre/pcre16_fullinfo.c \
+ $$PWD/pcre/pcre16_get.c \
+ $$PWD/pcre/pcre16_globals.c \
+ $$PWD/pcre/pcre16_jit_compile.c \
+ $$PWD/pcre/pcre16_maketables.c \
+ $$PWD/pcre/pcre16_newline.c \
+ $$PWD/pcre/pcre16_ord2utf16.c \
+ $$PWD/pcre/pcre16_refcount.c \
+ $$PWD/pcre/pcre16_string_utils.c \
+ $$PWD/pcre/pcre16_study.c \
+ $$PWD/pcre/pcre16_tables.c \
+ $$PWD/pcre/pcre16_ucd.c \
+ $$PWD/pcre/pcre16_utf16_utils.c \
+ $$PWD/pcre/pcre16_valid_utf16.c \
+ $$PWD/pcre/pcre16_version.c \
+ $$PWD/pcre/pcre16_xclass.c
+