You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: example/csharp/README.md
+2-3
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,12 @@ This is an example of building TDLib with `C++/CLI` support and an example of TD
7
7
* Download and install Microsoft Visual Studio 2015 or later.
8
8
* Download and install [CMake](https://cmake.org/download/); choose "Add CMake to the system PATH" option while installing.
9
9
* Install [vcpkg](https://github.com/Microsoft/vcpkg#quick-start) or update it to the latest version using `vcpkg update` and following received instructions.
10
-
* Install `zlib` and `openssl` using `vcpkg`:
10
+
* Install `gperf`, `zlib`, and `openssl` using `vcpkg`:
* (Optional. For XML documentation generation.) Download [PHP](https://windows.php.net/download#php-7.2). Add the path to php.exe to the PATH environment variable.
16
-
* Download and install [gperf](https://sourceforge.net/projects/gnuwin32/files/gperf/3.0.1/). Add the path to gperf.exe to the PATH environment variable.
17
16
* Build `TDLib` with CMake enabling `.NET` support and specifying correct path to `vcpkg` toolchain file:
Copy file name to clipboardExpand all lines: example/uwp/README.md
+3-4
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,12 @@ This is an example of building TDLib SDK for Universal Windows Platform and an e
7
7
* Download and install Microsoft Visual Studio 2015+ with Windows 10 SDK. We recommend to use the latest available versions of Microsoft Visual Studio and Windows 10 SDK.
8
8
* Download and install [CMake](https://cmake.org/download/).
9
9
* Install [vcpkg](https://github.com/Microsoft/vcpkg#quick-start) or update it to the latest version using `vcpkg update` and following received instructions.
10
-
* Install `zlib` and `openssl` for all UWP architectures using `vcpkg`:
10
+
* Install `zlib` and `openssl` for all UWP architectures and `gperf` for x86 using `vcpkg`:
* (Optional. For XML documentation generation.) Download [PHP](https://windows.php.net/download#php-7.2). Add the path to php.exe to the PATH environment variable.
16
-
* Download and install [gperf](https://sourceforge.net/projects/gnuwin32/files/gperf/3.0.1/). Add the path to gperf.exe to the PATH environment variable.
17
16
* Download and install [7-Zip](http://www.7-zip.org/download.html) archiver, which is used by the `build.ps1` script to create a Telegram.Td.UWP Visual Studio Extension. Add the path to 7z.exe to the PATH environment variable.
18
17
Alternatively `build.ps1` supports compressing using [WinRAR](https://en.wikipedia.org/wiki/WinRAR) with option `-compress winrar` and compressing using [zip](http://gnuwin32.sourceforge.net/packages/zip.htm) with `-compress zip`.
19
18
* Build `TDLib` using provided `build.ps1` script (TDLib should be built 6 times for multiple platforms in Debug and Release configurations, so it make take few hours). Pass path to vcpkg.exe as `-vcpkg-root` argument, for example:
If you need to restart the build from scratch, call `.\build.ps1 -mode clean` first.
24
23
* Install Visual Studio Extension "TDLib for Universal Windows Platform" located at `build-uwp\vsix\tdlib.vsix`, which was created on the previous step by `build.ps1` script.
25
24
26
-
Now `TDLib` can be freely used from any UWP project, built in Visual Studio.
25
+
Now `TDLib` can be used from any UWP project, built in Visual Studio.
27
26
28
27
## Example of usage
29
28
The `app/` directory contains a simple example of a C# application for Universal Windows Platform. Just open it with Visual Studio 2015 or later and run.
0 commit comments