-
Notifications
You must be signed in to change notification settings - Fork 0
/
libarchive.pri
39 lines (37 loc) · 873 Bytes
/
libarchive.pri
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
# Windows
win32 {
# Add libarchive libs
!contains(QMAKE_TARGET.arch, x86_64) {
INCLUDEPATH += $$PWD/vcpkg/installed/x86-windows-static/include
DEPENDPATH += $$PWD/vcpkg/installed/x86-windows-static/include
LIBS += -L$$PWD/vcpkg/installed/x86-windows-static/lib/
} else {
INCLUDEPATH += $$PWD/vcpkg/installed/x64-windows-static/include
DEPENDPATH += $$PWD/vcpkg/installed/x64-windows-static/include
LIBS += -L$$PWD/vcpkg/installed/x64-windows-static/lib/
}
# Add extra windows libs
LIBS += -lAdvapi32 -lUser32 -lCrypt32 -lWs2_32
}
# MacOS
macx: {
CONFIG += sdk_no_version_check
}
#Linux
unix:!macx {
}
# Shared
LIBS += \
-larchive \
-lbz2 \
-lcharset \
-liconv \
-llibcrypto \
-llibssl \
-llibxml2 \
-llz4 \
-llzma \
-llzo2 \
-lxxhash \
-lzlib \
-lzstd_static