Kaynağa Gözat

remove some unstable api

ruki 4 yıl önce
ebeveyn
işleme
2c2ec32661

+ 0 - 19
manual/custom_rule.md

@@ -784,19 +784,6 @@ rule("foo")
      end)
 ```
 
-### rule:before_load
-
-#### Custom pre-load script
-
-Used to implement the execution script before the custom target is loaded, for example:
-
-```lua
-rule("test")
-    before_load(function (target)
-        target:add("defines", "-DTEST")
-    end)
-```
-
 ### rule:before_link
 
 #### Custom pre-link script
@@ -897,12 +884,6 @@ It is generally used to pre-process certain source files before compilation.
 Similar to the usage of [rule:on_buildcmd_files](#ruleon_buildcmd_files), but the time when this interface is called is before compiling some source files,
 It is generally used to pre-process certain source files before compilation.
 
-### rule:after_load
-
-#### Custom post-loading script
-
-The execution script used to implement the custom target loading is similar to [rule:after_load](#ruleafter_load).
-
 ### rule:after_link
 
 #### Custom post-linking script

+ 5 - 0
mirror/about/who_is_using_xmake.html

@@ -159,6 +159,11 @@
 <td style="text-align:left"><a href="https://github.com/knightjun/BingW">BingW</a>(bing wallpaper)</td>
 <td style="text-align:left">xmake is an excellent, simple, easy-to-use and powerful build tool.</td>
 </tr>
+<tr>
+<td style="text-align:left"><a href="https://github.com/Phate6660">Phate6660</a></td>
+<td style="text-align:left"><a href="https://github.com/Phate6660/cppfetch">cppfetch</a> (info fetch tool)</td>
+<td style="text-align:left">I tried this out after seeing <a href="https://github.com/xmake-io/xmake/wiki/C-and-Cplusplus-build-system,-I-use-xmake">this</a>, and after using it I loved it enough that I replaced meson with this!</td>
+</tr>
 </tbody>
 </table>
 </article>

+ 0 - 11
mirror/manual/custom_rule.html

@@ -599,14 +599,6 @@ batchcmds:link(objectfiles, targetfile, {configs = {linkdirs = ""}})
          end
      end)
 </code></pre>
-<h3 id="rulebefore_load">rule:before_load</h3>
-<h4 id="custompreloadscript">Custom pre-load script</h4>
-<p>Used to implement the execution script before the custom target is loaded, for example:</p>
-<pre><code class="lang-lua">rule("test")
-    before_load(function (target)
-        target:add("defines", "-DTEST")
-    end)
-</code></pre>
 <h3 id="rulebefore_link">rule:before_link</h3>
 <h4 id="customprelinkscript">Custom pre-link script</h4>
 <p>Execution scripts used to implement custom target links, for example:</p>
@@ -661,9 +653,6 @@ batchcmds:link(objectfiles, targetfile, {configs = {linkdirs = ""}})
 <h3 id="rulebefore_buildcmd_files">rule:before_buildcmd_files</h3>
 <h4 id="customizetheprecompilationbatchscripttoprocessmultiplesourcefilesatonce">Customize the pre-compilation batch script to process multiple source files at once</h4>
 <p>Similar to the usage of <a href="#ruleon_buildcmd_files">rule:on_buildcmd_files</a>, but the time when this interface is called is before compiling some source files,<br>It is generally used to pre-process certain source files before compilation.</p>
-<h3 id="ruleafter_load">rule:after_load</h3>
-<h4 id="custompostloadingscript">Custom post-loading script</h4>
-<p>The execution script used to implement the custom target loading is similar to <a href="#ruleafter_load">rule:after_load</a>.</p>
 <h3 id="ruleafter_link">rule:after_link</h3>
 <h4 id="custompostlinkingscript">Custom post-linking script</h4>
 <p>The execution script used to implement the custom target link is similar to <a href="#ruleafter_link">rule:after_link</a>.</p>

+ 2 - 2
mirror/manual/global_interfaces.html

@@ -371,8 +371,8 @@ target("test")
 </code></pre>
 <p>After version 2.2.5, xmake supports third-party package managers, such as: conan, brew, vcpkg, etc.</p>
 <p>Add a homebrew dependency package:</p>
-<pre><code class="lang-lua">add_requires("brew::zlib", {alias = "zlib"}})
-add_requires("brew::pcre2/libpcre2-8", {alias = "pcre2"}})
+<pre><code class="lang-lua">add_requires("brew::zlib", {alias = "zlib"})
+add_requires("brew::pcre2/libpcre2-8", {alias = "pcre2"})
 
 target("test")
     set_kind("binary")

+ 2 - 2
mirror/package/remote_package.html

@@ -226,8 +226,8 @@ add_requires("spdlog", {system = false, configs = {fmt_external = true, cxflags
 <h2 id="installthirdpartypackages">Install third-party packages</h2>
 <p>After version 2.2.5, xmake supports support for dependency libraries in third-party package managers, such as: conan, brew, vcpkg, clib and etc.</p>
 <h3 id="addhomebrewdependencypackage">Add homebrew dependency package</h3>
-<pre><code class="lang-lua">add_requires("brew::zlib", {alias = "zlib"}})
-add_requires("brew::pcre2/libpcre2-8", {alias = "pcre2"}})
+<pre><code class="lang-lua">add_requires("brew::zlib", {alias = "zlib"})
+add_requires("brew::pcre2/libpcre2-8", {alias = "pcre2"})
 
 target("test")
     set_kind("binary")

+ 5 - 0
mirror/zh-cn/about/who_is_using_xmake.html

@@ -159,6 +159,11 @@
 <td style="text-align:left"><a href="https://github.com/knightjun/BingW">BingW</a>(bing wallpaper)</td>
 <td style="text-align:left">xmake is an excellent, simple, easy-to-use and powerful build tool.</td>
 </tr>
+<tr>
+<td style="text-align:left"><a href="https://github.com/Phate6660">Phate6660</a></td>
+<td style="text-align:left"><a href="https://github.com/Phate6660/cppfetch">cppfetch</a> (info fetch tool)</td>
+<td style="text-align:left">I tried this out after seeing <a href="https://github.com/xmake-io/xmake/wiki/C-and-Cplusplus-build-system,-I-use-xmake">this</a>, and after using it I loved it enough that I replaced meson with this!</td>
+</tr>
 </tbody>
 </table>
 </article>

+ 0 - 11
mirror/zh-cn/manual/custom_rule.html

@@ -600,14 +600,6 @@ batchcmds:link(objectfiles, targetfile, {configs = {linkdirs = ""}})
         end
     end)
 </code></pre>
-<h3 id="rulebefore_load">rule:before_load</h3>
-<h4 id="">自定义加载前脚本</h4>
-<p>用于实现自定义target加载前的执行脚本,例如:</p>
-<pre><code class="lang-lua">rule("test")
-    before_load(function (target)
-        target:add("defines", "-DTEST")
-    end)
-</code></pre>
 <h3 id="rulebefore_link">rule:before_link</h3>
 <h4 id="">自定义链接前脚本</h4>
 <p>用于实现自定义target链接前的执行脚本,例如:</p>
@@ -662,9 +654,6 @@ batchcmds:link(objectfiles, targetfile, {configs = {linkdirs = ""}})
 <h3 id="rulebefore_buildcmd_files">rule:before_buildcmd_files</h3>
 <h4 id="">自定义编译前批处理脚本,一次处理多个源文件</h4>
 <p>跟<a href="#ruleon_buildcmd_files">rule:on_buildcmd_files</a>用法类似,不过这个接口被调用的时机是在编译某些源文件之前,<br>一般用于对某些源文件进行编译前的预处理。</p>
-<h3 id="ruleafter_load">rule:after_load</h3>
-<h4 id="">自定义加载后脚本</h4>
-<p>用于实现自定义target加载后的执行脚本,用法跟<a href="#rulebefore_load">rule:before_load</a>类似。</p>
 <h3 id="ruleafter_link">rule:after_link</h3>
 <h4 id="">自定义链接后脚本</h4>
 <p>用于实现自定义target链接后的执行脚本,用法跟<a href="#rulebefore_link">rule:before_link</a>类似。</p>

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

@@ -374,8 +374,8 @@ target("test")
 <p>例如上面,所以同时依赖两个ssl包,实际上只会启用生效实际安装成功的那一个ssl包,并不会同时链接两个依赖包。</p>
 <p>2.2.5版本之后,xmake支持对对第三方包管理器里面的依赖库安装支持,例如:conan,brew, vcpkg等</p>
 <p>添加homebrew的依赖包:</p>
-<pre><code class="lang-lua">add_requires("brew::zlib", {alias = "zlib"}})
-add_requires("brew::pcre2/libpcre2-8", {alias = "pcre2"}})
+<pre><code class="lang-lua">add_requires("brew::zlib", {alias = "zlib"})
+add_requires("brew::pcre2/libpcre2-8", {alias = "pcre2"})
 
 target("test")
     set_kind("binary")

+ 2 - 2
mirror/zh-cn/package/remote_package.html

@@ -240,8 +240,8 @@ add_requires("spdlog", {system = false, configs = {fmt_external = true, cxflags
 <h2 id="">第三方依赖包安装</h2>
 <p>2.2.5版本之后,xmake支持对对第三方包管理器里面的依赖库安装支持,例如:conan,brew, vcpkg等</p>
 <h3 id="homebrew">添加 homebrew 的依赖包</h3>
-<pre><code class="lang-lua">add_requires("brew::zlib", {alias = "zlib"}})
-add_requires("brew::pcre2/libpcre2-8", {alias = "pcre2"}})
+<pre><code class="lang-lua">add_requires("brew::zlib", {alias = "zlib"})
+add_requires("brew::pcre2/libpcre2-8", {alias = "pcre2"})
 
 target("test")
     set_kind("binary")

+ 75 - 75
sitemap.xml

@@ -12,377 +12,377 @@
 
 <url>
   <loc>https://xmake.io/mirror/guide/project_examples.html</loc>
-  <lastmod>2021-04-22T12:39:46+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:16+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/other_features.html</loc>
-  <lastmod>2021-04-22T12:39:46+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:16+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/quickstart.html</loc>
-  <lastmod>2021-04-22T12:39:46+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:16+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/faq.html</loc>
-  <lastmod>2021-04-22T12:39:47+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:16+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/configuration.html</loc>
-  <lastmod>2021-04-22T12:39:47+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:16+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/syntax_description.html</loc>
-  <lastmod>2021-04-22T12:39:47+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:16+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/guide/installation.html</loc>
-  <lastmod>2021-04-22T12:39:47+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:17+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/plugin/plugin_development.html</loc>
-  <lastmod>2021-04-22T12:39:47+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:17+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/plugin/more_plugins.html</loc>
-  <lastmod>2021-04-22T12:39:47+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:17+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/plugin/builtin_plugins.html</loc>
-  <lastmod>2021-04-22T12:39:48+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:17+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/awesome.html</loc>
-  <lastmod>2021-04-22T12:39:48+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:17+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/technical_support.html</loc>
-  <lastmod>2021-04-22T12:39:48+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:17+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/changelog.html</loc>
-  <lastmod>2021-04-22T12:39:48+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:18+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/contact.html</loc>
-  <lastmod>2021-04-22T12:39:48+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:18+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/introduction.html</loc>
-  <lastmod>2021-04-22T12:39:48+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:18+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/who_is_using_xmake.html</loc>
-  <lastmod>2021-04-22T12:39:49+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:18+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/about/sponsor.html</loc>
-  <lastmod>2021-04-22T12:39:49+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:18+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/index.html</loc>
-  <lastmod>2021-04-22T12:39:49+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:18+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/project_examples.html</loc>
-  <lastmod>2021-04-22T12:39:49+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:19+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/other_features.html</loc>
-  <lastmod>2021-04-22T12:39:49+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:19+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/quickstart.html</loc>
-  <lastmod>2021-04-22T12:39:50+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:19+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/faq.html</loc>
-  <lastmod>2021-04-22T12:39:50+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:19+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/configuration.html</loc>
-  <lastmod>2021-04-22T12:39:50+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:19+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/syntax_description.html</loc>
-  <lastmod>2021-04-22T12:39:50+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:19+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/guide/installation.html</loc>
-  <lastmod>2021-04-22T12:39:50+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:20+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/plugin/plugin_development.html</loc>
-  <lastmod>2021-04-22T12:39:50+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:20+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/plugin/more_plugins.html</loc>
-  <lastmod>2021-04-22T12:39:51+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:20+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/plugin/builtin_plugins.html</loc>
-  <lastmod>2021-04-22T12:39:51+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:20+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/awesome.html</loc>
-  <lastmod>2021-04-22T12:39:51+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:20+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/technical_support.html</loc>
-  <lastmod>2021-04-22T12:39:51+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:20+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/changelog.html</loc>
-  <lastmod>2021-04-22T12:39:51+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:21+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/contact.html</loc>
-  <lastmod>2021-04-22T12:39:51+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:21+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/peripheral_items.html</loc>
-  <lastmod>2021-04-22T12:39:52+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:21+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/introduction.html</loc>
-  <lastmod>2021-04-22T12:39:52+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:21+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/who_is_using_xmake.html</loc>
-  <lastmod>2021-04-22T12:39:52+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:21+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/sponsor.html</loc>
-  <lastmod>2021-04-22T12:39:52+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:21+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/about/course.html</loc>
-  <lastmod>2021-04-22T12:39:52+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:22+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/index.html</loc>
-  <lastmod>2021-04-22T12:39:52+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:22+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/getting_started.html</loc>
-  <lastmod>2021-04-22T12:39:53+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:22+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/specification.html</loc>
-  <lastmod>2021-04-22T12:39:53+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:22+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/builtin_variables.html</loc>
-  <lastmod>2021-04-22T12:39:53+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:22+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/conditions.html</loc>
-  <lastmod>2021-04-22T12:39:53+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:22+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/custom_rule.html</loc>
-  <lastmod>2021-04-22T12:39:53+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/project_target.html</loc>
-  <lastmod>2021-04-22T12:39:54+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/builtin_modules.html</loc>
-  <lastmod>2021-04-22T12:39:54+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/custom_toolchain.html</loc>
-  <lastmod>2021-04-22T12:39:54+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/plugin_task.html</loc>
-  <lastmod>2021-04-22T12:39:54+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/package_dependencies.html</loc>
-  <lastmod>2021-04-22T12:39:54+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:23+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/configuration_option.html</loc>
-  <lastmod>2021-04-22T12:39:54+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:24+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/extension_modules.html</loc>
-  <lastmod>2021-04-22T12:39:55+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:24+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/manual/global_interfaces.html</loc>
-  <lastmod>2021-04-22T12:39:55+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:24+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/theme/builtin_themes.html</loc>
-  <lastmod>2021-04-22T12:39:55+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:24+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/theme/switch_theme.html</loc>
-  <lastmod>2021-04-22T12:39:55+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:24+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/local_package.html</loc>
-  <lastmod>2021-04-22T12:39:55+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:24+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/system_package.html</loc>
-  <lastmod>2021-04-22T12:39:55+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/zh-cn/package/remote_package.html</loc>
-  <lastmod>2021-04-22T12:39:56+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/getting_started.html</loc>
-  <lastmod>2021-04-22T12:39:56+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/specification.html</loc>
-  <lastmod>2021-04-22T12:39:56+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/builtin_variables.html</loc>
-  <lastmod>2021-04-22T12:39:56+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/conditions.html</loc>
-  <lastmod>2021-04-22T12:39:56+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:25+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/custom_rule.html</loc>
-  <lastmod>2021-04-22T12:39:56+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:26+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/project_target.html</loc>
-  <lastmod>2021-04-22T12:39:57+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:26+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/package_interface.html</loc>
-  <lastmod>2021-04-22T12:39:57+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:26+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/builtin_modules.html</loc>
-  <lastmod>2021-04-22T12:39:57+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:26+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/custom_toolchain.html</loc>
-  <lastmod>2021-04-22T12:39:57+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:26+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/plugin_task.html</loc>
-  <lastmod>2021-04-22T12:39:57+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:27+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/package_dependencies.html</loc>
-  <lastmod>2021-04-22T12:39:58+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:27+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/configuration_option.html</loc>
-  <lastmod>2021-04-22T12:39:58+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:27+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/extension_modules.html</loc>
-  <lastmod>2021-04-22T12:39:58+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:27+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/manual/global_interfaces.html</loc>
-  <lastmod>2021-04-22T12:39:58+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:27+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/theme/builtin_themes.html</loc>
-  <lastmod>2021-04-22T12:39:58+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:27+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/theme/switch_theme.html</loc>
-  <lastmod>2021-04-22T12:39:58+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:28+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/local_package.html</loc>
-  <lastmod>2021-04-22T12:39:59+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:28+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/system_package.html</loc>
-  <lastmod>2021-04-22T12:39:59+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:28+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xmake.io/mirror/package/remote_package.html</loc>
-  <lastmod>2021-04-22T12:39:59+08:00</lastmod>
+  <lastmod>2021-05-10T16:59:28+08:00</lastmod>
 </url>
 
 </urlset>

+ 0 - 19
zh-cn/manual/custom_rule.md

@@ -785,19 +785,6 @@ rule("foo")
     end)
 ```
 
-### rule:before_load
-
-#### 自定义加载前脚本
-
-用于实现自定义target加载前的执行脚本,例如:
-
-```lua
-rule("test")
-    before_load(function (target)
-        target:add("defines", "-DTEST")
-    end)
-```
-
 ### rule:before_link
 
 #### 自定义链接前脚本
@@ -898,12 +885,6 @@ rule("markdown")
 跟[rule:on_buildcmd_files](#ruleon_buildcmd_files)用法类似,不过这个接口被调用的时机是在编译某些源文件之前,
 一般用于对某些源文件进行编译前的预处理。
 
-### rule:after_load
-
-#### 自定义加载后脚本
-
-用于实现自定义target加载后的执行脚本,用法跟[rule:before_load](#rulebefore_load)类似。
-
 ### rule:after_link
 
 #### 自定义链接后脚本