forked from textbrowser/biblioteq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
biblioteq.powerpc.pro
84 lines (72 loc) · 2.22 KB
/
biblioteq.powerpc.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
include(biblioteq-source.pro)
greaterThan(QT_MAJOR_VERSION, 4) {
cache()
}
purge.commands = find . -name '*~*' -exec rm -f {} \;
CONFIG += copy_dir_files qt release thread warn_on
DEFINES += BIBLIOTEQ_CONFIGFILE="'\"biblioteq.conf\"'"
LANGUAGE = C++
QT += network sql
QT -= webkit
lessThan(QT_MAJOR_VERSION, 5) {
exists(/usr/include/poppler/qt4) {
DEFINES += BIBLIOTEQ_LINKED_WITH_POPPLER
INCLUDEPATH += /usr/include/poppler/qt4
LIBS += -lpoppler-qt4
QMAKE_CXXFLAGS_RELEASE += -Wno-deprecated-declarations
}
}
else {
exists(/usr/include/poppler/qt5) {
DEFINES += BIBLIOTEQ_LINKED_WITH_POPPLER
INCLUDEPATH += /usr/include/poppler/qt5
LIBS += -lpoppler-qt5
}
}
exists(/usr/include/poppler/cpp) {
DEFINES += BIBLIOTEQ_POPPLER_VERSION_DEFINED
INCLUDEPATH += /usr/include/poppler/cpp
}
else {
message("The directory /usr/include/poppler/cpp does not exist. Poppler version information will not be available.")
}
greaterThan(QT_MAJOR_VERSION, 4) {
QT += printsupport widgets
}
QMAKE_CLEAN += BiblioteQ
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -O3 \
-Wall \
-Wcast-align \
-Wcast-qual \
-Wdouble-promotion \
-Wextra \
-Wformat=2 \
-Woverloaded-virtual \
-Wpointer-arith \
-Wstack-protector \
-Wstrict-overflow=5 \
-fPIE \
-fstack-protector-all \
-fwrapv \
-mabi=altivec \
-mpowerpc \
-mtune=powerpc \
-pie
QMAKE_DISTCLEAN += -r temp
greaterThan(QT_MAJOR_VERSION, 4) {
QMAKE_CXXFLAGS_RELEASE += -pedantic \
-std=c++11
QMAKE_DISTCLEAN += .qmake.cache .qmake.stash
}
QMAKE_EXTRA_TARGETS = purge
ICON = Icons/book.png
INCLUDEPATH += Source temp
LIBS += -lsqlite3
exists(/usr/include/yaz) {
DEFINES += BIBLIOTEQ_LINKED_WITH_YAZ
LIBS += -lyaz
}
PROJECTNAME = BiblioteQ
TARGET = BiblioteQ
TEMPLATE = app