mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Update building docs.
This commit is contained in:
parent
eda22b925f
commit
13f2ceaf47
3 changed files with 65 additions and 10 deletions
|
@ -54,7 +54,7 @@ Go to ***BuildPath*** and run
|
||||||
|
|
||||||
git clone https://github.com/desktop-app/patches.git
|
git clone https://github.com/desktop-app/patches.git
|
||||||
cd patches
|
cd patches
|
||||||
git checkout b2ee1fb
|
git checkout deeea06
|
||||||
cd ../
|
cd ../
|
||||||
|
|
||||||
git clone https://github.com/xiph/opus
|
git clone https://github.com/xiph/opus
|
||||||
|
@ -273,6 +273,28 @@ Go to ***BuildPath*** and run
|
||||||
sudo make install
|
sudo make install
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
||||||
|
export PATH=`pwd`/depot_tools:$PATH
|
||||||
|
|
||||||
|
mkdir webrtc
|
||||||
|
cd webrtc
|
||||||
|
cp ../patches/webrtc/.gclient ./
|
||||||
|
git clone https://github.com/open-webrtc-toolkit/owt-deps-webrtc src
|
||||||
|
gclient sync
|
||||||
|
cd src
|
||||||
|
git apply ../../patches/webrtc/src.diff
|
||||||
|
cd build
|
||||||
|
git apply ../../../patches/webrtc/build.diff
|
||||||
|
cd ../third_party
|
||||||
|
git apply ../../../patches/webrtc/third_party.diff
|
||||||
|
cd libsrtp
|
||||||
|
git apply ../../../../patches/webrtc/libsrtp.diff
|
||||||
|
cd ../..
|
||||||
|
../../patches/webrtc/configure.sh
|
||||||
|
ninja -C out/Debug webrtc
|
||||||
|
ninja -C out/Release webrtc
|
||||||
|
cd ../..
|
||||||
|
|
||||||
git clone https://chromium.googlesource.com/external/gyp
|
git clone https://chromium.googlesource.com/external/gyp
|
||||||
cd gyp
|
cd gyp
|
||||||
git checkout 9f2a7bb1
|
git checkout 9f2a7bb1
|
||||||
|
|
|
@ -27,13 +27,14 @@ You will require **api_id** and **api_hash** to access the Telegram API servers.
|
||||||
* Download **CMake** installer from [https://cmake.org/download/](https://cmake.org/download/) and install to ***BuildPath*\\ThirdParty\\cmake**
|
* Download **CMake** installer from [https://cmake.org/download/](https://cmake.org/download/) and install to ***BuildPath*\\ThirdParty\\cmake**
|
||||||
* Download **Ninja** executable from [https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip](https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip) and unpack to ***BuildPath*\\ThirdParty\\Ninja**
|
* Download **Ninja** executable from [https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip](https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip) and unpack to ***BuildPath*\\ThirdParty\\Ninja**
|
||||||
* Download **Git** installer from [https://git-scm.com/download/win](https://git-scm.com/download/win) and install it.
|
* Download **Git** installer from [https://git-scm.com/download/win](https://git-scm.com/download/win) and install it.
|
||||||
|
* Download **depot_tools** archive from [https://storage.googleapis.com/chrome-infra/depot_tools.zip](https://storage.googleapis.com/chrome-infra/depot_tools.zip) and unpack to ***BuildPath*\\ThirdParty\\depot_tools**
|
||||||
|
|
||||||
Open **x86 Native Tools Command Prompt for VS 2019.bat**, go to ***BuildPath*** and run
|
Open **x86 Native Tools Command Prompt for VS 2019.bat**, go to ***BuildPath*** and run
|
||||||
|
|
||||||
cd ThirdParty
|
cd ThirdParty
|
||||||
git clone https://github.com/desktop-app/patches.git
|
git clone https://github.com/desktop-app/patches.git
|
||||||
cd patches
|
cd patches
|
||||||
git checkout b2ee1fb
|
git checkout deeea06
|
||||||
cd ../
|
cd ../
|
||||||
git clone https://chromium.googlesource.com/external/gyp
|
git clone https://chromium.googlesource.com/external/gyp
|
||||||
cd gyp
|
cd gyp
|
||||||
|
@ -47,6 +48,7 @@ Add **GYP** and **Ninja** to your PATH:
|
||||||
* Press **Environment Variables...**
|
* Press **Environment Variables...**
|
||||||
* Select **Path**
|
* Select **Path**
|
||||||
* Press **Edit**
|
* Press **Edit**
|
||||||
|
* Add ***BuildPath*\\ThirdParty\\depot_tools** value
|
||||||
* Add ***BuildPath*\\ThirdParty\\gyp** value
|
* Add ***BuildPath*\\ThirdParty\\gyp** value
|
||||||
* Add ***BuildPath*\\ThirdParty\\Ninja** value
|
* Add ***BuildPath*\\ThirdParty\\Ninja** value
|
||||||
|
|
||||||
|
@ -54,7 +56,7 @@ Add **GYP** and **Ninja** to your PATH:
|
||||||
|
|
||||||
Open **x86 Native Tools Command Prompt for VS 2019.bat**, go to ***BuildPath*** and run
|
Open **x86 Native Tools Command Prompt for VS 2019.bat**, go to ***BuildPath*** and run
|
||||||
|
|
||||||
SET PATH=%cd%\ThirdParty\Strawberry\perl\bin;%cd%\ThirdParty\Python27;%cd%\ThirdParty\NASM;%cd%\ThirdParty\jom;%cd%\ThirdParty\cmake\bin;%cd%\ThirdParty\yasm;%PATH%
|
SET PATH=%cd%\ThirdParty\depot_tools;%cd%\ThirdParty\Strawberry\perl\bin;%cd%\ThirdParty\Python27;%cd%\ThirdParty\NASM;%cd%\ThirdParty\jom;%cd%\ThirdParty\cmake\bin;%cd%\ThirdParty\yasm;%PATH%
|
||||||
|
|
||||||
git clone --recursive https://github.com/telegramdesktop/tdesktop.git
|
git clone --recursive https://github.com/telegramdesktop/tdesktop.git
|
||||||
|
|
||||||
|
@ -65,7 +67,7 @@ Open **x86 Native Tools Command Prompt for VS 2019.bat**, go to ***BuildPath***
|
||||||
|
|
||||||
git clone https://github.com/desktop-app/patches.git
|
git clone https://github.com/desktop-app/patches.git
|
||||||
cd patches
|
cd patches
|
||||||
git checkout 7df6fdd
|
git checkout deeea06
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
git clone https://github.com/desktop-app/lzma.git
|
git clone https://github.com/desktop-app/lzma.git
|
||||||
|
@ -165,13 +167,22 @@ Open **x86 Native Tools Command Prompt for VS 2019.bat**, go to ***BuildPath***
|
||||||
|
|
||||||
mkdir webrtc
|
mkdir webrtc
|
||||||
cd webrtc
|
cd webrtc
|
||||||
copy ..\patches\webrtc.gclient .gclient
|
copy ..\patches\webrtc\.gclient .gclient
|
||||||
git clone https://github.com/open-webrtc-toolkit/owt-deps-webrtc src
|
git clone https://github.com/open-webrtc-toolkit/owt-deps-webrtc src
|
||||||
gclient sync
|
gclient sync
|
||||||
cd src
|
cd src
|
||||||
..\..\..\tdesktop\Telegram\lib_webrtc\gn_build_webrtc.bat
|
git apply ../../patches/webrtc/src.diff
|
||||||
ninja -C out/Debug webrtc test:platform_video_capturer test:video_test_common
|
cd build
|
||||||
cd ..
|
git apply ../../../patches/webrtc/build.diff
|
||||||
|
cd ..\third_party
|
||||||
|
git apply ../../../patches/webrtc/third_party.diff
|
||||||
|
cd libsrtp
|
||||||
|
git apply ../../../../patches/webrtc/libsrtp.diff
|
||||||
|
cd ..\..
|
||||||
|
..\..\patches\webrtc\configure.bat
|
||||||
|
ninja -C out/Debug webrtc
|
||||||
|
ninja -C out/Release webrtc
|
||||||
|
cd ..\..
|
||||||
|
|
||||||
## Build the project
|
## Build the project
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ Go to ***BuildPath*** and run
|
||||||
|
|
||||||
git clone https://github.com/desktop-app/patches.git
|
git clone https://github.com/desktop-app/patches.git
|
||||||
cd patches
|
cd patches
|
||||||
git checkout b2ee1fb
|
git checkout deeea06
|
||||||
cd ../
|
cd ../
|
||||||
git clone https://chromium.googlesource.com/external/gyp
|
git clone https://chromium.googlesource.com/external/gyp
|
||||||
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
||||||
|
@ -47,7 +47,7 @@ Go to ***BuildPath*** and run
|
||||||
|
|
||||||
git clone https://github.com/desktop-app/patches.git
|
git clone https://github.com/desktop-app/patches.git
|
||||||
cd patches
|
cd patches
|
||||||
git checkout 7df6fdd
|
git checkout deeea06
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
git clone https://git.tukaani.org/xz.git
|
git clone https://git.tukaani.org/xz.git
|
||||||
|
@ -269,6 +269,28 @@ Go to ***BuildPath*** and run
|
||||||
sudo make install
|
sudo make install
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
||||||
|
export PATH=`pwd`/depot_tools:$PATH
|
||||||
|
|
||||||
|
mkdir webrtc
|
||||||
|
cd webrtc
|
||||||
|
cp ../patches/webrtc/.gclient ./
|
||||||
|
git clone https://github.com/open-webrtc-toolkit/owt-deps-webrtc src
|
||||||
|
gclient sync
|
||||||
|
cd src
|
||||||
|
git apply ../../patches/webrtc/src.diff
|
||||||
|
cd build
|
||||||
|
git apply ../../../patches/webrtc/build.diff
|
||||||
|
cd ../third_party
|
||||||
|
git apply ../../../patches/webrtc/third_party.diff
|
||||||
|
cd libsrtp
|
||||||
|
git apply ../../../../patches/webrtc/libsrtp.diff
|
||||||
|
cd ../..
|
||||||
|
../../patches/webrtc/configure.sh
|
||||||
|
ninja -C out/Debug webrtc
|
||||||
|
ninja -C out/Release webrtc
|
||||||
|
cd ../..
|
||||||
|
|
||||||
### Building the project
|
### Building the project
|
||||||
|
|
||||||
Go to ***BuildPath*/tdesktop/Telegram** and run (using [your **api_id** and **api_hash**](#obtain-your-api-credentials))
|
Go to ***BuildPath*/tdesktop/Telegram** and run (using [your **api_id** and **api_hash**](#obtain-your-api-credentials))
|
||||||
|
|
Loading…
Add table
Reference in a new issue