mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Add error for libarchive on win32 and macx
This commit is contained in:
parent
66c2e97752
commit
636c339699
@ -6,7 +6,7 @@ HEADERS += $$PWD/extract_delegate.h \
|
||||
|
||||
SOURCES += $$PWD/compressed_archive.cpp
|
||||
|
||||
if(mingw|unix):!contains(QT_CONFIG, no-pkg-config):packagesExist(libarchive) {
|
||||
if(mingw|unix):!macx:!contains(QT_CONFIG, no-pkg-config):packagesExist(libarchive) {
|
||||
message(Using system provided libarchive installation found by pkg-config.)
|
||||
!system(pkg-config --atleast-version=3.6.0 libarchive) {
|
||||
LIBARCHIVE_WARNING = "libarchive < 3.6.0 found. Older versions of libarchive DO NOT SUPPORT RARv4 files. This is probably not what you want"
|
||||
@ -18,11 +18,14 @@ if(mingw|unix):!contains(QT_CONFIG, no-pkg-config):packagesExist(libarchive) {
|
||||
PKGCONFIG += libarchive
|
||||
DEFINES += use_libarchive
|
||||
}
|
||||
else:unix:exists(/usr/include/archive.h) {
|
||||
else:unix:!macx:exists(/usr/include/archive.h) {
|
||||
message(Using system provided libarchive installation.)
|
||||
LIBS += -larchive
|
||||
DEFINES += use_libarchive
|
||||
}
|
||||
else:if(win32|macx) {
|
||||
error(Unsupported: the libarchive decompression backend is not currently supported on this system.)
|
||||
}
|
||||
else {
|
||||
error(Missing dependency: libarchive decompression backend. Please install libarchive on your system)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user