From e4a9f57780d1f0bb639cb00b8a52bf780c9ba8d3 Mon Sep 17 00:00:00 2001 From: Aleksandr Zelenin Date: Thu, 27 Sep 2018 03:36:25 +0300 Subject: [PATCH] windows tags --- client/tdjson.go | 4 +--- client/tdjson_dynamic.go | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/tdjson.go b/client/tdjson.go index 4a471ad..a91488e 100644 --- a/client/tdjson.go +++ b/client/tdjson.go @@ -1,11 +1,9 @@ -// +build !linux +// +build darwin package client /* #cgo darwin CFLAGS: -I/usr/local/include -#cgo windows CFLAGS: -IC:/src/td -IC:/src/td/build #cgo darwin LDFLAGS: -L/usr/local/lib -L/usr/local/opt/openssl/lib -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdactor -ltddb -ltdsqlite -ltdnet -ltdutils -lstdc++ -lssl -lcrypto -ldl -lz -lm -#cgo windows LDFLAGS: -LC:/src/td/build/Debug -ltdjson */ import "C" diff --git a/client/tdjson_dynamic.go b/client/tdjson_dynamic.go index 6aa79cd..1e003ac 100644 --- a/client/tdjson_dynamic.go +++ b/client/tdjson_dynamic.go @@ -1,9 +1,11 @@ // +build libtdjson -// +build linux +// +build linux windows package client /* #cgo linux LDFLAGS: -ltdjson -lstdc++ -lssl -lcrypto -ldl -lz -lm +#cgo windows CFLAGS: -Ic:/td -Ic:/td/example/csharp/build +#cgo windows LDFLAGS: -Lc:/td/example/csharp/build/Release -ltdjson */ import "C"