mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Fix headless server builds with embedded unarr
This commit is contained in:
parent
fc454a81a3
commit
3b5e5113f9
@ -6,19 +6,17 @@ HEADERS += $$PWD/extract_delegate.h \
|
||||
|
||||
SOURCES += $$PWD/compressed_archive.cpp
|
||||
|
||||
unix:!macx {
|
||||
!contains(QT_CONFIG, no-pkg-config):packagesExist(libunarr) {
|
||||
message(Using system provided unarr installation found by pkg-config.)
|
||||
CONFIG += link_pkgconfig
|
||||
PKGCONFIG += libunarr
|
||||
DEFINES += use_unarr
|
||||
}
|
||||
else:exists(/usr/include/unarr.h) {
|
||||
message(Using system provided unarr installation.)
|
||||
LIBS += -lunarr
|
||||
DEFINES += use_unarr
|
||||
}
|
||||
unix:!macx:!contains(QT_CONFIG, no-pkg-config):packagesExist(libunarr) {
|
||||
message(Using system provided unarr installation found by pkg-config.)
|
||||
CONFIG += link_pkgconfig
|
||||
PKGCONFIG += libunarr
|
||||
DEFINES += use_unarr
|
||||
}
|
||||
else:unix:!macx:exists(/usr/include/unarr.h) {
|
||||
message(Using system provided unarr installation.)
|
||||
LIBS += -lunarr
|
||||
DEFINES += use_unarr
|
||||
}
|
||||
|
||||
else:macx:exists(../../dependencies/unarr/macx/libunarr.a) {
|
||||
message(Found prebuilt unarr library in dependencies directory.)
|
||||
|
Loading…
Reference in New Issue
Block a user