-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathbiblioteq.osx.pro
80 lines (73 loc) · 2.88 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
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 printsupport widgets
QT -= webkit
QMAKE_CLEAN += BiblioteQ
QMAKE_CXX = clang++
QMAKE_CXXFLAGS_RELEASE += -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
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
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 \
zzz