mirror of https://github.com/procxx/kepka.git
				
				
				
			Merge branch 'master' into dev
This commit is contained in:
		
						commit
						7345408568
					
				| 
						 | 
					@ -77,27 +77,27 @@ build() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Configure the build
 | 
					  # Configure the build
 | 
				
			||||||
  if [[ $BUILD_VERSION == *"disable_autoupdate"* ]]; then
 | 
					  if [[ $BUILD_VERSION == *"disable_autoupdate"* ]]; then
 | 
				
			||||||
    GYP_DEFINES += ",TDESKTOP_DISABLE_AUTOUPDATE"
 | 
					    GYP_DEFINES+=",TDESKTOP_DISABLE_AUTOUPDATE"
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if [[ $BUILD_VERSION == *"disable_register_custom_scheme"* ]]; then
 | 
					  if [[ $BUILD_VERSION == *"disable_register_custom_scheme"* ]]; then
 | 
				
			||||||
    GYP_DEFINES += ",TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME"
 | 
					    GYP_DEFINES+=",TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME"
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if [[ $BUILD_VERSION == *"disable_crash_reports"* ]]; then
 | 
					  if [[ $BUILD_VERSION == *"disable_crash_reports"* ]]; then
 | 
				
			||||||
    GYP_DEFINES += ",TDESKTOP_DISABLE_CRASH_REPORTS"
 | 
					    GYP_DEFINES+=",TDESKTOP_DISABLE_CRASH_REPORTS"
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if [[ $BUILD_VERSION == *"disable_network_proxy"* ]]; then
 | 
					  if [[ $BUILD_VERSION == *"disable_network_proxy"* ]]; then
 | 
				
			||||||
    GYP_DEFINES += ",TDESKTOP_DISABLE_NETWORK_PROXY"
 | 
					    GYP_DEFINES+=",TDESKTOP_DISABLE_NETWORK_PROXY"
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if [[ $BUILD_VERSION == *"disable_desktop_file_generation"* ]]; then
 | 
					  if [[ $BUILD_VERSION == *"disable_desktop_file_generation"* ]]; then
 | 
				
			||||||
    GYP_DEFINES += ",TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION"
 | 
					    GYP_DEFINES+=",TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION"
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if [[ $BUILD_VERSION == *"disable_unity_integration"* ]]; then
 | 
					  if [[ $BUILD_VERSION == *"disable_unity_integration"* ]]; then
 | 
				
			||||||
    GYP_DEFINES += ",TDESKTOP_DISABLE_UNITY_INTEGRATION"
 | 
					    GYP_DEFINES+=",TDESKTOP_DISABLE_UNITY_INTEGRATION"
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  info_msg "Build defines: ${GYP_DEFINES}"
 | 
					  info_msg "Build defines: ${GYP_DEFINES}"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -63,7 +63,7 @@ def handle_qrc_dependencies(file_path):
 | 
				
			||||||
      if latest_modified < dependency_modified:
 | 
					      if latest_modified < dependency_modified:
 | 
				
			||||||
        latest_modified = dependency_modified
 | 
					        latest_modified = dependency_modified
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
      eprint('File not found: ' + full_path)
 | 
					      eprint('File not found: ' + path)
 | 
				
			||||||
  if file_modified < latest_modified:
 | 
					  if file_modified < latest_modified:
 | 
				
			||||||
    os.utime(file_path, None);
 | 
					    os.utime(file_path, None);
 | 
				
			||||||
    one_modified = 1
 | 
					    one_modified = 1
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -23,8 +23,6 @@ By git – in Terminal go to **/home/user/TBuild** and run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    git clone https://github.com/telegramdesktop/tdesktop.git
 | 
					    git clone https://github.com/telegramdesktop/tdesktop.git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
