Skip to content

Commit 75fc88d

Browse files
committed
Use VS 2022 with 10.0.22000.0 SDK version.
1 parent 8264968 commit 75fc88d

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

cmake

docs/building-win-x64.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88

99
## Prepare folder
1010

11+
The build is done in **Visual Studio 2022** with **10.0.22000.0** SDK version.
12+
1113
Choose an empty folder for the future build, for example **D:\\TBuild**. It will be named ***BuildPath*** in the rest of this document. Create two folders there, ***BuildPath*\\ThirdParty** and ***BuildPath*\\Libraries**.
1214

13-
All commands (if not stated otherwise) will be launched from **x64 Native Tools Command Prompt for VS 2019.bat** (should be in **Start Menu > Visual Studio 2019** menu folder). Pay attention not to use any other Command Prompt.
15+
All commands (if not stated otherwise) will be launched from **x64 Native Tools Command Prompt for VS 2022.bat** (should be in **Start Menu > Visual Studio 2022** menu folder). Pay attention not to use any other Command Prompt.
1416

1517
### Obtain your API credentials
1618

@@ -24,7 +26,7 @@ You will require **api_id** and **api_hash** to access the Telegram API servers.
2426
* Download **MSYS2** installer from [http://www.msys2.org/](http://www.msys2.org/) and install to ***BuildPath*\\ThirdParty\\msys64**
2527
* Download **jom** archive from [http://download.qt.io/official_releases/jom/jom.zip](http://download.qt.io/official_releases/jom/jom.zip) and unpack to ***BuildPath*\\ThirdParty\\jom**
2628
* Download **Python 3.9** installer from [https://www.python.org/downloads/](https://www.python.org/downloads/) and install to ***BuildPath*\\ThirdParty\\Python39**
27-
* Download **CMake** installer from [https://cmake.org/download/](https://cmake.org/download/) and install to ***BuildPath*\\ThirdParty\\cmake**
29+
* Download **CMake 3.21 or later** installer from [https://cmake.org/download/](https://cmake.org/download/) and install to ***BuildPath*\\ThirdParty\\cmake**
2830
* 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**
2931
* Download **Git** installer from [https://git-scm.com/download/win](https://git-scm.com/download/win) and install it.
3032
* Download **NuGet** executable from [https://dist.nuget.org/win-x86-commandline/latest/nuget.exe](https://dist.nuget.org/win-x86-commandline/latest/nuget.exe) and put to ***BuildPath*\\ThirdParty\\NuGet**
@@ -38,13 +40,13 @@ Add **Python 3.9** and **NuGet** to your PATH:
3840
* Add ***BuildPath*\\ThirdParty\\Python39** value.
3941
* Add ***BuildPath*\\ThirdParty\\NuGet** value.
4042

41-
Open **x64 Native Tools Command Prompt for VS 2019.bat**, go to ***BuildPath*** and run
43+
Open **x64 Native Tools Command Prompt for VS 2022.bat**, go to ***BuildPath*** and run
4244

4345
python -m pip install pywin32
4446

4547
## Clone source code and prepare libraries
4648

47-
Open **x64 Native Tools Command Prompt for VS 2019.bat**, go to ***BuildPath*** and run
49+
Open **x64 Native Tools Command Prompt for VS 2022.bat**, go to ***BuildPath*** and run
4850

4951
git clone --recursive https://github.com/telegramdesktop/tdesktop.git
5052
tdesktop\Telegram\build\prepare\win.bat
@@ -55,7 +57,7 @@ Go to ***BuildPath*\\tdesktop\\Telegram** and run (using [your **api_id** and **
5557

5658
configure.bat x64 -D TDESKTOP_API_ID=YOUR_API_ID -D TDESKTOP_API_HASH=YOUR_API_HASH -D DESKTOP_APP_USE_PACKAGED=OFF -D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF
5759

58-
* Open ***BuildPath*\\tdesktop\\out\\Telegram.sln** in Visual Studio 2019
60+
* Open ***BuildPath*\\tdesktop\\out\\Telegram.sln** in Visual Studio 2022
5961
* Select Telegram project and press Build > Build Telegram (Debug and Release configurations)
6062
* The result Telegram.exe will be located in **D:\TBuild\tdesktop\out\Debug** (and **Release**)
6163

docs/building-win.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88

99
## Prepare folder
1010

11+
The build is done in **Visual Studio 2022** with **10.0.22000.0** SDK version.
12+
1113
Choose an empty folder for the future build, for example **D:\\TBuild**. It will be named ***BuildPath*** in the rest of this document. Create two folders there, ***BuildPath*\\ThirdParty** and ***BuildPath*\\Libraries**.
1214

13-
All commands (if not stated otherwise) will be launched from **x86 Native Tools Command Prompt for VS 2019.bat** (should be in **Start Menu > Visual Studio 2019** menu folder). Pay attention not to use any other Command Prompt.
15+
All commands (if not stated otherwise) will be launched from **x86 Native Tools Command Prompt for VS 2022.bat** (should be in **Start Menu > Visual Studio 2022** menu folder). Pay attention not to use any other Command Prompt.
1416

1517
### Obtain your API credentials
1618

@@ -24,7 +26,7 @@ You will require **api_id** and **api_hash** to access the Telegram API servers.
2426
* Download **MSYS2** installer from [http://www.msys2.org/](http://www.msys2.org/) and install to ***BuildPath*\\ThirdParty\\msys64**
2527
* Download **jom** archive from [http://download.qt.io/official_releases/jom/jom.zip](http://download.qt.io/official_releases/jom/jom.zip) and unpack to ***BuildPath*\\ThirdParty\\jom**
2628
* Download **Python 3.9** installer from [https://www.python.org/downloads/](https://www.python.org/downloads/) and install to ***BuildPath*\\ThirdParty\\Python39**
27-
* Download **CMake** installer from [https://cmake.org/download/](https://cmake.org/download/) and install to ***BuildPath*\\ThirdParty\\cmake**
29+
* Download **CMake 3.21 or later** installer from [https://cmake.org/download/](https://cmake.org/download/) and install to ***BuildPath*\\ThirdParty\\cmake**
2830
* 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**
2931
* Download **Git** installer from [https://git-scm.com/download/win](https://git-scm.com/download/win) and install it.
3032
* Download **NuGet** executable from [https://dist.nuget.org/win-x86-commandline/latest/nuget.exe](https://dist.nuget.org/win-x86-commandline/latest/nuget.exe) and put to ***BuildPath*\\ThirdParty\\NuGet**
@@ -38,13 +40,13 @@ Add **Python 3.9** and **NuGet** to your PATH:
3840
* Add ***BuildPath*\\ThirdParty\\Python39** value.
3941
* Add ***BuildPath*\\ThirdParty\\NuGet** value.
4042

41-
Open **x86 Native Tools Command Prompt for VS 2019.bat**, go to ***BuildPath*** and run
43+
Open **x86 Native Tools Command Prompt for VS 2022.bat**, go to ***BuildPath*** and run
4244

4345
python -m pip install pywin32
4446

4547
## Clone source code and prepare libraries
4648

47-
Open **x86 Native Tools Command Prompt for VS 2019.bat**, go to ***BuildPath*** and run
49+
Open **x86 Native Tools Command Prompt for VS 2022.bat**, go to ***BuildPath*** and run
4850

4951
git clone --recursive https://github.com/telegramdesktop/tdesktop.git
5052
tdesktop\Telegram\build\prepare\win.bat
@@ -55,7 +57,7 @@ Go to ***BuildPath*\\tdesktop\\Telegram** and run (using [your **api_id** and **
5557

5658
configure.bat -D TDESKTOP_API_ID=YOUR_API_ID -D TDESKTOP_API_HASH=YOUR_API_HASH -D DESKTOP_APP_USE_PACKAGED=OFF -D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF
5759

58-
* Open ***BuildPath*\\tdesktop\\out\\Telegram.sln** in Visual Studio 2019
60+
* Open ***BuildPath*\\tdesktop\\out\\Telegram.sln** in Visual Studio 2022
5961
* Select Telegram project and press Build > Build Telegram (Debug and Release configurations)
6062
* The result Telegram.exe will be located in **D:\TBuild\tdesktop\out\Debug** (and **Release**)
6163

0 commit comments

Comments
 (0)