mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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
|
SOURCES += $$PWD/compressed_archive.cpp
|
||||||
|
|
||||||
unix:!macx {
|
unix:!macx:!contains(QT_CONFIG, no-pkg-config):packagesExist(libunarr) {
|
||||||
!contains(QT_CONFIG, no-pkg-config):packagesExist(libunarr) {
|
message(Using system provided unarr installation found by pkg-config.)
|
||||||
message(Using system provided unarr installation found by pkg-config.)
|
CONFIG += link_pkgconfig
|
||||||
CONFIG += link_pkgconfig
|
PKGCONFIG += libunarr
|
||||||
PKGCONFIG += libunarr
|
DEFINES += use_unarr
|
||||||
DEFINES += use_unarr
|
|
||||||
}
|
|
||||||
else:exists(/usr/include/unarr.h) {
|
|
||||||
message(Using system provided unarr installation.)
|
|
||||||
LIBS += -lunarr
|
|
||||||
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) {
|
else:macx:exists(../../dependencies/unarr/macx/libunarr.a) {
|
||||||
message(Found prebuilt unarr library in dependencies directory.)
|
message(Found prebuilt unarr library in dependencies directory.)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user