or download in ZIP and extract to **/home/user/TBuild** rename **tdesktop-master** to **tdesktop**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
###Prepare libraries
 | 
					###Prepare libraries
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Install dev libraries
 | 
					Install dev libraries
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -28,21 +28,27 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Prepare folder
 | 
					## Prepare folder
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Choose a folder for the future build, for example **D:\TBuild\**. There you will have two folders, **Libraries** for third-party libs and **tdesktop** (or **tdesktop-master**) for the app.
 | 
					Choose a folder for the future build, for example **D:\\TBuild\\**. There you will have two folders, **Libraries** for third-party libs and **tdesktop** for the app.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					All commands (if not stated otherwise) will be launched from **VS2015 x86 Native Tools Command Prompt.bat** (should be in **Start Menu > Programs > Visual Studio 2015** menu folder).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Clone source code
 | 
					## Clone source code
 | 
				
			||||||
 | 
					
 | 
				
			||||||
By git – in [Git Bash](http://git-scm.com/downloads) go to **/d/tbuild** and run
 | 
					Go to **D:\\TBuild**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    D:
 | 
				
			||||||
 | 
					    cd TBuild
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					and run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    git clone https://github.com/telegramdesktop/tdesktop.git
 | 
					    git clone https://github.com/telegramdesktop/tdesktop.git
 | 
				
			||||||
 | 
					    mkdir Libraries
 | 
				
			||||||
or download in ZIP and extract to **D:\TBuild\**, rename **tdesktop-master** to **tdesktop** to have **D:\TBuild\tdesktop\Telegram.sln** solution
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Prepare libraries
 | 
					## Prepare libraries
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### OpenSSL
 | 
					### OpenSSL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Open **VS2015 x86 Native Tools Command Prompt.bat** (should be in **Start Menu > Programs > Visual Studio 2015** menu folder), go to **D:\\TBuild\\Libraries** and run
 | 
					Go to **D:\\TBuild\\Libraries** and run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    git clone https://github.com/openssl/openssl.git
 | 
					    git clone https://github.com/openssl/openssl.git
 | 
				
			||||||
    cd openssl
 | 
					    cd openssl
 | 
				
			||||||
| 
						 | 
					@ -60,16 +66,15 @@ Open **VS2015 x86 Native Tools Command Prompt.bat** (should be in **Start Menu >
 | 
				
			||||||
    nmake -f ms\nt.mak
 | 
					    nmake -f ms\nt.mak
 | 
				
			||||||
    nmake -f ms\nt.mak install
 | 
					    nmake -f ms\nt.mak install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
### LZMA SDK 9.20
 | 
					### LZMA SDK 9.20
 | 
				
			||||||
 | 
					
 | 
				
			||||||
http://www.7-zip.org/sdk.html > Download [**LZMA SDK (C, C++, C#, Java)** 9.20](http://downloads.sourceforge.net/sevenzip/lzma920.tar.bz2)
 | 
					http://www.7-zip.org/sdk.html > Download [**LZMA SDK (C, C++, C#, Java)** 9.20](http://downloads.sourceforge.net/sevenzip/lzma920.tar.bz2)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Extract to **D:\TBuild\Libraries**
 | 
					Extract to **D:\\TBuild\\Libraries**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### Building library
 | 
					#### Building library
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* Open in VS2015 **D:\TBuild\Libraries\lzma\C\Util\LzmaLib\LzmaLib.dsw** > One-way upgrade – **OK**
 | 
					* Open in VS2015 **D:\\TBuild\\Libraries\\lzma\\C\\Util\\LzmaLib\\LzmaLib.dsw** > One-way upgrade – **OK**
 | 
				
			||||||
* For **Debug** and **Release** configurations
 | 
					* For **Debug** and **Release** configurations
 | 
				
			||||||
  * LzmaLib Properties > General > Configuration Type = **Static library (.lib)** – **Apply**
 | 
					  * LzmaLib Properties > General > Configuration Type = **Static library (.lib)** – **Apply**
 | 
				
			||||||
  * LzmaLib Properties > Librarian > General > Target Machine = **MachineX86 (/MACHINE:X86)** – **OK**
 | 
					  * LzmaLib Properties > Librarian > General > Target Machine = **MachineX86 (/MACHINE:X86)** – **OK**
 | 
				
			||||||
| 
						 | 
					@ -83,11 +88,11 @@ Extract to **D:\TBuild\Libraries**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
http://www.zlib.net/ > Download [**zlib source code, version 1.2.8, zipfile format**](http://zlib.net/zlib128.zip)
 | 
					http://www.zlib.net/ > Download [**zlib source code, version 1.2.8, zipfile format**](http://zlib.net/zlib128.zip)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Extract to **D:\\TBuild\\Libraries\\**
 | 
					Extract to **D:\\TBuild\\Libraries**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### Building library
 | 
					#### Building library
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* Open in VS2015 **D:\TBuild\Libraries\zlib-1.2.8\contrib\vstudio\vc11\zlibvc.sln** > One-way upgrade – **OK**
 | 
					* Open in VS2015 **D:\\TBuild\\Libraries\\zlib-1.2.8\\contrib\\vstudio\\vc11\\zlibvc.sln** > One-way upgrade – **OK**
 | 
				
			||||||
* We are interested only in **zlibstat** project, but it depends on some custom pre-build step, so build all
 | 
					* We are interested only in **zlibstat** project, but it depends on some custom pre-build step, so build all
 | 
				
			||||||
* For **Debug** configuration
 | 
					* For **Debug** configuration
 | 
				
			||||||
  * zlibstat Properties > C/C++ > Code Generation > Runtime Library = **Multi-threaded Debug (/MTd)** – **OK**
 | 
					  * zlibstat Properties > C/C++ > Code Generation > Runtime Library = **Multi-threaded Debug (/MTd)** – **OK**
 | 
				
			||||||
| 
						 | 
					@ -98,21 +103,19 @@ Extract to **D:\\TBuild\\Libraries\\**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### libexif 0.6.20
 | 
					### libexif 0.6.20
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Get sources from https://github.com/telegramdesktop/libexif-0.6.20, by git – in [Git Bash](http://git-scm.com/downloads) go to **/d/tbuild/libraries** and run
 | 
					Go to **D:\\TBuild\\Libraries** and run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    git clone https://github.com/telegramdesktop/libexif-0.6.20.git
 | 
					    git clone https://github.com/telegramdesktop/libexif-0.6.20.git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
or download in ZIP and extract to **D:\TBuild\Libraries\**, rename **libexif-0.6.20-master** to **libexif-0.6.20** to have **D:\TBuild\Libraries\libexif-0.6.20\win32\lib_exif.sln** solution
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#### Building library
 | 
					#### Building library
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* Open in VS2015 **D:\TBuild\Libraries\libexif-0.6.20\win32\lib_exif.sln**
 | 
					* Open in VS2015 **D:\\TBuild\\Libraries\\libexif-0.6.20\\win32\\lib_exif.sln**
 | 
				
			||||||
* Build Debug configuration
 | 
					* Build Debug configuration
 | 
				
			||||||
* Build Release configuration
 | 
					* Build Release configuration
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### OpenAL Soft, slightly patched
 | 
					### OpenAL Soft, slightly patched
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Open **VS2015 x86 Native Tools Command Prompt.bat** (should be in **Start Menu > Programs > Visual Studio 2015** menu folder), go to **D:\\TBuild\\Libraries** and run
 | 
					Go to **D:\\TBuild\\Libraries** and run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    git clone git://repo.or.cz/openal-soft.git
 | 
					    git clone git://repo.or.cz/openal-soft.git
 | 
				
			||||||
    cd openal-soft
 | 
					    cd openal-soft
 | 
				
			||||||
| 
						 | 
					@ -122,29 +125,29 @@ Open **VS2015 x86 Native Tools Command Prompt.bat** (should be in **Start Menu >
 | 
				
			||||||
#### Building library
 | 
					#### Building library
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* Install [CMake](http://www.cmake.org/)
 | 
					* Install [CMake](http://www.cmake.org/)
 | 
				
			||||||
* Open **VS2015 x86 Native Tools Command Prompt.bat** (should be in **Start Menu > Programs > Visual Studio 2015** menu folder), go to **D:\TBuild\Libraries\openal-soft\build\** and run
 | 
					* Go to **D:\\TBuild\\Libraries\\openal-soft\\build** and run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        cmake -G "Visual Studio 14 2015" -D LIBTYPE:STRING=STATIC -D FORCE_STATIC_VCRT:STRING=ON ..
 | 
					<!-- -->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* Open in VS2015 **D:\TBuild\Libraries\openal-soft\build\OpenAL.sln** and build Debug and Release configurations
 | 
					    cmake -G "Visual Studio 14 2015" -D LIBTYPE:STRING=STATIC -D FORCE_STATIC_VCRT:STRING=ON ..
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					* Open in VS2015 **D:\\TBuild\\Libraries\\openal-soft\\build\\OpenAL.sln** and build Debug and Release configurations
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Opus codec
 | 
					### Opus codec
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Get sources by git – in [Git Bash](http://git-scm.com/downloads) go to **/d/tbuild/libraries** and run
 | 
					Go to **D:\\TBuild\\Libraries** and run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    git clone https://github.com/telegramdesktop/opus.git
 | 
					    git clone https://github.com/telegramdesktop/opus.git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
to have **D:\TBuild\Libraries\opus\win32**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#### Building libraries
 | 
					#### Building libraries
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* Open in VS2015 **D:\TBuild\Libraries\opus\win32\VS2010\opus.sln**
 | 
					* Open in VS2015 **D:\\TBuild\\Libraries\\opus\\win32\\VS2010\\opus.sln**
 | 
				
			||||||
* Build Debug configuration
 | 
					* Build Debug configuration
 | 
				
			||||||
* Build Release configuration (it will be required in **FFmpeg** build!)
 | 
					* Build Release configuration (it will be required in **FFmpeg** build!)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### FFmpeg
 | 
					### FFmpeg
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Open **VS2015 x86 Native Tools Command Prompt.bat** (should be in **Start Menu > Programs > Visual Studio 2015** menu folder) and run
 | 
					Go to **D:\\TBuild\\Libraries** and run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    git clone https://github.com/FFmpeg/FFmpeg.git ffmpeg
 | 
					    git clone https://github.com/FFmpeg/FFmpeg.git ffmpeg
 | 
				
			||||||
    cd ffmpeg
 | 
					    cd ffmpeg
 | 
				
			||||||
| 
						 | 
					@ -156,7 +159,7 @@ http://msys2.github.io/ > Download [msys2-x86_64-20150512.exe](http://sourceforg
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Download [yasm for Win64](http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe) from http://yasm.tortall.net/Download.html, rename **yasm-1.3.0-win64.exe** to **yasm.exe** and place it to your Visual C++ **bin** directory, like **\\Program Files (x86)\\Microsoft Visual Studio 14\\VC\\bin\\**
 | 
					Download [yasm for Win64](http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe) from http://yasm.tortall.net/Download.html, rename **yasm-1.3.0-win64.exe** to **yasm.exe** and place it to your Visual C++ **bin** directory, like **\\Program Files (x86)\\Microsoft Visual Studio 14\\VC\\bin\\**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Open **VS2015 x86 Native Tools Command Prompt.bat** (should be in **Start Menu > Programs > Visual Studio 2015** menu folder), go to **D:\\msys64\\** and launch **msys2_shell.bat**, there run
 | 
					Go to **D:\\msys64** and launch **msys2_shell.bat**, there run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    PATH="/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN:$PATH"
 | 
					    PATH="/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN:$PATH"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -177,14 +180,9 @@ Open **VS2015 x86 Native Tools Command Prompt.bat** (should be in **Start Menu >
 | 
				
			||||||
### Qt 5.6.0, slightly patched
 | 
					### Qt 5.6.0, slightly patched
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* Install Python 3.3.2 from https://www.python.org/download/releases/3.3.2 > [**Windows x86 MSI Installer (3.3.2)**](https://www.python.org/ftp/python/3.3.2/python-3.3.2.msi)
 | 
					* Install Python 3.3.2 from https://www.python.org/download/releases/3.3.2 > [**Windows x86 MSI Installer (3.3.2)**](https://www.python.org/ftp/python/3.3.2/python-3.3.2.msi)
 | 
				
			||||||
* Open **VS2015 x86 Native Tools Command Prompt.bat** (should be in **Start Menu > Programs > Visual Studio 2015** menu folder)
 | 
					* Go to **D:\\TBuild\\Libraries** and run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
There go to Libraries directory
 | 
					<!-- -->
 | 
				
			||||||
 | 
					 | 
				
			||||||
    D:
 | 
					 | 
				
			||||||
    cd TBuild\Libraries
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
and run
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    git clone git://code.qt.io/qt/qt5.git qt5_6_0
 | 
					    git clone git://code.qt.io/qt/qt5.git qt5_6_0
 | 
				
			||||||
    cd qt5_6_0
 | 
					    cd qt5_6_0
 | 
				
			||||||
| 
						 | 
					@ -205,11 +203,8 @@ If you didn't install Windows SDKs before, you need to install them now. To inst
 | 
				
			||||||
If you already have Windows SDKs then find the library folder and correct it at configure's command below (like **C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86**).
 | 
					If you already have Windows SDKs then find the library folder and correct it at configure's command below (like **C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86**).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### Building library
 | 
					#### Building library
 | 
				
			||||||
go to Libraries directory
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    D:
 | 
					Go to **D:\\TBuild\\Libraries** and run
 | 
				
			||||||
    cd /tbuild/libraries/qt5_6_0/qtbase
 | 
					 | 
				
			||||||
and run
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    configure -debug-and-release -force-debug-info -opensource -confirm-license -static -I "D:\TBuild\Libraries\openssl\Release\include" -L "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib" -l Gdi32 -no-opengl -openssl-linked OPENSSL_LIBS_DEBUG="D:\TBuild\Libraries\openssl_debug\Debug\lib\ssleay32.lib D:\TBuild\Libraries\openssl_debug\Debug\lib\libeay32.lib" OPENSSL_LIBS_RELEASE="D:\TBuild\Libraries\openssl\Release\lib\ssleay32.lib D:\TBuild\Libraries\openssl\Release\lib\libeay32.lib" -mp -nomake examples -nomake tests -platform win32-msvc2015
 | 
					    configure -debug-and-release -force-debug-info -opensource -confirm-license -static -I "D:\TBuild\Libraries\openssl\Release\include" -L "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Lib" -l Gdi32 -no-opengl -openssl-linked OPENSSL_LIBS_DEBUG="D:\TBuild\Libraries\openssl_debug\Debug\lib\ssleay32.lib D:\TBuild\Libraries\openssl_debug\Debug\lib\libeay32.lib" OPENSSL_LIBS_RELEASE="D:\TBuild\Libraries\openssl\Release\lib\ssleay32.lib D:\TBuild\Libraries\openssl\Release\lib\libeay32.lib" -mp -nomake examples -nomake tests -platform win32-msvc2015
 | 
				
			||||||
    nmake
 | 
					    nmake
 | 
				
			||||||
| 
						 | 
					@ -230,14 +225,9 @@ Breakpad is a set of client and server components which implement a crash-report
 | 
				
			||||||
#### Install
 | 
					#### Install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* Install Python 2.7.12 from https://www.python.org/downloads/release/python-2712/ > [**Windows x86 MSI installer**](https://www.python.org/ftp/python/2.7.12/python-2.7.12.msi). Make sure that python is added to your `PATH` (there is an option for this in the python installer).
 | 
					* Install Python 2.7.12 from https://www.python.org/downloads/release/python-2712/ > [**Windows x86 MSI installer**](https://www.python.org/ftp/python/2.7.12/python-2.7.12.msi). Make sure that python is added to your `PATH` (there is an option for this in the python installer).
 | 
				
			||||||
* Open **VS2015 x86 Native Tools Command Prompt.bat** (should be in **Start Menu > Programs > Visual Studio 2015** menu folder)
 | 
					* Go to **D:\\TBuild\\Libraries** and run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
There go to Libraries directory
 | 
					<!-- -->
 | 
				
			||||||
 | 
					 | 
				
			||||||
    D:
 | 
					 | 
				
			||||||
    cd TBuild\Libraries
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
and run
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
 | 
					    git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
 | 
				
			||||||
    cd depot_tools
 | 
					    cd depot_tools
 | 
				
			||||||
| 
						 | 
					@ -251,7 +241,7 @@ and run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### 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**
 | 
				
			||||||
* Change "Treat WChar_t As Built in Type" to "No" in all projects & configurations (should be in project>>properties>>C/C++>>Language)
 | 
					* Change "Treat WChar_t As Built in Type" to "No" in all projects & configurations (should be in project>>properties>>C/C++>>Language)
 | 
				
			||||||
* Change "Treat Warnings As Errors" to "No" in all projects & configurations (should be in project>>properties>>C/C++>>General)
 | 
					* Change "Treat Warnings As Errors" to "No" in all projects & configurations (should be in project>>properties>>C/C++>>General)
 | 
				
			||||||
* Build Debug configuration
 | 
					* Build Debug configuration
 | 
				
			||||||
| 
						 | 
					@ -262,14 +252,9 @@ and run
 | 
				
			||||||
#### Setup GYP/Ninja and generate VS solution
 | 
					#### 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**
 | 
					* 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)
 | 
					* Go to **D:\\TBuild\\Libraries** and run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
There go to Libraries directory
 | 
					<!-- -->
 | 
				
			||||||
 | 
					 | 
				
			||||||
    D:
 | 
					 | 
				
			||||||
    cd TBuild\Libraries
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
and run
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    git clone https://chromium.googlesource.com/external/gyp
 | 
					    git clone https://chromium.googlesource.com/external/gyp
 | 
				
			||||||
    SET PATH=%PATH%;D:\TBuild\Libraries\gyp;D:\TBuild\Libraries\ninja;
 | 
					    SET PATH=%PATH%;D:\TBuild\Libraries\gyp;D:\TBuild\Libraries\ninja;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -26,8 +26,6 @@ By git – in Terminal go to **/home/user/TBuild** and run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    git clone https://github.com/telegramdesktop/tdesktop.git
 | 
					    git clone https://github.com/telegramdesktop/tdesktop.git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
or download in ZIP and extract to **/home/user/TBuild** rename **tdesktop-master** to **tdesktop** to have **/home/user/TBuild/tdesktop/Telegram/Telegram.pro** project
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
###Prepare libraries
 | 
					###Prepare libraries
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Install dev libraries
 | 
					Install dev libraries
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,7 +12,7 @@ By git – in Terminal go to **/Users/user/TBuild** and run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    git clone https://github.com/telegramdesktop/tdesktop.git
 | 
					    git clone https://github.com/telegramdesktop/tdesktop.git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
or download in ZIP and extract to **/Users/user/TBuild** rename **tdesktop-master** to **tdesktop** to have **/Users/user/TBuild/tdesktop/Telegram/Telegram.xcodeproj** project, then go to **/Users/user/TBuild/tdesktop** and run
 | 
					then go to **/Users/user/TBuild/tdesktop** and run
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    git checkout mac32
 | 
					    git checkout mac32
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -44,8 +44,6 @@ Get sources from https://github.com/telegramdesktop/openssl-xcode, by git – in
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    git clone https://github.com/telegramdesktop/openssl-xcode.git
 | 
					    git clone https://github.com/telegramdesktop/openssl-xcode.git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
or download in ZIP and extract to **/Users/user/TBuild/Libraries**, rename **openssl-xcode-master** to **openssl-xcode** to have **/Users/user/TBuild/Libraries/openssl-xcode/openssl.xcodeproj** project
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
http://www.openssl.org/source/ > Download [**openssl-1.0.1h.tar.gz**](http://www.openssl.org/source/openssl-1.0.1h.tar.gz) (4.3 Mb)
 | 
					http://www.openssl.org/source/ > Download [**openssl-1.0.1h.tar.gz**](http://www.openssl.org/source/openssl-1.0.1h.tar.gz) (4.3 Mb)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Extract openssl-1.0.1h.tar.gz and copy everything from **openssl-1.0.1h** to **/Users/user/TBuild/Libraries/openssl-xcode** to have **/Users/user/TBuild/Libraries/openssl-xcode/include**
 | 
					Extract openssl-1.0.1h.tar.gz and copy everything from **openssl-1.0.1h** to **/Users/user/TBuild/Libraries/openssl-xcode** to have **/Users/user/TBuild/Libraries/openssl-xcode/include**
 | 
				
			||||||
| 
						 | 
					@ -79,8 +77,6 @@ Get sources from https://github.com/telegramdesktop/libexif-0.6.20, by git – i
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    git clone https://github.com/telegramdesktop/libexif-0.6.20.git
 | 
					    git clone https://github.com/telegramdesktop/libexif-0.6.20.git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
or download in ZIP and extract to **/Users/user/TBuild/Libraries**, rename **libexif-0.6.20-master** to **libexif-0.6.20** to have **/Users/user/TBuild/Libraries/libexif-0.6.20/configure** script
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#####Building library
 | 
					#####Building library
 | 
				
			||||||
 | 
					
 | 
				
			||||||
In Terminal go to **/Users/user/TBuild/Libraries/libexif-0.6.20** and there run
 | 
					In Terminal go to **/Users/user/TBuild/Libraries/libexif-0.6.20** and there run
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,10 +14,6 @@ By git – in Terminal go to **/Users/user/TBuild** and run:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    git clone https://github.com/telegramdesktop/tdesktop.git
 | 
					    git clone https://github.com/telegramdesktop/tdesktop.git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
or:
 | 
					 | 
				
			||||||
* download in ZIP and extract to **/Users/user/TBuild**
 | 
					 | 
				
			||||||
* rename **tdesktop-master** to **tdesktop**.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
###Prepare libraries
 | 
					###Prepare libraries
 | 
				
			||||||
 | 
					
 | 
				
			||||||
In your build Terminal run:
 | 
					In your build Terminal run:
 | 
				
			||||||
| 
						 | 
					@ -51,11 +47,6 @@ From https://github.com/telegramdesktop/openssl-xcode with git in Terminal:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	git clone https://github.com/telegramdesktop/openssl-xcode.git
 | 
						git clone https://github.com/telegramdesktop/openssl-xcode.git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
or:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
* download in ZIP and extract to **/Users/user/TBuild/Libraries**,
 | 
					 | 
				
			||||||
* rename **openssl-xcode-master** to **openssl-xcode**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
The path to openssl.xcodeproj should now be: **/Users/user/TBuild/Libraries/openssl-xcode/openssl.xcodeproj**
 | 
					The path to openssl.xcodeproj should now be: **/Users/user/TBuild/Libraries/openssl-xcode/openssl.xcodeproj**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#####Get the source code:
 | 
					#####Get the source code:
 | 
				
			||||||
| 
						 | 
					@ -98,12 +89,6 @@ From https://github.com/telegramdesktop/libexif-0.6.20 with git in Terminal:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    	git clone https://github.com/telegramdesktop/libexif-0.6.20.git
 | 
					    	git clone https://github.com/telegramdesktop/libexif-0.6.20.git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
or:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
* download in ZIP
 | 
					 | 
				
			||||||
* extract to **/Users/user/TBuild/Libraries**
 | 
					 | 
				
			||||||
* rename **libexif-0.6.20-master** to **libexif-0.6.20**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
The folder configure should have this path:
 | 
					The folder configure should have this path:
 | 
				
			||||||
**/Users/user/TBuild/Libraries/libexif-0.6.20/configure**
 | 
					**/Users/user/TBuild/Libraries/libexif-0.6.20/configure**
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue