mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Enable the usage of pkg-config by MinGW builds
This commit is contained in:
parent
30b8e1bf3c
commit
19410cd6e7
@ -6,7 +6,7 @@ HEADERS += $$PWD/extract_delegate.h \
|
||||
|
||||
SOURCES += $$PWD/compressed_archive.cpp
|
||||
|
||||
unix:!macx:!contains(QT_CONFIG, no-pkg-config):packagesExist(libunarr) {
|
||||
if(mingw|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
|
||||
|
8
dependencies/pdf_backend.pri
vendored
8
dependencies/pdf_backend.pri
vendored
@ -6,7 +6,7 @@ CONFIG(pdfium) {
|
||||
message(Using pdfium.)
|
||||
DEFINES += "USE_PDFIUM"
|
||||
SOURCES += ../common/pdf_comic.cpp
|
||||
win32 {
|
||||
msvc {
|
||||
INCLUDEPATH += $$PWD/pdfium/win/public
|
||||
contains(QMAKE_TARGET.arch, x86_64): {
|
||||
LIBS += -L$$PWD/pdfium/win/x64 -lpdfium
|
||||
@ -14,7 +14,7 @@ CONFIG(pdfium) {
|
||||
LIBS += -L$$PWD/pdfium/win/x86 -lpdfium
|
||||
}
|
||||
}
|
||||
unix {
|
||||
unix|mingw {
|
||||
macx {
|
||||
LIBS += -L$$PWD/pdfium/macx/bin -lpdfium
|
||||
INCLUDEPATH += $$PWD/pdfium/macx/include
|
||||
@ -43,7 +43,7 @@ CONFIG(pdfkit) {
|
||||
}
|
||||
|
||||
CONFIG(poppler) {
|
||||
win32 {
|
||||
msvc {
|
||||
contains(QMAKE_TARGET.arch, x86_64): {
|
||||
error ("We currently don't ship precompiled poppler libraries for 64 bit builds on Windows")
|
||||
}
|
||||
@ -54,7 +54,7 @@ CONFIG(poppler) {
|
||||
LIBS += -L$$PWD/poppler/bin
|
||||
LIBS += -L$$PWD/poppler/dependencies/bin
|
||||
}
|
||||
unix:!macx {
|
||||
if(unix|mingw):!macx {
|
||||
!contains(QT_CONFIG, no-pkg-config):packagesExist(poppler-qt5) {
|
||||
message("Using system provided installation of poppler-qt5 found by pkg-config.")
|
||||
CONFIG += link_pkgconfig
|
||||
|
Loading…
x
Reference in New Issue
Block a user