You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li>Set the root directory of the global configuration file</li>
835
835
</ul>
836
-
<p>That is, the storage directory of the global configuration of <code>xmake g/global</code>, as well as other global files such as installation packages, caches, etc., will be stored in this directory by default.</p>
837
-
<p>The default path is: <code>~/.xmake</code>.</p>
836
+
<p>A <code>.xmake</code> directory, which serves as the storage directory of the global configuration of <code>xmake g/global</code> configuration, will be created under this path. Other global files such as installation packages, caches, etc., will be stored in this directory by default.</p>
837
+
<p>The default path is: <code>~</code>.</p>
838
838
<h3id="xmake_root">XMAKE_ROOT</h3>
839
839
<p>-Allow users to run in root mode</p>
840
840
<p>Usually xmake is forbidden to run under root by default, which is very insecure. But if the user has to run under root, he can also set this variable to force it on.</p>
<li>Set the installation root directory of the dependent package</li>
879
879
</ul>
880
-
<p>The default global directory for xmake's remote package installation is <code>~/.xmake/packages</code>, but users can also set this variable to modify it individually.</p>
881
-
<p>We can also use <code>xmake g --pkg_installdir=/xxx</code> to set it, the effect is the same.</p>
880
+
<p>The default global directory for xmake's remote package installation is <code>$XMAKE_GLOBALDIR/.xmake/packages</code>, but users can also set this variable to modify it individually.</p>
881
+
<p>We can also use <code>xmake g --pkg_installdir=/xxx</code> to set it, the effect is the same. However, the environment variable takes precedence over this configuration.</p>
<li>Set the cache directory of dependent packages</li>
885
885
</ul>
886
-
<p>The default path is in the <code>~/.xmake/cache</code> directory, which stores various cache files during the package installation process, which takes up more storage space, and the user can also set it separately.</p>
886
+
<p>The default path is in the <code>$XMAKE_GLOBALDIR/.xmake/cache</code> directory, which stores various cache files during the package installation process, which takes up more storage space, and the user can also set it separately.</p>
887
887
<p>Of course, Xmake will automatically clean up all cache files of the previous month every month.</p>
<p>If not set, the default path is: <code>~/.xmake/xmakerc.lua</code>.</p>
994
+
<p>If this environment variable is not set, users can set the global configuration file in <code>/etc/xmakerc.lua</code>, <code>~/xmakerc.lua</code>, and <code>$XMAKE_GLOBALDIR/.xmake/xmakerc.lua</code>. The search priority is listed from highest to lowest.</p>
<h4id="stepbysteplocalpackagingtutorial">Step by Step Local Packaging Tutorial</h4>
264
+
<p>In this tutorial we will package a static library called foo, upload it to a GitHub repository and consume it similar to a manner of CMake FetchContent</p>
0 commit comments