diff options
Diffstat (limited to 'vendor/github.com/libgit2/git2go/git_static.go')
-rw-r--r-- | vendor/github.com/libgit2/git2go/git_static.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/github.com/libgit2/git2go/git_static.go b/vendor/github.com/libgit2/git2go/git_static.go new file mode 100644 index 000000000..63037348a --- /dev/null +++ b/vendor/github.com/libgit2/git2go/git_static.go @@ -0,0 +1,17 @@ +// +build static + +package git + +/* +#cgo CFLAGS: -I${SRCDIR}/vendor/libgit2/include +#cgo LDFLAGS: -L${SRCDIR}/vendor/libgit2/build/ -lgit2 +#cgo windows LDFLAGS: -lwinhttp +#cgo !windows pkg-config: --static ${SRCDIR}/vendor/libgit2/build/libgit2.pc +#include <git2.h> + +#if LIBGIT2_VER_MAJOR != 0 || LIBGIT2_VER_MINOR != 27 +# error "Invalid libgit2 version; this git2go supports libgit2 v0.27" +#endif + +*/ +import "C" |