Repositories / ocaml-git.git
src/dune
Clone (read-only): git clone http://git.guha-anderson.com/git/ocaml-git.git
(rule
(targets libgit2_static_link_flags.sexp)
(deps ../scripts/gen-libgit2-static-link-sexp.sh)
(action
(with-stdout-to %{targets}
(run sh %{deps}))))
(library
(name ocaml_git)
(public_name ocaml-git)
(modes native)
(no_dynlink)
(foreign_stubs
(language c)
(names ocaml_git_stubs)
(include_dirs %{project_root}/vendor/libgit2-install/include))
(c_library_flags
(:include libgit2_static_link_flags.sexp))
(libraries unix))
(install
(package ocaml-git)
(section lib)
(files
(../vendor/libgit2-install/lib/libgit2.a as libgit2.a)))