author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Fri, 17 Sep 2010 08:34:18 +0300 | |
changeset 36 | ef0373b55136 |
parent 33 | 3e2da88830cd |
permissions | -rw-r--r-- |
0 | 1 |
|
2 |
QMAKE_TARGET_PRODUCT = QtCLucene |
|
3 |
QMAKE_TARGET_DESCRIPTION = QtCLucene full text search library wrapper. |
|
4 |
#if qt is built with frameworks in debug, we must build QtCLucene in debug and release |
|
5 |
#that's a similar logic as in qbase.pri |
|
6 |
mac:!static:contains(QT_CONFIG, qt_framework) { |
|
7 |
CONFIG(debug, debug|release) { |
|
8 |
!build_pass:CONFIG += build_all |
|
9 |
} |
|
10 |
} |
|
11 |
QT_CONFIG -= qt_framework |
|
12 |
QT -= gui |
|
13 |
TEMPLATE = lib |
|
14 |
TARGET = QtCLucene |
|
15 |
DEFINES += QHELP_LIB |
|
16 |
include(../../../../src/qbase.pri) |
|
17 |
include(fulltextsearch.pri) |
|
18 |
||
19 |
CONFIG += qt warn_off |
|
20 |
contains(QT_CONFIG, reduce_exports) { |
|
21 |
CONFIG += hide_symbols |
|
22 |
# workaround for compiler errors on Ubuntu |
|
23 |
linux*-g++*:DEFINES += _GLIBCXX_EXTERN_TEMPLATE=0 |
|
24 |
} |
|
25 |
||
26 |
unix:QMAKE_PKGCONFIG_REQUIRES = QtCore |
|
27 |
||
28 |
# impossible to disable exceptions in clucene atm |
|
29 |
CONFIG(exceptions_off) { |
|
30 |
CONFIG -= exceptions_off |
|
31 |
CONFIG += exceptions |
|
33
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
32 |
!win32|win32-g++* { |
0 | 33 |
QMAKE_CFLAGS -= -fno-exceptions |
34 |
QMAKE_CXXFLAGS -= -fno-exceptions |
|
35 |
QMAKE_LFLAGS -= -fno-exceptions |
|
36 |
QMAKE_CFLAGS += -fexceptions |
|
37 |
QMAKE_CXXFLAGS += -fexceptions |
|
38 |
QMAKE_LFLAGS += -fexceptions |
|
39 |
} |
|
40 |
} |
|
41 |
||
42 |
win32-msvc.net | win32-msvc2* { |
|
43 |
QMAKE_CFLAGS_RELEASE -= -O2 |
|
44 |
QMAKE_CXXFLAGS_RELEASE -= -O2 |
|
45 |
} |
|
46 |
||
47 |
# the following define could be set globally in case we need it elsewhere |
|
48 |
solaris* { |
|
33
3e2da88830cd
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
49 |
DEFINES += Q_SOLARIS_VERSION=$$system(uname -r | sed -e 's/5\\.//') |
0 | 50 |
} |