libgit2: add v1.7.1 (#3057)

pull/3059/head
Darcy Shen 11 months ago committed by GitHub
parent 7d45f8ca61
commit 9886374ff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/l/libgit2/xmake.lua

@ -6,6 +6,7 @@ package("libgit2")
set_urls("https://github.com/libgit2/libgit2/archive/refs/tags/$(version).tar.gz",
"https://github.com/libgit2/libgit2.git")
add_versions("v1.7.1", "17d2b292f21be3892b704dddff29327b3564f96099a1c53b00edc23160c71327")
add_versions("v1.3.0", "192eeff84596ff09efb6b01835a066f2df7cd7985e0991c79595688e6b36444e")
add_deps("cmake")
@ -22,11 +23,12 @@ package("libgit2")
add_syslinks("ole32", "rpcrt4", "winhttp")
end
on_install("macosx", "linux", "windows", "android", "iphoneos", function (package)
on_install("macosx", "linux", "windows|x64", "windows|x86", "iphoneos", function (package)
local configs = {"-DBUILD_TESTS=OFF",
"-DBUILD_CLAR=OFF",
"-DBUILD_EXAMPLES=OFF",
"-DBUILD_FUZZERS=OFF",
"-DBUILD_CLI=OFF",
"-DUSE_SSH=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))

Loading…
Cancel
Save