This repository has been archived on 2020-05-25. You can view files and clone it, but cannot push or open issues or pull requests.
tdlib-fork/example/uwp
Arseny Smirnov 9efa9a49d9 minor
GitOrigin-RevId: 3c591f9c2e8eb8443bf3b2c3be3ba2fb37b1f769
2018-03-07 11:50:46 +03:00
..
app Various fixes. 2018-03-06 19:27:52 +03:00
[Content_Types].xml UWP: build scripts 2018-02-28 21:19:33 +03:00
build.ps1 uwp example: readme 2018-03-07 11:46:01 +03:00
extension.vsixmanifest Add td_api::getCountryCode. 2018-03-05 00:36:16 +03:00
README.md minor 2018-03-07 11:50:46 +03:00
SDKManifest.xml Various fixes. 2018-03-06 19:27:52 +03:00

TDLib Universal Windows Platform example

Here are script for building TDLib SDK for universal windows platfrom and an example of its usage.

Building SDK

  1. Install vcpkg.

  2. With vcpkg install zlib and openssl for all UWP architectures.

.\vcpkg.exe install openssl:arm-uwp openssl:arm64-uwp openssl:x64-uwp openssl:x86-uwp zlib:arm-uwp zlib:arm64-uwp zlib:x64-uwp zlib:x86-uwp
  1. Install 7z. You may also use zip or winrar.

  2. Run build.ps1 with powershell. Pass path to vcpkg as -vcpkg-root argument.

.\build.ps1 -vcpkg-root "~\vcpkg\"

If you wish to use zip or WinRAR instead of 7z pass -compress zip or -compress winrar.

The build process will take a lot of time, as TDLib will be built for multiple platforms in Debug and Release configurations. You may interrupt and resume the script at any moment.

If you will need to restart the build from scratch, call .\build.ps -mode "clean" first.

  1. tdlib.vsix will be at build-uwp\vsix\tdlib.vsix. Open it and install the SDK.

Example of usage

app directory contains a simple example of app for Universal Windows Plaform. Just open it with Visual Studio 2015 or 2017 and run.