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"