mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-15 19:47:03 +00:00
Build docs updated, .sln files added to .gitignore.
This commit is contained in:
parent
42ebe60f0b
commit
4def7f2a18
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,6 +18,7 @@
|
|||||||
/Telegram/Resources/art/sprite_150x.png
|
/Telegram/Resources/art/sprite_150x.png
|
||||||
/Telegram/*.user
|
/Telegram/*.user
|
||||||
*.vcxproj*
|
*.vcxproj*
|
||||||
|
*.sln
|
||||||
*.suo
|
*.suo
|
||||||
*.sdf
|
*.sdf
|
||||||
*.opensdf
|
*.opensdf
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
'variables': {
|
'variables': {
|
||||||
'libs_loc': '../../../Libraries',
|
'libs_loc': '../../../Libraries',
|
||||||
'src_loc': '../SourceFiles',
|
'src_loc': '../SourceFiles',
|
||||||
|
'res_loc': '../Resources',
|
||||||
},
|
},
|
||||||
'includes': [
|
'includes': [
|
||||||
'common_executable.gypi',
|
'common_executable.gypi',
|
||||||
@ -38,7 +39,7 @@
|
|||||||
'<(src_loc)/_other/updater_osx.m',
|
'<(src_loc)/_other/updater_osx.m',
|
||||||
],
|
],
|
||||||
'conditions': [
|
'conditions': [
|
||||||
[ '<(build_win)', {
|
[ 'build_win', {
|
||||||
'sources': [
|
'sources': [
|
||||||
'<(res_loc)/winrc/Updater.rc',
|
'<(res_loc)/winrc/Updater.rc',
|
||||||
],
|
],
|
||||||
|
@ -244,7 +244,6 @@ and run
|
|||||||
..\depot_tools\gclient sync
|
..\depot_tools\gclient sync
|
||||||
xcopy src\src\* src /s /i
|
xcopy src\src\* src /s /i
|
||||||
|
|
||||||
|
|
||||||
#### Build
|
#### Build
|
||||||
|
|
||||||
* Open in VS2015 **D:\TBuild\Libraries\breakpad\src\client\windows\breakpad_client.sln**
|
* Open in VS2015 **D:\TBuild\Libraries\breakpad\src\client\windows\breakpad_client.sln**
|
||||||
@ -255,10 +254,33 @@ and run
|
|||||||
|
|
||||||
## Building Telegram Desktop
|
## Building Telegram Desktop
|
||||||
|
|
||||||
|
#### Setup GYP/Ninja and generate VS solution
|
||||||
|
|
||||||
|
* Download [Ninja binaries](https://github.com/ninja-build/ninja/releases/download/v1.7.1/ninja-win.zip) and unpack them to **D:\\TBuild\\Libraries\\ninja** to have **D:\\TBuild\\Libraries\\ninja\\ninja.exe**
|
||||||
|
* Open **VS2015 x86 Native Tools Command Prompt.bat** (should be in **Start Menu > Programs > Visual Studio 2015** menu folder)
|
||||||
|
|
||||||
|
There go to Libraries directory
|
||||||
|
|
||||||
|
D:
|
||||||
|
cd TBuild\Libraries
|
||||||
|
|
||||||
|
and run
|
||||||
|
|
||||||
|
git clone https://chromium.googlesource.com/external/gyp
|
||||||
|
SET PATH=%PATH%;D:\TBuild\Libraries\gyp;D:\TBuild\Libraries\ninja;
|
||||||
|
cd ..\tdesktop\Telegram
|
||||||
|
gyp\refresh.bat
|
||||||
|
|
||||||
|
#### Configure VS
|
||||||
|
|
||||||
* Launch VS2015 for configuring Qt5Package
|
* Launch VS2015 for configuring Qt5Package
|
||||||
* QT5 > Qt Options > Add
|
* QT5 > Qt Options > Add
|
||||||
* Version name: **Qt 5.6.0 Win32**
|
* Version name: **Qt 5.6.0 Win32**
|
||||||
* Path: **D:\TBuild\Libraries\qt5_6_0\qtbase**
|
* Path: **D:\TBuild\Libraries\qt5_6_0\qtbase**
|
||||||
* Default Qt/Win version: **Qt 5.6.0 Win32** – **OK** - You may need to restart Visual Studio for this to take effect.
|
* Default Qt/Win version: **Qt 5.6.0 Win32** – **OK** - You may need to restart Visual Studio for this to take effect.
|
||||||
|
|
||||||
|
#### Build the project
|
||||||
|
|
||||||
* File > Open > Project/Solution > **D:\TBuild\tdesktop\Telegram.sln**
|
* File > Open > Project/Solution > **D:\TBuild\tdesktop\Telegram.sln**
|
||||||
* Build \ Build Solution (Debug and Release configurations)
|
* Select Telegram project and press Build > Build Telegram (Debug and Release configurations)
|
||||||
|
* The result Telegram.exe will be located in **D:\TBuild\tdesktop\out\Debug** (and **Release**)
|
||||||
|
Loading…
Reference in New Issue
Block a user