mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 09:41:41 -05:00
Fix travis build.
This commit is contained in:
parent
9db4ab78a5
commit
466a7117d2
1 changed files with 19 additions and 11 deletions
|
@ -11,21 +11,21 @@ CACHE="$HOME/travisCacheDir"
|
||||||
|
|
||||||
QT_WAS_BUILT="0"
|
QT_WAS_BUILT="0"
|
||||||
|
|
||||||
QT_VERSION=5.6.2
|
QT_VERSION=5.12.5
|
||||||
|
|
||||||
XKB_PATH="$BUILD/libxkbcommon"
|
XKB_PATH="$BUILD/libxkbcommon"
|
||||||
XKB_CACHE_VERSION="3"
|
XKB_CACHE_VERSION="3"
|
||||||
|
|
||||||
QT_PATH="$BUILD/qt"
|
QT_PATH="$BUILD/qt"
|
||||||
QT_CACHE_VERSION="4"
|
QT_CACHE_VERSION="4"
|
||||||
QT_PATCH="$UPSTREAM/Telegram/Patches/qtbase_${QT_VERSION//\./_}.diff"
|
QT_PATCH="$EXTERNAL/patches/qtbase_${QT_VERSION//\./_}.diff"
|
||||||
|
|
||||||
BREAKPAD_PATH="$BUILD/breakpad"
|
BREAKPAD_PATH="$BUILD/breakpad"
|
||||||
BREAKPAD_CACHE_VERSION="3"
|
BREAKPAD_CACHE_VERSION="3"
|
||||||
|
|
||||||
GYP_PATH="$BUILD/gyp"
|
GYP_PATH="$BUILD/gyp"
|
||||||
GYP_CACHE_VERSION="3"
|
GYP_CACHE_VERSION="3"
|
||||||
GYP_PATCH="$UPSTREAM/Telegram/Patches/gyp.diff"
|
GYP_PATCH="$EXTERNAL/patches/gyp.diff"
|
||||||
|
|
||||||
RANGE_PATH="$BUILD/range-v3"
|
RANGE_PATH="$BUILD/range-v3"
|
||||||
RANGE_CACHE_VERSION="3"
|
RANGE_CACHE_VERSION="3"
|
||||||
|
@ -64,6 +64,8 @@ build() {
|
||||||
|
|
||||||
BUILD_VERSION_DATA=$(echo $BUILD_VERSION | cut -d'-' -f 1)
|
BUILD_VERSION_DATA=$(echo $BUILD_VERSION | cut -d'-' -f 1)
|
||||||
|
|
||||||
|
getPatches
|
||||||
|
|
||||||
# libxkbcommon
|
# libxkbcommon
|
||||||
getXkbCommon
|
getXkbCommon
|
||||||
|
|
||||||
|
@ -127,6 +129,11 @@ build() {
|
||||||
travisEndFold
|
travisEndFold
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getPatches() {
|
||||||
|
cd "$EXTERNAL"
|
||||||
|
git clone --depth 1 https://github.com/desktop-app/patches
|
||||||
|
}
|
||||||
|
|
||||||
getXkbCommon() {
|
getXkbCommon() {
|
||||||
travisStartFold "Getting xkbcommon"
|
travisStartFold "Getting xkbcommon"
|
||||||
|
|
||||||
|
@ -580,8 +587,8 @@ buildCustomQt() {
|
||||||
QT_WAS_BUILT="1"
|
QT_WAS_BUILT="1"
|
||||||
info_msg "Downloading and building patched qt"
|
info_msg "Downloading and building patched qt"
|
||||||
|
|
||||||
if [ -d "$EXTERNAL/qt${QT_VERSION}" ]; then
|
if [ -d "$EXTERNAL/qt_${QT_VERSION}" ]; then
|
||||||
sudo rm -rf "$EXTERNAL/qt${QT_VERSION}"
|
sudo rm -rf "$EXTERNAL/qt_${QT_VERSION}"
|
||||||
fi
|
fi
|
||||||
cd $QT_PATH
|
cd $QT_PATH
|
||||||
sudo rm -rf *
|
sudo rm -rf *
|
||||||
|
@ -592,8 +599,8 @@ buildCustomQt() {
|
||||||
cd "$EXTERNAL/qt${QT_VERSION}"
|
cd "$EXTERNAL/qt${QT_VERSION}"
|
||||||
perl init-repository --branch --module-subset=qtbase,qtimageformats
|
perl init-repository --branch --module-subset=qtbase,qtimageformats
|
||||||
git checkout v${QT_VERSION}
|
git checkout v${QT_VERSION}
|
||||||
cd qtbase && git checkout v${QT_VERSION} && cd ..
|
git submodule update qtbase
|
||||||
cd qtimageformats && git checkout v${QT_VERSION} && cd ..
|
git submodule update qtimageformats
|
||||||
|
|
||||||
cd "$EXTERNAL/qt${QT_VERSION}/qtbase"
|
cd "$EXTERNAL/qt${QT_VERSION}/qtbase"
|
||||||
git apply "$QT_PATCH"
|
git apply "$QT_PATCH"
|
||||||
|
@ -606,10 +613,10 @@ buildCustomQt() {
|
||||||
cd ../../../..
|
cd ../../../..
|
||||||
|
|
||||||
./configure -prefix $QT_PATH -release -opensource -confirm-license -qt-zlib \
|
./configure -prefix $QT_PATH -release -opensource -confirm-license -qt-zlib \
|
||||||
-qt-libpng -qt-libjpeg -qt-freetype -qt-harfbuzz -qt-pcre -qt-xcb \
|
-qt-libpng -qt-libjpeg -qt-harfbuzz -qt-pcre -qt-xcb \
|
||||||
-qt-xkbcommon-x11 -no-opengl -no-gtkstyle -static \
|
-system-freetype -fontconfig -no-opengl -no-gtk -static \
|
||||||
-nomake examples -nomake tests -no-mirclient \
|
-nomake examples -nomake tests -no-mirclient \
|
||||||
-dbus-runtime -no-gstreamer -no-mtdev # <- Not sure about these
|
-dbus-runtime -no-mtdev # <- Not sure about these
|
||||||
make $MAKE_ARGS
|
make $MAKE_ARGS
|
||||||
sudo make install
|
sudo make install
|
||||||
}
|
}
|
||||||
|
@ -664,7 +671,7 @@ buildGYP() {
|
||||||
git clone https://chromium.googlesource.com/external/gyp
|
git clone https://chromium.googlesource.com/external/gyp
|
||||||
|
|
||||||
cd "$EXTERNAL/gyp"
|
cd "$EXTERNAL/gyp"
|
||||||
git checkout 702ac58e47
|
git checkout 9f2a7bb1
|
||||||
git apply "$GYP_PATCH"
|
git apply "$GYP_PATCH"
|
||||||
cp -r * "$GYP_PATH/"
|
cp -r * "$GYP_PATH/"
|
||||||
}
|
}
|
||||||
|
@ -676,6 +683,7 @@ buildTelegram() {
|
||||||
"$GYP_PATH/gyp" \
|
"$GYP_PATH/gyp" \
|
||||||
-Dapi_id=17349 \
|
-Dapi_id=17349 \
|
||||||
-Dapi_hash=344583e45741c457fe1862106095a5eb \
|
-Dapi_hash=344583e45741c457fe1862106095a5eb \
|
||||||
|
-Dspecial_build_target= \
|
||||||
-Dbuild_defines=${GYP_DEFINES:1} \
|
-Dbuild_defines=${GYP_DEFINES:1} \
|
||||||
-Dlinux_path_xkbcommon=$XKB_PATH \
|
-Dlinux_path_xkbcommon=$XKB_PATH \
|
||||||
-Dlinux_path_va=$VA_PATH \
|
-Dlinux_path_va=$VA_PATH \
|
||||||
|
|
Loading…
Add table
Reference in a new issue