mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Unarr: use static lib for mac builds.
This commit is contained in:
parent
7f6a248fe2
commit
7ac9860e60
@ -16,14 +16,9 @@ lessThan(QT_VER_MIN, 3){
|
|||||||
}
|
}
|
||||||
!CONFIG(unarr):!CONFIG(7zip) {
|
!CONFIG(unarr):!CONFIG(7zip) {
|
||||||
unix {
|
unix {
|
||||||
!macx {
|
|
||||||
CONFIG+=unarr
|
CONFIG+=unarr
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
CONFIG+=7zip
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
win32 {
|
win32 {
|
||||||
CONFIG+=7zip
|
CONFIG+=7zip
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "extract_delegate.h"
|
#include "extract_delegate.h"
|
||||||
|
|
||||||
extern"C" {
|
extern"C" {
|
||||||
#include "unarr.h"
|
#include <unarr.h>
|
||||||
}
|
}
|
||||||
|
|
||||||
CompressedArchive::CompressedArchive(const QString & filePath, QObject *parent) :
|
CompressedArchive::CompressedArchive(const QString & filePath, QObject *parent) :
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include "extract_delegate.h"
|
#include "extract_delegate.h"
|
||||||
extern"C" {
|
extern"C" {
|
||||||
#include "unarr.h"
|
#include <unarr.h>
|
||||||
}
|
}
|
||||||
|
|
||||||
class CompressedArchive : public QObject
|
class CompressedArchive : public QObject
|
||||||
|
@ -11,8 +11,10 @@ unix:!macx:exists (/usr/include/unarr.h) {
|
|||||||
LIBS+=-lunarr
|
LIBS+=-lunarr
|
||||||
DEFINES+=use_unarr
|
DEFINES+=use_unarr
|
||||||
}
|
}
|
||||||
else:macx:exists (../../dependencies/unarr/libunarr.dynlib) {
|
else:macx:exists (../../dependencies/unarr/libunarr.a) {
|
||||||
LIBS += -L../../dependencies/unarr/ -lunarr
|
message(Found prebuilt unarr library.)
|
||||||
|
INCLUDEPATH += $$PWD/../../dependencies/unarr
|
||||||
|
LIBS += -L$$PWD/../../dependencies/unarr/ -lunarr -lz -lbz2
|
||||||
DEFINES+=use_unarr
|
DEFINES+=use_unarr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,14 +26,8 @@ CONFIG(no_opengl) {
|
|||||||
|
|
||||||
!CONFIG(unarr):!CONFIG(7zip) {
|
!CONFIG(unarr):!CONFIG(7zip) {
|
||||||
unix {
|
unix {
|
||||||
!macx {
|
|
||||||
CONFIG+=unarr
|
CONFIG+=unarr
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
CONFIG+=7zip
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
win32 {
|
win32 {
|
||||||
CONFIG+=7zip
|
CONFIG+=7zip
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user