Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions devel/0725.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# [0725] 更新构建脚本以避免重复的依赖

## What
在构建脚本中修改了 tbox, argh 相关的内容,避免重复依赖

## Why
避免重复的依赖,减少构建时间以及产物大小

## 如何测试

```
xmake f
```

检查即将安装的依赖中是否有重复项
3 changes: 1 addition & 2 deletions lolly/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ option_end()
local MIMALLOC_VERSION = "2.1.2"
local JEMALLOC_VERSION = "5.3.0"

tbox_configs = {hash=true, ["force-utf8"]=true, charset=true}
add_requires("liii-tbox", {system=false, configs=tbox_configs})
add_requires("liii-tbox", {system=false})
if has_config("enable_tests") or is_mode("releasedbg") then
add_requires("liii-doctest", {system=false})
add_requires("nanobench", {system=false})
Expand Down
2 changes: 1 addition & 1 deletion xmake/goldfish.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package("goldfish")

on_load(function (package)
package:addenv("PATH", "bin")
package:add("deps", "argh")
package:add("deps", "argh v1.3.2")
end)

on_install("bsd", "cross", "cygwin", "linux", "macosx", "mingw", "msys", "wasm", "windows", function (package)
Expand Down
2 changes: 1 addition & 1 deletion xmake/targets/libmogan.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ target("libmogan") do
if not is_plat("wasm") then
add_packages("cpr")
end
add_packages("argh")
add_packages("argh", {public = true})
if not is_plat("macosx") then
add_packages("libiconv")
end
Expand Down
Loading