Expand description
§配置解析器
用于解析配置文件,生成任务列表
您需要指定一个配置文件目录,解析器会自动解析该目录下的所有配置文件。 软件包的配置文件格式为toml
§简介
在每个配置文件中,您需要指定软件包的名称、版本、描述、任务类型、依赖、构建配置和安装配置。DADK会根据这些信息生成任务列表。
§配置文件格式
name = "test_git"
version = "0.1.0"
description = ""
build_once = true
install_once = true
target_arch = ["x86_64"]
[task_type]
type = "build_from_source"
source = "git"
source_path = "https://git.mirrors.dragonos.org.cn/DragonOS-Community/test_git.git"
revison = "01cdc56863"
branch = "test"
[build]
build-command = "make instal"
[install]
in_dragonos_path = "/bin"
[clean]
clean-command = "make clean"
[depends]
depend1 = "0.1.1"
depend2 = "0.1.2"
[envs]
PATH = "/usr/bin"
LD_LIBRARY_PATH = "/usr/lib"Modules§
Structs§
- Parser
- 配置解析器
- Parser
Error