Restoring Breakpad

This commit is contained in:
Eric Kotato 2019-10-05 13:18:40 +03:00
parent 92bd978f11
commit 72650dcec6
5 changed files with 45 additions and 0 deletions

View file

@ -81,6 +81,26 @@ jobs:
git clone https://github.com/telegramdesktop/gyp.git
cd gyp
git checkout tdesktop
- name: Breakpad
run: |
%VS%
%SWITCH_PY%
cd Libraries
git clone https://github.com/google/breakpad
cd breakpad
git checkout a1dbcdcb43
dir ..\..\tdesktop\Telegram\Patches\
git apply ..\..\tdesktop\Telegram\Patches\breakpad.diff
cd src
git clone https://github.com/google/googletest testing
cd client\windows
call gyp --no-circular-check breakpad_client.gyp --format=ninja
cd ..\..
ninja -C out/Debug common crash_generation_client exception_handler
ninja -C out/Release common crash_generation_client exception_handler
cd tools\windows\dump_syms
call gyp dump_syms.gyp
msbuild dump_syms.vcxproj /property:Configuration=Release
- name: Opus
run: |
%VS% && cd Libraries
@ -372,6 +392,24 @@ jobs:
cd gyp
git checkout 702ac58e47
git apply ../../tdesktop/Telegram/Patches/gyp.diff
- name: Breakpad
run: |
cd Libraries
git clone https://chromium.googlesource.com/breakpad/breakpad
cd breakpad
git checkout bc8fb886
git clone https://chromium.googlesource.com/linux-syscall-support src/third_party/lss
cd src/third_party/lss
git checkout a91633d1
cd ../../..
./configure
make -j8
sudo make install
cd src/tools
../../../gyp/gyp --depth=. --generator-output=.. -Goutput_dir=../out tools.gyp --format=cmake
cd ../../out/Default
cmake .
make -j8 dump_syms
- name: Qt 5.6.2
run: |
cd Libraries

View file

@ -30,6 +30,7 @@
'linux_path_openal%': '/usr/local',
'linux_path_va%': '/usr/local',
'linux_path_vdpau%': '/usr/local',
'linux_path_breakpad%': '/usr/local',
'linux_path_opus_include%': '<(libs_loc)/opus/include',
'linux_path_range%': '/usr/local',
},
@ -37,6 +38,7 @@
'/usr/local/include',
'<(linux_path_ffmpeg)/include',
'<(linux_path_openal)/include',
'<(linux_path_breakpad)/include/breakpad',
'<(linux_path_opus_include)',
'<(linux_path_range)/include',
],
@ -46,6 +48,7 @@
'<(linux_path_openal)/lib',
'<(linux_path_va)/lib',
'<(linux_path_vdpau)/lib',
'<(linux_path_breakpad)/lib',
],
'conditions': [
[ '"<!(uname -m)" == "x86_64" or "<!(uname -m)" == "aarch64"', {

View file

@ -20,6 +20,7 @@
],
},
'libraries': [
'-lbreakpad_client',
'-lcomposeplatforminputcontextplugin',
'-libusplatforminputcontextplugin',
'-lfcitxplatforminputcontextplugin',

View file

@ -97,6 +97,7 @@
'include_dirs': [
'<(src_loc)',
'<(SHARED_INTERMEDIATE_DIR)',
'<(libs_loc)/breakpad/src',
'<(libs_loc)/lzma/C',
'<(libs_loc)/zlib',
'<(libs_loc)/ffmpeg',

View file

@ -41,6 +41,7 @@
'<(libs_loc)/opus/win32/VS2015/Win32/Debug',
'<(libs_loc)/openal-soft/build/Debug',
'<(libs_loc)/zlib/contrib/vstudio/vc14/x86/ZlibStatDebug',
'<(libs_loc)/breakpad/src/out/Debug/obj/client',
],
},
'Release': {
@ -49,6 +50,7 @@
'<(libs_loc)/opus/win32/VS2015/Win32/Release',
'<(libs_loc)/openal-soft/build/Release',
'<(libs_loc)/zlib/contrib/vstudio/vc14/x86/ZlibStatReleaseWithoutAsm',
'<(libs_loc)/breakpad/src/out/Release/obj/client',
],
},
},