forked from textbrowser/biblioteq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
biblioteq.pro
184 lines (163 loc) · 6.03 KB
/
biblioteq.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
greaterThan(QT_MAJOR_VERSION, 4) {
cache()
}
doxygen.commands = doxygen biblioteq.doxygen
purge.commands = rm -f *~ && rm -f */*~
CONFIG += copy_dir_files qt release thread warn_on
DEFINES += BIBLIOTEQ_CONFIGFILE="'\"biblioteq.conf\"'"
LANGUAGE = C++
QT -= webkit
QT += network sql
lessThan(QT_MAJOR_VERSION, 5) {
exists(/usr/include/poppler/qt4) {
DEFINES += BIBLIOTEQ_LINKED_WITH_POPPLER
INCLUDEPATH += /usr/include/poppler/qt4
LIBS += -lpoppler-qt4
}
}
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 will not be available.")
}
greaterThan(QT_MAJOR_VERSION, 4) {
QT += printsupport widgets
}
TEMPLATE = app
QMAKE_CLEAN += BiblioteQ
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -Wall -Wcast-align -Wcast-qual -Werror -Wextra \
-Wformat=2 -Woverloaded-virtual -Wpointer-arith \
-Wstrict-overflow=5 \
-Wstack-protector -O3 -fPIE -fstack-protector-all \
-fwrapv -mtune=generic -pie
QMAKE_DISTCLEAN += -r temp
greaterThan(QT_MAJOR_VERSION, 4) {
QMAKE_DISTCLEAN += .qmake.cache .qmake.stash
}
QMAKE_EXTRA_TARGETS = doxygen purge
ICON = Icons/book.png
INCLUDEPATH += Source temp
LIBS += -lsqlite3 -lyaz
RESOURCES = Icons/icons.qrc
FORMS = UI/biblioteq_adminsetup.ui \
UI/biblioteq_allinfo.ui \
UI/biblioteq_bookcopybrowser.ui \
UI/biblioteq_bookinfo.ui \
UI/biblioteq_borrowers.ui \
UI/biblioteq_branch_s.ui \
UI/biblioteq_cdinfo.ui \
UI/biblioteq_copybrowser.ui \
UI/biblioteq_customquery.ui \
UI/biblioteq_dbenumerations.ui \
UI/biblioteq_dvdinfo.ui \
UI/biblioteq_errordiag.ui \
UI/biblioteq_history.ui \
UI/biblioteq_maginfo.ui \
UI/biblioteq_mainwindow.ui \
UI/biblioteq_members_browser.ui \
UI/biblioteq_otheroptions.ui \
UI/biblioteq_password.ui \
UI/biblioteq_passwordPrompt.ui \
UI/biblioteq_pdfreader.ui \
UI/biblioteq_photograph.ui \
UI/biblioteq_photographinfo.ui \
UI/biblioteq_photographview.ui \
UI/biblioteq_sruResults.ui \
UI/biblioteq_tracks.ui \
UI/biblioteq_userinfo.ui \
UI/biblioteq_videogameinfo.ui \
UI/biblioteq_z3950results.ui
UI_DIR = temp
HEADERS = Source/biblioteq.h \
Source/biblioteq_bgraphicsscene.h \
Source/biblioteq_book.h \
Source/biblioteq_borrowers_editor.h \
Source/biblioteq_cd.h \
Source/biblioteq_copy_editor.h \
Source/biblioteq_copy_editor_book.h \
Source/biblioteq_dbenumerations.h \
Source/biblioteq_dvd.h \
Source/biblioteq_generic_thread.h \
Source/biblioteq_hyperlinked_text_edit.h \
Source/biblioteq_image_drop_site.h \
Source/biblioteq_item.h \
Source/biblioteq_magazine.h \
Source/biblioteq_main_table.h \
Source/biblioteq_myqstring.h \
Source/biblioteq_otheroptions.h \
Source/biblioteq_pdfreader.h \
Source/biblioteq_photographcollection.h \
Source/biblioteq_sruResults.h \
Source/biblioteq_videogame.h \
Source/biblioteq_z3950results.h
SOURCES = Source/biblioteq_a.cc \
Source/biblioteq_b.cc \
Source/biblioteq_bgraphicsscene.cc \
Source/biblioteq_book.cc \
Source/biblioteq_borrowers_editor.cc \
Source/biblioteq_c.cc \
Source/biblioteq_callnum_table_item.cc \
Source/biblioteq_cd.cc \
Source/biblioteq_copy_editor.cc \
Source/biblioteq_copy_editor_book.cc \
Source/biblioteq_dbenumerations.cc \
Source/biblioteq_dvd.cc \
Source/biblioteq_generic_thread.cc \
Source/biblioteq_hyperlinked_text_edit.cc \
Source/biblioteq_image_drop_site.cc \
Source/biblioteq_item.cc \
Source/biblioteq_journal.cc \
Source/biblioteq_magazine.cc \
Source/biblioteq_main_table.cc \
Source/biblioteq_marc.cc \
Source/biblioteq_misc_functions.cc \
Source/biblioteq_myqstring.cc \
Source/biblioteq_numeric_table_item.cc \
Source/biblioteq_otheroptions.cc \
Source/biblioteq_pdfreader.cc \
Source/biblioteq_photographcollection.cc \
Source/biblioteq_sruResults.cc \
Source/biblioteq_videogame.cc \
Source/biblioteq_z3950results.cc
TRANSLATIONS = Translations/biblioteq_ar_JO.ts \
Translations/biblioteq_cs_CZ.ts \
Translations/biblioteq_de_DE.ts \
Translations/biblioteq_el_GR.ts \
Translations/biblioteq_fr_FR.ts \
Translations/biblioteq_hu_HU.ts \
Translations/biblioteq_it_IT.ts \
Translations/biblioteq_nl_BE.ts \
Translations/biblioteq_nl_NL.ts
PROJECTNAME = BiblioteQ
TARGET = BiblioteQ
biblioteq.path = /usr/local/biblioteq
biblioteq.files = BiblioteQ
conf.path = /usr/local/biblioteq
conf.files = biblioteq.conf
lrelease.extra = $$[QT_INSTALL_BINS]/lrelease biblioteq.pro
lrelease.path = .
lupdate.extra = $$[QT_INSTALL_BINS]/lupdate biblioteq.pro
lupdate.path = .
sh.path = /usr/local/biblioteq
sh.files = biblioteq.sh
greaterThan(QT_MAJOR_VERSION, 4) {
sh.files = biblioteq.qt5.sh
}
translations.path = /usr/local/biblioteq/Translations
translations.files = Translations/*.qm
INSTALLS = biblioteq \
conf \
lupdate \
lrelease \
sh \
translations