mirror of
https://github.com/c0re100/gotdlib.git
synced 2026-02-21 20:20:17 +01:00
windows build readme
This commit is contained in:
parent
e5d2ffd3f9
commit
7eada9065f
2 changed files with 18 additions and 5 deletions
17
README.md
17
README.md
|
|
@ -4,7 +4,22 @@ Go wrapper for [TDLib (Telegram Database Library)](https://github.com/tdlib/td)
|
|||
|
||||
## TDLib installation
|
||||
|
||||
Use [TDLib build instructions](https://tdlib.github.io/td/build.html)
|
||||
Use [TDLib build instructions](https://tdlib.github.io/td/build.html) to build.
|
||||
|
||||
### Windows
|
||||
|
||||
Build with environment variables:
|
||||
|
||||
```
|
||||
CGO_CFLAGS=-IC:/path/to/tdlib/build/tdlib/include
|
||||
CGO_LDFLAGS=-LC:/path/to/tdlib/build/tdlib/bin -ltdjson
|
||||
```
|
||||
|
||||
Example for PowerShell:
|
||||
|
||||
```powershell
|
||||
$env:CGO_CFLAGS="-IC:/td/tdlib/include"; $env:CGO_LDFLAGS="-LC:/td/tdlib/bin -ltdjson"; go build -trimpath -ldflags="-s -w" -o demo.exe .\cmd\demo.go
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue