diff --git a/compressed_archive/unarr/unarr-wrapper.pri b/compressed_archive/unarr/unarr-wrapper.pri index c8f10d8d..9e6a53b9 100644 --- a/compressed_archive/unarr/unarr-wrapper.pri +++ b/compressed_archive/unarr/unarr-wrapper.pri @@ -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.)