Kaynağa Gözat

update global apis

ruki 5 yıl önce
ebeveyn
işleme
8ea9ebf84a

+ 14 - 14
manual/global_interfaces.md

@@ -1,20 +1,20 @@
 
 The global interface affects the whole project description scope and all sub-project files.
 
-| Interfaces                            | Description                           | Version  |
-| ------------------------------------- | ------------------------------------- | -------- |
-| [includes](#includes)                 | Add sub-project files and directories | >= 2.1.5 |
-| [set_modes](#set_modes)               | Set project compilation modes         | >= 2.1.2 |
-| [set_project](#set_project)           | Set project name                      | >= 2.0.1 |
-| [set_version](#set_version)           | Set project version                   | >= 2.0.1 |
-| [set_xmakever](#set_xmakever)         | Set minimal xmake version             | >= 2.1.1 |
-| [add_moduledirs](#add_moduledirs)     | Add module directories                | >= 2.1.5 |
-| [add_plugindirs](#add_plugindirs)     | Add plugin directories                | >= 2.0.1 |
-| [add_packagedirs](#add_packagedirs)   | Add package directories               | >= 2.0.1 |
-| [get_config](#get_config)             | Get the configuration value           | >= 2.2.2 |
-| [set_config](#set_config)             | Set the default configuration value   | >= 2.2.2 |
-| [add_requires](#add_requires)         | Add required package dependencies     | >= 2.2.2 |
-| [add_repositories](#add_repositories) | Add 3rd package repositories          | >= 2.2.2 |
+| Interfaces                            | Description                                              | Version  |
+| ------------------------------------- | -------------------------------------                    | -------- |
+| [includes](#includes)                 | Add sub-project files and directories                    | >= 2.1.5 |
+| [set_project](#set_project)           | Set project name                                         | >= 2.0.1 |
+| [set_version](#set_version)           | Set project version                                      | >= 2.0.1 |
+| [set_xmakever](#set_xmakever)         | Set minimal xmake version                                | >= 2.1.1 |
+| [add_moduledirs](#add_moduledirs)     | Add module directories                                   | >= 2.1.5 |
+| [add_plugindirs](#add_plugindirs)     | Add plugin directories                                   | >= 2.0.1 |
+| [add_packagedirs](#add_packagedirs)   | Add package directories                                  | >= 2.0.1 |
+| [get_config](#get_config)             | Get the configuration value                              | >= 2.2.2 |
+| [set_config](#set_config)             | Set the default configuration value                      | >= 2.2.2 |
+| [add_requires](#add_requires)         | Add required package dependencies                        | >= 2.2.2 |
+| [add_requireconfs](#add_requireconfs) | Set the configuration of the specified dependent package | >= 2.5.1 |
+| [add_repositories](#add_repositories) | Add 3rd package repositories                             | >= 2.2.2 |
 
 ### includes
 

+ 5 - 5
mirror/manual/global_interfaces.html

@@ -106,11 +106,6 @@
 <td>>= 2.1.5</td>
 </tr>
 <tr>
-<td><a href="#set_modes">set_modes</a></td>
-<td>Set project compilation modes</td>
-<td>>= 2.1.2</td>
-</tr>
-<tr>
 <td><a href="#set_project">set_project</a></td>
 <td>Set project name</td>
 <td>>= 2.0.1</td>
@@ -156,6 +151,11 @@
 <td>>= 2.2.2</td>
 </tr>
 <tr>
+<td><a href="#add_requireconfs">add_requireconfs</a></td>
+<td>Set the configuration of the specified dependent package</td>
+<td>>= 2.5.1</td>
+</tr>
+<tr>
 <td><a href="#add_repositories">add_repositories</a></td>
 <td>Add 3rd package repositories</td>
 <td>>= 2.2.2</td>

+ 11 - 11
mirror/zh-cn/manual/global_interfaces.html

@@ -106,11 +106,6 @@
 <td>>= 2.1.5</td>
 </tr>
 <tr>
-<td><a href="#set_modes">set_modes</a></td>
-<td>设置支持的编译模式</td>
-<td>>= 2.1.2</td>
-</tr>
-<tr>
 <td><a href="#set_project">set_project</a></td>
 <td>设置工程名</td>
 <td>>= 2.0.1</td>
@@ -156,6 +151,11 @@
 <td>>= 2.2.2</td>
 </tr>
 <tr>
+<td><a href="#add_requireconfs">add_requireconfs</a></td>
+<td>设置指定依赖包的配置</td>
+<td>>= 2.5.1</td>
+</tr>
+<tr>
 <td><a href="#add_repositories">add_repositories</a></td>
 <td>添加依赖包仓库</td>
 <td>>= 2.2.2</td>
@@ -392,7 +392,7 @@ add_requires("brew::pcre2/libpcre2-8", {alias = "pcre2"}})
 
 target("test")
     set_kind("binary")
-    add_files("src/*.c") 
+    add_files("src/*.c")
     add_packages("pcre2", "zlib")
 </code></pre>
 <p>添加vcpkg的依赖包:</p>
@@ -400,17 +400,17 @@ target("test")
 
 target("test")
     set_kind("binary")
-    add_files("src/*.c") 
+    add_files("src/*.c")
     add_packages("vcpkg::zlib", "vcpkg::pcre2")
 </code></pre>
 <p>添加conan的依赖包:</p>
 <pre><code class="lang-lua">add_requires("CONAN::zlib/1.2.11@conan/stable", {alias = "zlib", debug = true})
-add_requires("CONAN::OpenSSL/1.0.2n@conan/stable", {alias = "openssl", 
+add_requires("CONAN::OpenSSL/1.0.2n@conan/stable", {alias = "openssl",
     configs = {options = "OpenSSL:shared=True"}})
 
 target("test")
     set_kind("binary")
-    add_files("src/*.c") 
+    add_files("src/*.c")
     add_packages("openssl", "zlib")
 </code></pre>
 <p>执行xmake进行编译后:</p>
@@ -420,7 +420,7 @@ checking for the Xcode directory ... /Applications/Xcode.app
 checking for the SDK version of Xcode ... 10.14
 note: try installing these packages (pass -y to skip confirm)?
   -> CONAN::zlib/1.2.11@conan/stable  (debug)
-  -> CONAN::OpenSSL/1.0.2n@conan/stable  
+  -> CONAN::OpenSSL/1.0.2n@conan/stable
 please input: y (y/n)
 
   => installing CONAN::zlib/1.2.11@conan/stable .. ok
@@ -438,7 +438,7 @@ please input: y (y/n)
 target("xmake-test")
     set_kind("binary")
     add_files("clib/bytes/*.c")
-    add_files("src/*.c") 
+    add_files("src/*.c")
     add_packages("bytes")
 </code></pre>
 <h3 id="add_repositories">add_repositories</h3>

+ 76 - 76
sitemap.xml

@@ -12,382 +12,382 @@
 
 <url>
   <loc>https://xmake.io/mirror/guide/project_examples.html</loc>
-  <lastmod>2021-01-15T23:59:42+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:22+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/other_features.html</loc>
-  <lastmod>2021-01-15T23:59:42+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:22+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/quickstart.html</loc>
-  <lastmod>2021-01-15T23:59:42+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:22+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/faq.html</loc>
-  <lastmod>2021-01-15T23:59:42+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:22+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/configuration.html</loc>
-  <lastmod>2021-01-15T23:59:43+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/syntax_description.html</loc>
-  <lastmod>2021-01-15T23:59:43+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/installation.html</loc>
-  <lastmod>2021-01-15T23:59:43+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/plugin/plugin_development.html</loc>
-  <lastmod>2021-01-15T23:59:43+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/plugin/more_plugins.html</loc>
-  <lastmod>2021-01-15T23:59:43+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/plugin/builtin_plugins.html</loc>
-  <lastmod>2021-01-15T23:59:43+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/old/zh/plugins.html</loc>
-  <lastmod>2021-01-15T23:59:44+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:24+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/old/zh/manual.html</loc>
-  <lastmod>2021-01-15T23:59:44+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:24+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/old/plugins.html</loc>
-  <lastmod>2021-01-15T23:59:44+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:24+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/old/manual.html</loc>
-  <lastmod>2021-01-15T23:59:44+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:24+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/awesome.html</loc>
-  <lastmod>2021-01-15T23:59:44+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:24+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/technical_support.html</loc>
-  <lastmod>2021-01-15T23:59:45+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/changelog.html</loc>
-  <lastmod>2021-01-15T23:59:45+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/contact.html</loc>
-  <lastmod>2021-01-15T23:59:45+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/introduction.html</loc>
-  <lastmod>2021-01-15T23:59:45+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/sponsor.html</loc>
-  <lastmod>2021-01-15T23:59:45+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/index.html</loc>
-  <lastmod>2021-01-15T23:59:45+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/project_examples.html</loc>
-  <lastmod>2021-01-15T23:59:46+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:26+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/other_features.html</loc>
-  <lastmod>2021-01-15T23:59:46+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:26+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/quickstart.html</loc>
-  <lastmod>2021-01-15T23:59:46+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:26+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/faq.html</loc>
-  <lastmod>2021-01-15T23:59:46+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:26+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/configuration.html</loc>
-  <lastmod>2021-01-15T23:59:46+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:26+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/syntax_description.html</loc>
-  <lastmod>2021-01-15T23:59:47+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:26+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/installation.html</loc>
-  <lastmod>2021-01-15T23:59:47+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:27+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/plugin/plugin_development.html</loc>
-  <lastmod>2021-01-15T23:59:47+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:27+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/plugin/more_plugins.html</loc>
-  <lastmod>2021-01-15T23:59:47+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:27+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/plugin/builtin_plugins.html</loc>
-  <lastmod>2021-01-15T23:59:47+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:27+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/awesome.html</loc>
-  <lastmod>2021-01-15T23:59:47+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:27+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/technical_support.html</loc>
-  <lastmod>2021-01-15T23:59:48+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:27+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/changelog.html</loc>
-  <lastmod>2021-01-15T23:59:48+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:28+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/contact.html</loc>
-  <lastmod>2021-01-15T23:59:48+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:28+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/peripheral_items.html</loc>
-  <lastmod>2021-01-15T23:59:48+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:28+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/introduction.html</loc>
-  <lastmod>2021-01-15T23:59:48+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:28+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/sponsor.html</loc>
-  <lastmod>2021-01-15T23:59:48+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:28+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/course.html</loc>
-  <lastmod>2021-01-15T23:59:49+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:28+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/index.html</loc>
-  <lastmod>2021-01-15T23:59:49+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:29+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/getting_started.html</loc>
-  <lastmod>2021-01-15T23:59:49+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:29+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/specification.html</loc>
-  <lastmod>2021-01-15T23:59:49+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:29+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/builtin_variables.html</loc>
-  <lastmod>2021-01-15T23:59:49+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:29+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/conditions.html</loc>
-  <lastmod>2021-01-15T23:59:49+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:29+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/custom_rule.html</loc>
-  <lastmod>2021-01-15T23:59:50+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:29+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/project_target.html</loc>
-  <lastmod>2021-01-15T23:59:50+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:30+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/builtin_modules.html</loc>
-  <lastmod>2021-01-15T23:59:50+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:30+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/custom_toolchain.html</loc>
-  <lastmod>2021-01-15T23:59:50+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:30+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/plugin_task.html</loc>
-  <lastmod>2021-01-15T23:59:50+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:30+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/package_dependencies.html</loc>
-  <lastmod>2021-01-15T23:59:50+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:30+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/configuration_option.html</loc>
-  <lastmod>2021-01-15T23:59:51+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:30+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/extension_modules.html</loc>
-  <lastmod>2021-01-15T23:59:51+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:31+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/global_interfaces.html</loc>
-  <lastmod>2021-01-15T23:59:51+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:31+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/theme/builtin_themes.html</loc>
-  <lastmod>2021-01-15T23:59:51+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:31+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/theme/switch_theme.html</loc>
-  <lastmod>2021-01-15T23:59:51+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:31+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/local_package.html</loc>
-  <lastmod>2021-01-15T23:59:51+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:31+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/system_package.html</loc>
-  <lastmod>2021-01-15T23:59:52+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:32+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/remote_package.html</loc>
-  <lastmod>2021-01-15T23:59:52+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:32+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/getting_started.html</loc>
-  <lastmod>2021-01-15T23:59:52+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:32+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/specification.html</loc>
-  <lastmod>2021-01-15T23:59:52+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:32+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/builtin_variables.html</loc>
-  <lastmod>2021-01-15T23:59:52+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:32+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/conditions.html</loc>
-  <lastmod>2021-01-15T23:59:52+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:32+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/custom_rule.html</loc>
-  <lastmod>2021-01-15T23:59:53+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/project_target.html</loc>
-  <lastmod>2021-01-15T23:59:53+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/builtin_modules.html</loc>
-  <lastmod>2021-01-15T23:59:53+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/custom_toolchain.html</loc>
-  <lastmod>2021-01-15T23:59:53+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/plugin_task.html</loc>
-  <lastmod>2021-01-15T23:59:53+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/package_dependencies.html</loc>
-  <lastmod>2021-01-15T23:59:54+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:33+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/configuration_option.html</loc>
-  <lastmod>2021-01-15T23:59:54+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/extension_modules.html</loc>
-  <lastmod>2021-01-15T23:59:54+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/global_interfaces.html</loc>
-  <lastmod>2021-01-15T23:59:54+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/theme/builtin_themes.html</loc>
-  <lastmod>2021-01-15T23:59:54+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/theme/switch_theme.html</loc>
-  <lastmod>2021-01-15T23:59:54+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/local_package.html</loc>
-  <lastmod>2021-01-15T23:59:54+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:34+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/system_package.html</loc>
-  <lastmod>2021-01-15T23:59:55+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:35+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/remote_package.html</loc>
-  <lastmod>2021-01-15T23:59:55+08:00</lastmod>
+  <lastmod>2021-01-16T00:04:35+08:00</lastmod>
 </url>
 
 </urlset>

+ 9 - 9
zh-cn/manual/global_interfaces.md

@@ -4,16 +4,16 @@
 | 接口                                  | 描述                          | 支持版本 |
 | ------------------------------------- | ----------------------------- | -------- |
 | [includes](#includes)                 | 添加子工程文件和目录          | >= 2.1.5 |
-| [set_modes](#set_modes)               | 设置支持的编译模式            | >= 2.1.2 |
 | [set_project](#set_project)           | 设置工程名                    | >= 2.0.1 |
 | [set_version](#set_version)           | 设置工程版本                  | >= 2.0.1 |
 | [set_xmakever](#set_xmakever)         | 设置最小xmake版本             | >= 2.1.1 |
 | [add_moduledirs](#add_moduledirs)     | 添加模块目录                  | >= 2.1.5 |
-| [add_plugindirs](#add_plugindirs)     | 添加插件目录                  | >= 2.0.1 | 
+| [add_plugindirs](#add_plugindirs)     | 添加插件目录                  | >= 2.0.1 |
 | [add_packagedirs](#add_packagedirs)   | 添加包目录                    | >= 2.0.1 |
 | [get_config](#get_config)             | 获取给的配置值                | >= 2.2.2 |
 | [set_config](#set_config)             | 设置默认的配置值              | >= 2.2.2 |
 | [add_requires](#add_requires)         | 添加需要的依赖包              | >= 2.2.2 |
+| [add_requireconfs](#add_requireconfs) | 设置指定依赖包的配置          | >= 2.5.1 |
 | [add_repositories](#add_repositories) | 添加依赖包仓库                | >= 2.2.2 |
 
 ### includes
@@ -90,7 +90,7 @@ target("test")
     configvar_check_features("HAS_CONSTEXPR", "cxx_constexpr")
     configvar_check_features("HAS_CONSEXPR_AND_STATIC_ASSERT", {"cxx_constexpr", "c_static_assert"}, {languages = "c++11"})
 ```
-    
+
 config.h.in
 
 ```c
@@ -387,7 +387,7 @@ add_requires("brew::pcre2/libpcre2-8", {alias = "pcre2"}})
 
 target("test")
     set_kind("binary")
-    add_files("src/*.c") 
+    add_files("src/*.c")
     add_packages("pcre2", "zlib")
 ```
 
@@ -398,7 +398,7 @@ add_requires("vcpkg::zlib", "vcpkg::pcre2")
 
 target("test")
     set_kind("binary")
-    add_files("src/*.c") 
+    add_files("src/*.c")
     add_packages("vcpkg::zlib", "vcpkg::pcre2")
 ```
 
@@ -406,12 +406,12 @@ target("test")
 
 ```lua
 add_requires("CONAN::zlib/1.2.11@conan/stable", {alias = "zlib", debug = true})
-add_requires("CONAN::OpenSSL/1.0.2n@conan/stable", {alias = "openssl", 
+add_requires("CONAN::OpenSSL/1.0.2n@conan/stable", {alias = "openssl",
     configs = {options = "OpenSSL:shared=True"}})
 
 target("test")
     set_kind("binary")
-    add_files("src/*.c") 
+    add_files("src/*.c")
     add_packages("openssl", "zlib")
 ```
 
@@ -424,7 +424,7 @@ checking for the Xcode directory ... /Applications/Xcode.app
 checking for the SDK version of Xcode ... 10.14
 note: try installing these packages (pass -y to skip confirm)?
   -> CONAN::zlib/1.2.11@conan/stable  (debug)
-  -> CONAN::OpenSSL/1.0.2n@conan/stable  
+  -> CONAN::OpenSSL/1.0.2n@conan/stable
 please input: y (y/n)
 
   => installing CONAN::zlib/1.2.11@conan/stable .. ok
@@ -448,7 +448,7 @@ add_requires("clib::clibs/[email protected]", {alias = "bytes"})
 target("xmake-test")
     set_kind("binary")
     add_files("clib/bytes/*.c")
-    add_files("src/*.c") 
+    add_files("src/*.c")
     add_packages("bytes")
 ```