userapp_config.toml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # 用户程序名称
  2. name = "userapp_config"
  3. # 版本号
  4. version = "0.2.0"
  5. # 用户程序描述信息
  6. description = ""
  7. # (可选)默认: false 是否只构建一次,如果为true,DADK会在构建成功后,将构建结果缓存起来,下次构建时,直接使用缓存的构建结果
  8. build-once = false
  9. # (可选) 默认: false 是否只安装一次,如果为true,DADK会在安装成功后,不再重复安装
  10. install-once = false
  11. # 目标架构
  12. # 可选值:"x86_64", "aarch64", "riscv64"
  13. target-arch = ["x86_64"]
  14. # 任务源
  15. [task-source]
  16. # 构建类型
  17. # 可选值:"build-from_source", "install-from-prebuilt"
  18. type = "build-from-source"
  19. # 构建来源
  20. # "build_from_source" 可选值:"git", "local", "archive"
  21. # "install_from_prebuilt" 可选值:"local", "archive"
  22. source = "git"
  23. # 路径或URL
  24. source-path = "https://git.mirrors.dragonos.org.cn/DragonOS-Community/test_git.git"
  25. # git标签或分支
  26. # 注意: branch和revision只能二选一,且source要设置为"git"
  27. revision = "01cdc56863"
  28. # branch = "test"
  29. # 构建相关信息
  30. [build]
  31. # (可选)构建命令
  32. build-command = "make install"
  33. # (可选)预构建脚本路径
  34. pre-build = "config/pre_build.sh"
  35. # (可选)构建后脚本路径
  36. post-build = "config/post_build.sh"
  37. # 安装相关信息
  38. [install]
  39. # (可选)安装到DragonOS的路径
  40. in-dragonos-path = "/bin"
  41. # 清除相关信息
  42. [clean]
  43. # (可选)清除命令
  44. clean-command = "make clean"
  45. # (可选)依赖项
  46. # 注意:如果没有依赖项,忽略此项,不允许只留一个[[depends]]
  47. [[depends]]
  48. name = "depend1"
  49. version = "0.1.1"
  50. [[depends]]
  51. name = "depend2"
  52. version = "0.1.2"
  53. # (可选)环境变量
  54. [[envs]]
  55. key = "PATH"
  56. value = "/usr/bin"
  57. [[envs]]
  58. key = "LD_LIBRARY_PATH"
  59. value = "/usr/lib"