Skip to content

Commit

Permalink
Support finding quazip1 using pkg-config
Browse files Browse the repository at this point in the history
Allow system QuaZip to be used.
  • Loading branch information
cjmayo committed Aug 5, 2023
1 parent fe6d2f9 commit 48bb318
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pri/quazipdetect.pri
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ message("Using fritzing quazip detect script.")
SOURCES += \
src/zlibdummy.c \

packagesExist(quazip1-qt$$QT_MAJOR_VERSION) {
PKGCONFIG += quazip1-qt$$QT_MAJOR_VERSION
message("found quazip using pkg-config")
return()
}

exists($$absolute_path($$PWD/../../quazip_qt$$QT_MAJOR_VERSION)) {
QUAZIPPATH = $$absolute_path($$PWD/../../quazip_qt$$QT_MAJOR_VERSION)
message("found quazip in $${QUAZIPPATH}")
Expand Down Expand Up @@ -56,4 +62,4 @@ win32 {
}

LIBS += -L$$QUAZIPLIB -lquazip1-qt$$QT_MAJOR_VERSION
}
}

0 comments on commit 48bb318

Please sign in to comment.