From e21629f0210b58835f46230ff8e2aa078a387d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 5 Jan 2025 08:33:04 +0100 Subject: [PATCH] Link abseil on Windows if required by protobuf --- .appveyor.yml | 2 +- pbfplugin.pro | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index 161bd8b..6a09994 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -22,7 +22,7 @@ install: build_script: - cmd: |- - qmake PROTOBUF=%VCPKGDIR% ZLIB=%VCPKGDIR% pbfplugin.pro + qmake PROTOBUF=%VCPKGDIR% ZLIB=%VCPKGDIR% ABSEIL=%VCPKGDIR% pbfplugin.pro nmake release artifacts: diff --git a/pbfplugin.pro b/pbfplugin.pro index 7ca7b41..41f835d 100644 --- a/pbfplugin.pro +++ b/pbfplugin.pro @@ -51,6 +51,9 @@ win32 { $$ZLIB/include LIBS += $$PROTOBUF/lib/libprotobuf-lite.lib \ $$ZLIB/lib/zlibstatic.lib + !isEmpty(ABSEIL) { + LIBS += $$ABSEIL/lib/absl.lib + } QMAKE_TARGET_PRODUCT = QtPBFImagePlugin QMAKE_TARGET_DESCRIPTION = Qt $$QT_VERSION MVT/PBF image plugin