|
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 |
|
32 !win32|win32-g++ { |
|
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* { |
|
49 DEFINES += Q_SOLARIS_VERSION=$$system(uname -r | sed -e 's/5\.//') |
|
50 } |