Skip to content

Commit 1c3c519

Browse files
Gary.ZhangRbb666
authored andcommitted
upload sorch module
1 parent e2d0ca6 commit 1c3c519

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

tools/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
menu "tools packages"
22

33
source "$PKGS_DIR/packages/tools/vector/Kconfig"
4+
source "$PKGS_DIR/packages/tools/sorch/Kconfig"
45
source "$PKGS_DIR/packages/tools/CmBacktrace/Kconfig"
56
source "$PKGS_DIR/packages/tools/MCoreDump/Kconfig"
67
source "$PKGS_DIR/packages/tools/EasyFlash/Kconfig"

tools/sorch/Kconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Kconfig file for package sorch
2+
menuconfig PKG_USING_SORCH
3+
bool "sorch: a set of generalized algorithms, including Merge Sort and Binary Search"
4+
default n
5+
6+
if PKG_USING_SORCH
7+
config PKG_SORCH_PATH
8+
string
9+
default "/packages/tools/sorch"
10+
11+
choice
12+
prompt "Version"
13+
default PKG_USING_SORCH_LATEST_VERSION
14+
help
15+
Select the package version
16+
17+
config PKG_USING_SORCH_LATEST_VERSION
18+
bool "latest"
19+
20+
endchoice
21+
22+
config PKG_SORCH_VER
23+
string
24+
default "latest" if PKG_USING_SORCH_LATEST_VERSION
25+
26+
endif

tools/sorch/package.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "sorch",
3+
"description": "sorch is a generalized sort and search library, including merge sort and binary search",
4+
"description_zh": "Sorch 是一个为 RT-Thread 设计的通用排序和查找算法库,支持归并排序和二分查找",
5+
"enable": "PKG_USING_SORCH",
6+
"keywords": [
7+
"sort", "search", "merge sort", "binary search"
8+
],
9+
"category": "tools",
10+
"author": {
11+
"name": "zhangguofu",
12+
"email": "cleancode@163.com",
13+
"github": "Gary.Zhang"
14+
},
15+
"license": "MIT",
16+
"repository": "https://github.com/zhangguofu/sorch",
17+
"icon": "unknown",
18+
"homepage": "https://github.com/zhangguofu/sorch#readme",
19+
"doc": "unknown",
20+
"site": [
21+
{
22+
"version": "latest",
23+
"URL": "https://github.com/zhangguofu/sorch.git",
24+
"filename": "sorch.zip",
25+
"VER_SHA": "main"
26+
}
27+
]
28+
}

0 commit comments

Comments
 (0)