Bump mtxclient

This commit is contained in:
Nicolas Werner 2022-10-12 21:20:17 +02:00
parent 03fc88281d
commit a1dd02d763
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
3 changed files with 22 additions and 3 deletions

View file

@ -13,7 +13,7 @@ build-clazy:
TRAVIS_OS_NAME: linux TRAVIS_OS_NAME: linux
before_script: before_script:
- apt-get update - apt-get update
- apt-get -y install --no-install-suggests --no-install-recommends ca-certificates build-essential ninja-build cmake gcc make automake liblmdb-dev - apt-get -y install --no-install-suggests --no-install-recommends ca-certificates build-essential ninja-build cmake gcc make automake liblmdb-dev libre2-dev
libssl-dev libqt5multimedia5-plugins libqt5multimediagsttools5 libqt5multimediaquick5 libqt5svg5-dev libssl-dev libqt5multimedia5-plugins libqt5multimediagsttools5 libqt5multimediaquick5 libqt5svg5-dev
qtmultimedia5-dev qtquickcontrols2-5-dev qttools5-dev qttools5-dev-tools qtdeclarative5-dev qtmultimedia5-dev qtquickcontrols2-5-dev qttools5-dev qttools5-dev-tools qtdeclarative5-dev
qml-module-qtmultimedia qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qt-labs-platform qml-module-qtmultimedia qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qt-labs-platform

View file

@ -61,6 +61,7 @@ option(USE_BUNDLED_COEURL "Use a bundled version of the Curl wrapper"
${HUNTER_ENABLED}) ${HUNTER_ENABLED})
option(USE_BUNDLED_LIBEVENT "Use the bundled version of libevent." ${HUNTER_ENABLED}) option(USE_BUNDLED_LIBEVENT "Use the bundled version of libevent." ${HUNTER_ENABLED})
option(USE_BUNDLED_LIBCURL "Use the bundled version of libcurl." ${HUNTER_ENABLED}) option(USE_BUNDLED_LIBCURL "Use the bundled version of libcurl." ${HUNTER_ENABLED})
option(USE_BUNDLED_RE2 "Use the bundled version of re2." ${HUNTER_ENABLED})
include(CMakeDependentOption) include(CMakeDependentOption)
set(VOIP_DEFAULT ON) set(VOIP_DEFAULT ON)
@ -208,6 +209,15 @@ if (NOT COEURL_TARGET_NAME)
message(ERROR "Couldn't find coeurl") message(ERROR "Couldn't find coeurl")
endif() endif()
if(USE_BUNDLED_RE2)
hunter_add_package(re2)
find_package(re2 CONFIG REQUIRED)
else()
find_package(PkgConfig REQUIRED)
pkg_check_modules(re2 REQUIRED IMPORTED_TARGET re2)
endif()
# #
# LMDB # LMDB
# #
@ -583,7 +593,7 @@ if(USE_BUNDLED_MTXCLIENT)
FetchContent_Declare( FetchContent_Declare(
MatrixClient MatrixClient
GIT_REPOSITORY https://github.com/Nheko-Reborn/mtxclient.git GIT_REPOSITORY https://github.com/Nheko-Reborn/mtxclient.git
GIT_TAG 5ef4460c26acb02f24530db1c6058534b87014f6 GIT_TAG fc10a689fd6dbcd8e99e45903d0bd6351577f300
) )
set(BUILD_LIB_EXAMPLES OFF CACHE INTERNAL "") set(BUILD_LIB_EXAMPLES OFF CACHE INTERNAL "")
set(BUILD_LIB_TESTS OFF CACHE INTERNAL "") set(BUILD_LIB_TESTS OFF CACHE INTERNAL "")

View file

@ -145,6 +145,15 @@ modules:
- sha256: 1155fd1a83049767360e9a120c43c578145db3204d2b309eba49fbbedd0f4ed3 - sha256: 1155fd1a83049767360e9a120c43c578145db3204d2b309eba49fbbedd0f4ed3
type: archive type: archive
url: https://github.com/nlohmann/json/archive/v3.10.4.tar.gz url: https://github.com/nlohmann/json/archive/v3.10.4.tar.gz
- buildsystem: simple
build-commands:
- make static
- make prefix=/app static-install
name: re2
sources:
- sha256: f89c61410a072e5cbcf8c27e3a778da7d6fd2f2b5b1445cd4f4508bee946ab0f
type: archive
url: https://github.com/google/re2/archive/refs/tags/2022-06-01.tar.gz
- buildsystem: qmake - buildsystem: qmake
name: qt-jdenticon name: qt-jdenticon
no-make-install: true no-make-install: true
@ -173,7 +182,7 @@ modules:
buildsystem: cmake-ninja buildsystem: cmake-ninja
name: mtxclient name: mtxclient
sources: sources:
- commit: 5ef4460c26acb02f24530db1c6058534b87014f6 - commit: fc10a689fd6dbcd8e99e45903d0bd6351577f300
#tag: v0.8.2 #tag: v0.8.2
type: git type: git
url: https://github.com/Nheko-Reborn/mtxclient.git url: https://github.com/Nheko-Reborn/mtxclient.git