mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
Bundle kcoreaddons
This commit is contained in:
parent
16669402cf
commit
2a6e2fa353
10 changed files with 18 additions and 94 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -94,3 +94,6 @@
|
|||
[submodule "Telegram/ThirdParty/kimageformats"]
|
||||
path = Telegram/ThirdParty/kimageformats
|
||||
url = https://github.com/KDE/kimageformats.git
|
||||
[submodule "Telegram/ThirdParty/kcoreaddons"]
|
||||
path = Telegram/ThirdParty/kcoreaddons
|
||||
url = https://github.com/KDE/kcoreaddons.git
|
||||
|
|
|
@ -31,7 +31,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
|
||||
#include <QtCore/QJsonDocument>
|
||||
#include <QtCore/QJsonObject>
|
||||
#include <KSandbox>
|
||||
|
||||
#include <ksandbox.h>
|
||||
|
||||
extern "C" {
|
||||
#include <openssl/rsa.h>
|
||||
|
|
|
@ -22,12 +22,12 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include <cmath>
|
||||
#include <set>
|
||||
|
||||
#if __has_include(<KUrlMimeData>)
|
||||
#include <KUrlMimeData>
|
||||
#if __has_include(<kurlmimedata.h>)
|
||||
#include <kurlmimedata.h>
|
||||
#endif
|
||||
|
||||
#if __has_include(<KSandbox>)
|
||||
#include <KSandbox>
|
||||
#if __has_include(<ksandbox.h>)
|
||||
#include <ksandbox.h>
|
||||
#endif
|
||||
|
||||
#define qsl(s) QStringLiteral(s)
|
||||
|
@ -39,7 +39,7 @@ inline bool in_range(Value &&value, From &&from, Till &&till) {
|
|||
return (value >= from) && (value < till);
|
||||
}
|
||||
|
||||
#if __has_include(<KUrlMimeData>)
|
||||
#if __has_include(<kurlmimedata.h>)
|
||||
inline QList<QUrl> GetMimeUrls(const QMimeData *data) {
|
||||
if (!data->hasUrls()) {
|
||||
return {};
|
||||
|
@ -51,7 +51,7 @@ inline QList<QUrl> GetMimeUrls(const QMimeData *data) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#if __has_include(<KSandbox>) && defined DeclareReadSetting
|
||||
#if __has_include(<ksandbox.h>) && defined DeclareReadSetting
|
||||
inline QString FlatpakID() {
|
||||
static const auto Result = [] {
|
||||
if (!qEnvironmentVariableIsEmpty("FLATPAK_ID")) {
|
||||
|
|
|
@ -21,7 +21,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "base/unixtime.h"
|
||||
#include "base/platform/base_platform_info.h"
|
||||
|
||||
#include <KSandbox>
|
||||
#include <ksandbox.h>
|
||||
#include <zlib.h>
|
||||
|
||||
namespace MTP {
|
||||
|
|
|
@ -35,8 +35,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include <QtWidgets/QSystemTrayIcon>
|
||||
#include <QtCore/QStandardPaths>
|
||||
#include <QtCore/QProcess>
|
||||
#include <KShell>
|
||||
#include <KSandbox>
|
||||
|
||||
#include <kshell.h>
|
||||
#include <ksandbox.h>
|
||||
|
||||
#ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION
|
||||
#include <glibmm.h>
|
||||
|
|
1
Telegram/ThirdParty/kcoreaddons
vendored
Submodule
1
Telegram/ThirdParty/kcoreaddons
vendored
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 3c1d4a275d06a9702f55be6e62321eca9637463f
|
|
@ -62,15 +62,6 @@ RUN git clone -b nasm-2.15.05 --depth=1 {{ GIT }}/netwide-assembler/nasm.git \
|
|||
&& cd .. \
|
||||
&& rm -rf nasm
|
||||
|
||||
FROM builder AS extra-cmake-modules
|
||||
RUN git clone -b v5.98.0 --depth=1 {{ GIT }}/KDE/extra-cmake-modules.git \
|
||||
&& cd extra-cmake-modules \
|
||||
&& cmake -GNinja -B build . -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF \
|
||||
&& cmake --build build --parallel \
|
||||
&& DESTDIR="{{ LibrariesPath }}/extra-cmake-modules-cache" cmake --install build \
|
||||
&& cd .. \
|
||||
&& rm -rf extra-cmake-modules
|
||||
|
||||
FROM builder AS libffi
|
||||
RUN git clone -b v3.4.2 --depth=1 {{ GIT }}/libffi/libffi.git \
|
||||
&& cd libffi \
|
||||
|
@ -718,39 +709,6 @@ RUN git clone -b {{ QT_TAG }} --depth=1 git://code.qt.io/qt/qt5.git qt_{{ QT }}
|
|||
&& cd .. \
|
||||
&& rm -rf qt_{{ QT }}
|
||||
|
||||
FROM patches AS kcoreaddons
|
||||
COPY --link --from=extra-cmake-modules {{ LibrariesPath }}/extra-cmake-modules-cache /
|
||||
COPY --link --from=libffi {{ LibrariesPath }}/libffi-cache /
|
||||
COPY --link --from=zlib {{ LibrariesPath }}/zlib-cache /
|
||||
COPY --link --from=libproxy {{ LibrariesPath }}/libproxy-cache /
|
||||
COPY --link --from=mozjpeg {{ LibrariesPath }}/mozjpeg-cache /
|
||||
COPY --link --from=xcb {{ LibrariesPath }}/xcb-cache /
|
||||
COPY --link --from=xcb-wm {{ LibrariesPath }}/xcb-wm-cache /
|
||||
COPY --link --from=xcb-util {{ LibrariesPath }}/xcb-util-cache /
|
||||
COPY --link --from=xcb-image {{ LibrariesPath }}/xcb-image-cache /
|
||||
COPY --link --from=xcb-keysyms {{ LibrariesPath }}/xcb-keysyms-cache /
|
||||
COPY --link --from=xcb-render-util {{ LibrariesPath }}/xcb-render-util-cache /
|
||||
COPY --link --from=wayland {{ LibrariesPath }}/wayland-cache /
|
||||
COPY --link --from=openssl {{ LibrariesPath }}/openssl-cache /
|
||||
COPY --link --from=xkbcommon {{ LibrariesPath }}/xkbcommon-cache /
|
||||
COPY --link --from=qt {{ LibrariesPath }}/qt-cache /
|
||||
|
||||
RUN git clone -b v5.98.0 --depth=1 {{ GIT }}/KDE/kcoreaddons.git \
|
||||
&& cd kcoreaddons \
|
||||
&& curl -sSL https://invent.kde.org/frameworks/kcoreaddons/-/merge_requests/258.patch | git apply \
|
||||
&& rm -rf po \
|
||||
&& cmake -GNinja -B build . \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_PREFIX_PATH={{ QT_PREFIX }} \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-DBUILD_TESTING=OFF \
|
||||
-DBUILD_WITH_QT6=ON \
|
||||
-DEXCLUDE_DEPRECATED_BEFORE_AND_AT=5.78.0 \
|
||||
&& cmake --build build --parallel \
|
||||
&& DESTDIR="{{ LibrariesPath }}/kcoreaddons-cache" cmake --install build \
|
||||
&& cd .. \
|
||||
&& rm -rf kcoreaddons
|
||||
|
||||
FROM patches AS breakpad
|
||||
RUN git clone https://chromium.googlesource.com/breakpad/breakpad.git \
|
||||
&& cd breakpad \
|
||||
|
@ -846,7 +804,6 @@ COPY --link --from=xkbcommon {{ LibrariesPath }}/xkbcommon-cache /
|
|||
COPY --link --from=libsigcplusplus {{ LibrariesPath }}/libsigcplusplus-cache /
|
||||
COPY --link --from=glibmm {{ LibrariesPath }}/glibmm-cache /
|
||||
COPY --link --from=qt {{ LibrariesPath }}/qt-cache /
|
||||
COPY --link --from=kcoreaddons {{ LibrariesPath }}/kcoreaddons-cache /
|
||||
COPY --link --from=breakpad {{ LibrariesPath }}/breakpad-cache /
|
||||
COPY --link --from=webrtc {{ LibrariesPath }}/tg_owt tg_owt
|
||||
COPY --link --from=webrtc_release {{ LibrariesPath }}/tg_owt/out/Release tg_owt/out/Release
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 72f9e778be5503b918d8677c8216360695767835
|
||||
Subproject commit d0932b9ead24bb86fb91b493573e464e9145cbc2
|
2
cmake
2
cmake
|
@ -1 +1 @@
|
|||
Subproject commit f49e254d8c5287752b5ed7b86bd84073f584768e
|
||||
Subproject commit 84f43a82524b0fa6ad13f3310f7a38a32f6746f1
|
|
@ -156,7 +156,6 @@ parts:
|
|||
after:
|
||||
- desktop-qt
|
||||
- ffmpeg
|
||||
- kcoreaddons
|
||||
- libjxl
|
||||
- mozjpeg
|
||||
- openal
|
||||
|
@ -200,17 +199,6 @@ parts:
|
|||
- mozjpeg
|
||||
- qt
|
||||
|
||||
extra-cmake-modules:
|
||||
source: https://github.com/KDE/extra-cmake-modules.git
|
||||
source-depth: 1
|
||||
source-tag: v5.98.0
|
||||
plugin: cmake
|
||||
cmake-parameters:
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
- -DCMAKE_INSTALL_PREFIX=/usr
|
||||
- -DBUILD_TESTING=OFF
|
||||
prime: [-./*]
|
||||
|
||||
ffmpeg:
|
||||
plugin: nil
|
||||
build-packages:
|
||||
|
@ -230,33 +218,6 @@ parts:
|
|||
after:
|
||||
- mozjpeg
|
||||
|
||||
kcoreaddons:
|
||||
source: https://github.com/KDE/kcoreaddons.git
|
||||
source-depth: 1
|
||||
source-tag: v5.98.0
|
||||
plugin: cmake
|
||||
build-packages:
|
||||
- curl
|
||||
cmake-parameters:
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
- -DCMAKE_INSTALL_PREFIX=/usr
|
||||
- -DBUILD_TESTING=OFF
|
||||
- -DBUILD_WITH_QT6=ON
|
||||
- -DEXCLUDE_DEPRECATED_BEFORE_AND_AT=5.78.0
|
||||
override-pull: |
|
||||
snapcraftctl pull
|
||||
curl -sSL https://invent.kde.org/frameworks/kcoreaddons/-/merge_requests/258.patch | git apply
|
||||
rm -rf po
|
||||
prime:
|
||||
- -./usr/bin
|
||||
- -./usr/include
|
||||
- -./usr/lib/$SNAPCRAFT_ARCH_TRIPLET/cmake
|
||||
- -./usr/lib/$SNAPCRAFT_ARCH_TRIPLET/*.so
|
||||
- -./usr/mkspecs
|
||||
after:
|
||||
- extra-cmake-modules
|
||||
- desktop-qt
|
||||
|
||||
libjxl:
|
||||
source: https://github.com/libjxl/libjxl.git
|
||||
source-depth: 1
|
||||
|
|
Loading…
Add table
Reference in a new issue