From 5c233fe994ae0faac8dbac3456594fc90acfcfd0 Mon Sep 17 00:00:00 2001 From: Darcy Shen Date: Mon, 8 Jan 2024 19:11:54 +0800 Subject: [PATCH] [44_5] add_requires libgit2 --- xmake.lua | 1 + xmake/packages.lua | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/xmake.lua b/xmake.lua index 3939352d65..2a286b5014 100644 --- a/xmake.lua +++ b/xmake.lua @@ -389,6 +389,7 @@ target("libmogan") do add_packages("freetype") add_packages("pdfhummus") add_packages("s7") + add_packages("libgit2") if is_plat("linux") then add_packages("fontconfig") end diff --git a/xmake/packages.lua b/xmake/packages.lua index 5e1aa2d31b..ad0549e9c5 100644 --- a/xmake/packages.lua +++ b/xmake/packages.lua @@ -27,6 +27,7 @@ local FREETYPE_VERSION = "2.12.1" local LIBPNG_VERSION = "1.6.37" local LIBJPEG_VERSION = "v9e" local LIBICONV_VERSION = "1.17" +local LIBGIT2_VERSION = "1.7.1" -- https://xmake.io/#/manual/package_dependencies?id=inherit-package-configuration package("lolly") @@ -140,4 +141,7 @@ function add_requires_of_mogan() add_requires("freetype "..FREETYPE_VERSION, {system=false}) add_requireconfs("pdfhummus.freetype", {version = FREETYPE_VERSION, system = false, override=true}) end + + -- package: libgit2 + add_requires("libgit2 "..LIBGIT2_VERSION, {system=false}) end