diff options
| author | ruki <[email protected]> | 2020-10-24 21:53:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-10-24 21:53:33 +0800 |
| commit | 6435a8f7c9f11929fc77280fe948077be8d02d7f (patch) | |
| tree | ea89954ab60c1304be8f8ab34481ebee8a5ce757 | |
| parent | 33285faddf1c07606a51347bbbbead187c22d9cc (diff) | |
update readme
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | README_zh.md | 4 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/info.lua | 12 |
3 files changed, 16 insertions, 2 deletions
@@ -269,6 +269,8 @@ target("test") add_packages("tbox", "libuv", "vcpkg::ffmpeg", "brew::pcre2/libpcre2-8", "openssl") ``` +In addition, we can also use the [xrepo](https://github.com/xmake-io/xrepo) command to quickly install dependent packages. + #### Qt QuickApp Program ```lua diff --git a/README_zh.md b/README_zh.md index f2f7d0d2c..ff9244f7d 100644 --- a/README_zh.md +++ b/README_zh.md @@ -266,7 +266,7 @@ target("test") #### 依赖包自动集成 -下载和使用在[xmake-repo](https://github.com/xmake-io/xmake-repo)和第三方包仓库的依赖包: +下载和使用在 [xmake-repo](https://github.com/xmake-io/xmake-repo) 和第三方包仓库的依赖包: ```lua add_requires("tbox >1.6.1", "libuv master", "vcpkg::ffmpeg", "brew::pcre2/libpcre2-8") @@ -277,6 +277,8 @@ target("test") add_packages("tbox", "libuv", "vcpkg::ffmpeg", "brew::pcre2/libpcre2-8", "openssl") ``` +另外,我们也可以使用 [xrepo](https://github.com/xmake-io/xrepo) 命令来快速安装依赖包。 + #### Qt QuickApp 应用程序 ```lua diff --git a/xmake/modules/private/xrepo/action/info.lua b/xmake/modules/private/xrepo/action/info.lua index cd34c2add..2d8bede4b 100644 --- a/xmake/modules/private/xrepo/action/info.lua +++ b/xmake/modules/private/xrepo/action/info.lua @@ -64,7 +64,17 @@ function _info_packages(packages) os.cd(workdir) end - -- do info + -- do configure first + local config_argv = {"f", "-c"} + if option.get("verbose") then + table.insert(config_argv, "-v") + end + if option.get("diagnosis") then + table.insert(config_argv, "-D") + end + os.vrunv("xmake", config_argv) + + -- show info local require_argv = {"require", "--info"} if option.get("verbose") then table.insert(require_argv, "-v") |
