Added darwin support.
This commit is contained in:
parent
4a26afe3b0
commit
3493a51002
|
@ -1,11 +1,13 @@
|
||||||
// +build libtdjson
|
// +build libtdjson
|
||||||
// +build linux windows
|
// +build linux darwin windows
|
||||||
|
|
||||||
package client
|
package client
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo linux CFLAGS: -I/usr/local/include
|
#cgo linux CFLAGS: -I/usr/local/include
|
||||||
#cgo linux LDFLAGS: -L/usr/local/lib -ltdjson -lstdc++ -lssl -lcrypto -ldl -lz -lm
|
#cgo linux LDFLAGS: -L/usr/local/lib -ltdjson -lstdc++ -lssl -lcrypto -ldl -lz -lm
|
||||||
|
#cgo darwin CFLAGS: -I/usr/local/include
|
||||||
|
#cgo darwin LDFLAGS: -L/usr/local/lib -ltdjson -lstdc++ -lssl -lcrypto -ldl -lz -lm
|
||||||
#cgo windows CFLAGS: -Ic:/td -Ic:/td/example/csharp/build
|
#cgo windows CFLAGS: -Ic:/td -Ic:/td/example/csharp/build
|
||||||
#cgo windows LDFLAGS: -Lc:/td/example/csharp/build/Release -ltdjson
|
#cgo windows LDFLAGS: -Lc:/td/example/csharp/build/Release -ltdjson
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
// +build !libtdjson
|
// +build !libtdjson
|
||||||
// +build linux
|
// +build linux darwin
|
||||||
|
|
||||||
package client
|
package client
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo linux CFLAGS: -I/usr/local/include
|
#cgo linux CFLAGS: -I/usr/local/include
|
||||||
#cgo linux LDFLAGS: -L/usr/local/lib -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdactor -ltdapi -ltddb -ltdsqlite -ltdnet -ltdutils -lstdc++ -lssl -lcrypto -ldl -lz -lm
|
#cgo linux LDFLAGS: -L/usr/local/lib -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdactor -ltdapi -ltddb -ltdsqlite -ltdnet -ltdutils -lstdc++ -lssl -lcrypto -ldl -lz -lm
|
||||||
|
#cgo darwin CFLAGS: -I/usr/local/include
|
||||||
|
#cgo darwin LDFLAGS: -L/usr/local/lib -ltdjson_static -ltdjson_private -ltdclient -ltdcore -ltdactor -ltdapi -ltddb -ltdsqlite -ltdnet -ltdutils -lstdc++ -lssl -lcrypto -ldl -lz -lm
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
Loading…
Reference in a new issue