This project is a part of Staticlibs.
This project contains a CMake wrapper for the libgit2 library that can be used to build sources imported from Fedora lookaside.
Link to the documentation.
CMake is required for building.
pkg-config utility is used for dependency management.
For Windows users ready-to-use binary version of pkg-config
can be obtained from tools_windows_pkgconfig repository.
See StaticlibsPkgConfig for Staticlibs-specific details about pkg-config
usage.
Perl is also required for building, Windows users can obtain ready-to-use Perl distribution from tools_windows_perl repository.
NASM is also required for building on Windows. You can obtain ready-to-use NASM distribution from tools_windows_nasm repository.
To build the library on Windows using Visual Studio 2013 Express run the following commands using
Visual Studio development command prompt
(C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\Shortcuts\VS2013 x86 Native Tools Command Prompt
):
git clone https://github.com/staticlibs/external_zlib.git
git clone https://github.com/staticlibs/lookaside_zlib.git
git clone https://github.com/staticlibs/external_openssl.git
git clone https://github.com/staticlibs/lookaside_openssl.git
git clone https://github.com/staticlibs/external_libssh2.git
git clone https://github.com/staticlibs/lookaside_libssh2.git
git clone https://github.com/staticlibs/external_libgit2.git
git clone https://github.com/staticlibs/lookaside_libgit2.git
cd external_libgit2
mkdir build
cd build
cmake ..
msbuild external_libgit2.sln
Cloning of external_zlib, external_openssl and external_libssh2 is not required on Linux - system libraries will be used instead.
See StaticlibsToolchains for more information about the toolchain setup and cross-compilation.
This project is released under the Apache License 2.0.
2019-03-10
- version 0.28.0-2
- initial public version