Skip to content

Commit 3117d28

Browse files
committed
!338 [200_5] Deprecate libgit2 integration
1 parent 6e2ee94 commit 3117d28

File tree

7 files changed

+5
-407
lines changed

7 files changed

+5
-407
lines changed

devel/200_5.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# 200_5 在Windows平台配置CICD
2+
## 2025/07/02 移除依赖 libgit2
3+
### Why
4+
降低依赖的复杂度,移除一些不常用功能
5+
26
## 2025/07/02 移除依赖CPR
37
### Why
48
CPR这个依赖并没有被实际使用。

src/Plugins/Git/git.cpp

Lines changed: 0 additions & 159 deletions
This file was deleted.

src/Plugins/Git/git.hpp

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/Scheme/Plugins/glue_git.lua

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/Scheme/Plugins/init_glue_plugins.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,6 @@ supports_ghostscript () {
113113
#include "glue_ghostscript.cpp"
114114
#endif
115115

116-
#ifdef USE_PLUGIN_GIT
117-
#include "Git/git.hpp"
118-
#include "glue_git.cpp"
119-
#endif
120-
121116
#include "glue_plugin.cpp"
122117

123118
void
@@ -149,8 +144,4 @@ initialize_glue_plugins () {
149144
#ifdef USE_PLUGIN_PDF
150145
initialize_glue_pdf ();
151146
#endif
152-
153-
#ifdef USE_PLUGIN_GIT
154-
initialize_glue_git ();
155-
#endif
156147
}

xmake.lua

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ add_configfiles("src/System/config.h.xmake", {
2828
USE_PLUGIN_PDF = true,
2929
USE_PLUGIN_SPARKLE = false,
3030
USE_PLUGIN_HTML = true,
31-
USE_PLUGIN_GIT = not is_plat("wasm"),
3231
OS_MACOS = is_plat("macosx"),
3332
MACOSX_EXTENSIONS = is_plat("macosx"),
3433
QTTEXMACS = true,
@@ -174,7 +173,6 @@ function using_legacy_apt ()
174173
end
175174

176175
local FREETYPE_VERSION = "2.12.1"
177-
local LIBGIT2_VERSION = "1.7.1"
178176
local LIBICONV_VERSION = "1.17"
179177

180178
-- package: s7
@@ -202,14 +200,7 @@ else
202200
end
203201
end
204202

205-
-- package: libgit2
206-
if is_plat ("linux") and using_apt() then
207-
add_requires("apt::libgit2-dev", {alias="libgit2"})
208-
elseif not is_plat("wasm") then
209-
add_requires("libgit2 "..LIBGIT2_VERSION, {system=false})
210-
end
211-
212-
-- package: qt6widgets
203+
--- package: qt6widgets
213204
QT6_VERSION="6.5.3"
214205
if is_plat("windows") then
215206
add_requires("qt6widgets "..QT6_VERSION)
@@ -332,7 +323,6 @@ target("libmogan") do
332323
add_packages("liii-pdfhummus")
333324
add_packages("freetype")
334325
add_packages("s7")
335-
add_packages("libgit2")
336326
if not is_plat("macosx") then
337327
add_packages("libiconv")
338328
end
@@ -376,7 +366,6 @@ target("libmogan") do
376366
USE_PLUGIN_PDF = true,
377367
USE_PLUGIN_SPARKLE = false,
378368
USE_PLUGIN_HTML = true,
379-
USE_PLUGIN_GIT = not is_plat("wasm")
380369
}})
381370

382371
if is_plat("linux") then
@@ -448,7 +437,6 @@ target("libmogan") do
448437
"src/Plugins/Qt",
449438
"src/Plugins/UniversalStacktrace",
450439
"src/Plugins/Html",
451-
"src/Plugins/Git",
452440
"src/Scheme",
453441
"src/Scheme/L1",
454442
"src/Scheme/L2",
@@ -511,7 +499,6 @@ target("libmogan") do
511499
"src/Plugins/Tex/**.cpp",
512500
"src/Plugins/Xml/**.cpp",
513501
"src/Plugins/Html/**.cpp",
514-
"src/Plugins/Git/**.cpp",
515502
"src/Plugins/Updater/**.cpp",
516503
"$(projectdir)/TeXmacs/plugins/goldfish/src/**.cpp"})
517504

0 commit comments

Comments
 (0)