aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2023-04-30 13:45:28 +0200
committerLinus Jahn <lnj@kaidan.im>2023-04-30 13:45:28 +0200
commit19a3052f0f91d969b39bf8a6998c4578843d25b2 (patch)
treebf41579994539979ad52d3b4460afc40cafc3a4f
parentab4bdf2da41a26f462fe3a333a34e32c999e2a6d (diff)
parent5a5bebe82e740336bac1914443351d332776b90e (diff)
Merge branch '1.5'
-rw-r--r--CHANGELOG.md7
-rw-r--r--CMakeLists.txt6
-rw-r--r--qxmpp.pc.in8
-rw-r--r--qxmpp_legacy.pc.in17
-rw-r--r--src/client/QXmppHttpFileSharingProvider.cpp2
5 files changed, 32 insertions, 8 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3516f0e9..7a15f055 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,13 @@ QXmpp 1.6.0 (UNRELEASED)
*under development*
+QXmpp 1.5.5 (Apr 30, 2023)
+--------------------------
+
+Fixes:
+ - Fix dependencies in generated pkg-config files (@krop)
+ - Fix compilation with android/clang (@lnjX)
+
QXmpp 1.5.4 (Apr 07, 2023)
--------------------------
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f3e3ad94..6c6f5f3f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -126,16 +126,16 @@ install(
)
# Generate QXmppQt5/6.pc
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/qxmpp.pc.in ${CMAKE_CURRENT_BINARY_DIR}/qxmpp.pc @ONLY)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/qxmpp.pc.in ${CMAKE_CURRENT_BINARY_DIR}/${QXMPP_TARGET}.pc @ONLY)
install(
- FILES ${CMAKE_CURRENT_BINARY_DIR}/qxmpp.pc
- RENAME QXmppQt${QT_VERSION_MAJOR}.pc
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/${QXMPP_TARGET}.pc
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
COMPONENT Devel
)
# "qxmpp.pc" for backwards-compatibility
if(QT_VERSION_MAJOR EQUAL 5)
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/qxmpp_legacy.pc.in ${CMAKE_CURRENT_BINARY_DIR}/qxmpp.pc @ONLY)
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/qxmpp.pc
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
diff --git a/qxmpp.pc.in b/qxmpp.pc.in
index 06af7ab5..a745e141 100644
--- a/qxmpp.pc.in
+++ b/qxmpp.pc.in
@@ -5,13 +5,13 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
-includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@/qxmpp
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@/@QXMPP_TARGET@
-Name: Qxmpp
+Name: @QXMPP_TARGET@
Description: QXmpp Library
Version: @PROJECT_VERSION@
-Libs: -lqxmpp
-Libs.private: -lQt5Network -lQt5Xml -lQt5Core
+Libs: -l@QXMPP_TARGET@
+Libs.private: -lQt@QT_VERSION_MAJOR@Network -lQt@QT_VERSION_MAJOR@Xml -lQt@QT_VERSION_MAJOR@Core
Cflags: -I${includedir}
diff --git a/qxmpp_legacy.pc.in b/qxmpp_legacy.pc.in
new file mode 100644
index 00000000..b2f814ab
--- /dev/null
+++ b/qxmpp_legacy.pc.in
@@ -0,0 +1,17 @@
+# SPDX-FileCopyrightText: 2017 Niels Ole Salscheider <niels_ole@salscheider-online.de>
+#
+# SPDX-License-Identifier: CC0-1.0
+
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=${prefix}
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@/QXmppQt5
+
+
+Name: Qxmpp
+Description: QXmpp Library
+Version: @PROJECT_VERSION@
+Requires: QXmppQt5
+Libs: -lQXmppQt5
+Cflags: -I${includedir}
+
diff --git a/src/client/QXmppHttpFileSharingProvider.cpp b/src/client/QXmppHttpFileSharingProvider.cpp
index ecd2b4fd..03ceb4c0 100644
--- a/src/client/QXmppHttpFileSharingProvider.cpp
+++ b/src/client/QXmppHttpFileSharingProvider.cpp
@@ -151,7 +151,7 @@ auto QXmppHttpFileSharingProvider::uploadFile(std::unique_ptr<QIODevice> data,
// reduce ref count, so the signal connection doesn't keep the state alive forever
state.reset();
});
- QObject::connect(state->upload.get(), &QXmppHttpUpload::progressChanged, [stateRef = std::weak_ptr(state), reportProgress = std::move(reportProgress)]() {
+ QObject::connect(state->upload.get(), &QXmppHttpUpload::progressChanged, [stateRef = std::weak_ptr<State>(state), reportProgress = std::move(reportProgress)]() {
if (auto state = stateRef.lock()) {
reportProgress(state->upload->bytesSent(), state->upload->bytesTotal());
}