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 | os2:TARGET_SHORT = QtCLuc
|
---|
16 |
|
---|
17 | DEFINES += QHELP_LIB
|
---|
18 | include(../../../../src/qbase.pri)
|
---|
19 | include(fulltextsearch.pri)
|
---|
20 |
|
---|
21 | CONFIG += qt warn_off
|
---|
22 | contains(QT_CONFIG, reduce_exports) {
|
---|
23 | CONFIG += hide_symbols
|
---|
24 | # workaround for compiler errors on Ubuntu
|
---|
25 | linux*-g++*:DEFINES += _GLIBCXX_EXTERN_TEMPLATE=0
|
---|
26 | }
|
---|
27 |
|
---|
28 | unix:QMAKE_PKGCONFIG_REQUIRES = QtCore
|
---|
29 |
|
---|
30 | # impossible to disable exceptions in clucene atm
|
---|
31 | CONFIG(exceptions_off) {
|
---|
32 | CONFIG -= exceptions_off
|
---|
33 | CONFIG += exceptions
|
---|
34 | !win32|win32-g++* {
|
---|
35 | QMAKE_CFLAGS -= -fno-exceptions
|
---|
36 | QMAKE_CXXFLAGS -= -fno-exceptions
|
---|
37 | QMAKE_LFLAGS -= -fno-exceptions
|
---|
38 | QMAKE_CFLAGS += -fexceptions
|
---|
39 | QMAKE_CXXFLAGS += -fexceptions
|
---|
40 | QMAKE_LFLAGS += -fexceptions
|
---|
41 | }
|
---|
42 | }
|
---|
43 |
|
---|
44 | win32-msvc.net | win32-msvc2* {
|
---|
45 | QMAKE_CFLAGS_RELEASE -= -O2
|
---|
46 | QMAKE_CXXFLAGS_RELEASE -= -O2
|
---|
47 | }
|
---|
48 |
|
---|
49 | # the following define could be set globally in case we need it elsewhere
|
---|
50 | solaris* {
|
---|
51 | DEFINES += Q_SOLARIS_VERSION=$$system(uname -r | sed -e 's/5\\.//')
|
---|
52 | }
|
---|