]> git.saurik.com Git - apple/javascriptcore.git/blame - pcre/pcre.pri
JavaScriptCore-554.1.tar.gz
[apple/javascriptcore.git] / pcre / pcre.pri
CommitLineData
b37bf2e1
A
1# Perl Compatible Regular Expressions - Qt4 build info
2VPATH += $$PWD
9dae56ea 3INCLUDEPATH += $$PWD $$OUTPUT_DIR/JavaScriptCore/tmp
b37bf2e1
A
4DEPENDPATH += $$PWD
5
6isEmpty(GENERATED_SOURCES_DIR):GENERATED_SOURCES_DIR = tmp
7
8SOURCES += \
9 pcre_compile.cpp \
10 pcre_exec.cpp \
11 pcre_tables.cpp \
12 pcre_ucp_searchfuncs.cpp \
13 pcre_xclass.cpp
14
15!CONFIG(QTDIR_build) {
16 defineTest(addExtraCompiler) {
17 QMAKE_EXTRA_COMPILERS += $$1
18 generated_files.depends += compiler_$${1}_make_all
19 export(QMAKE_EXTRA_COMPILERS)
20 export(generated_files.depends)
21 return(true)
22 }
23}
24
25# GENERATOR: "chartables.c": compile and execute the chartables generator (and add it to sources)
9dae56ea 26win32-msvc*|wince*: PREPROCESSOR = "--preprocessor=\"$$QMAKE_CC /E\""
b37bf2e1
A
27DFTABLES = $$PWD/dftables
28ctgen.input = DFTABLES
29ctgen.output = $$GENERATED_SOURCES_DIR/chartables.c
9dae56ea 30ctgen.commands = perl $$DFTABLES ${QMAKE_FILE_OUT} $$PREPROCESSOR
b37bf2e1
A
31ctgen.CONFIG += target_predeps no_link
32ctgen.variable_out = GENERATED_SOURCES
33ctgen.dependency_type = TYPE_C
34ctgen.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_GENERATED_SOURCES_DIR}${QMAKE_FILE_BASE}
35addExtraCompiler(ctgen)