mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 07:24:58 -04:00
Unarr: use static lib for mac builds.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
#include "extract_delegate.h"
|
||||
|
||||
extern"C" {
|
||||
#include "unarr.h"
|
||||
#include <unarr.h>
|
||||
}
|
||||
|
||||
CompressedArchive::CompressedArchive(const QString & filePath, QObject *parent) :
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include <QObject>
|
||||
#include "extract_delegate.h"
|
||||
extern"C" {
|
||||
#include "unarr.h"
|
||||
#include <unarr.h>
|
||||
}
|
||||
|
||||
class CompressedArchive : public QObject
|
||||
|
@ -11,8 +11,10 @@ unix:!macx:exists (/usr/include/unarr.h) {
|
||||
LIBS+=-lunarr
|
||||
DEFINES+=use_unarr
|
||||
}
|
||||
else:macx:exists (../../dependencies/unarr/libunarr.dynlib) {
|
||||
LIBS += -L../../dependencies/unarr/ -lunarr
|
||||
else:macx:exists (../../dependencies/unarr/libunarr.a) {
|
||||
message(Found prebuilt unarr library.)
|
||||
INCLUDEPATH += $$PWD/../../dependencies/unarr
|
||||
LIBS += -L$$PWD/../../dependencies/unarr/ -lunarr -lz -lbz2
|
||||
DEFINES+=use_unarr
|
||||
}
|
||||
|
||||
@ -33,4 +35,4 @@ else:exists ($$PWD/unarr-master) {
|
||||
else {
|
||||
error(Missing dependency: unarr decrompression backend. Please install libunarr on your system\
|
||||
or provide a copy of the unarr source code in compressed_archive/unarr/unarr-master)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user