-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquazip.pro
57 lines (46 loc) · 1.19 KB
/
quazip.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
TEMPLATE = lib
CONFIG += qt warn_on
QT -= gui
# The ABI version.
!win32:VERSION = 1.0.0
greaterThan(QT_MAJOR_VERSION, 4) {
DEFINES += QT_DEPRECATED_WARNINGS
# disable all the Qt APIs deprecated before Qt 6.0.0
# DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000
}
# This one handles dllimport/dllexport directives.
DEFINES += QUAZIP_BUILD
DEFINES += QT_NO_CAST_FROM_ASCII
DEFINES += QT_NO_CAST_TO_ASCII
# You'll need to define this one manually if using a build system other
# than qmake or using QuaZIP sources directly in your project.
# CONFIG(staticlib): DEFINES += QUAZIP_STATIC
# Input
include(quazip/quazip/quazip.pri)
TARGET = quazip
DESTDIR = quazip
unix {
headers.path = $$PREFIX/include/quazip
headers.files = $$HEADERS
INSTALLS += headers
}
unix:!android {
LIBS += $$OUT_PWD/zlib/libzlib.so
}
android {
LIBS += $$OUT_PWD/zlib/libzlib_$${QT_ARCH}.so
}
macos {
LIBS += $$OUT_PWD/zlib/libzlib.dylib
}
ios {
LIBS += $$OUT_PWD/zlib/libzlib.a
}
win32 {
headers.path = $$PREFIX/include/quazip
headers.files = $$HEADERS
INSTALLS += headers
LIBS += $$OUT_PWD/zlib/zlib.dll
# workaround for qdatetime.h macro bug
DEFINES += NOMINMAX
}