forked from textbrowser/biblioteq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
biblioteq.osx.pro
115 lines (105 loc) · 4.58 KB
/
biblioteq.osx.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
include(biblioteq-source.pro)
purge.commands = find . -name '*~*' -exec rm -f {} \;
CONFIG += app_bundle qt release thread warn_on
DEFINES += QT_DEPRECATED_WARNINGS
LANGUAGE = C++
QT += network sql
QT -= webkit
exists(/usr/local/opt/poppler-qt5/include/poppler/cpp) {
DEFINES += BIBLIOTEQ_POPPLER_VERSION_DEFINED
INCLUDEPATH += /usr/local/opt/poppler-qt5/include/poppler/cpp
} else {
message("The directory " \
"/usr/local/opt/poppler-qt5/include/poppler/cpp " \
"does not exist. Poppler version information will not be available.")
}
exists(/usr/local/opt/poppler-qt5)
{
DEFINES += BIBLIOTEQ_LINKED_WITH_POPPLER
INCLUDEPATH += /usr/local/opt/poppler-qt5/include/poppler/qt5
LIBS += -L/usr/local/opt/poppler-qt5/lib -lpoppler-qt5
QT += printsupport widgets
}
QMAKE_CLEAN += BiblioteQ
QMAKE_CXX = clang++
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -O3 \
-Wall \
-Wcast-align \
-Wcast-qual \
-Wdouble-promotion \
-Wextra \
-Wformat=2 \
-Wno-deprecated-declarations \
-Woverloaded-virtual \
-Wpointer-arith \
-Wstack-protector \
-Wstrict-overflow=5 \
-fPIE \
-fstack-protector-all \
-fwrapv \
-pedantic \
-std=c++17
QMAKE_DISTCLEAN += -r temp .qmake.cache .qmake.stash
QMAKE_EXTRA_TARGETS = purge
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13
ICON = Icons/book.icns
INCLUDEPATH += /usr/local/include \
Source \
temp
LIBS += -L/usr/local/lib \
-framework Cocoa \
-lpq \
-lsqlite3
exists(/usr/local/include/yaz) {
DEFINES += BIBLIOTEQ_LINKED_WITH_YAZ
LIBS += -lyaz
}
OBJECTIVE_HEADERS += Source/CocoaInitializer.h
OBJECTIVE_SOURCES += Source/CocoaInitializer.mm
PROJECTNAME = BiblioteQ
TARGET = BiblioteQ
TEMPLATE = app
biblioteq.files = BiblioteQ.app/*
biblioteq.path = /Applications/BiblioteQ.d/BiblioteQ.app
conf.files = biblioteq.conf
conf.path = /Applications/BiblioteQ.d
data.files = Data/*
data.path = /Applications/BiblioteQ.d/Data
doc1.files = Documentation/*.html Documentation/*.pdf Documentation/*.txt Documentation/TO-DO
doc1.path = /Applications/BiblioteQ.d/Documentation
doc2.files = Documentation/Contributed/*.docx Documentation/Contributed/*.html Documentation/Contributed/*.pdf
doc2.path = /Applications/BiblioteQ.d/Documentation/Contributed
install_name_tool1.extra = install_name_tool -change /usr/local/Cellar/nettle/3.7.3/lib/libnettle.8.dylib @executable_path/../Frameworks/libnettle.8.dylib /Applications/BiblioteQ.d/BiblioteQ.app/Contents/Frameworks/libhogweed.6.dylib
install_name_tool1.path = .
install_name_tool2.extra = install_name_tool -change /usr/local/Cellar/poppler/22.02.0/lib/libpoppler.118.dylib @executable_path/../Frameworks/libpoppler.118.dylib /Applications/BiblioteQ.d/BiblioteQ.app/Contents/Frameworks/libpoppler-qt5.1.dylib
install_name_tool2.path = .
install_name_tool3.extra = install_name_tool -change /usr/local/Cellar/poppler/22.02.0/lib/libpoppler.118.dylib @executable_path/../Frameworks/libpoppler.118.dylib /Applications/BiblioteQ.d/BiblioteQ.app/Contents/Frameworks/libpoppler-qt5.1.dylib
install_name_tool3.path = .
lrelease.extra = $$[QT_INSTALL_BINS]/lrelease biblioteq.osx.pro
lrelease.path = .
lupdate.extra = $$[QT_INSTALL_BINS]/lupdate biblioteq.osx.pro
lupdate.path = .
macdeployqt.extra = $$[QT_INSTALL_BINS]/macdeployqt ./BiblioteQ.app -verbose=0 2>/dev/null; echo;
macdeployqt.path = BiblioteQ.app
postinstall.extra = cp -r BiblioteQ.app /Applications/BiblioteQ.d/.
postinstall.path = /Applications/BiblioteQ.d
preinstall.extra = rm -fr /Applications/BiblioteQ.d/BiblioteQ.app/*
preinstall.path = /Applications/BiblioteQ.d
sql.files = SQL/*.sql
sql.path = /Applications/BiblioteQ.d
zzz.extra = chown -Rh root:wheel /Applications/BiblioteQ.d
zzz.path = /Applications/BiblioteQ.d
INSTALLS = preinstall \
macdeployqt \
biblioteq \
conf \
data \
doc1 \
doc2 \
sql \
postinstall \
install_name_tool1 \
install_name_tool2 \
install_name_tool3 \
zzz