blob: bc5ebcbf1a7fc253a80c81dba28a0c28014b3115 [file] [log] [blame]
package git
/*
#cgo CFLAGS: -I${SRCDIR}/vendor/libgit2/include
#cgo LDFLAGS: -L${SRCDIR}/vendor/libgit2/build/ -lgit2
#cgo windows LDFLAGS: -lwinhttp
#cgo LDFLAGS: -L${SRCDIR}/vendor/libssh2/build/src -lssh2
#cgo LDFLAGS: -L${SRCDIR}/vendor/curl/build/lib -lcurl
#cgo LDFLAGS: -L${SRCDIR}/vendor/boringssl/build/ssl -lssl
#cgo LDFLAGS: -L${SRCDIR}/vendor/boringssl/build/crypto -lcrypto
#cgo linux LDFLAGS: -lrt -lpthread -ldl -lz
#cgo darwin LDFLAGS: -framework Security -framework CoreFoundation -lz -liconv
#include <git2.h>
#if LIBGIT2_VER_MAJOR != 0 || LIBGIT2_VER_MINOR != 26
# error "Invalid libgit2 version; this git2go supports libgit2 v0.26"
#endif
*/
import "C"